Sysadmin related notes
Usually extracts from other website; local copy not to have to read the full page again...
Useful command: "nm" to check symbols in an object file (i.e., compiled source to be linked)
Update fails/ package database inconsistent
dpkg --configure -a
KDE windows have no border, buttons, ...
clean .kde dir (profile corrupt)
Note on installation of linux GRUb
Careful where to install GRUB when installing different systems: Grub installs might overwrite
each others system files when not careful.
Installation of linux with propriatary drivers
- Configure non-free repositories first before propriatary drivers can be installed (like from nVidia,
needed for the 3D desktop effects).
- Careful when using propriatary drivers (eg graphical cards, printers, ...) on linux:
automatical updates don't necessary respect dependencies between the system and the drivers,
so update might ruin your system.
Install XV
Source code:
http://www.trilon.com/xv/
However, not free software and not maintained since 1994... So, compile it yourself from source:
That's it, now it should compile and install (worked for me for Mandriva 2008.1 and kubuntu 8.04)
Rename multiple files
(from
http://www.debian-administration.org/articles/150)
Move files with extensions in uppercase "JPG" to lowercase "jpg":
for i in *.JPG; do mv "$i" "${i/.JPG}".jpg; done
Convert multiple files with ImageMagick (no name keeping)
(from
http://studio.imagemagick.org/pipermail/magick-users/2007-March/019326.html)
convert *.tif image%02d.jpg
Check if CD/DVD burning was successful
(from http://www.g-loaded.eu/2006/10/07/verify-a-burned-cddvd-image-on-linux/)
Winmail.dat
Open with tnef reader, like
ktnef (which is a TNEF viewer/extractor, which fully integrates with the KDE
environment (mime types, ...) and can be registered as opening application for e-mail clients).
Directory permission value
- R = 4 read permission
- W = 2 write permission
- X = 1 execute permission
So chmod 754 file.ext results in giving permission for read/write/execute to yourself (7=4+2+1), read and execute
permission to people of your group and read permission to other users of the system.
Wifi under linux
http://ndiswrapper.sourceforge.net/
Recursive search for files containing multiple strings
find | grep -e "string1" -e "string2"
Need to put backslash before a point ("\.") to have a point in the search string.