piatok 18. decembra 2009

dropbear make pub key

4 Steps:
a) Generate private rsa key in a file: dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
b) Generate public rsa key in a file: dropbearkey -y -f /etc/dropbear/dropbear_rsa_host_key | grep ssh-rsa > /tmp/dropbear_rsa_host_key.pub
c) Copy the public key to the server: scp /tmp/dropbear_rsa_host_key.pub haritz@192.168.111.253:/home/haritz/.ssh/authorized_keys
d) scp or ssh indicating the path of the 'identity_file': ssh -i /etc/dropbear/dropbear_rsa_host_key haritz@192.168.111.253
The identity_file is needed (at least in my case).

piatok 30. októbra 2009

fix modprobe kernel problem

uname -r

return something

depmode something

utorok 20. októbra 2009

how to recompile pure-ftpd to use on VPS

short tutorial

apt-get source pure-ftpd
cd pure-ftpd-1.0.21/
nano debian/rules

line 12 add --without-capabilities

optflags=--with-everything --with-largefile --with-pam --with-privsep --with-tls --without-capabilities

apt-get build-dep pure-ftpd
dpkg-buildpackage -uc -b
cd ..
dpkg -i pure-ftpd-mysql_1.0.21-11.4_amd64.deb

Instead of using apt-pinning you can just set packages on hold:
echo package hold | dpkg --set-selections
To undo that:
echo package install | dpkg --set-selections
To view a list of "on hold" packages:
dpkg --get-selections | grep hold

streda 26. augusta 2009

How to mount UDF image

mount -t udf -o loop /image.mdf /mnt/Image

utorok 7. apríla 2009

Konvertnutie crt a key do pem

1. convert crt to pem format
openssl x509 -in mycompany.crt  -out mycom_crt.der -outform DER
openssl x509 -in mycom_crt.der -inform DER -out mycom_crt.pem -outform PEM

2. convert key to pem format
openssl rsa -in mycompany.key -out mycom_key.pem