Nov
06
2009
0

autoresuming emerges

emerge [package] || until emerge --resume --skipfirst; do emerge --resume --skipfirst; done
after all packages are emerged that can be (that didn’t error out)
run
emerge -pv [package]
to see the failed packages.

*note: replace [package] with the package you want to emerge (open-office for example)

Written by david.durost in: Gentoo, Linux, howtos |
Nov
06
2009
0

tab-completion for portage tools

Step 1: Set bash-completion USE flag

grep -q 'USE\([:space:]\)*=.*bash-completion' /etc/make.conf || sed --in-place -e 's/USE\([:space:]\)*="/USE="bash-completion /g' /etc/make.conf

Step 2a: updating world
If you had to add the use flag, you will now want to update world to ensure all necessary packages are using it.
emerge -uN world

Step 2b: emerging needed ebuilds
emerge -av bash-completion gentoo-bashcomp
This will emerge the packages you need bash-completion (programmable completion for BASH) and gentoo-bashcomp (gentoo-based BASH CLI completions)

Step 3: editing the bashrc
since most portage tools are primarily for root we’ll add the bash completion line (bash-completion recommends adding this to ~/.bashrc normally) on a more global scale by placing it in /etc/bash/bashrc
echo "[[ -f /etc/profile.d/bash-completion ]] && source /etc/profile.d/bash-completion" >>/etc/bash/bashrc
source /etc/bash/bashrc

All Done!

basic usage would look like so:
emerge ne
emerge net-

etc…

Written by david.durost in: Gentoo, Linux, howtos |
Jun
18
2009
0

[HOWTO] quick and easy kernel device identification

While reading up on kernel configs I stumbled upon this site:
http://kmuto.jp/debian/hcl/

Click to continue reading “[HOWTO] quick and easy kernel device identification”

Written by david.durost in: Gentoo, Linux, Ubuntu, howtos |
Jun
18
2009
0

[HOWTO] Move XP from one drive to another (method 1)

I recently ran into an issue where my ide controller was dieing and caused me to lose my 100gig hdd (and my gentoo install) on my desktop. I took this opportunity to purchase another terabyte sata drive. My windows XP install sits on a 20gig ide hdd which is showing signs of decay due to the failing controller. My goal was to move my XP install from one drive to another while maintaining file integrity. After a little trial and error as well as a lot of researching, I found 2 ways of doing this. One of the methods is as follows:

Click to continue reading “[HOWTO] Move XP from one drive to another (method 1)”

Written by david.durost in: Gentoo, Linux, howtos |
Mar
19
2009
0

[HOWTO] setup a local rsync server

Recently, I purchased a new box to use as a (multipurpose)storage server. I have gentoo running on it headless and everything is done via ssh. To make use of this I decided I would use it as a local rsync server for my desktop and laptop to sync to, creating less bandwidth use both for my connection and the rsync mirrors…

Click to continue reading “[HOWTO] setup a local rsync server”

Written by david.durost in: Gentoo, Linux, howtos | Tags: , , , , , , , , ,

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes