How to setup the perfect Linux Desktop
Things to do after installing Linux
Change the default editor
$ sudo update-alternatives --config editor There are 3 choices for the alternative editor (providing /usr/bin/editor). Selection Path Priority Status ------------------------------------------------------------ * 0 /bin/nano 40 auto mode 1 /bin/ed -100 manual mode 2 /bin/nano 40 manual mode 3 /usr/bin/vim.tiny 15 manual mode Press <enter> to keep the current choice[*], or type selection number: 3 update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/editor (editor) in manual mode
To avoid this needing to type password for sudo, you can edit /etc/sudoers and add this command at the end of the file:
$ sudo visudo
Note if you want to change the default editor use
$ sudo update-alternatives --config editor
Use the safe command sudo visudo to edit and check the syntax of the edits, otherwise if you directly edit and make a mistake you computer might not work.
%admin ALL=(ALL) NOPASSWD: ALL
Save and exit. Finally, you will also need to create the admin group:
groupadd admin