I found these lovely eye candy Bisigi gnome ubuntu themes for my brand new karmic koala.
Just add them
sudo add-apt-repository ppa:bisigi/ppa
sudo apt-get update
And add them - i like wild things most
sudo aptitude install wild-shine-theme
Have fun.
EDIT:
I found this amazing splash screen replacement that make the boot process more eye candy.
Download PackoXsplash HD and extract its files (not the folder) directly to
/usr/share/images/xsplash
You need to be root user to access the folder. To see the effect one need to reboot the box of course.
Do you now other resources like this one. Just drop a comment.
Integrate BBClone in Typo3
I'd simply modified the index.php auf Typo3.
Append something like this and adopt the variables
// ******************
// include TSFE
// ******************
require (PATH_tslib.'index_ts.php');
//Inserted for BBClone
$page = explode('/',$GLOBALS['TSFE']->siteScript);
$page = $page[count($page)-1];
$page = explode('.',$page);
$page = $page[0];
$page = explode('?',$page);
$page = $page[0];
if ($page =="") $page="yourdomain.tld";
define("_BBC_PAGE_NAME",$page);
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
If you will update Typo3 you have to insert this modification again!
Append something like this and adopt the variables
// ******************
// include TSFE
// ******************
require (PATH_tslib.'index_ts.php');
//Inserted for BBClone
$page = explode('/',$GLOBALS['TSFE']->siteScript);
$page = $page[count($page)-1];
$page = explode('.',$page);
$page = $page[0];
$page = explode('?',$page);
$page = $page[0];
if ($page =="") $page="yourdomain.tld";
define("_BBC_PAGE_NAME",$page);
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
If you will update Typo3 you have to insert this modification again!
Creating spamassassin custom rules
To prevent false positves when checking e-mail for spam with spamassassin it can be useful to provide certain text patterns that will/should never appear in spam mails, such as terms related to your business.
Such terms can be scanned to decrease the score value of spamassassin.
Edit /etc/spamassassin/local.cf and add a section like this
rawbody __BECAUSE_TERM /exampletermregex/i
header __BECAUSE_RECIPIENT ALL =~ /myaccount\@domain.tld/i
meta MYTERM_MAILBODY (__BECAUSE_TERM && __BECAUSE_RECIPIENT)
score MYTERM_MAILBODY -5.0
Here is what happens:
In the first line the body of the mail will be scanned with the regular expression defined by "exampletermregex".
The second lines scan *all* headers of the e-mail for any occurence of e-mail address "myaccount\@domain.tld" - this is a regular expression as well.
The third lines concats the two conditions above. In the forth line the spam score for this e-mail will be decreased by 5 if both conditions are true. That's all!
Another example? Here only the header is scanned. Contains the subject a certain term and is the email address mentioned in the header?
header __BECAUSE_TERM Subject =~ /(term1|term2)/i
header __BECAUSE_RECIPIENT ALL =~ /account\@domain.tld/i
meta MYTERM_MAILHEAD (__BECAUSE_RECIPIENT && __BECAUSE_TERM)
score MYTERM_MAILHEAD -5.0
If you have spamassassin running as a daemon you have to reload it to make the rules work.
Did this worked for you. Just drop a comment.
Such terms can be scanned to decrease the score value of spamassassin.
Edit /etc/spamassassin/local.cf and add a section like this
rawbody __BECAUSE_TERM /exampletermregex/i
header __BECAUSE_RECIPIENT ALL =~ /myaccount\@domain.tld/i
meta MYTERM_MAILBODY (__BECAUSE_TERM && __BECAUSE_RECIPIENT)
score MYTERM_MAILBODY -5.0
Here is what happens:
In the first line the body of the mail will be scanned with the regular expression defined by "exampletermregex".
The second lines scan *all* headers of the e-mail for any occurence of e-mail address "myaccount\@domain.tld" - this is a regular expression as well.
The third lines concats the two conditions above. In the forth line the spam score for this e-mail will be decreased by 5 if both conditions are true. That's all!
Another example? Here only the header is scanned. Contains the subject a certain term and is the email address mentioned in the header?
header __BECAUSE_TERM Subject =~ /(term1|term2)/i
header __BECAUSE_RECIPIENT ALL =~ /account\@domain.tld/i
meta MYTERM_MAILHEAD (__BECAUSE_RECIPIENT && __BECAUSE_TERM)
score MYTERM_MAILHEAD -5.0
If you have spamassassin running as a daemon you have to reload it to make the rules work.
Did this worked for you. Just drop a comment.
Ubuntu automatic unattended upgrades
As seen in Windows with its automatic updates one can perform such action for Ubuntu as well.
Simply install the corresponding package
sudo apt-get install unattended-upgrades
Here we see how it works
dpkg -L unattended-upgrades
/etc/logrotate.d/unattended-upgrades
/etc/apt/apt.conf.d/50unattended-upgrades
It's done by the cron job an some setting in
/etc/apt/apt.conf.d/50unattended-upgrades
Here on can configure what updates are safe to become installed automatically.
One can also setup a email address in this config file for informations when updates were driven.
Unattended-Upgrade::Mail "yourname@yourdomain.tld";
Did it work for you. Just drop a comment.
Simply install the corresponding package
sudo apt-get install unattended-upgrades
Here we see how it works
dpkg -L unattended-upgrades
/etc/logrotate.d/unattended-upgrades
/etc/apt/apt.conf.d/50unattended-upgrades
It's done by the cron job an some setting in
/etc/apt/apt.conf.d/50unattended-upgrades
Here on can configure what updates are safe to become installed automatically.
One can also setup a email address in this config file for informations when updates were driven.
Unattended-Upgrade::Mail "yourname@yourdomain.tld";
Did it work for you. Just drop a comment.
lighttpd set up virtual host - here with cacti
Here is an example config section setting up a subdomain with cacti monitoring taken from my lighttpd config file:
/etc/lighttpd/lighttpd.conf
$HTTP["host"] == "cacti.mydomain.tld" {
server.document-root = "/usr/share/cacti/site"
server.errorlog = "/var/log/lighttpd/error-cacti.log"
accesslog.filename = "/var/log/lighttpd/access-cacti.log"
}
That's all.
/etc/lighttpd/lighttpd.conf
$HTTP["host"] == "cacti.mydomain.tld" {
server.document-root = "/usr/share/cacti/site"
server.errorlog = "/var/log/lighttpd/error-cacti.log"
accesslog.filename = "/var/log/lighttpd/access-cacti.log"
}
That's all.
lighttpd enable php with fast cgi
Install the php5 cgi package
apt-get install php5-cgi
I'd to install the php mysql support, too.
apt-get install php5-mysq
Configure the Lighttpd by editing to config file
/etc/lighttpd/lighttpd.conf
At first we need to enable the mod_fastcgi
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_fastcgi",
then we configure fastcgi to handle php file extensions
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket"
)))
Restart the daemon for changes to take effekt.
/etc/init.d/lighttpd force-reload
Done. Did it work for you? Drop a comment.
apt-get install php5-cgi
I'd to install the php mysql support, too.
apt-get install php5-mysq
Configure the Lighttpd by editing to config file
/etc/lighttpd/lighttpd.conf
At first we need to enable the mod_fastcgi
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_fastcgi",
then we configure fastcgi to handle php file extensions
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket"
)))
Restart the daemon for changes to take effekt.
/etc/init.d/lighttpd force-reload
Done. Did it work for you? Drop a comment.
mod_auth for nagios3 and lighttpd
One has to enable mod_auth in
/etc/lighttpd/lighttpd.conf
like this
server.modules = (
"mod_access",
"mod_alias",
"mod_cgi",
"mod_accesslog",
"mod_auth",
Then simply append this block - adopt the url and the backend and the user to your needs.
$HTTP["url"] =~ "/nagios3" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/nagios3/htpasswd.users"
auth.require = ( "" =>
(
"method" => "basic",
"realm" => "restricted area",
"require" => "user=yourusername"
)
)
setenv.add-environment = ( "REMOTE_USER" => "user" )
}
To simulate apache's mod_env we use the user mapping as to see in the last line above.
Don't forget to restart the lighty daemon gracefully.
/etc/init.d/lighttpd force-reload
Did it work for you - drop a comment.
/etc/lighttpd/lighttpd.conf
like this
server.modules = (
"mod_access",
"mod_alias",
"mod_cgi",
"mod_accesslog",
"mod_auth",
Then simply append this block - adopt the url and the backend and the user to your needs.
$HTTP["url"] =~ "/nagios3" {
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/nagios3/htpasswd.users"
auth.require = ( "" =>
(
"method" => "basic",
"realm" => "restricted area",
"require" => "user=yourusername"
)
)
setenv.add-environment = ( "REMOTE_USER" => "user" )
}
To simulate apache's mod_env we use the user mapping as to see in the last line above.
Don't forget to restart the lighty daemon gracefully.
/etc/init.d/lighttpd force-reload
Did it work for you - drop a comment.
Subscribe to:
Posts (Atom)







