<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Tweaking FAQs</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Tweaking FAQs</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top bottom"><a href="AdministrationFAQ.html" class="wiki">AdministrationFAQ</a> |
<a href="InstallationFAQ.html" class="wiki">InstallationFAQ</a> |
<a href="SecurityFAQ.html" class="wiki">SecurityFAQ</a> |
<a href="TroubleshootingFAQ.html" class="wiki">TroubleshootingFAQ</a> |
<a href="Tweaking%20FAQs.html" class="wiki">Tweaking FAQs</a> |
<a href="French%20documentation.html" class="named-wiki" title="French documentation">French FAQs</a>  |
<a href="http://no.longer.valid/modules/xoopsfaq/index.php" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />Site</span> Info</a> <br /> <br /></p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><a name="top" id="top"></a></p>
</blockquote>
<p class="tightenable top"><i>back to</i> <a href="SME%20Server%20FAQs.html" class="wiki">SME Server FAQs</a></p>
<ul><li class="tightenable bottom"><a href="Tweaking%20FAQs.html#emailip" class="named-wiki" title="">How to get SME's IP adress emailed, if it is not static?</a> <br /></li>
<li class="tightenable top bottom"><a href="Tweaking%20FAQs.html#disableservice" class="named-wiki" title="">How can I permanently disable services that I do not require?</a> <br /></li>
<li class="tightenable top bottom"><a href="Tweaking%20FAQs.html#tweakwebmail" class="named-wiki" title="">Webmail looks boring, can i alter some settings?</a> <br /></li>
<li class="tightenable top bottom"><a href="Tweaking%20FAQs.html#username" class="named-wiki" title="">I need more than the default 12 characters allowed in usernames</a> <br /></li>
<li class="tightenable top bottom"><a href="Tweaking%20FAQs.html#syslogd" class="named-wiki" title="">I need to log remote units to my syslog</a> <br /></li>
<li class="tightenable top"><a href="Tweaking%20FAQs.html#hdparm" class="named-wiki" title="">How can I get better performance from my hard drive(s)</a> <br /></li>
</ul>
<hr />
<h4><a href="Tweaking%20FAQs.html#top" class="named-wiki" title="">*</a>  <a name="emailip" id="emailip">How to get SME's IP adress emailed, if it is not static?</a> <br /></h4>
<p class="tightenable top"><b>Problem:</b> 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. <br />
<b>Solution:</b> <br /></p>
<p class="tightenable">Edit</p>
<p class="tightenable"><tt>/etc/ppp/ip-up</tt></p>
<p class="tightenable">and enter at before the <tt>exit 0</tt> <br />
<tt>echo $4 | mail -s &quot;New IP Myserver&quot; your_desired@address.org</tt></p>
<p class="tightenable">where &quot;New IP Myserver&quot; is a text at your choice and &quot;your_desired@address.org&quot; is your email adress.</p>
<p class="tightenable bottom"><small>(Mathias Bachmann)</small></p>
<hr />
<h4><a href="Tweaking%20FAQs.html#top" class="named-wiki" title="">*</a>  <a name="disableservice" id="disableservice">How can I permanently disable services that I do not require?</a> <br /></h4>
<p class="tightenable top bottom"><b>Problem:</b> You want to permanently disable a service such as <i><b>atalk</b></i> that you do not need running on your server.  <br />
<b>Solution:</b> <br /> <br />
Log into the console as root <br />
Type in: /sbin/e-smith/db configuration setprop atalk status disabled <br />
Press: ENTER <br />
Type in: /sbin/e-smith/signal-event console-save <br />
Press: ENTER <br /></p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><br /></p>
</blockquote>
<p class="tightenable top bottom">Replace &quot;atalk&quot; with the name of the service you want to disable. <br />
The process can be reversed by entering 'enable' instead of 'disable' <br /></p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><br /></p>
</blockquote>
<p class="tightenable top bottom">To see the status of a service: <br /></p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><br /></p>
</blockquote>
<p class="tightenable top bottom">Type in: /sbin/e-smith/config show 'service-name' <br />
Press: ENTER <br />
Leaving the 'service-name' blank will display the status of all available services</p>
<hr />
<h4><a href="Tweaking%20FAQs.html#top" class="named-wiki" title="">*</a>  <a name="tweakwebmail" id="tweakwebmail">Webmail looks boring, can i alter some settings?</a> <br /></h4>
<p class="tightenable top"><b>Problem:</b> You want to customize webmail <br />
<b>Solution:</b> <br /></p>
<p class="tightenable">First off: <b>make backups of the files you edit</b></p>
<h4>To change the background color <br /></h4>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>/home/httpd/html/horde/config/html.php</tt> <br /></p>
</blockquote>
<dl><dt class="tightenable top bottom">on line 11 you will see</dt>
<dd class="tightenable top bottom"><tt>$css['body']['background-color'] = '&lt;hex color code&gt;'</tt></dd>
</dl>
<p class="tightenable top">Change hex color, save, test it.</p>
<h4>Use a background image instead of just a solid plain color</h4>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>/home/httpd/html/horde/config/html.php</tt> <br /></p>
</blockquote>
<p class="tightenable top bottom">locate and fill in <br /></p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>$css['body']['background-image'] = 'url(' . $registry-&gt;getParam('graphics', 'horde') . '/&lt;your image&gt;)';</tt> <br /></p>
</blockquote>
<p class="tightenable top">The background graphic will go in your imp/graphics/ folder.</p>
<h4>To change the &quot;webmail&quot; welcome on your horde/imp login screen</h4>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>/etc/e-smith/templates/home/httpd/html/horde/config/registry.php/210AppRegistryImp</tt> <br /></p>
</blockquote>
<p class="tightenable top bottom">edit line 6 between the &quot; &quot; to show whatever you want, save. Next step to expand the template - so it updates the message: <br /></p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>/sbin/e-smith/expand-template /home/httpd/html/horde/config/registry.php</tt> <br /></p>
</blockquote>
<p class="tightenable top">You will now will see your new wording in the webmail login screen.</p>
<h4>You want to place a custom header on your webmail</h4>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>/home/httpd/html/horde/imp/templates/common_header.inc</tt> <br /></p>
</blockquote>
<p class="tightenable top">Simply place your code after the last line in the file. Do not include any statement that will close out the page, like &lt;/body&gt; and no &lt;/html&gt; comments. This will display the header at the top of every page.</p>
<h4>The header only should appear on the login page</h4>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>/home/httpd/html/horde/imp/login.php</tt> <br /></p>
</blockquote>
<p class="tightenable top">Look for the line near the bottom of the file that reads -
<tt>include IMP_TEMPLATES . '/common-header.inc';</tt>  Change it to -
<tt>include IMP_TEMPLATES . '/login-common-header.inc';</tt> <br />
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</p>
<p class="tightenable">Further experimentation:
Look at <b>login.inc</b> in the <tt>imp/templates/login/</tt> folder</p>
<p class="tightenable">Further information:
<a href="http://www.horde.org/themes/" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www.horde.org/themes/</span></a></p>
<p class="tightenable bottom"><small>(gbaird, Rigger)</small></p>
<hr />
<h4><a href="Tweaking%20FAQs.html#top" class="named-wiki" title="">*</a> <a name="username" id="username">I need more than the default 12 characters allowed in usernames</a> <br /></h4>
<p class="tightenable">see <a href="AdministrationFAQ.html#limit12carac" class="named-wiki" title="AdministrationFAQ">AdministrationFAQ#limit12carac</a></p>
<hr />
<h4><a href="Tweaking%20FAQs.html#top" class="named-wiki" title="">*</a> <a name="syslogd" id="syslogd">I need to log remote units to my syslog</a> <br /></h4>
<p class="tightenable bottom">Edit the syslog template</p>
<blockquote class="tightenable top"><p class="tightenable top bottom"><tt>nano /etc/e-smith/templates/etc/sysconfig/syslog/10NoMARKs</tt> <br /></p>
</blockquote>
<p class="tightenable bottom">Change the following line</p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><tt>SYSLOGD_OPTIONS</tt>&quot;-m 0&quot; <br /></p>
</blockquote>
<p class="tightenable top bottom">To</p>
<blockquote class="tightenable top"><p class="tightenable top bottom"><tt>SYSLOGD_OPTIONS</tt>&quot;-m 0 -r&quot; <br /></p>
</blockquote>
<p class="tightenable"><i>&quot;Quote&quot; man syslogd</i> <br /></p>
<p class="tightenable"><i>-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.</i> <br /></p>
<dl><dt class="tightenable bottom">Expand the syslog template</dt>
<dd class="tightenable top"><tt>/sbin/e-smith/expand-template /etc/sysconfig/syslog</tt> <br /></dd>
<dt class="tightenable bottom">To activate the changes restart the syslog service</dt>
<dd class="tightenable top bottom"><tt>service syslog restart</tt> <br /></dd>
</dl>
<p class="tightenable top bottom"><small>(Mats Karlsson)</small></p>
<hr />
<h4><a href="Tweaking%20FAQs.html#top" class="named-wiki" title="">*</a> <a name="hdparm" id="hdparm">How can I get better performance from my hard drive(s)</a> <br /></h4>
<p class="tightenable bottom">see <a href="http://forums.contribs.org/viewtopic.php?t=28038" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://forums.contribs.org/viewtopic.php?t=28038</span></a>
<small>(Kruhm)</small></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;matsk&quot;  Last edited on September 22, 2005  4:36 pm by &quot;matsk&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
