Skip to content

Instantly share code, notes, and snippets.

@heikomat
Last active June 5, 2018 19:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heikomat/776260a50f502df91ffc0da3789bd0de to your computer and use it in GitHub Desktop.
Save heikomat/776260a50f502df91ffc0da3789bd0de to your computer and use it in GitHub Desktop.

Install sudo:

su
apt install sudo
addgroup YOURUSERNAME sudo
reboot

Install Chrome

As described here:

wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt update
apt-get install google-chrome-stable

Remove possibly unnecessary packages like libreoffice and firefox:

sudo apt purge libreoffice*
sudo apt purge firefox*
sudo apt purge firefox-esr
sudo apt purge hv3
sudo apt purge xfburn
sudo apt purge quodlibet
sudo apt autoremove

Prevent evbug from spamming your /var/log/debug

Add this line to your /etc/modprobe.d/blacklist.conf (creating the file, if it doesn't exist)

blacklist evbug

Make login not take forever

(see https://unix.stackexchange.com/questions/442698/when-i-log-in-it-hangs-until-crng-init-done)

sudo apt install rng-tools5

Get audio to work

As described here

Make tap-to-click work

  1. if /etc/X11/xorg.conf doesn't exist, create one:
    1. go to a non graphical tty by pressing ctrl+alt+f1
    2. login
    3. Kill the current x-session with sudo service lightdm stop (replace lightdm with your display-manager, for example gdm)
    4. sudo X -configure
    5. sudo mv /root/xorg.conf.new /etc/X11/xorg.conf
    6. sudo service lightdm start (replace lightdm with your display-manager, for example gdm)
  2. Add the following section at the end of the file:
    Section  "InputClass"
            Identifier  "touchpad overrides"
            Driver "libinput"
            MatchIsTouchpad "on"
            Option "Tapping" "on"
            Option "TappingButtonMap" "lmr"
            Option "ButtonMapping" "1 3 2"
    EndSection
    

Update the keyboard-layout

  1. sudo apt install keyboard-configuration console-setup
  2. Change the layout in /etc/default/keyboard to your liking, for example to de
  3. Reboot

Install designs

sudo apt install papirus-icon-theme gnome-themes-standard

Download and install osx-arc-collection from here

  • Select OSX-Arc-Shadow as window manager theme
  • Select OSX-Arc-Shadow as style (in appearance)
  • Select Papirus-Adapta-Nokto as icon theme

Style lightdm

Edit the /etc/lightdm/lightdm.conf as root and uncomment the following lines be removing the #:

  • greeter-hide-users=false

Add mac-like screenshot-shortcuts (xfce)

  • sudo apt install xfce4-screenshooter
  • create screenshot_full_auto.sh with the following content:
    #!/bin/bash
    
    target=~/Desktop/screenshots
    mkdir $target
    
    filename=$(date +%F__%H-%M-%S).png
    path=$target/$filename
    
    if [ "$1" = "region" ]; then
      xfce4-screenshooter --region --open cat > $path
    elif [ "$1" = "window" ]; then
      xfce4-screenshooter --window --open cat > $path
    else
      xfce4-screenshooter --fullscreen --open cat > $path
    fi
    
  • make it executable with chmod +x screenshot_full_auto.sh
  • map /PATH/TO/screenshot_full_auto.sh region to alt + shift + 2
  • map /PATH/TO/screenshot_full_auto.sh window to alt + shift + 3
  • map /PATH/TO/screenshot_full_auto.sh fullscreen to alt + shift + 4

Add samba to thunar

  • sudo apt install gvfs-backends
  • reboot
  • Open Thunar and select Browse Network

Speed up boot

Don't wait for network connectivity

(see https://mike42.me/blog/how-to-boot-debian-in-4-seconds)

sudo systemctl disable NetworkManager-wait-online.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment