Category Archives: cli

Quickly install a server in Ubuntu

It doesn’t get easier than this. Open up a terminal in Ubuntu and type sudo tasksel An ncurses screen will then allow you not only to install a LAMP server in three moves but also select a Samba, Tomcat Java server, OpenSSH, VM host server, DNS server or one of the existing Ubuntu spring-offs.

Spy on your users through SSH

You just connected through SSH and are wondering what your users are doing. Do a cat /dev/vcs1 and this will show you what happens on the first console. If someone is typing, you’ll be able to get an output of his keystrokes. Substitute cat /dev/vcs1 with cat /dev/vcs2 or cat /dev/vcs3 and so on for… Read More »

Clear garbage output from the Terminal

Sometimes you do something like cat /bin/cat and your Terminal fills with characters. The bad part is that you have to clear the screen to get a usable BASH prompt since now everything you type is unintelligible. Clear your Terminal screen with reset Type the word then press the Enter key to get a working… Read More »