Added some further tips (SSL debugging, lilo/grub, screenshot..) 0.4.2
authorMichael Prokop <mika@grml.org>
Wed, 11 Jul 2007 22:12:21 +0000 (00:12 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 11 Jul 2007 22:12:21 +0000 (00:12 +0200)
debian/changelog
grml_tips

index ab955d3..276ca7f 100644 (file)
@@ -1,8 +1,8 @@
 grml-tips (0.4.2) unstable; urgency=low
 
-  * Added some further tips (SSL debugging).
+  * Added some further tips (SSL debugging, lilo/grub, screenshot,...).
 
- -- Michael Prokop <mika@grml.org>  Sat, 16 Jun 2007 22:39:54 +0200
+ -- Michael Prokop <mika@grml.org>  Thu, 12 Jul 2007 00:12:04 +0200
 
 grml-tips (0.4.1) unstable; urgency=low
 
index ce98176..1fe0515 100644 (file)
--- a/grml_tips
+++ b/grml_tips
@@ -2630,6 +2630,46 @@ any further work.
 -- 
 Debugging SSL communications:
 
-% openssl s_client -connect webmail.grml.org:993
+% openssl s_client -connect server.adress:993
+
+or
 
 # ssldump -a -A -H -i eth0
+
+See http://prefetch.net/articles/debuggingssl.html for more details.
+-- 
+Remove bootmanager from MBR:
+
+# lilo -M /dev/hda -s /dev/null
+-- 
+Rewrite grub to MBR:
+
+# mount /mnt/sda1
+# grub-install --recheck --no-floppy --root-directory=/mnt/sda1 /dev/sda
+-- 
+Rewrite lilo to MBR:
+
+# mount /mnt/hda1
+# lilo -r /mnt/hda1
+-- 
+Create screenshot of plain/real console - tty1:
+# fbgrab -c 1 screeni.png
+-- 
+Create screenshot when running X:
+
+% scrot
+
+Tip: use the gkrellshoot plugin when using gkrellm
+-- 
+Redirect all connections to hostA:portA to hostB:portB, where hostA and hostB are
+different networks:
+
+Run the following commands on hostA:
+
+echo 1 > /proc/sys/net/ipv4/ip_forward
+iptables -t nat -A PREROUTING -p tcp --dport portA -j DNAT --to hostB:portB
+iptables -A FORWARD -i eth0 -o eth0 -d hostB -p tcp --dport portB -j ACCEPT
+iptables -A FORWARD -i eth0 -o eth0 -s hostB -p tcp --sport portB -j ACCEPT
+iptables -t nat -A POSTROUTING -p tcp -d hostB --dport portB -j SNAT --to-source hostA
+-- 
+