Sunday, May 23, 2010

set up swappiness on boot

The swap - a space on the harddrive which the system would use if there is no more memory left. The swappiness variable which you can find under /proc/sys/vm/ controls this feature. A higher value means the system would rather use the swap space than trying to free some memory space. A lower value means - of course - the opposite.

Well, on my server the system runs on a ssd harddrive (to be exactly: they are 2 ssd's running at raid 0). The bad thing about these harddrives are, they have limited write-cycles. That means less write would keep the drives longer alive.

For that i changed that swappiness on my server to 30. To change the default setting you have to type:

sysctl vm.swappiness=30

But the problem is, with every reboot the system would loose these settings. Though, a short (boot)script could simply set it up every boot, but actually there is an easier way.

Amoung /etc there is a file called sysctl.conf. Here we can set up things like ip_forward. And we also can set up the swappiness. Just change the file and add a new line:

vm.swappiness = 30

That's all. Now on every boot, the system would set the swappiness value to 30.

Friday, May 21, 2010

xorg-server 1.8 without hal

Last Weekend i finally updated on my main-pc xorg to the latest xorg-server 1.8. The update itself went very smoothly. I had no compile-errors or any package conflicts. After installing i instantly stopped the hal daemon and removed it from the default runlevel. Well, i had to change some things in the xorg.conf, but actually after a few minutes the new xorg-server worked perfectly well for me.

Well that's not the end of the story.

After a few hours, when i wanted to play some music, i encountered another problem. My soundcard was missing. But not really, because for example, smplayer still played video's but kmplayer don't.

Phonon, der KDE-multimedia framework actually didn't found the soundcard anymore. smplayer don't use phonon, it used the soundcard directly. My first though was i accidently changed some sound-settings. But after a hour looking for the problem, i finally found out the problem was with the hal daemon. Sadly, phonon still needs the hal daemon. Without it wouldn't find the soundcard. After starting the hal daemon again everything worked well again.

I hope the kde guys will change that soon, so that i can finally unmerge hal from my system.

Thursday, May 20, 2010

n900 blog entry

Well, thats my first blog-entry written on my Nokia n900. I finally found a software which supports blogspot. It's called MaStory.
It's really nice and i was really impressed how good it's support blogspot. Like on the PC, you have the basic functions like edit/create/remove posts. You can also upload pictures with your posts. But not only from your internal memory. It also supports flickr and picasa.
The editor is quite powerfull i would say. He support quite everything as on the PC, like code-tags or quotes.
Before you publish a post you also can look at the preview to see how it would look like (though not on a real browser). Futuremore it also supports tags for post.
Really nice blogging client and i guess especially in the future i'll need this software quite often. ;)

Tuesday, May 18, 2010

Junior Level Linux Professional - DONE

Yeah, i got now my first Linux Certification. I'm now official "Junior Level Linux Professional"
For those who don't know what i'm talking about, check out:
LPI is a non-profit organization from Canada where you can proof your Linux skills. Since the 30 of april i've passed now the first level.
For the certificate you have to pass 2 tests. I didn't really learn anything for the tests. I just read a book about LPIC-1 (ISBN-10: 3937514813). This book showed me which topics will come. But since I'm a gentoo user there wasn't really new stuff for me. I just went to the tests and tried it. In both cases i could pass without any problems :) The most difficult topic where distribution specific question. The problem was, they just ask for Debian and SuSe specific programs. As a gentoo user i'm not familiar with their programs. Anyway, that was something which i've learned in about 2 hours. (well, ok, actually i've studied a bit ;) Usually you have 90 minutes for one test. I guess i needed in both cases just 30 minutes.
My next try will be Level 2. We'll see if i'll pass them too :)

Iron Man 2

Well, when i said: You will hear more later, it shouldn't take over 5 mouth's ;)
So, that's my next try.
Today i'll write about "Iron Man 2". Yep, yesterday i saw the movie in the cinema. I like it. Though, the first movie was better. But for relaxing is this brainless Action-Movie perfect. Besides that, i really go seldom into cinema, which means, usually i go only if there is something "good" in the cinema. And this movie was "good", not perfekt but really good. I'm wondering when we will see Iron Man 3. Anyway, i guess i'll watch this too. :)