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

and again, you need to be part of the admin group. So type this command in a shell:

# usermod -a -G admin <your username>

You should be able to use sudo without password.

To increase timeout for sudo

Defaults timestamp_timeout=1800   # increase the sudo timeout

sudo vi /etc/fstab

 

Install Apps

sudo apt install  vlc
sudo apt install gimp

sudo apt install vim

sudo apt install gnucash

sudo apt install iftop
sudo snap install canonical-livepatch
sudo apt install wine.i686
sudo apt -y install software-properties-common wget
sudo apt install --install-recommends winehq-stable
sudo apt install playonlinux
sudo apt install htop
  
sudo apt-get install -y cura
sudo snap install cura-slicer --edge
sudo apt list --installed | grep cura
  
gunzip linux-brprinter-installer-*.*.*-*.gz
sudo bash linux-brprinter-installer-*.*.*-* HL-4150CDN

sudo apt install virtualbox-6.1

sudo apt install sound-juicer
sudo apt install tesseract-ocr
sudo apt install imagemagick
sudo apt install nmon
sudo apt install ksh

 

Install Wine

Change some settings

Make vim for all users by commenting out user filter in /etc/profile.d/vim.sh

if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
  [ -x /usr/bin/id ] || return
# Jeff remove user filter for root
 ID=`/usr/bin/id -u`
 [ -n "$ID" -a "$ID" -le 100 ] && return
  # for bash and zsh, only if no alias is already set
  alias vi >/dev/null 2>&1 || alias vi=vim

Change ll to include directory by editing /etc/profile.d/colorls.sh

#when USER_LS_COLORS defined do not override user LS_COLORS, but use them.
if [ -z "$USER_LS_COLORS" ]; then

  alias ll='ls -aFl' 2>/dev/null

and

unset TMP COLORS INCLUDE

alias ll='ls -aFl --color=auto' 2>/dev/null