DEV Community

Pau Garcia
Pau Garcia

Posted on

Ubuntu basic configuration

SetUp

Some essential apps:

sudo apt-get install gnome-tweaks -y
Enter fullscreen mode Exit fullscreen mode
sudo apt-get install gnome-shell-extensions
Enter fullscreen mode Exit fullscreen mode
sudo apt-get install gnome-shell-extension-manager
Enter fullscreen mode Exit fullscreen mode

Some essential extensions:

  • Blur-my-shell
  • Just Perfection

Some Flatpak pakages to install

flatpak install flathub io.github.realmazharhussain.GdmSettings
flatpak install flathub org.mozilla.firefox
Enter fullscreen mode Exit fullscreen mode

Some usefull apps

  • neovim
  • vscode
  • GParted
  • Geary
  • Calendar
  • Bitwarden
  • gedit
  • wps

Customizing

Create folders for customizing

.icons / .themes / .fonts

Customization websites:

My grub theme:
https://www.gnome-look.org/p/1414997

Setup multimedia codecs && VLC player

sudo apt install ubuntu-restricted-extras && sudo apt install vlc
Enter fullscreen mode Exit fullscreen mode

Enable minimize app from dock

gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
Enter fullscreen mode Exit fullscreen mode

Enable firewall

sudo systemctl enable ufw

//for gui ufw

sudo apt install gufw
Enter fullscreen mode Exit fullscreen mode

Enable FlatPak:

sudo apt install flatpak

flatpak remote-add --if-not-exists flathub //flathub.org/repo/flathub.flatpakrepo
Enter fullscreen mode Exit fullscreen mode

Enable AppImage support:

sudo apt install libfuse2
Enter fullscreen mode Exit fullscreen mode

Special Laptop config

Battery

Auto CPUFrec

Install Auto CPUFrec

git clone https://github.com/AdnanHodzic/auto-cpufreq.git
cd auto-cpufreq && sudo ./auto-cpufreq-installer
Enter fullscreen mode Exit fullscreen mode

Apply the deamon:

sudo auto-cpufreq --install
Enter fullscreen mode Exit fullscreen mode

For help

auto-cpufreq --help
Enter fullscreen mode Exit fullscreen mode

TLP

Install TLP

sudo apt install tlp tlp-rdw
Enter fullscreen mode Exit fullscreen mode

Enable TLP

sudo systemctl enable tlp
Enter fullscreen mode Exit fullscreen mode

Close laptop lid issues

Method 1: Using GNOME Tweaks First we have to install gnome-tweaks-tool.

sudo apt-get install gnome-tweaks
Enter fullscreen mode Exit fullscreen mode

Then open the gnome-tweaks and follow below steps:

  • Go to the General tab in the sidebar
  • And toggle off the 'Suspend when laptop lid is closed’ button

Method 2: Change login configuration (for advanced users)

If you look into the content of the file /etc/systemd/logind.conf, you’ll see three different types of default settings for the laptop lid closing.

  • HandleLidSwitch: When the laptop is on battery power
  • HandleLidSwitchExternalPower: When the laptop is plugged into a power outlet
  • HandleLidSwitchDocked: When the laptop is connected to a docking station

If you want, you can change the value of those parameters to one of these as per your preference:

  • lock: lock when lid is closed
  • ignore: do nothing
  • poweroff: shutdown
  • hibernate: hibernate when lid is closed

I would suggest going with ignore

Then save the file do a restart.

Top comments (0)