Jul 16
TomLinux General, Linux System Administration, Useful Utilities
When reading/writing a disk image using Linux tool ‘dd’ launch as follows:
dd if=/dev/sdb of=filename.img & pid=$!
this will run ‘dd’ in the background.
To see the progress:
kill -USR1 $pid
Notes:
- If you are doing it as a non-root user you’ll need to prefix those commands with sudo
- If you do that do ‘sudo ls’ first, otherwise the ‘sudo dd’ will fail waiting on the password which it’ll never get as its backgrounded.
Thanks to Cian.
May 08
TomLinux General, Useful Utilities
Thanks to Rory McCann for pointing this one out.
It is possible to convert (resize, rotate etc) an image without creating a new file. mogrify takes the same options as convert but operates on the existing image. Both are tools included in imagemagick.
Apr 23
TomLinux System Administration, Useful Utilities
Thanks to the kind people in #asterisk (irc.freenode.net) I found: Checkinstall
This is a very quick and easy was to make your own RPM and Deb packages. When compiling your package, instead of running “make install” run: “checkinstall”
To build for most distributions, the configure script should be executed with the following options:
./configure –prefix=/usr –sysconfdir=/etc
so that executables, libraries and configuration files are installed to the expected locations.