Category: tips

My webbserver act as a torrentclient as well.

To start rtorrent in background I using the command screen to do this.

This is how I do:
In terminal type,

bash-4.2$ screen -dmS rtorrent rtorrent

Your have now started rtorrent in a screen named rtorrent, how to access is just type

bash-4.2$ screen -r rtorrent

and there you have it.
And to exit, hold on Ctrl and A release and then press D. Now your are out of rtorrent screen and it still running i background.

Are you like me that you have a habbit to listen to music when programming in linux and you struggle with mplayer to stream a radiostation?

In your home folder your have a file that names .bashrc if your don’t have one just create one. That file in loaded when you log on and here you can create short commands.

Mine look like this.

alias litefm='mplayer -playlist'
alias radioseven='mplayer -playlist'
alias xterm='xterm -bg black -fg white'
alias jonathan='cvlc &'
alias framsidan='cvlc &'

Add these line to your file and logout and now login and try command litefm in your terminal. And now your are streaing a radiostation from Trollhรคttan – Sweden.

Here is one simple way to unzip multiple zip files in linux thru console.

bash-4.2$ for i in *.zip; do unzip -d $i.folder $i; done