OpenSSL - client connect

Memo for testing ssl/startls connection: StarTLS: [leo@thinkleo2 ~]$ openssl s_client -connect mail.wide-net.org:25 -starttls smtp CONNECTED(00000003) [...] Verify return code: 0 (ok) --- 220 srv01.mil1.wide-net.org ESMTP - Life is short talk fast! SSL: [leo@thinkleo2 ~]$ openssl s_client -connect mail.wide-net.org:465 CONNECTED(00000003) [...] Verify return code: 0 (ok) --- 220 srv01.mil1.wide-net.org ESMTP - Life is short talk fast!

2 March 2012 @ 15:22 · leo

Linux RHEL - Change hostname

3 step for change hostname to RHEL Linux: edit: /etc/hosts 127.0.0.1 srv03.mil1.wide-net.org localhost.localdomain localhost edit: /etc/sysconfig/network HOSTNAME=srv03.mil11.wide-net.org past into kernel new hostname echo "srv03.mil1.wide-net.org" > /proc/sys/kernel/hostname Or sysctl kernel.hostname=srv03.mil1.wide-net.org Consider a restart net services /etc/init.d/network restart but is not strictly required.

26 February 2012 @ 07:26 · leo

Stupid Ubuntu - Grub recovery on RAID

I definitely hate Ubuntu, is not linux. root@ubuntu:~# cd /mnt root@ubuntu:/mnt# mkdir md1 root@ubuntu:/mnt# mount /dev/md1 /mnt/md1/ root@ubuntu:~# mount -o bind /sys /mnt/md1/sys root@ubuntu:~# mount -o bind /dev /mnt/md1/dev root@ubuntu:~# mount -o bind /proc /mnt/md1/proc root@ubuntu:~# chroot /mnt/md1 /bin/bash root@ubuntu:~# ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 9 2012-02-05 11:00 455c4bdc-37d5-46ef-bb8b-d5b50c9e4e9a -> ../../md1 root@ubuntu:/# vim /boot/grub/grub.cfg root@ubuntu:/# update-grub Generating grub.cfg ... Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae Found memtest86+ image: /boot/memtest86+.bin done root@ubuntu:/# grub-install /dev/sda Installation finished. No error reported. root@ubuntu:/# grub-install --recheck /dev/sda Installation finished. No error reported. root@ubuntu:/# cfdisk /dev/sda

5 February 2012 @ 17:18 · leo

AirOS - Rate Algorithm

Rate Algorithm: defines data rate algorithm convergence: Optimistic Algorithm is aggressive enough to move to a higher rate but yet tries to conservatively capture the fluctuations of the RSSI. It starts with the highest possible rate and then decreases till the rate can be supported while periodically transmitting packets at higher rates and computing the transmission time. The optimistic rate algorithm always looks to achieve highest throughput while sacrificing noise immunity and robustness. ...

29 January 2012 @ 19:48 · leo

Linux - Google Earth

[leo@thinkleo2 ~]$ /opt/google/earth/free/google-earth Google Earth appears to be running already. Please kill the existing process, or delete /home/leo/.googleearth/instance-running-lock if this is an error. [leo@thinkleo2 ~]$ rm /home/leo/.googleearth/instance-running-lock [leo@thinkleo2 ~]$ /opt/google/earth/free/google-earth

6 January 2012 @ 18:56 · leo