AdministrationFAQ | InstallationFAQ | SecurityFAQ | TroubleshootingFAQ | Tweaking FAQs | French FAQs | Site Info

back to SME Server FAQs


* How to get SME's IP adress emailed, if it is not static?

Problem: The provider disconnects after 24 hours. You don't have a static IP, you won't or don't use dyndns and you want to recieve the actual IP of your server as soon as it's changed. All you need is an email-account somewhere. Works on all SME since 4.12.
Solution:

Edit

/etc/ppp/ip-up

and enter at before the exit 0
echo $4 | mail -s "New IP Myserver" your_desired@address.org

where "New IP Myserver" is a text at your choice and "your_desired@address.org" is your email adress.

(Mathias Bachmann)


* How can I permanently disable services that I do not require?

Problem: You want to permanently disable a service such as atalk that you do not need running on your server.
Solution:

Log into the console as root
Type in: /sbin/e-smith/db configuration setprop atalk status disabled
Press: ENTER
Type in: /sbin/e-smith/signal-event console-save
Press: ENTER


Replace "atalk" with the name of the service you want to disable.
The process can be reversed by entering 'enable' instead of 'disable'


To see the status of a service:


Type in: /sbin/e-smith/config show 'service-name'
Press: ENTER
Leaving the 'service-name' blank will display the status of all available services


* Webmail looks boring, can i alter some settings?

Problem: You want to customize webmail
Solution:

First off: make backups of the files you edit

To change the background color

/home/httpd/html/horde/config/html.php

on line 11 you will see
$css['body']['background-color'] = '<hex color code>'

Change hex color, save, test it.

Use a background image instead of just a solid plain color

/home/httpd/html/horde/config/html.php

locate and fill in

$css['body']['background-image'] = 'url(' . $registry->getParam('graphics', 'horde') . '/<your image>)';

The background graphic will go in your imp/graphics/ folder.

To change the "webmail" welcome on your horde/imp login screen

/etc/e-smith/templates/home/httpd/html/horde/config/registry.php/210AppRegistryImp

edit line 6 between the " " to show whatever you want, save. Next step to expand the template - so it updates the message:

/sbin/e-smith/expand-template /home/httpd/html/horde/config/registry.php

You will now will see your new wording in the webmail login screen.

You want to place a custom header on your webmail

/home/httpd/html/horde/imp/templates/common_header.inc

Simply place your code after the last line in the file. Do not include any statement that will close out the page, like </body> and no </html> comments. This will display the header at the top of every page.

The header only should appear on the login page

/home/httpd/html/horde/imp/login.php

Look for the line near the bottom of the file that reads - include IMP_TEMPLATES . '/common-header.inc'; Change it to - include IMP_TEMPLATES . '/login-common-header.inc';
Copy the file imp/templates/common-header.inc to imp/templates/login-common-header.inc. You can now edit and customize the new imp/templates/login-common-header.inc

Further experimentation: Look at login.inc in the imp/templates/login/ folder

Further information: http://www.horde.org/themes/

(gbaird, Rigger)


* I need more than the default 12 characters allowed in usernames

see AdministrationFAQ#limit12carac


* I need to log remote units to my syslog

Edit the syslog template

nano /etc/e-smith/templates/etc/sysconfig/syslog/10NoMARKs

Change the following line

SYSLOGD_OPTIONS"-m 0"

To

SYSLOGD_OPTIONS"-m 0 -r"

"Quote" man syslogd

-r This option will enable the facility to receive message from the network using an internet domain socket with the syslog service (see services(5)). The default is to not receive any messages from the network.

Expand the syslog template
/sbin/e-smith/expand-template /etc/sysconfig/syslog
To activate the changes restart the syslog service
service syslog restart

(Mats Karlsson)


* How can I get better performance from my hard drive(s)

see http://forums.contribs.org/viewtopic.php?t=28038 (Kruhm)