Added dh-make-perl tip
[grml-tips.git] / grml_tips
index df23ee8..d497654 100644 (file)
--- a/grml_tips
+++ b/grml_tips
@@ -43,12 +43,6 @@ Configure network:
 
 # grml-network
 -- 
-Boot grml via network:
-
-# grml-terminalserver
-
-See: man grml-terminalserver + http://grml.org/terminalserver/
--- 
 Deactivate error correction of zsh:
 
 % NOCOR=1 zsh
@@ -663,7 +657,9 @@ to get a list of all supported trees
 -- 
 Transfer your SSH public key to another host:
 
-% ssh-copy-id -i ~/.ssh/id_dsa.pub user@remote-system
+% ssh-keygen   # if you don't have a key yet
+[...]
+% ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote-system
 or
 % cat $HOME/.ssh/id_rsa.pub  | ssh user@remote-system 'cat >> .ssh/authorized_keys'
 -- 
@@ -2650,6 +2646,8 @@ and where grml is running:
 
 Then booting your client(s) via PXE should work without
 any further work.
+
+See: man grml-terminalserver + http://grml.org/terminalserver/
 -- 
 Debugging SSL communications:
 
@@ -2836,3 +2834,62 @@ Record sound:
 
 This will record a AIFF audio file.
 -- 
+Change passphrase / password of an existing SSH key:
+
+% ssh-keygen -p
+-- 
+Enable syntax highlighting in nano:
+
+Just uncomment the include directives for your respective
+language at the bottom of the file /etc/nanorc
+-- 
+Create netboot package for grml-terminalserver:
+
+# sh /usr/share/doc/grml-terminalserver/examples/create-netboot
+-- 
+Rotate pictures:
+
+Using the 'Orientation' tag of the Exif header, rotate
+the image so that it is upright:
+% jhead -autorot *.jpg
+
+Manually rotate a picture:
+% convert -rotate 270 input.jpg output.jpg
+-- 
+Rename files based on the information inside their exif header:
+
+% jhead -n%Y-%m-%d_%Hh%M_%f *.jpg
+
+This will rename a file named img_2071.jpg to something like:
+
+2007-08-17_10h38_img_2071.jpg
+
+if it was shot at 10:38 o'clock on 2007-08-17 (according to
+the information inside the exif header).
+-- 
+Calculate network / netmask:
+
+Usage examples:
+% ipcalc 10.0.0.28 255.255.255.0
+% ipcalc 10.0.0.0/24
+-- 
+Blacklist a kernel module:
+
+# blacklist <name_of_kernel_module>
+
+-> running 'blacklist hostap_cs' for example will generate an
+entry like this in /etc/modprobe.d/grml:
+
+blacklist hostap_cs
+alias hostap_cs off
+
+To remove the module from the blacklist again just invoke:
+
+# unblacklist <name_of_kernel_module>
+
+or manually remove the entry from /etc/modprobe.d/grml.
+-- 
+Create a Debian package of a perl module:
+
+% dh-make-perl --cpan Acme::Smirch --build
+--