I recently installed Ubuntu for the first time in a while, since version 6 actually. My normal laptop runs Debian Etch and hasn´t been updated in about 9 months due to the samba update breaking smbclient on my laptop and thus forcing me to not care too much about updates, but I recently acquired a 1000mhz PIII laptop with 384mb ram, wifi, DVD-ROM, 1400×1050 screen 15¨ LCD (!) and 30GB of hdd. Not bad for free. Anywho, I have this insatiable urge to run bleeding edge software (see openSUSE being always updated / broken on my web server and the deafault ubuntu software repos, although being some of the largest out of all the linux distros (debian probably coming in second) they still don´t have things like Adobe Flash Player. Let´s fix that:
Read the rest of this entry »
Unlike Debian which uses the standard /var/log/sshd style logfile, OpenSuse uses the newer syslog-ng facility and is generally more annoying when trying to just parse a log file for some useful info. However, it is not impossible, and it seems many users (including myself) were having a hard time finding where failed sshd login attempts get logged. Webmin was not of much assistance in this area, nor was google. I however did manage to eventually find, by using my grip function that I posted about earlier in /var/log to find this little nugget:
Read the rest of this entry »
If you’re like me and easily forget exact syntax of commands and don’t really feel like dedicating the necessary block of brain space reserved for the root user to memorization of exact syntax, I offer you these simple bash functions. Toss them into your ~/.bashrc file for instant fun (protip: type bash to reload bash after you have added these to load them up without re-logging) or put them into /etc/bash.bashrc to apply them to all users using bash on your system.
The first function searches through the text of all the files in your current directory. Very useful for, say, debugging a PHP script you didn’t write and can’t track down where that damn MySQL connect string actually is.
I just (hopefully) finished debugging my SqueezeCenter install somehow adding ~300,000 files to my library…symbolic links. While usually they are awesome and save time as typing
cd /www
is much easier than
cd /usr/local/www/htdocs
ha.
So, to locate all symbolic links in the current directory and any directories under that:
find */* -type l
That should do it! Note that that is a lowercase “L” and not a “one”. This should make it easier if you have a terrible recursion problem with some script following links and don’t feel like fixing the actual script, or in this case, a fairly large perl program AKA slimserver.