How to convert mp4 file to mp3 on ubuntu

How to convert mp4 file to mp3 on ubuntu

1.

 open terminal and type this command
ffmpeg -i source_filename -vn -ab 192k -acodec libmp3lame -ac 2 output_filenamer
 source :  #http://askubuntu.com/questions/84584/converting-mp4-to-mp3
#http://askubuntu.com/questions/13737/what-packages-do-i-install-for-ffmpeg-and-libmp3lame

Unknown encoder 'libmp3lame'


Unknown encoder 'libmp3lame'
How to solve "Unknown encoder 'libmp3lame'" message?

1.

sudo apt-get install ffmpeg

2.

you can also try to install the libmp3lame0 package:

sudo apt-get install libmp3lame0

sudo apt-get install libavcodec-extra-53

done!

i hope it solve your problem.

source :  #http://askubuntu.com/questions/84584/converting-mp4-to-mp3
#http://askubuntu.com/questions/13737/what-packages-do-i-install-for-ffmpeg-and-libmp3lame

.mkv video files are not playing in the video player & VLC in Ubuntu 14.04

 .mkv video files are not playing in the video player & VLC in Ubuntu 14.04

.mkv file is not able to play in the default Video player in Ubuntu 14.04. It shows codec missing error.

Tried to play in VLC, again same issue.

In both the players audio is perfect. only the problem with the video.


Solve it with install

sudo apt-get install ubuntu-restricted-extras
#source : http://ubuntuforums.org/showthread.php?t=2224597

Ubuntu : How to solve "They have been ignored, or old ones used instead."

Ubuntu : How to solve "They have been ignored, or old ones used instead."

When we use Ubuntu with higher version some time we will find this message
after typing sudo apt-get install . . . 

"Some index files failed to download. They have been ignored, or old ones used instead."

Because ubuntu does not support the older versions any more.
:(
but do not worry about it.
We can install the older software on our hinger Ubuntu version.

1.

sudo wget "http://pastebin.com/raw.php?i=uzhrtg5M" -O /etc/apt/sources.list 

2.

sudo apt-get update

3.

done!

How to Add or create default gateway from terminal in Ubuntu

How to Add or create default gateway from terminal in Ubuntu
I've been so rarely using terminal for my working in ubuntu, and sometime i have to use terminal to remote my server.

I ll share you "How to Add or create default gateway from terminal in Ubuntu"
because i have cased for changing default gateway on my server.
I had a little confused before but i found an article and it was helpful.

It,s piece of cake.

1.

open terminal

2

sudo route add default gw 192.168.1.251 eth0

sudo /etc/init.d/networking restart

done!

How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?

How do I fix a “Problem with MergeList” or “status file could not be parsed” error when trying to do an update?

These terminal commands should solve your problem:

1. 

Remove the Merge List by opening a terminal (Press Ctrl+Alt+T to launch) and run this command:

sudo rm /var/lib/apt/lists/* -vf

2.

Next, generate a new one by running a simple update:

sudo apt-get update