Find the largest files on your linux system
cd / du -k | sort -n | perl -ne 'if ( /^(\d+)\s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024)); printf ("%6.1f\t%s\t%25s %s\n",($1/(2**(10*$m))),(("K","M","G","T","P")[$m]),"*"x (1.5*$l),$2);}'
Welcome to my world
Find the largest files on your linux system
cd / du -k | sort -n | perl -ne 'if ( /^(\d+)\s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024)); printf ("%6.1f\t%s\t%25s %s\n",($1/(2**(10*$m))),(("K","M","G","T","P")[$m]),"*"x (1.5*$l),$2);}'
Just installed a brand new debian and than I can’t use my working copies cause the svn version is still 1.6.x
So an upgraded is required!
wget http://opensource.wandisco.com/wandisco-debian.gpg -O /tmp/wd-deb.gpg apt-key add /tmp/wd-deb.gpg rm /tmp/wd-deb.gpg sudo nano /etc/apt/sources.list
deb http://opensource.wandisco.com/debian wheezy svn18
So now I can have fun again! Why not git? Cause the company repos are still in svn and I had some troubles with git-svn.
Das ist mal ein nette Fehlermeldung! Also, wie reparieren?
sudo rm /dev/null sudo mknod -m 0666 /dev/null c 1 3
und schwups geht alles wieder. Bleibt nur die Frage, wieso und wann das kaputt gegangen ist!?
Man pages sind nicht immer sehr übersichtlich. Die man pages etwas einzufärben hilft!
ans Ende der .bashrc
export LESS_TERMCAP_mb=$'\E[01;31m' export LESS_TERMCAP_md=$'\E[01;31m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_se=$'\E[0m' export LESS_TERMCAP_so=$'\E[01;44;33m' export LESS_TERMCAP_ue=$'\E[0m' export LESS_TERMCAP_us=$'\E[01;32m'
schon sind die man pages in Farbe.
The Problem on the long term ubuntu 8.04 and the current stable debian is that they ship the old OpenSSL 0.9.8o With that I wasn’t able to compile the new apache 2.4.1 with all the SSL features I want. Downloading the OpenSSL source and just configure make make install didn’t help at all.
checking whether to enable mod_ssl... checking dependencies checking for OpenSSL... checking for user-provided OpenSSL base directory... none checking for OpenSSL version >= 0.9.7... FAILED configure: WARNING: OpenSSL version is too old no checking whether to enable mod_ssl... configure: error: mod_ssl has been requested but can not be built due to prerequisite failures mario@h2020668:~/apache24/httpd-2.4.1$ openssl version OpenSSL 0.9.8o 01 Jun 2010
The only thing that helped was to use the unix config script plus the right prefix plus the shared option
wget http://openssl.org/source/openssl-1.0.1.tar.gz tar xfz openssl-1.0.1.tar.gz cd openssl-* ./config --prefix=/usr zlib-dynamic --openssldir=/etc/ssl shared make sudo make install
Debian is very fine, but sometimes it sucks because of the lag of new software versions
Since some days there is IPv6 available for my server. But I noticed it just today. Editing /etc/network/interfaces and adding a new virtual interface didn’t work at all. The /etc/init.d/networking restart just showed errors. And ifconfig venet0 wasn’t satisfying.
What works is /etc/network/interfaces just adding the loopbback
iface lo inet6 loopback adress ::1 netmask 128 gateway fe80::1
Now the trick is to add /etc/rc.local and add this before exit 0
ip addr add 2a01:238:40ab:cd12:dead:beef:dead:beef/128 dev venet0 ip route add default via fe80::1 dev venet0
Than execute /etc/rc.local
Wonder o wonder. Ifconfig works and also ping6 ipv6.example.com
Than I had to add the new ipv6 adress to my apache config
Listen [2a01:238:40ab:cd12:dead:beef:dead:beef]:80
Don’t forget a to create a symlink from rc.local to /etc/rc2.d/S21rc2.local
People coming from Linux will find that they can’t scroll back through the console output the same way on FreeBSD.
In FreeBSD you need to press “Scroll Lock” and use the arrow keys, PageUp and PageDown to be able to scroll backwards and forwards the console output. To go back to the prompt press “Scroll Lock” again.
Today I installed sudo on my freeBSD test server. Typed a wrong password and got: You type like i drive. owned! That is a difference from freeBSD to linux sudo
sudo -s also works.
sudo also has an insult mode, which will question your intelligence if you enter a password in wrong.
Fun thing to do as root, in root: chmod -R 666 * Just as bad as rm -rf *, but more fun. “The files are all there, but I can’t do anything with them!” And you can’t change permissions, since chmod isn’t executable either. :-)
The worse thing about this is that there is only a 32 bit version of adobe air which is needed to run tweetdeck.
sudo apt-get install lib32asound2 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32z1 libc6 libc6-i386 lib32nss-mdns wget http://frozenfox.freehostia.com/cappy/getlibs-all.deb sudo dpkg -i getlibs-all.deb sudo getlibs -l libnss3.so.1d libnssutil3.so.1d libsmime3.so.1d libssl3.so.1d libnspr4.so.0d libplc4.so.0d \ libplds4.so.0d libgnome-keyring.so libgnome-keyring.so.0 libgnome-keyring.so.0.1.1 sudo ldconfig
Download the AdobeAIRInstaller.bin from http://get.adobe.com/de/air/otherversions/
chmod +x ~/Desktop/AdobeAIRInstaller.bin sudo ~/Desktop/AdobeAIRInstaller.bin
Keept the /opt folder
goto http://www.tweetdeck.com/desktop/