Archive for the ‘Gentoo’ Category.

Speed up Emerge by compiling in RAM with tmpfs

gentoo.png

After testing this on a couple of emerges I am quite confident it works AS LONG AS YOU HAVE ENOUGH RAM – enough is 768M or more, although may be okay on 512M with a minimal desktop or X-less server. Tested on three machines with (768M, 1G, and 3G of RAM). The emerge of xorg-server went from 1.5 hours to about 20 minutes on an athlon-xp, for example.

Portage uses /var/tmp/portage (by default) as it’s working directory, everything is built in there before it gets merged to /. So, why not stick /var/tmp/portage in RAM? It’s a tmp directory after all, saves all that I/O bottleneck…

Interested? Okay, here’s what you have to do…

Continue reading ‘Speed up Emerge by compiling in RAM with tmpfs’ »

How to have video thumbnails in Rox file manager in Arch and Gentoo

Archlinux-icon.png

ROX-Filer is a fast and powerful graphical file manager for the X Window System.

By default ROX-Filer has thumbnailing disabled, and when enabled only supports some basic image formats. The thumbnail suport can be expanded by using VideoThumbs which will allow ROX-Filer to generate and display thumbnails for most common video formats.

Continue reading ‘How to have video thumbnails in Rox file manager in Arch and Gentoo’ »

How to: Have a Hardened Gentoo

gentoo.gif

This is the hardened howto for the OSL. Some people probably would like much stricter settings, but these are the ones I use for boxes. It seems to allow for flexibility with software while not being too strict on programs.  You need to get the current hardened stages from any of the gentoo mirrors. The install is pretty much like any other gentoo install. Make sure that you get the right stages. if the name of the stage has ’selinux’ in it then you do not want that.

Continue reading ‘How to: Have a Hardened Gentoo’ »

How do I get a list of installed packages in Gentoo?

gentoo.gif

The qpkg tool comes in handy for this task. You may need to emerge gentoolkit to use it.

Code:
qpkg -I

This will show a list of installed packages, but will not differentiate versions.

Continue reading ‘How do I get a list of installed packages in Gentoo?’ »

Why is package-y getting pulled in when I emerge package-x

gentoo.gif

Q: Why does portage want to install package <y> as a dependency of <x>?

A: Use emerge’s –tree option to find out.

Code:
emerge –tree –pretend –verbose <x>


This will give you a tree showing which packages are dependencies of others. These dependencies can sometimes be controlled by USE flags, so for instance, if you’re trying to install a headless server but packages are trying to pull in xorg-x11 as a dependency, make sure you’ve got -motif in your USE flags as well as -X -kde -qt -gnome -gtk etc. If you’re unsure about how to use USE flags, see the handbook section here.

Bash Completition on Gentoo

gentoo.gif

Here’s how to get a personalized and satisfactory completion on Gentoo installations..

First of all you need an use flag set widely in your system so that every software you are going to emerge (or re-emerge) if is capable will be added to your competition choices. To do so just open our magic make.conf with your favourite editor (I use vim, you can use emacs, nano, pico…i don’t really care about wars)

# vim /etc/make.conf

Continue reading ‘Bash Completition on Gentoo’ »

Gentoo Trick: Send SMS alerts when emerge completes

gentoo.gif

My most recent large update (>500 packages) prompted this idea. Around the tenth time an ebuild failed mere moments after I left the room (not to return for hours), I decided to have the darn thing alert me when it wanted attention.

The following assumes you have installed:

  • The mailx client (mail-client/mailx), to send mail from shell scripts and the command line.
  • An MTA (mail transfer agent) for mailx to use, such as Postfix, Sendmail or ssmtp.

Continue reading ‘Gentoo Trick: Send SMS alerts when emerge completes’ »

Gentoo tip: Specify USE Flags per package

gentoo.png

Add to /etc/portage/package.use
pkg-category/pkg useflag useflag2

To add a USE flag temporarily:

USE=”useflag” emerge package

Gentoo update (list of short commands)

gentoo.png

I’m often looking for the right command when i start with Gentoo, so I’ve post here a shortlist of commands that i found on some sites. The first entire will recompile all ports, so keep in mind that will take a long time.

Continue reading ‘Gentoo update (list of short commands)’ »

Network traffic & bandwidth monitoring with darkstat on Gentoo

gentoo.png

Darkstat captures network traffic, calculates statistics about usage, and serves reports over HTTP.

Darkstat provides the following features:

  • Traffic graphs, reports per host, shows ports for each host.
  • Embedded web-server with deflate compression.
  • Asynchronous reverse DNS resolution using a child process.
  • Small. Portable. Single-threaded. Efficient. Uncomplicated.

Follow the bellow steps to update the portage tree and install darkstat on Gentoo:

Continue reading ‘Network traffic & bandwidth monitoring with darkstat on Gentoo’ »

Pages: 1 2 Next