Skip to content

Instantly share code, notes, and snippets.

@heikomat
Last active Jan 28, 2017
Embed
What would you like to do?
Macbook Pro late 2015 (`MacBookPro11,5`) Debian stretch KDE setup

Basic pre-upgrade-settings

Set keyboard-layout

  • System-settings -> input-devices -> Keyboard -> Keyboard-Model: Apple macbook pro (intl) -> apply

switch ^/° with </> key

Taken from here

  • create the file ~/.Xmodmap` with the following content:
keycode 49 = less greater less greater bar brokenbar bar 
keycode 94 = dead_circumflex degree dead_circumflex degree U2032 U2033 U2032
  • either log out and log in, or run xmodmap ~/.Xmodmap for the change to take effect

Add user to suoders file:

Taken from here

  • su root
  • add the following line to /etc/sudoers URUSERNAME ALL=(ALL:ALL) ALL

Rename Schreibtisch to Desktop

  • Replace Schreibtisch with Desktop in ~/.config/user-dirs.dirs
  • mv ~/Schreibtisch ~/Desktop

Update to testing

  • Replace the content of /etc/apt/sources.list with the following:
###### Debian Main Repos
deb http://ftp.de.debian.org/debian/ testing main contrib non-free 
deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free 

###### Debian Update Repos
deb http://security.debian.org/ testing/updates main contrib non-free 
deb http://ftp.de.debian.org/debian/ testing-proposed-updates main contrib non-free 
deb-src http://security.debian.org/ testing/updates main contrib non-free 
deb-src http://ftp.de.debian.org/debian/ testing-proposed-updates main contrib non-free 
  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get dist-upgrade

while updating, chosse sddm as display-manager! choose Version des Paktbetreues, if asked

  • reboot
  • remove old apt-config-file (50unattended-upgrades.old) sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old
  • sudo apt-get autoremove

Basic post-upgrade-settings

Set display-scaling

  • Systemeinstellungen -> Anzeige und Monitor -> Anzeige Skalieren -> choose 1.5 (or whatever you prefer) -> ok
  • logout and back in again

change the login-screen-scaling

SDDM will soon handle highDPI-settings correctly by default, see the 0.14.0 Release Announcement.
You can see what's the current debian-testing-sddm-version here, and you can check the current progress to getting the package into the repo here

Setup wifi

  • sudo apt-get install firmware-brcm80211
  • reboot

Setup Graphics drivers

  • sudo apt-get install firmware-linux-nonfree
  • reboot

After a reboot, you probably experience flickering. If so, go into standby and resume, by closing the lid of the laptop,
waiting until the apple-logo turns off, make sure the power-cable is NOT connected, then reopen the lid and login again.
You can now reattach the power-cable. The flickering is gone now. This is a known bug, that will hopefully be fixed soo,
see here: https://bugs.freedesktop.org/show_bug.cgi?id=98897

Fix backlight-control (only if it's not working)

Taken from here

  • wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.8.7.tar.xz
  • tar xf linux-4.8.7.tar.xz
  • cd linux-4.8.7/drivers/platform/x86
  • wget -O file.patch https://bugzilla.kernel.org/attachment.cgi?id=218051
  • patch apple-gmux.c < file.patch
    echo '
    obj-m += apple-gmux.o
    
    all:
            make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
    
    clean:
            make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
    ' > Makefile
    
  • make
  • targetDir="/lib/modules/$(uname -r)/kernel/drivers/platform/x86"
  • sudo cp ${targetDir}/apple-gmux.ko ${targetDir}/apple-gmux.ko.backup
  • sudo cp apple-gmux.ko ${targetDir}
  • reboot

Install software

Git, git-flow, zsh, KeePass, Owncloud, mpv, mariadb-server and pgadmin (choose what you need)

  • sudo apt-get install git git-flow zsh keepass2 owncloud-client mpv mariadb-server pgadmin3

Chrome

  • wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  • URL='https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb'; FILE=mktemp; wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE
  • sudo apt-get -f install

OhMyZShell

install ohmyzshell (requires zsh to already be installed)

  • sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

set zsh as default

  • chsh -s $(which zsh)
  • log out and back in again

nvm and node

  • wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
  • log out and back in
  • nvm install node

Slack

  • Download Slack for ubuntun from here and dpkg -i the file

Visual Studio code

  • Download Visual Studio Code from here and dpkg -i the file
  • if necesseary, run sudo apt-get install -f

Gnome-keyring

Taken from here Some apps like nylas won't work with kwallet and need the gnome-keyring. To make teh gnome-keyring work in kde, do the following:

  • sudo apt-get install libpam-gnome-keyring
  • create (as root) the file /etc/pam.d/common-pamkeyring with the following content:
auth optional pam_gnome_keyring.so try_first_pass
session optional pam_gnome_keyring.so auto_start
  • add (as root) the following line at the end of /etc/pam.d/kdm:
    @include common-pamkeyring

Nylas N1 (fancy email client)

  • Download from here and install it

GitKraken

  • URL='https://release.gitkraken.com/linux/gitkraken-amd64.deb'; FILE=mktemp; wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE

chnpm

  • npm install -g chnpm

Postman

  • install the chrome-app from here

TeamViewer

  • sudo dpkg --add-architecture i386 && sudo apt-get update
  • URL='https://download.teamviewer.com/download/teamviewer_i386.deb'; FILE=mktemp; wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE
  • sudo apt-get install -f

Docker

Taken from here

  • sudo /bin/su -c "echo 'deb https://apt.dockerproject.org/repo debian-stretch main' > /etc/apt/sources.list.d/docker.list"
  • sudo apt-get update
  • sudo apt-get install docker-engine
  • sudo service docker start

MongoDB

Taken from here

  • sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
  • echo "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
  • sudo apt-get update
  • sudo apt-get install -y mongodb-org
  • sudo service mongod start

Robomongo

Taken from here

  • wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz
  • tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
  • sudo mv robomongo-0.9.0-linux-x86_64-0786489/bin/robomongo /usr/bin/
  • rm -rf robomongo-0.9.0-linux-x86_64-0786489 && rm robomongo-0.9.0-linux-x86_64-0786489.tar.gz
  • open the start-menu and rightclick -> Anwendungen bearbeiten
  • Add a menu-item running the command robomongo with an icon you like, for example this one

PostgreSQL

Taken from here

  • sudo apt-get install postgresql postgresql-client
  • default database and default user are postgres

VMWare Player

Taken from here, here and here

  • sudo apt-get install g++-5
  • Download it from here
  • chmod +x the file
  • sudo ./FILENAMEHERE to run it
  • Follow the installation instructions
  • When upon start it asks you for your gcc-installation, point it to /usr/bin/g++-5
  • after install, do this to enable blacklisted gpu-drivers:
    echo mks.gl.allowBlacklistedDrivers = \"TRUE\" >> ~/.vmware/preferences

Whatsie (whatsapp web client)

Taken from here

  • URL='https://github.com/gsantner/whatsie/releases/download/v2.1.0/whatsie-2.1.0-linux-amd64.deb'; FILE=mktemp; wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE

insync (google-drive-cliet)

This app costs a 30$ one-time-payment, but has a 15-day-trial, so you can check if it works for you

  • Download ist from here and dpkg -i the file

Gimp

Is already installed by default

Configure the software

Terminal

  • Einstellungen -> Konsole einrichten -> Disable Show menubar by default
  • Einstellungen -> Konsole einrichten -> Disable Use current window size on next startup
  • Einstellungen -> Konsole einrichten -> TabBar -> Set 'Tab bar visibility' to Show Tab Bar When needed
  • Einstellungen -> Konsole einrichten -> TabBar -> Set 'Tab bar position' to Above Terminal Area
  • Einstellungen -> Edit current profile -> Appearance -> Edit -> Set Background-transparency to 20%
  • Einstellungen -> Edit current profile -> Appearance -> Edit -> Set Forground-color-bightness to 230
  • Einstellungen -> Edit current profile -> Scrolling -> enable unlimited scrollback
  • Einstellungen -> Edit current profile -> Scrolling -> Hide scrollbar
  • Einstellungen -> Edit current profile -> Advanced -> Sret Cursor shape to I-Beam
  • Einstellungen -> Kurzbefehle festlegen -> Einfügen alternative to ctrl+V
  • Einstellungen -> Kurzbefehle festlegen -> Kopieren alternative to ctrl+C
  • Einstellungen -> Kurzbefehle festlegen -> new Tab to Meta+T

github

See here

psql

Set postgres-user-password

Taken from here

  • sudo -u postgres psql
  • alter user postgres password 'SOMEPSQLPASSWORD';
  • \q

KeePass

KeePassHttp

  • sudo apt-get install libmono-system-xml-linq4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-runtime-serialization4.0-cil mono-mcs
  • sudo wget https://github.com/jasonxh/keepasshttp/raw/pr/mono-http/KeePassHttp.plgx -P /usr/lib/keepass2/Plugins

Docker

Add current user to docker-group

Taken from here

  • sudo gpasswd -a ${USER} docker
  • sudo service docker restart

Activate the docker API

Taken from here (the with-systemd-version)

  • create (as root) a /etc/systemd/system/docker-tcp.socket with the following content:
[Unit]
Description=Docker HTTP Socket for the API

[Socket]
ListenStream=2375
BindIPv6Only=both
Service=docker.service

[Install]
WantedBy=sockets.target
  • systemctl enable docker-tcp.socket
  • systemctl stop docker
  • systemctl start docker-tcp.socket

Kitematic (Docker GUI)

  • git clone git@github.com:docker/kitematic.git
  • cd kitematic
  • make
  • ./node_modules/.bin/grunt release
  • sudo dpkg -i ./dist/Kitematic_*.deb

Dolphin

Add useful folders to the quickaccess

  • Just Drag'n'drop the foldes you like (like Desktop, Downloads and maybe ownCloud) into the places-section on the left

VMWare player

Taken from here

  • To boot from a local partition, you need to create a vm, and after creating it go to its settings, remove the created hard drive and add a new one. In the disk-creation-gui select Use a physical disk. if you use efi-boot, make sure to give it access to the efi-partition aswell.
  • If you want to efi-boot in your vm, you need to activate it, by adding the line firmware = "efi" at the top to the ~/vmware/VMNAME/VMNAME.vmx

KDE

Set SimepleGlass-Theme (if you don't like breeze dunkel too much)

  • wget https://dl.opendesktop.org/api/files/download/id/1475885338/SimpleGlassMod.zip -O temp.zip; sudo unzip temp.zip SimpleGlass/* -d /usr/share/plasma/desktoptheme; rm temp.zip; sudo rm -rf /usr/share/plasma/desktoptheme/SimpleGlass/icons
  • Einstellungen -> Arbeitsbereich-Design -> Arbeitsflächen-Design -> Neues Design herunterladen -> SimpleGlass anwenden

for more distance between starter-icons

  • rm /usr/share/plasma/desktoptheme/SimpleGlass/widgets/tasks.svgz

Remove unused taskbar-icons

  • Rightclick the little up-arrow on the right -> Einstellungen für Systemabschnitt der Kontrolleiste -> Einträge -> Choose the icons to show

Make applications show as Icons only

  • Rightclick the taskbar -> Alternativen -> Fensterleiste nur mit Symbolen

Add Date to the clock

  • Rightclick the clock -> Einstellungen für Digitale Uhr -> Datum Anzeigen

remove duplicate audio-icon

  • Leftclick the one on the left (it should say mixer, if not try the other one) -> klick the button right to the mixer-button -> disable "Dock in system tray"
  • while there, also remove the duplicate sound-OSD, by disabling it under General

Stop the kmixer from showing up on boot

Taken form here

  • sudo rm /usr/share/autostart/kmix_autostart.desktop

Set the window style

  • Systemeinstellungen -> Anwendungs-stil -> Fensterdekoration -> Breeze
  • Systemeinstellungen -> Anwendungs-stil -> Fensterdekoration -> Umrandungsgröße -> Keine Umrandungen

Remove the option-button in the top-left

  • Right-click it -> Arbeitsfläche einrichten -> Optimierungen -> disable setting under 'Desktop-layout'

Set grouping of apps in the taskbar

  • Rightclick the taskbar -> Einstellungen für Fensterleiste -> Disable "Grupopiere nur bei Fensterleiste"

Add programs to the control-bar

  • Just rightclick -> als starter hinzufügen for every program you want

Set the wallpaper

  • Set the wallpaper via rightclick on the desktop -> Einstellungen für Arbeitsflähche
  • Set the login-background In Systemeinstellungen -> Starten und Beenden -> Anmeldebildschirm

Activate horizontal scrolling

  • Systemeinstellungen -> Eingabegeräte -> Touchpad -> Bildlauf mit zwei Findern -> Waagerecht aktivieren

disable juming icon at cursor on app-start

  • Systemeinstellungen -> Anwendungen -> Programmstartanzeige -> Aktivitätsanzeige -> Keine Aktivitätsanzeige wählen

keypress-repeat-speed

  • Einstellungen -> Eingabegeräte -> Tastatur -> Hardware -> Tastenwiederholung -> Verzögerung: 200 to 300 ms
  • Einstellungen -> Eingabegeräte -> Tastatur -> Hardware -> Tastenwiederholung -> Geschwindigkeit: 50 wdh./sek.

Todos

  • See what i can do considering Excel (maybe ms-office-web or something?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment