Category: CLI

  • Terminal Tip: Finding information about a mp3 audio file…

    Here is a quick tip for you OSX command line fans. If you want to find metadata information about a mp3 file use the “afinfo” command. Very quick and scripting friendly. Here is a example: $ afinfo 08_\ Lily\ Allen\ -\ Fk\ You.mp3 File: 08_ Lily Allen – Fk You.mp3 File type ID: MPG3 Data…

  • Duplicating service settings under OSX Server…

    This mainly applies to how you deal with a backup DHCP server and it’s configuration, but might also be useful for backing up other service settings. One of the things that kinda bugs me about how some services are configured in OSX Server is the fact that the configurations are stored in the directory. For…

  • MySQL: Transfering users and priviledges to a new server….

    So this was a great big mystery this morning. How the heck do you transfer the users and their privileges out of a old mysql server and “import” them into a new server. We recently upgraded from OSX 10.4.11 to a couple of spanking new Snow Leopard servers and during the mysql export/import cycle this…

  • ASCII Art for all your N.E.R.D.ly needs :-)…..

    Yep, a whole archive of ASCII Art, brought to you by Christopher A. Johnson……Ahhh, just like heaven…. ..uu. ?$””`?i z’ `M .@” x” ‘Z :#” . . f 8M ‘&H?` :$f U8 < MP x#' d#` XM $5. $ M' xM" .!"> @ ‘f`$L:M R.@!` +` > R X “NXF R”*L k ‘f M “$$…

  • Fix Ctrl-Alt-Backspace problem with Ubuntu 9.10+

    Downloaded and installed 9.10 yesterday and what do you know, someone decided to take away Ctrl-Alt-Backspace — or what I call “Three Finger Salute for Linux”. Whhhaaattt!!!! How the heck are you supposed to kill and restart X without that…..A coworker suggested Alt-PrintScreen-K, but that just restarts GDM, not really useful when X decides to…

  • ASCII Art at it’s finest…..

    Not sure if this has already been mentioned somewhere…..It’s pretty old, but I happen to come across it today. It’s a great rendition of everyone’s favorite space opera done by Simon Jansen in ASCII. Telenetification (is that even a word?) by Snore, with improvements by Mike Edwards. Anyways, use the following command, sit back and…

  • gksudo: Or how this old dog learned new tricks :-)

    Okay if you know about gksudo, fine. I just found out about it a little while back when I was trying to run ethereal. You see under Ubuntu (and a lot of other Linux distros) the concept of root user has been removed. There is no root (well there is, but you can’t access it),…

  • How to change the default command line text editor in Ubuntu….

    I love Ubuntu, but there is one thing that really bugs the hell out of me. The default configured editor in Ubuntu is nano, a Pico clone. I hate Pico, therefor I hate nano :-). So how would you go about fixing this and changing the default editor to vi (or vim): Issue the following…

  • OSX 10.5: How to create a public share folder…..

    This problem has been around (I think) ever since the introduction of POSIX permissions. In pre-10.5 versions you could sorta do something like this by changing the default umask on the system, but that was system wide and applied to all folders/files a user created on the entire filesystem…..not nice. The real question is how…

  • Single command Ubuntu LAMP stack installation on Desktop Edition…..

    This used to be a pain in the butt. Lots of manual apt-get lines and config edits to get it to work. Weŕe talking about installing the LAMP stack onto a preexisting Ubuntu Desktop Edition installation. I used to do this backwards in the old days by installing the Server edition first (with LAMP) and…