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 |
Sep
01
2009
0

Dropbox

I’ve been sleeping on this for a while now, it’s really an amazing tool.
Matt Farmer discussed it on his blog:

Dropbox is a great application I found out about a few months back. You create an account and install a service on a number of computers that you use, and it creates a folder that will stay in sync across all of them. The best part about this is that if any computer isn’t on, when it wakes up, it goes out and checks what it’s missed, and syncs back up, and its FAST.

There is also a sharing section, where you can share a portion of your account with another user, and let them upload and delete files. It combines your usable space for this areas, so on group projects it gets quick first. Ohh and did I mention it has its own built in file versioning system?

There’s also a special folder for Photos that will automatically generate an online picture album of any pictures / folders placed into here. Of all the features, while I like some of the other ones a whole lot more, I use this one the most. Its great when working on web sites with clients and being able to save screen shots directly to this folder and show them what I’m seeing.

When I first found out about Dropbox, I was so excited about it, I went on a big kick about how everyone should be using it, but after time this excitement died down. Well now, Dropbox is giving away an extra 256MB of storage space (up to 3GB) (on top of the 2GB you get just for signing up) for every user you refer to the site, and so I’m back at it. Check it out: https://www.getdropbox.com/referrals/NTM0OTg4Njk!

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 |

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