Posts Tagged ‘Linux’

Nifty commands

Thursday, January 3rd, 2008

So, helping someone with an issue earlier (amarok had crashed and they couldn’t kill it properly), I told them to issue the following command

ps x | awk '/amarok/ {print $1}' | xargs kill -9

Now, this is a command I use a lot to kill programs that are being evil (generally, I use it to kill evolution!)

But the comment came back “That’s nifty!”

So I’ve got to ask, what are your favourite “nifty” commands? and what do they do?

<edit> So far, within 5 mins of posting this, I’ve had 2 people ask why I don’t just use killall

mez@apathy:~$ ps x -ocommand | grep [e]vo
evolution
/usr/lib/evolution/evolution-data-server-1.12 <snip>
/usr/lib/evolution/2.12/evolution-exchange-storage <snip>

Learning IPTables

Sunday, October 14th, 2007

Generally, I’m pretty lax when it comes to Firewalls in Linux, for the simple fact that I use kubuntu/ubuntu, which opens no ports by default. So any open ports on the system, I generally know about.

Anyway, as I’ve recently had a new server setup for Radio Amarok (many thanks to BitFolk for this, who have provided this service for us) and I knew that it would be something that’s going to be in the public eye, I thought that I better get a firewall up and running

So yes, I’ve been learning how to use Iptables correctly, and having to learn more about how TCP/IP works. I knew the basics, but actually sitting down and learning more about it is definitely interesting. Though, I’ve still not much idea on some issues, like why Aaron Krill’s ISP can’t route him to the Radio Amarok server (Andy Smith tried explaining - but I still had no idea what was going on!)

On another note, Radio Amarok is still looking for help. So if you have anything to offer (we’re looking for sponsors, artists, DJs, and web developers/designers (and at some point we’ll be looking for a sysadmin)), so if you have anything to offer us, feel free to pop into IRC (irc.freenode.net #amarok.radio) or email me (mez AT radioamarok DOT com)