I have set up a PPTP VPN client on my Ubuntu server. Unfortunately when the server reboots, the connection goes down and stays down. After a long search I found a solution on this website. It is simple bash script, which checks if the VPN server (which had the VPN ip of 10.8.3.0) is pingable. If not it restarts the PPTP VPN connection.
ping-c3 10.8.3.0 > pingreport
result=`grep"0 received" pingreport`truncresult="`echo "$result" | sed 's/^\(.................................\).*$/\1/'`"if[[$truncresult == "3 packets transmitted, 0 received"]]; then
ping -c3 10.8.3.0 > pingreport
result=`grep "0 received" pingreport`
truncresult="`echo "$result" | sed 's/^\(.................................\).*$/\1/'`"
if [[ $truncresult == "3 packets transmitted, 0 received" ]]; then
I execute this script every five minutes, by editing the /etc/crontab file and added the following rule:
Munin is a networked server monitoring tool written in Perl. Munin consists of two parts: the Munin server and Munin nodes. The nodes are running on the servers we want to monitor, while the server periodically (5 minutes by default) fetches the data from all of the registered nodes. The server is a able to build charts from this node data, which gives insight in the cpu usage, disk usage, network load and more.
The Munin team has a live demo of Munin, which can be viewed at http://munin.ping.uio.no/ I have installed both the Munin node and server on my Ubuntu server machine, and added nodes of other servers as well.
In my /var/log/mail.log I saw the following error:
Aug 6 17:12:58 Nephtys cyrus/imap: SQUAT failed to open index file
Aug 6 17:12:58 Nephtys cyrus/imap: SQUAT failed
In order to fix this execute the following commands:
# sudo su cyrus
This will make you the cyrus user.
This will index all your e-mails (more info by executing $ man squatter). This index is not incremental so you need to run this task once in a while. It might be usefull to create a cronjob for this command.
When I opened Roundcube, the login screen asked me every time for a server name. This turned out to be pretty annoying since this is localhost all the time. In order to remove this field open /etc/roundcube/main.inc.php in your favorite texteditor and set the property
$rcmail_config[‘default_host’] = ‘localhost’;
Refresh your page and the server textbox has been disappeared.
I noticed that I connect a lot to my server in order to retrieve files, so I thought it would be useful to connect through NFS instead of Samba. Installing NFS on my server was a piece of cake. Just follow this tutorial and you are done.
The only thing you need to do then is manage your shares in the /etc/exports file. So far so good. But when I want to connect I receive an error which tells me I use the wrong username and/or password. Funny enough the whole system did not even prompt for any of these credentials.
Angry IP scanner is a free network scanner which supports Mac OSX, Windows and Linux. It has an intuitive GUI which makes it easy to use. You can download Angry IP scanner here, more screenshots are available here.