If you’re using Samba to provide network shares to your users, it might be usefull to autmatically create the their homedir when they access it the first time. This can be done by adding this line to the [homes] directive :
root preexec = /usr/local/sbin/mkhomedir.sh %U
This is the mkhomedir.sh script itself :
#!/bin/bash
if [ ! -e /storage_users/DOMAIN/$1 ]; then
mkdir /storage_users/DOMAIN/$1
chown $1:"DOMAIN+Domain Admins" /storage_users/DOMAIN/$1
fi
exit 0
I’m publishing the Thesis that I and my fellow student Joost Ringoot made for our Graduate training in evening school. It might be useful to someone.
Projectwerk_2008_AntiSpam
The other day one of our internal DNS needed to be shut down for maintenance. During that time people complained about slow responsiveness of the applications running on our RHEL machines. Because the DNS maintenance was the only change we made at that time we started looking in that direction.
As it turned out, it seems that Linux is trying to contact the first DNS server in the resolv.conf file for every DNS query. The second one is queried after x number of seconds
... ➦Recently i had a VPN connection with OpenSwan that didn’t stay alive. Adding the following option to the config fixed it
dpdaction=restart
I’m running this blog on LightTPD now. It runs a lot faster now on my 64MB VPS.
I switched from Typo to Wordpress . I thought it would run a little faster on the 64MB VPS i use on my server. But WP uses MySQL as a backend and that doesn’t really help.
Apache is also quite a memory hog on systems with low memory, but with some Apache and MySQL tuning my blog isn’t going OOM anymore :).
... ➦I’m running this blog now with the Phusion Passenger mod for Apache.
Normally this Apache directive should be enough to start your rails app.
VirtualHost *:80;
servername mydomain.tld
documentroot /var/www/html/typo/public
/VirtualHost></pre>
I had to change it to the following though to get it to work.
VirtualHost *:80;
servername mydomain.tld
PassengerEnabled on
documentroot /var/www/html/typo/public
/VirtualHost
When you try to export a virtual machine and get the following error : "An item with the same key has already been added’. There is probably a snapshot attached to the Virtual Machine.
You can’t export the VM with snapshots you’ve got to remove them first.
During the installation of Fedora 11 on my laptop, the installation process did a suggestion for a hostname.
I swear i didn’t enter anything myself …