Extract audio from a video file in Ubuntu

mplayer -dumpaudio GummyBearSong.avi -dumpfile gummybear.mp3

Where:

GummyBearSong.avi” is the source video, in the example above it was 30 MB
gummybear.mp3” is the output audio file (in mp3 format), was about 3 MB in size

Another method that worked flawlessly with an MP4 file is using ffmpeg:

ffmpeg -i SOURCE.mp4 -vn -acodec libmp3lame OUTPUT.mp3
Posted in Linux | Tagged , , | 1 Comment

Enforce any application to appear full screen in gnome

In Gnome, you can force any application to go full screen;
Open System=>Preferences=>Keyboard shortcuts
Under “Window Management” assigne any key combinations such as “CTL+SHIFT+F” for “Toggle Fullscreen mode”.
Open any application (firefox, eclipse, ….) and press “CTRL + SHIFT + F”, the program will goes in full screen mode.

Tagged | Leave a comment

pass entire parameters in shell scripts

example bash file:

save the following in a file called print.sh
#!/bin/bash
echo “$@”
and then :
chmod +x print.sh
./print.sh hello world
Note that, all the parameters you pass to print.sh will be passed to echo, this because of “$@”

Tagged | 2 Comments

List sessions for a user using Siebel CLI

“list sessions for login user_name

Tagged | Leave a comment

LAN Chat Server & Client in Ubuntu

“sudo apt-get install chatplus chatplus-server”

Tagged , , , | Leave a comment