Monthly Archives: January 2015

choosing default editor in Debian (7.7)

Always after new debian install I forget a command to configure default editor: update-alternatives –config editor Then choose default editor. If missing from list, install it first. My option “vim” is available by installed default.

Posted in Administration, Linux/Unix | Leave a comment

debian sysV scripts adding to startup and removing from startup

I always forget following command. Works on old sysV init type init system. To add service into startup on nginx example: # update-rc.d nginx defaults to remove service from startup: # update-rc.d -f nginx remove https://www.debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian

Posted in Administration, Linux/Unix | Leave a comment