Tuesday, November 11, 2014

How to do cool and fun stuff on Lubuntu


Alright guys, in this episode i will teach you some secret on lubuntu which i think is kinda cool you know. In this article i will show you how to do cool and fun stuff on lubuntu linux.


1. show train animation on the console window

You can show train animation on the console window by using sl command, the purpose of this command is for someone who actually want to type ls command but type sl instead will get surprise output.

The sl command does not comes pre-installed with lubuntu, so you need to install first, use apt-get install sl, like this:

sudo apt-get install sl

Once install you can go ahead type sl on the command line/console window and see what happened. The sl command have a few variations, such as:
sl  
sl -a 
sl -l 
sl -F 
sl -e  
sl-h  
sl-h -e 
sl-h -r
2. show cool text effect on the console window

You can also show cool text effect on the console window, first you will need to install a program called pv, like this:

sudo apt-get install pv

Next, we can try to output something, for example i want to animate a simple text, like this:

echo  "lubuntuhowto.blogspot.com is very cool blog" | pv -qL 10

You can also try to output from text file or other program, like this:

cat /etc/fstab | pv -qL 10 
lsusb | pv -qL 10
lsb_release -a | pv -qL 10

3. show text art with random quotes/sentences

Other cool and fun stuff you can do on lubuntu is outputing some random quotes or sentences with a text art.

To do this we are going to need two programs, fortune and cowsay, fortune will generate random quotes and cowsay is for showing the text art.

sudo apt-get install fortune 

sudo apt-get install cowsay

You can use fortune and cowsay separately, like this:

fortune
cowsay "lubuntuhowto.blogspot.com is very useful blog for learning lubuntu"

To combine the two, simply use pipe, like this:

fortune | cowsay

fortune | cowsay -f tux

fortune | cowsay -f gnu

fortune | cowsay -f dragon

Now you know the secrets, you can show off to your friends or parents, and make them proud of you !!

No comments:

Post a Comment