Month: December 2011

  • Deprecated Linux networking commands and their replacements

    Found this gem on an other blog: Deprecated Linux networking commands and their replacementsΒ  I mostly use $ifconfig. Let’s try `$ ip a` from now on :).

  • [Solution] GConf Error – GetDefaultDatabase – org.gnome.GConf.Server

    Recently I got the error: GConf Error: Configuration server couldn’t be contacted: D-BUS error: Method ” GetDefaultDatabase” with signature “” on interface “org.gnome.GConf.Server” doesn’t exist. I got this while trying to start Evolution (mail software). Solution is simply rebooting. I forgot to reboot after my Fedora 15 to Fedora 16 upgrade

  • [Solution] Jar not working via command line

    Getting this: $ java drs.jar Exception in thread “main” java.lang.NoClassDefFoundError: drs/jar Caused by: java.lang.ClassNotFoundException: drs.jar at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: drs.jar. Program will exit. Solution is: $java -jar drs.jar

  • Clear BASH history

    Clear the BASH history easily via: $ >~/.bash_history Remember to log out after doing this.

  • ifconfig gone (command not found)

    β€”

    by

    in

    Today, ifconfig was not working for me. I think this happened after I installed X11 on my headless server. $ ifconfig bash: ifconfig: command not found It turns out something removed /sbin from my $PATH. Read more about the $PATH here. The ifconfig-command resides in /sbin: $ whereis ifconfig ifconfig: /sbin/ifconfig The solution is to…

  • Use $top over SSH

    β€”

    by

    in ,

    If you want to use `top` over SSH, use the -t option: $ ssh -t servername top This also works if you want to use `tail -f` over ssh: $ ssh -t servername “tail -f”

  • My idea for this site

    β€”

    by

    in

    My idea on this site is to put snippets of codes / solutions / things I discovered here. When people will google a sulution to their problem, I hope they find it here. Or, if I search for the same problem again, I’ll find the answer here.