Archive

Archive for the ‘Linux’ Category

Start Subversion (SVN) automatically when Ubuntu server boots

May 31st, 2010

It turned out my Ubuntu server does not start Subversion automatically on boot. I found this website with instructions how to create a startup script.

Create a file called “svnserve” in the /etc/init.d folder

$ sudo nano /etc/init.d/svnserve

Add the following line to this script in order to start the Subversion server:

svnserve -d --root /srv/subversion

Save the file (CTRL+O) and exit nano (CTRL+X)
Now make the file executable

$ sudo chmod +x /etc/init.d/svnserve

Add the svnserve script to the init.d boot sequence

$ sudo update-rc.d svnserve defaults

Now you’re done! On the next reboot the SVN server will start automatically.

Linux , , ,

Connect from Mac OSX to Ubuntu NFS

May 6th, 2010

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.

NFS connection error in OSX

NFS connection error in OSX

Read more…

Linux ,

Fixing Cyrus SASL(-13): authentication failure: checkpass failed error

October 7th, 2009

The last few days I keep having trouble connecting to my imap server running Cyrus. I started to view my syslog when trying to authenticate to the Cyrus server, there was one line interesting:

Cyrus SASL(-13): authentication failure: checkpass failed error

I thought it should have something to do with the passwords so I tried to enter the Cyrus server with:

# cyradm localhost

When I entered my password I could not connect. This was weird since I was 100% sure about the correctness. To be sure I resetted all my imap box passwords using:

# saslpasswd2 username

This didn’t fix it either. Then I read on a website about the saslauthd daemon not running. I restarted the service and everything worked as normal :) My guess is that an Ubuntu update stopped the saslauthd daemon but did not restart it.

Linux , , , ,

Bonjour (mDNS) via OpenVPN on Linux with Avahi-deamon

September 16th, 2009

Quintin Smits has wrote an interesting article describing how you can make your server appear in Finder as a share even over a VPN.

Picture 8

Nephys as a share in Finder

Linux, Software , ,

Readout sensors of an EEE Box running Ubuntu server

August 11th, 2009

Quintin, a friend of mine, showed me a way to readout the sensors of my EEE Box in Ubuntu server.

The first step is to install the lm-sensors package

$ sudo apt-get install lm-sensors

Then you need to load the w83627ehf kernel module using

$ sudo modprobe w83627ehf

In order to have your sensors detected launch the command below and follow the steps shown (basically you can just press [enter] to each question).

$ sudo sensors-detect

Now you can readout your sensors by using the command

$ sensors

Remember if you want to load the w83627ehf module every time the sysem reboots, you need to update your /etc/rc.local with the line:

modprobe w83627ehf
readout of my sensors

readout of my sensors

Linux , , , , ,

Set Xubuntu splash

July 20th, 2009

I wanted to switch from Kubutu to Xubuntu, this all went fine except the splash screen. The startup splash still was the Kubuntu one. In order to change this to the following:

$ sudo update-alternatives –config usplash-artwork.so

Select the option of your Xubuntu splash screen. Reload the spash with:

$ sudo dpkg-reconfigure usplash

Picture 4

Linux , ,

Disable root login for ssh server in Kubuntu

February 13th, 2009

If you are a hacker, what is the thing you want to be on a Linux System? Root. You can try to access a ssh server with the root user. There is an option in the ssh server configuration which prevents a remote root login. This does not mean you can not become root, it means no one can directly login as the root user. So if you are logged in as Alice you can simple enter the “su” command to become root.

How we can prevent the remote root login is described below.

root

Read more…

Linux, Software, general ,

Free Ubuntu pocket guide and reference

February 8th, 2009

Keir Thomas has written a nice ebook called: Ubuntu Pocket Guide and Reference. You can download this ebook for free or order it for $ 9,94 at Amazon.

Ubuntu Pocket Guide and reference cover

Ubuntu Pocket Guide and reference cover

Read more…

Linux ,

Install vmware-player on Kubuntu

February 4th, 2009

Next semester I need to code some programs for MINIX 3. Since I do not want to install this operating system on one of my machines I decided to use VMWare. The VMWare Player is free, and can be easily installed on Linux. At least that is what I thought…

VMWare

VMWare

Read more…

Linux, Software , ,

Samsung NC10′s Kubuntu finally mutes speakers when using headphone

January 29th, 2009

When I bought my Samsung NC10, I noticed some weird behaviour of the sound card; when I plugged in my headphone the speakers still played sound as well. This morning I updated my Kubuntu running Samsung NC10 with a new kernel: 2.6.27-11-generic. After a reboot  I noticed I finally had a headphone slider in KMixer.

kmixer

KMixer

Read more…

Linux , , ,