Select Linux distro for Lenovo ThinkPad

Here you can vote for Linux distribution (or Unix) to be pre-installed at Lenovo ThinkPad notebooks. As usually Ubuntu is the most popular distribution, Debian is second, Fedora is third: Please note: it’s not a full list of suggested distros at the screen.

Read more →

 

Web server oneliner with bash

It’s amazing but it’s possible to write little web server on bash shell script. Here is it’s source code: :;while [ $? -eq 0 ];do nc -vlp 8080 -c’(r=read;e=echo;$r a b c;z=$r;while [ ${#z} -gt 2 ];do $r z;done;f=`$e $b|sed ‘s/[^a-z0-9_.-]//gi’`;h=”HTTP/1.0″;o=”$h 200 OK\r\n”;c=”Content”;if [ -z $f ];then($e $o;ls|(while $r n;do if [ -f "$n" ]; then $e “`ls -gh $n`”;fi;done););elif [ -f $f ];then $e “$o$c-Type: `file -ib $f`\n$c-Length: `stat […]

Read more →

 

Desktop Linux distributions popularity 2007

Which Linux distros do we use on our home or office desktop system(s)? And what is the most popular one? Congratulations, Ubuntu! More information is here.

Read more →

 

Secure shell (ssh) session timeout

I’ve noticed that when I keep ssh sessions that I opened before untouched for some period of time (like 30 minutes) they become frozen and as a result I have to close ssh terminal and start a new connection. To prevent such situation I found several tips: 1) Start some utility updating the screen before leaving ssh session untouched. I usually use watch -n 1 ‘date’ that shows current date […]

Read more →

 

How to create custom linux ISO image?

It’s rather trivial task to make some changes into already burned installation or live CD. It may be performed to add some files to this CD or edit files on it. In any case it’s impossible to loop mount .iso file and then save it as iso9660 filesystem is read-only. So, just mount your CD or iso image to some directory by commands: sudo mkdir /mnt/image sudo mount /dev/cdrom /mnt/image […]

Read more →