sudo apt-get install youtube-dl libavcodec-extra-53 youtube-dl --extract-audio --audio-format mp3 -l http://www.youtube.com/watch?v=qzYAqscEUC8
Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts
2013-10-18
How to Youtube to mp3 on Ubuntu
2012-08-08
Manually adding missing apt public keys
When apt-get update starts complaining about missing public keys, it's always pain in the ass when you're behind proxy and gpg --recv-keys doesn't work. Following is the manual way of adding missing apt public keys:
1. Obtain public key via browser:
3. Import the key file in System->Administration->Software Sources
1. Obtain public key via browser:
http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x[KEY]2. Save the key.
3. Import the key file in System->Administration->Software Sources
2012-06-12
How-to add a permanent network interface alias on Ubuntu 10.04 and higher
1. Add network interface alias by adding following into /etc/network/interfaces:
2. Create a new file and place it in /etc/network/if-up.d/:
3. Restart network via Network Manager or command line:
# Alias interface auto eth0:0 iface eth0:0 inet static address 192.168.1.1 netmask 255.255.255.0
2. Create a new file and place it in /etc/network/if-up.d/:
#!/bin/bash
if [ "$IFACE" = "eth0" ]; then
/sbin/ifup --force eth0:0
fi
3. Restart network via Network Manager or command line:
sudo /etc/init.d/networking restart
2011-11-08
Multiple gcc versions on Ubuntu machine
# let the beast in su # install the older gcc versions apt-get install gcc-4.4 apt-get install g++-4.4 # configure update-alternatives --remove-all gcc update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 44 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.4 update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 46 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.6 # switch gcc update-alternatives --config gcc
Subscribe to:
Posts (Atom)