Posts

Showing posts from 2009

Custom SSHD port for jailbroken iPhone (3.0.1)

# vi /Library/LaunchDaemons/com.openssh.sshd.plist < <key>SockServiceName</key> < <string>ssh</string> > <key>SockServiceName</key> > <string>https</string>

SSL self-signed certificate on Suse 11.1

mkdir ssl cd ssl openssl genrsa -des3 -out ca.key 4096 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt openssl genrsa -des3 -out server.key 4096 openssl req -new -key server.key -out server.csr openssl x509 -req -days 3650 -in server.csr -CA ca.crt \ -CAkey ca.key -set_serial 01 -out server.crt openssl rsa -in server.key -out server.key.insecure mv server.key server.key.secure mv server.key.insecure server.key chmod 600 server.key.secure server.key server.csr server.crt cp server.crt /etc/apache2/ssl.crt/. cp server.key /etc/apache2/ssl.key/. cp server.csr /etc/apache2/ssl.csr/. cd /etc/apache2/vhosts.d/ cp vhost-ssl.template ssl-fqdn.conf vi ssl-fqdn.conf (ServerName, ServerAdmin) service apache2 restart

Fixing a Linux VMWare image
which won't boot in VirtualBox

Access GRUB settings while running in VMWare

in /boot/grub/menu.lst
replace
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/sda1 ro
with
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/hda1 ro
in /etc/fstab
replace all occurrencies of sda with hda

example:
/proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda3 /toolchain ext3 defaults,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 1
...
becomes
/proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda3 /toolchain ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 1
...

In order to let VMWare still run the same image

in the (VMWare) .vmx file
replace scsi0:0 with ide0:0

example:
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Ubuntu.vmdk"
...
becomes
ide0:0.present = "TRUE"
ide0:0.fileName = "Ubuntu.vmdk"
...
in the (VMWare) .vmdk file
replace ddb.adapterType = "lsilogic" with ddb.adapterType = "ide"