Category Archives: cli

Disable the Linux screen blanking

If you want to disable X screen blanking (aka. disable the X screensaver) that comes up unexpectedly while you’re watching a movie in MPlayer, all you have to do is setterm -powersave off -blank 0 To make the change permanent, add the following to your ~/.xinitrc file: setterm -blank 0 -powersave off -powerdown 0xset s… Read More »

Mount Windows shares like normal drives in Linux

If you want to have access to Windows shares and mount them like normal drives in Linux, use the smbmount command: smbmount “\\\\WINDOWS\\c” -c ‘mount /mount/Windows’ -I 192.168.0.3 where “\\\\WINDOWS\\c” is the name of the share and /mount/Windows is the destination point. You need the Samba package installed for this as it contains the smbmount… Read More »

Search Google.com from the Linux command line

You can search Google.com from the Linux command line without using a CLI web browser like lynx or Elinks. All you need is the curl and html2text packages installed. Then you issue the following command: curl -A Mozilla http://www.google.com/search?q=Linux |html2text -width 80 where you can replace Linux with another keyword of your choice. The results… Read More »