Thursday, June 13, 2013

linux screen set session title and window after creating a session

http://stackoverflow.com/questions/3202111/set-a-name-for-screens-with-the-screen-command

Session title:
"Ctrl+A" -> ":"
type in "sessionname ABCD"
Visible when you do screen -ls

Window title:
"Ctrl+A" -> "Shift+A"
type in a title
Visible when you do CtlrA->Shift[double quote]


Thursday, May 30, 2013

Setup Local Radio using VLC

Following are steps to setup a radio-like streaming on a LAN:
Works for sure on Ubuntu 12.10

I] Start VLC from command  line as follows:
vlc -vvv --sout-keep --sout '#standard{access=http,mux=ts,dst={YOUR OWN_LOCAL_IP_ADDRESS}:8080}'

II] Enqueue songs and hit play. You should see the seek bar moving.

III] Create a file "myliveradio.m3u" and put the following contents into it:

#EXTM3U
#EXTINF:-1,Radio Local - AACPlus - 32kbps Stream
http://{YOUR OWN_LOCAL_IP_ADDRESS}:8080


 IV]
Send this file to listeners. Anyone who opens this file in VLC woul start listening to the songs playing in your VLC. Please note that you won't be able to listen to the songs being streamed from the VLC process/window that's streaming them.
You yourself should open the file in a new VLC window and you can listen.

Source: http://forum.videolan.org/viewtopic.php?f=4&t=84303


Friday, March 29, 2013

Android device screencast on my computer

I have an android app that communicates with a server.
Wanted to present a demo of integration of the app with my servers.

For
Used the following tool to cast the device's screen on my PC. Was farely easy.

https://code.google.com/p/androidscreencast/

Needed to enable developer options on the device(Jelly Bean) for the same.
Developer options are not visible by default. To expose them tap SEVEN times on
Settings->About Phone ->Build Number
as suggested by: http://forum.xda-developers.com/showthread.php?t=1989777

However couldn't control the device by KB/MOUSE. Didn't have time to look into it further.

Wednesday, January 2, 2013

Ubuntu - install an older package from some repository ( puppet 0.25.4 on Ubuntu 12.10)

Case: Needed to install puppet version 0.25.4. on a latest version 1.10 of Ubuntu. Latest version of puppet- 3.X gets installed by default.

Found the deb for the version I need in following repository:
http://security.ubuntu.com/ubuntu/pool/main/p/puppet/puppet_0.25.4-2ubuntu6_all.deb

Following worked(as root):
echo "deb http://security.ubuntu.com/ubuntu lucid-security main\ndeb-src http://security.ubuntu.com/ubuntu lucid-security main"\
 >> /etc/apt/sources.list
apt-get update
apt-get install puppet-common=0.25.4-2ubuntu6.8 || exit
apt-get install puppet=0.25.4-2ubuntu6.8 || exit