[FIXED] bind9 is running bind9 status reports failed!

bind9 runs in a chroot environment on lenny. The service can be started as usual: # /etc/init.d/bind9 start Starting domain name service...: bind9. Let’s check bind9 status: ` /etc/init.d/bind9 status bind9 is not running failed! ` Well, the first thing I did was to check the log file, in which I found no error related to named. So I tried another way to check the status: # rndc status version: 9.6-ESV-R3 CPUs found: 1 worker threads: 1 number of zones: 17 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/0/1000 tcp clients: 0/100 server is up and running I was convinced that the DNS service was running. So what went wrong? It must be something in the /etc/init.d/bind9 script that incorrectly reports bind9 status. Opened up this file, I found: ...

December 19, 2010 · 1 min · 195 words · kenno

Can’t locate Net/LDAP.pm

On Debian: # apt-get install libnet-ldap-perl

October 25, 2010 · 1 min · 6 words · kenno

Change default editor in Debian

# update-alternatives --config editor` There are 7 alternatives which provide \`editor`. Selection Alternative 1 /bin/ed + 2 /bin/nano 3 /usr/bin/vim.tiny * 4 /usr/bin/vim.basic 5 /usr/bin/nedit 6 /usr/bin/emacs21 7 /usr/bin/xemacs21 Press enter to keep the default[*], or type selection number: 6

April 19, 2010 · 1 min · 40 words · kenno

Enable sudo insults

$ sudo visudo Look for line begins with Defaults, and append insults to the end. Defaults env_reset,insults Save it, and clear the sudo session (sudo -K), and try sudo with a wrong password. 🙂 Source: Enable sudo insults for some laughs

April 15, 2010 · 1 min · 41 words · kenno

Enable Japanese input on Debian/Ubuntu

Normally, I would install Scim and Anthy for Japanese input method on Debian. Recently, I found an easier way to achieve the same thing, which is to use IBus instead of Scim. Install ibus: sudo apt-get install ibus ibus-anthy ibus-gtk From the menu, System -> Preferences -> IBus Preference. IBus Preference should detects that you have run IBus daemon yet, click “Yes” to run it. You’ll be asked to edit your ~/.bashrc and add the following 3 lines: export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus</pre> Click on “Input Method” tab, if you don’t see “Japanese – Anthy” listed under the Input Method list, select “Japanese -> Anthy” from the “Select an input method” drop down list, then click Add. You might want to restart X (logout and log back in) Open a text editor, and hit Ctrl + Space to toggle the Japanese input method Reference: Japanese Input with Karmic?

March 14, 2010 · 1 min · 149 words · kenno