Treg's blog

August 23rd, 2005

Apt-get sources (up-to-date)

Posted by Treg in HOWTO Ubuntu

The latest sources for Ubuntu Hoary I use, changed dramatically. It are the standard sources because there is no need anymore to get custom binaries of mplayer and jdk. 😛

deb http://be.archive.ubuntu.com/ubuntu hoary-updates main restricted
deb-src http://be.archive.ubuntu.com/ubuntu hoary-updates main restricted
deb http://be.archive.ubuntu.com/ubuntu hoary universe
deb-src http://be.archive.ubuntu.com/ubuntu hoary universe
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe
deb http://be.archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://be.archive.ubuntu.com/ubuntu hoary main restricted

March 3rd, 2005

Ubuntu Hoary apt-get sources

Posted by Treg in HOWTO Ubuntu

My current Ubuntu Hoary sources.list

deb http://archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://archive.ubuntu.com/ubuntu hoary main restricted

deb http://archive.ubuntu.com/ubuntu hoary universe
deb-src http://archive.ubuntu.com/ubuntu hoary universe

deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted

deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe
deb ftp://ftp.nerim.net/debian-marillat/ testing main
deb http://archive.ubuntu.com/ubuntu/ warty multiverse
deb http://ubuntu.tower-net.de/ubuntu/ warty java
deb ftp://neacm.fe.up.pt/pub/ubuntu-java/ binary/
deb-src ftp://neacm.fe.up.pt/pub/ubuntu-java/ source/

March 3rd, 2005

Recording livestreams with Mplayer

Posted by Treg in Howto's

First get the url from which stream you want to record/rip.

Than open a terminal window and enter:
mplayer -srate 44100 -ao pcm -aofile output.wav -v url

url is ofcourse your stream

There is another method, but it doesn’t work al the time:
mplayer -dumpstream -dumpfile test.wav url

After the recording proces you can easily convert this files to any audio format you want.

March 3rd, 2005

Tweaking Ubuntu after first install (Ubuntu Warty)

Posted by Treg in HOWTO Ubuntu

Now that you have Ubuntu installed lets tweak a few things to make your experience even better.

  1. Getting the latest updates.
    From your desktop select Computer > System Configuration > Synaptic Package Manager you will be asked to enter your password. Click the Reload button then select Mark All Upgrades and finally click Apply this will ensure your system is running the latest updates. You can follow this every few weeks to ensure you get new updates as well.
  2. Setting up Nvidia/ATI video drivers (only if you have Nvidia/ATI video cards).
    For ATI Video Drivers:
    sudo apt-get install linux-686 (if you haven't already). or -k7 or -686-smp or -386... whatever matches your kernel.
    sudo apt-get install fglrx-driver
    echo fglrx | sudo tee -a /etc/modules
    This command won’t have any effect until you reboot. To load the kernel module immediately, run sudo depmod -a ; sudo modprobe fglrx, but this will only work if you have already rebooted since upgrading the kernel. If it doesn’t work, perform the next step (below) and then reboot.
    sudo sed -i -e 's/"ati"/"fglrx"/' /etc/X11/XF86Config-4 Note: If you are going to compile 3d applications, you will want to install the fglrx-driver-dev package Note: You might want to install the fglrx-control package, which provides a control panel to configure graphics card options such as dual-head display (two monitors).

    NVIDIA Video Drivers:
    sudo apt-get install nvidia-glx
    sudo nvidia-glx-config enable
    sudo reboot
    Note: (optional): If you are going to compile 3d applications, you will want to install the nvidia-glx-dev package, like sudo apt-get install nvidia-glx-dev
    Note: (optional): the nvidia-settings package provides a control panel to configure graphics card options such as gamma correction. Install: sudo apt-get install nvidia-settings

  3. Enable Universe in Synaptic.
    From your desktop select Computer > System Configuration > Synaptic Package Manager you will be asked to enter your password. Goto Settings > Repositories you will see (2) grayed out boxes click both of them, then click the Reload button.
  4. Installing Java systemwide / Firefox.
    Download Java: http://java.sun.com
    chmod a+x j2re-1_4_2_05-linux-i586.bin
    ./j2re-1_4_2_05-linux-i586.bin
    sudo mv j2re1.4.2_05 /usr/local/
    sudo ln -sf /usr/local/j2re1.4.2_05/bin/java /usr/bin/java
    sudo ln -sf /usr/local/j2re1.4.2_05/bin/java_vm /usr/bin/java_vm
    cd /home/username/.mozilla/plugins
    If you do not have a plugins directory you can create one.
    mkdir -p /home/username/.mozilla/plugins
    ln -s /usr/local/j2re1.4.2_05/plugin/i386/ns610-gcc32/libjavaplugin_oji.so libjavaplugin_oji.so
    sudo ln -s /usr/local/j2re1.4.2_05/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/
    That should give you working firefox java and systemwide java support.
  5. Installing XMMS music player.
    sudo apt-get install xmms
    If you are running a Nvidia video card you need to add this package as well:
    sudo apt-get install libmikmod
  6. Enable MP3 support in Rhythmbox.
    sudo apt-get install gstreamer0.8-mad
  7. Installing basic development tools.
    sudo apt-get install build-essential
  8. Turn off ipv6 so firefox loads pages faster.
    The latest version of Mozilla includes support for “IPv6” a new form of addressing things on the Internet.
    The problem is: Mozilla tries to use IPv6 before it uses IPv4 (IPv4 is the old version). When your Internet connection doesn’t support IPv6, Mozilla fails to connect on the first try. In the current version of Mozilla, you can’t change this, because of a bug.
    To fix this issue follow these steps:
    sudo nano /etc/modutils/aliases
    Look for this line:
    # alias net-pf-10 off # IPv6
    Change the line to: (remove the #)
    alias net-pf-10 off # IPv6
    sudo update-modules
  9. Installing a CPU specific kernel.
    sudo apt-get install linux-686 for newer Intel/AthlonXP
    sudo apt-get install linux-k7 for any AMD Processors
    sudo apt-get install linux-686-smp for Dual Intel Processors
February 25th, 2005

Apt-get sources Hoary (Ubuntu)

Posted by Treg in HOWTO Ubuntu

Here ‘s a little howto that contains the sources I am currently using on my Ubuntu OS.
First of all you open the sources.list with a text editor e.g. vi, nano, gedit
sudo nano /etc/apt/sources.list

You comment all the lines and add this lines: (change hoary to warty for the warty release)
deb http://archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://archive.ubuntu.com/ubuntu hoary main restricted
deb http://archive.ubuntu.com/ubuntu hoary universe multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary universe multiverse
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe
deb ftp://ftp.nerim.net/debian-marillat/ testing main
deb http://archive.ubuntu.com/ubuntu/ warty multiverse
deb http://ubuntu.tower-net.de/ubuntu/ warty java
deb ftp://neacm.fe.up.pt/pub/ubuntu-java/ binary/
deb-src ftp://neacm.fe.up.pt/pub/ubuntu-java/ source/

Save the file and then run:
sudo apt-get update

This will update your repository.

« Previous Page