Skip to content

Instantly share code, notes, and snippets.

@zerkms
Last active March 6, 2020 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerkms/3f03bf1e03ce26d08e81fa83651584fb to your computer and use it in GitHub Desktop.
Save zerkms/3f03bf1e03ce26d08e81fa83651584fb to your computer and use it in GitHub Desktop.

My ubuntu 18.04 laptop configuration

  1. Install using the full disk encryption: https://help.ubuntu.com/community/Full_Disk_Encryption_Howto_2019

  2. Configure hibernation:

     # vi /etc/initramfs-tools/conf.d/resume
     RESUME=/dev/mapper/<swap-partition>
     
     # vi /etc/default/grub
     # add `resume=/dev/mapper/<swap-partition>` to the `GRUB_CMDLINE_LINUX_DEFAULT`
     
     # update-initramfs -u -k all
     # update-grub
    
  3. systemctl edit systemd-hibernate.service

     [Service]
     ExecStart=
     ExecStartPre=-/bin/run-parts -v -a pre /lib/systemd/system-sleep
     ExecStart=/usr/sbin/pm-hibernate
     ExecStartPost=-/bin/run-parts -v --reverse -a post /lib/systemd/system-sleep
    

    systemctl daemon-reload

  4. vi /etc/acpi/events/power

     event=button/power
     action=/bin/systemctl hibernate
    

    service acpid restart

  5. Ungroup alt-tab in gnome-shell:

    1. dconf-editor
    2. org/gnome/desktop/wm/keybindings
    3. switch-applications -> switch-windows
  6. guake from apt + (libutempter0)

  7. Fira code (from the apt)

  8. Ubuntu make add-apt-repository ppa:lyzardking/ubuntu-make then ubuntu-make package

  9. VScode from umake

  10. go from umake

  11. zsh from apt + https://github.com/denysdovhan/spaceship-prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment