Month: August 2015

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.
.bashrc

alias litefm='mplayer -playlist http://www.litefm.se/live.m3u'
alias radioseven='mplayer -playlist http://www.radioseven.se/128.pls'
alias xterm='xterm -bg black -fg white'
alias jonathan='cvlc http://10.0.20.7/mjpg/video.mjpg &'
alias framsidan='cvlc http://10.0.20.8/mjpg/video.mjpg &'

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.