Archive for the ‘Linux Gentoo’ Category

Gentoo Linux 2004.1 announced

Wednesday, April 28th, 2004

According to Gentoo

The Gentoo Linux Release Engineering team is proud to announce the release of Gentoo Linux 2004.1. Gentoo Linux 2004.1 highlights many bugfixes that enhance the usability and quality of all the release components. Much work has been done to improve the overall quality of the release, such as providing GPG signatures for security and online listings of what files are included in the installation stages, PackageCDs, and LiveCDs for each architecture. Additionally, Catalyst v1.0.7 [7], the Gentoo Linux release meta-tool, has undergone numerous improvements that have solidified its codebase.

For more information read the press release note.

Gentoo and rc.local

Wednesday, March 17th, 2004

Most GNU/LInux distros have an initialization script called rc.local. This script will be executed after all other init scripts, I mean, it will be run by the system at the end of the boot process . This will allow you to add certain programs so they can be executed at boot time after all system services are started.

Gentoo Linux does not provide such a file. Instead we have an equivalent script called /etc/conf.d/local.start where you can put all your initialization stuff. Even more, Gentoo provides an /etc/conf.d/local.stop where you can place… guess what?

equery, the package query tool

Wednesday, March 10th, 2004

The portage package suit tools provide a query tool that allows you to grab some information from your installed packages. Let’s see some usages of the equery utility.

For example to see all the files owned by a given package type:

equery files snort

Another example: show me the package that owns the top command.

equery belongs `which top`

Now tell me the USE flags for MySQL.

equery uses mysql

Show me the dependency tree for php.

equery depgraph php

For more information simply type…

equery -h

Gentoo Linux 2004.0 Released

Monday, March 1st, 2004

Gentoo Linux is proud to announce the release of Gentoo Linux 2004.0 for the x86, AMD64, PowerPC, Sun SPARC, and SGI MIPS architectures. more details can be found from the official site, slashdot.

genlop, Gentoo log parser

Friday, February 27th, 2004

Thanks to Collin Starkweather I’ve discovered a nice utility in the Portage application tool suite: it is the genlop utility, a log parser for the emerge.log file.

As you probably know, emerge, the interface to Portage, logs its activity to /var/log/emerge.log. In some occasions it’s very interesting to watch the activity of the packages you’ve merged or unmerged.

The genlop utility provides useful information:

For example try this to see Apache’s emerge historical info:

genlop -u apache

Calculate merge time for Apache

genlop -f /var/log/emerge.log -t apache

Show full emerge history:

genlop -l

Note that genlog by default assumes that emerge.log is located in /var/log. If not, provide the full path: -f /path/to/emerge.log

To get usage info simply type:

genlop

qpkg, the Gentoo query package tool

Sunday, February 22nd, 2004

The qpkg utlity is part of the Gentoo’s Gentoolkit administration scripts. qpkg allows you to manage the packages installed on your box. This tip will show you how to achieve common tasks using this utility.

(more…)

Resolving package conflicts

Sunday, December 7th, 2003

Imagine this situation when you try to emerge a package:

emerge xfree

Calculating dependencies …done!

!!! Error: the x11-libs/xft package conflicts with another package.
!!! both can’t be installed on the same system together.
!!! Please use ‘emerge –pretend’ to determine blockers.

(more…)

Injecting a package with Emerge

Sunday, December 7th, 2003

Sometimes you’ll want to emerge a set of packages but skip one of them. For example, if you…

emerge -p world

you could get something like this…

Calculating world dependencies …done!
[ebuild U ] sys-devel/gnuconfig-20030708
[ebuild U ] sys-devel/libtool-1.4.3-r1
[ebuild U ] sys-libs/db-1.85-r1
…..
[ebuild U ] dev-perl/Digest-MD5-2.26 [2.24]
[ebuild U ] dev-perl/Digest-SHA1-2.04 [2.02]

Now suppose that you want to emerge all of these packages but, say, Digest-MD5.

To do that, simply inject the desired package, so emerge thinks that it is already installed.

emerge -i dev-perl/Digest-MD5

According to the man pages…

Injecting a package inserts a 'stub' for that package so that Portage thinks that it is installed. It is handy if you need, say, a binary version of XFree86 for esoteric hardware, or you just like to roll your own packages. You must specify a category and particular version of a package for injecting.

rsync.gentoo.org rotation server compromised

Wednesday, December 3rd, 2003

From Gentoo Linux Security Announcement 200312-01…

On December 2nd at approximately 03:45 UTC, one of the servers that makes up the rsync.gentoo.org rotation was compromised via a remote exploit. At this point, we are still performing forensic analysis. However, the compromised system had both an IDS and a file integrity checker installed and we have a very detailed forensic trail of what happened once the box was breached, so weare reasonably confident that the portage tree stored on that box was unaffected.

(more…)

Starting a daemon at boot time

Monday, November 10th, 2003

Once you have installed a new package, say, MySQL you should configure Gentoo to automatically start the daemon at boot time.

(more…)