TechRepublic : A ZDNet Tech Community

Linux and Open Source

Host: Jack Wallen
Contact

Install extra packages on the ASUS Eee PC

Installing extra packages on the Asus Eee PC is possible if you want more software than the average user. Vincent Danen explains how to set up Xandros repositories to make it easier to add packages.

————————————————————————————————————–

While the ASUS Eee PC and the Xandros distribution it ships with come with enough software for the average person, some users will eventually want to install other software. The Eee PC does not make this particularly easy, but because it comes with a light Xandros install, it is simple to set up Xandros repositories to provide extra packages to install.

To begin with, open a terminal by pressing CTRL-ALT-t; there is no shortcut icon for the terminal. Once the terminal is open, edit the /etc/apt/sources.list file by executing sudo nano /etc/apt/sources.list; vim is also available if you prefer.

When the file is open, navigate to the end of the file and add the following lines to it:

deb http://xnv4.xandros.com/xs2.0/upkg-srv2 etch main contrib non-free
deb http://dccamirror.xandros.com/dccri/ dccri-3.0 main
deb http://www.geekconnection.org/ xandros4 main
deb http://download.tuxfamily.org/eeepcrepos/ p701 main etch

Save the file and exit. Next, create the /etc/apt/preferences file and edit it. Because multiple extra repositories have been added, care must be taken that if there are any duplicate versions of the same software, the Xandros-supplied ones will always come first. This is accomplished by using “pinning”, which will indicate to apt which repositories take higher preference than others. Add the following to /etc/apt/preferences:

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

Package: *
Pin: origin
Pin-Priority: 925

Package: *
Pin: origin xnv4.xandros.com
Pin-Priority: 900

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

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

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

Package: *
Pin: release a=testing
Pin-Priority: 650

Package: *
Pin: release a=unstable
Pin-Priority: 600

Now use apt to update the repository metadata:

$ sudo apt-get update

Once this is done you can use apt to install software that does not come with the default Xandros OS. For instance, to install the text editor joe, use:

$ sudo apt-get install joe

Apt also allows you to see what dependencies may be pulled in when you attempt to install packages by performing a dry-run install transaction. This is very good idea to keep from getting a system full of dependencies you did not expect. This can be done by adding the -s argument to the apt-get command:

$ sudo apt-get -s install joe

Getting new packages installed onto the ASUS Eee PC is not difficult, and the setup is required only once. From this point forward, any application built for Xandros or third-party applications compiled specifically for the Eee PC are now available. You can also use this to upgrade packages that were previously installed on the Eee PC, by doing:

$ sudo apt-get -s dist-upgrade

This will provide a list of available packages to upgrade. Omit the -s option to perform the actual package upgrades.

Get the PDF version of this tip here.

Delivered each Tuesday, TechRepublic’s free Linux and Open Source newsletter provides tips, articles, and other resources to help you hone your Linux skills. Automatically sign up today!

Vincent Danen works on the Red Hat Security Response Team and lives in Canada. He has been writing about and developing on Linux for over 10 years. Read his full bio and profile.

Print/View all Posts Comments on this blog

Extra Xandros repositories drjoewebb@... | 07/29/08
RE: Install extra packages on the ASUS Eee PC oz_ollie | 07/30/08
RE: Install extra packages on the ASUS Eee PC ahjosh@... | 03/03/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



Quick Reference: Linux Commands
Reduce stress and speed up resolutions with the easiest command references right at your fingertips. You'll receive a PDF file covering Linux, packed with the most common commands you'll need and use daily.
Buy Now
IT Professional's Guide to Policies and Procedures, Third Ed
Whether you're creating policies for management, training, personnel, support, privacy, Internet/e-mail usage, security, or inventory, you'll meet the needs of your entire enterprise with this one download!
Buy Now

Popular Sanity Saver Videos