Archiv

Archiv für Juli, 2007

Use aliases to ease your (linux) life…

9. Juli 2007 2 Kommentare

Using aliases on linux can really save you some time and hassle.

If you have to type some more complex commands quite frequently, you should consider building some aliases for them.
I always load a set of basic aliases via an include in my ~/.bashrc :

if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

On Ubuntu distros ~/.bash_profile will include ~/.bashrc where the real action takes place. Might be different on other distros though.

Now, here are some of the aliases I use day by day and which really save me some time. (Of course I obfuscated users and Ips a bit… )

alias ll='ls -hals --color=auto'

-> coloured dir-listings with all the details

alias l='ls -hls --color=auto'

-> same, but without hidden files

alias upgrade='sudo aptitude update && sudo aptitude dist-upgrade'

-> completely upgrade whole system to latest version; should work on ubuntu and debian based distros

alias ports='netstat -tulpen'

-> lists open/used ports without too much details

alias sp='ps faux|grep -v grep|grep -i'

-> if you provide a string as an argument to the command, it´ll grep for it in the output of ‘ps faux’

E.g.:

[12:36:37][gerrit@neuromancer:~]$ ps faux|grep -v grep|grep -i ssh
gerrit    5879  0.0  0.0   4424   544 ?        Ss   09:51   0:00          _ /usr/bin/ssh-agent /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde
gerrit    5880  0.0  0.0   4424   944 ?        Ss   09:51   0:00          _ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde
root      5127  0.0  0.0   5268   984 ?        Ss   09:51   0:00 /usr/sbin/sshd

versus

[12:34:28][gerrit@neuromancer:~]$ sp ssh
gerrit    5879  0.0  0.0   4424   544 ?        Ss   09:51   0:00          _ /usr/bin/ssh-agent /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde
gerrit    5880  0.0  0.0   4424   944 ?        Ss   09:51   0:00          _ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/startkde
root      5127  0.0  0.0   5268   984 ?        Ss   09:51   0:00 /usr/sbin/sshd

Also nice for quick ssh-logins:

alias server1='ssh user@192.168.0.1'

-> if you´ve also implemented public-key authentication, this is going to be a one command login :-)

alias ovpn='sudo openvpn --config /etc/openvpn/configfile.conf'

-> start openvpn-client with certain config-file

alias mntfs='sshfs user@192.168.0.1:/ /mnt/fs'

-> mount your fileserver´s home-dir to your local filesystem via sshfs

This one is nice, too:

alias bru='ssh -X user@obelix 'bru-server''

It performs a ssh login to my company´s backup-server with activated Xserver redirection and spawns the backup-program´s admin-console on the remote server. The gui output is then redirected to my local Xserver.

I hope you got the hang of it. Possibilities are endless :-)

KategorienHowTos Tags:

New rehearsal room

3. Juli 2007 1 Kommentar

Not only that I got my hot new Diezel VH4, but lately we ( that´s two and a half local rockbands) also moved into our new “deluxe” rehearsal room. Yeah! :-)

Unfortunately we found out (by a complaining neighbour… D´oh!), that the attic is leaking too much noise. This is of course an issue we have to fix quickly, since I don´t wanna be killed by a neighbour who has gone crazy because of constant entertainment with the finest handmade local (prog-)rock and metal ;-)

Check it out…

Rehearsal room photo 1 Rehearsal room photo 2 Rehearsal room photo 3 Rehearsal room photo 4 Rehearsal room photo 5 Rehearsal room photo 6 Diezel VH4

cheers

~ Gerrit

KategorienMusic and Equipment Tags:

HowTo: Use Envy to install the latest ATI fglrx driver on Ubuntu Gutsy (testing)

2. Juli 2007 Keine Kommentare

Since I´m a pretty lazy bastard, I use Alberto Milone´s very helpful little tool “Envy” to install the latest ATI fglrx driver on my two laptops which are already running Ubuntu Gutsy. (Of course I´m wiser now and next I time I´ll go for Nvidia if the choice is up to me)
It´s a pretty simple and dirty little hack, but it does the trick until Alberto adds “real” support for Gutsy. :-)

After having installed the latest version you just have to edit line 89 in /usr/share/envy/instun/classes.py and change

elif self.details['osname'] == 'feisty':#SUPPORT FOR FEISTY

to

elif self.details['osname'] == 'gutsy':#SUPPORT FOR FEISTY

Now you can start Envy and it should work like a charm.

cheers

~ Gerrit

KategorienHowTos Tags:

Cool webradiofeeds

2. Juli 2007 Keine Kommentare

Just wanted to share my favourite webradiofeeds with you guys.

If you like modern rock, metal, metalcore, emocore and the like (or whatever you like to call it), be sure to check out ChroniX Aggression

And if you also share my love for some decent drum & bass you should definitely tune in to BassDrive some time.

Have fun!

cheers

~ Gerrit

KategorienUnsorted Stuff Tags: