Skip to content

Instantly share code, notes, and snippets.

@Lathanao
Last active January 21, 2024 22:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lathanao/3fbf98595ac33d0cdf8eba438db5cdc7 to your computer and use it in GitHub Desktop.
Save Lathanao/3fbf98595ac33d0cdf8eba438db5cdc7 to your computer and use it in GitHub Desktop.
15 things to do after a fresh Linux install

15 things to do after a fresh Linux install

1. Set low latency kernel

  • sudo apt-get install linux-lowlatency linux-headers-lowlatency

1. Configure Update Manager

  • choose best mirrors

2. Install Drivers

  • open driver manager
  • check all device with best drivers
  • install intel drivers

3. Install Microcode

  • open sysnaptic manager
  • search microcode
  • install intel-microcode

4. Decrease Swap Use

  • open terminal
  • cat /proc/sys/vm/swappiness
  • sudo xed /etc/sysctl.conf
  • add at the end vm.swappiness=10

5. Enable Drive Cache

  • open disk app
  • optiom (sandwich bar) -> disk option -> write cache -> enable

6. Reduce SSD Writes

  • TRIM

  • cat /etc/cron.weekly/fstrim

  • should to be true

  • sudo xed /etc/fstab

  • add noatime,errors(...) before errors part line

7. Turn on Firewall

  • open Firewall
  • turn-on

8. Install Microsoft Fonts

  • open software manager
  • search and install mscorefonts

9. Remove Unnecessary Software

  • Remove mono-runtime-common
  • gnome-orca
  • virtualBox-guest
  • bluetooth
  • libreoffice
  • becarefuf at dependacy before !

10. Change Firefox settings About:config

  • Dom.max_script_run_time => 10 | 20
  • Security.csp.enable => true | false
  • Xpinstall.signatures.required => true | false
  • dom.webnotifications.serviceworker.enabled => false
  • dom.webnotifications.enabled => false

11. Tweak LibreOffice

  • Option -> advance -> disable JAVA runtime env
  • Option -> memory -> increase memory

12. Remove Some Applets

  • remove all useless apps

13. Turn Off Startup Applications

  • System setings -> startup applications
  • disable allmost all

14. Disable Hibernation (suspend-to-disk)

The command to disable hibernation:

  • sudo mv -v /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla / The command to undo the disable hibernation:
  • sudo mv -v /com.ubuntu.enable-hibernate.pkla /etc/polkit-1/localauthority/50-local.d
  • sudo mv -v /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla /

15. Disable Switch User Option

  • synaptic ->install dconf
  • open dconf -> org -> cinnamon -> lockdown -> turn true option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment