Archive

Archive for the ‘Linux’ Category

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…

general, Linux, Software ,

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 , , ,

OpenVPN on Ubuntu server for OSX clients tutorial

January 27th, 2009

I have three computers: MacBook Pro, Netbook and a PC. They all have their own data. It would be very nice if I had all my files on just one location (e.g. my server). The only problem is: how do I access these files in a secure way. SSH is an option, but does not quite fit my needs. The solution: NFS over a VPN. NFS fulfilled all my needs, but I do not want to open NFS to whole world through my router.

A VPN, gives me access to my home network and makes it possible for me to access all my files in a secure way. My server (an Asus EEE Box) runs Ubuntu Server, and there is a Linux version of OpenVPN! I thought installing OpenVPN should not be that hard; I just need to find the right tutorial.

openvpn_logo

Read more…

External links, Linux, Software , , , , , ,

Samsung NC10′s webcam works on Kubuntu!

January 25th, 2009

Lately I was wondering if my Samsung NC10′s webcam worked under Kubuntu 8.10. I found this website which shows a tool called luvcview in order to show your webcam video. In order to install luvcview execute the following command:

# apt-get install luvcview

When the installation is done simply execute:

$ luvcview

Smile! :)

Webcam works!

Webcam works!

general, Linux , ,

GNU Nano parameters

January 19th, 2009

I use GNU nano a lot for text file editing in Linux. One of the things annoying was the lack of a cursor position. Many tools prompt with something like: error on line 42. Nano can show the actual cursor position by pressing Ctrl+O, but I want to see it permanently

Another annoying issue was word wrapping. When I pasted a line inside the terminal and this line was longer than the standard 80 characters the line was broken apart. Imagine a 800 chars line, you have to correct 10 lines of text ;)

The solution to these problems were simple, just launch nano with:

$ nano -cw

You can also create an alias in your bashrc.conf with:

alias nano=’nano -cw’

This will makes sure Nano uses the specified parameters every time it is launched.

GNU Nano

GNU Nano

general, Linux

Sync folders between linux servers using rsync

January 12th, 2009

I have my netbook, and I have a server. Now I want to sync files between these machines in order to keep a backup of all the documents of my netbook on the server. I found a page which explains how to sync between two servers. With a little tweak I created the command which I needed in order to sync the two folders.

$ rsync -avrR --links --rsh=/usr/bin/ssh ~/Documents/ home.basvandijk.eu:

In this command Documents/ is the documents folder in my home dir, home.basvandijk.eu is the server containing a Documents folder as well which is used to sync to.

  • -a enables archive mode
  • -v enables verbose mode
  • -r means recursive
  • -R means use relative paths
  • –links means copy symlinks as symlinks
  • -rsh specifies which remote shell to use

Linux ,