Sunday, March 22, 2009

Setting up repositories for my EeePC 4G

Now that I have my EeePC restored and unionfs converted to aufs, the first thing to do is of course setting up network and do some updates. For this, I need to set up apt repositories. I've done this many times already for different EeePC models. Here is the /etc/apt/sources.list file for my EeePC 4G:

##Asus update
deb http://update.eeepc.asus.com/p701 p701 main
deb http://update.eeepc.asus.com/p701/en p701 main

deb-src http://cle.linux.org.tw/EeePC/1.0.6 v106 main contrib non-free
deb-src http://asusxntest.xandros.com/asus-source/p7xx/1.0.4/ v104 main contrib non-free
deb-src http://asusxntest.xandros.com/asus-source/p7xx/1.0.6/ v106 main contrib non-free

#XEPC.org repository
##NB. dev are kde development packages
#wget http://updates.xepc.org/dists/p701/xepc-pubkey.txt
#sudo apt-key add xepc-pubkey.txt
deb http://updates.xepc.org/ p701 main dev

##Community repository for EeePC
#wget http://download.tuxfamily.org/eeepcrepos/key.asc
#sudo apt-key add key.asc
deb http://download.tuxfamily.org/eeepcrepos/ p701 main etch

##Special ASUS EEE/Xandros repository by kost
deb http://ftp.linux.hr/asuseee/xandros/ binary/
deb-src http://ftp.linux.hr/asuseee/xandros/ source/

##Xandros4 repos (not fully compatible)
deb http://dccamirror.xandros.com/dccri/ dccri-3.0 main
deb http://www.geekconnection.org/ xandros4 main

##Xandros server 2.0 repository (same base as EeePC but lower KDE version)
#wget http://xnv4.xandros.com/xs2.0/pkg/pool/main/xandros/xandros-archive-keyring_1.0-3_all.deb
#sudo dpkg -i xandros-archive-keyring_1.0-3_all.deb
deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free

##Debian etch repositories (not fully compatible)
deb http://ftp.debian.org/debian/ etch main non-free contrib
deb http://ftp.us.debian.org/debian/ etch main non-free contrib
deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

Please note that some repositories require a PGP key and I have also put the instructions to download and install the PGP key together in this file as comments.

The problem with installing softwares in an EeePC is that the official repositories have only limited softwares, and there are only a few community repositories dedicated for the EeePC. Fortunately, EeePC Linux is based on Xandros 4, which in turn is based on Debian etch and they are lots of software packages available in these 2 distributions.

However, one has to be careful using these other distributions because EeePC Linux versions have their own customized KDE libraries which is incompatible with neither Xandros 4 nor Debian etch. So you won't be able to install any program that requires an updated version of kde libraries or you may break your system. The only exception is the community xepc.org repositories where lazyfai has compiled those updated KDE libraries from sources in an EeePC.

Because of this confusion, apt pinning is a must installing software packages from other distributions, and here is my /etc/apt/preferences file:

Package: *
Pin: origin update.eeepc.asus.com
Pin-Priority: 950

Package: *
Pin: release a=p701
Pin-Priority: 950

Package: *
Pin: release a=v104
Pin-Priority: 950

Package: *
Pin: release a=v106
Pin-Priority: 950

Package: *
Pin: origin updates.xepc.org
Pin-Priority: 850

Package: *
Pin: origin ftp.linux.hr
Pin-Priority: 840

Package: *
Pin: origin ""
Pin-Priority: 800

Package: *
Pin: release a=xandros4
Pin-Priority: 700

Package: *
Pin: origin www.geekconnection.org
Pin-Priority: 700

Package: *
Pin: origin dccamirror.xandros.com
Pin-Priority: 690

Package: *
Pin: release a=etch
Pin-Priority: 550

Please note that even with pinning, one has to be very careful working with apt-get or synaptic installing software packages. If you happen to install some software package and apt-get or synaptic is telling you that it want to upgrade a long long list of programs, then you better stop.

To apply these settings, remember to run "sudo apt-get update" before you actually install any programs.

The next thing I am going to do is to install updates from Asus. But since my EeePC only comes with a 4 GB SSD, and out of which the 1st partition of 2.37 GB is readonly, with only 1.45 GB free disk space available in the 2nd partition, I don't want to waste my precious disk space with 2 copies of the same program (different version) one in the 1st partition and one in the 2nd partition.

Last time when I configured my EeePC, I installed all these Asus updates to the readonly 1st partition with the help of the xepc.org upgrade disc set up as a local repository (and running the system temporarily without unionfs). But this time I want to try something new: a read/write union filesystem. This will be tomorrow's work.

EDIT 2009/6/7: See also this blog for how to obtain and install the PGP key for Debian etch repositories.

2 comments:

  1. Dear friend,

    I want to express my experience on ASUS eeePC -4G.

    I was using it for my official works with built in Xandos OS. Sometimes I got problems since my computer was not booting and hence I had to use Restore Factory settings to re-install the OS, as a result of which I used lose my data. I lost my ASUS eeePC DVD which was supposed to make bootable USB drive.

    Also, I found it very irritating to install new packages on eeePC, so tried installing other Linux OS like Mandriva, Centos etc. But I could not do it also I lost the option to Restore factory settings. I badly needed to make my laptop work.

    Finally I got suggession from someone to try UBUNTU.

    I downloaded UBUNTU NETBOOK REMIX image file from http://www.ubuntu.com/GetUbuntu/download-netbook (.img file) for Latest version 9.04.

    I used UBUNTU Image writer software on another computer to make a 1 GB USB drive bootable. I inserted the bootable USB into my eeePC and installed UBUNTU. When I installed it for the first time, I found 1.7 GB free space left in my eeePC which was sufficient for me to store any data. Later, I downloaded extra softwares of my choice in order to make my work easy. UBUNTU uses debian packages and there is a lot of packages available on web. Almost all i386 debian packages can be installed on eeePC.

    If you want to install rpm packages, then convert it to debian by using .deb using a software called alien.

    TODAY,

    I have,
    1.Open office.org 3.0 (built in).
    2.Firefox 3.0.11
    3.wine 0.9.50 to run almost all Windows Programs (Seperately installed).
    4.Dosemu / Dosbox to run MS DOS Programs (Seperately installed).
    5.Magic – VLSI design tool.
    6.NGSPICE- VLSI simulation tool
    7.Borland C++ IDE (uses dosemu or dosbox).
    8.And lot more good softwares which are better than xandros support.

    Note: I could not install voice command yet.

    You can change desktop view according to your choice.
    1.Classic Desktop
    2.Ubuntu Netbook Desktop.

    Apt-get command can also be used for installation of packages.

    ReplyDelete
  2. Hair loss problems have been haunting many people throughout the time. Men with baldness and women with bad hair days. Dr. Lee realized how this problem has become a major concern. He then created formula for hair loss prevention products. Xandrox has been proven to help many people with hair loss and hair regrowth problems. If you have the same problem, you should get your own xandrox right away. Being an awesome product, Xandrox encounters some imitations including the products sold on Xandrox.com. Don't be fooled by the similar packaging and appearance.

    ReplyDelete