Skip to content

Instantly share code, notes, and snippets.

@zoomequipd
Last active August 23, 2020 19:21
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 zoomequipd/6eb5679366b600bee7fa56098b61c763 to your computer and use it in GitHub Desktop.
Save zoomequipd/6eb5679366b600bee7fa56098b61c763 to your computer and use it in GitHub Desktop.
IBM W530 Ubuntu 20.04 setup

IBM W530 Setup for Ubuntu 20.04

My usecase always involved external monitors with the Dock. None of this is tested anywhere else. This is my personal setup notes to remind me of apps install, specific config options selected for my own liking. If you are not me, this might not be useful to you.

Desired Experience

When monitor is connected to the dock and laptop screen is off use the external monintor for BIOS/Encrypted LVM passphrase, etc.

Video Stuff

BIOS Settings

  1. Display --> Change to Discrete GPU
    Battery Life isn't much of a concern to me, but if I take this laptop traveling, we should change this setting to the Integrated option to save it.

Drivers during install

Do not install Third Party drivers during the install.

TLDR; Just use the X.org Nouveau driver

NVidia driver problems

  • 440
    • Generated flashes on the screen
  • 418
    • would require the laptop screen to be opened before ubuntu login page would appear

Gnome Setting I like

gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces true

gsettings set org.gnome.shell.app-switcher current-workspace-only true

App Installs

sublime text

direcitons are here https://www.sublimetext.com/docs/3/linux_repositories.html#apt

pritunl

grab the latest release https://github.com/pritunl/pritunl-client-electron/releases

$ sudo dpkg -i pritunl-client-electron_1.0.2440.93-0ubuntu1.focal_amd64.deb 
Selecting previously unselected package pritunl-client-electron.
(Reading database ... 158696 files and directories currently installed.)
Preparing to unpack pritunl-client-electron_1.0.2440.93-0ubuntu1.focal_amd64.deb ...
Unpacking pritunl-client-electron (1.0.2440.93-0ubuntu1~focal) ...
dpkg: dependency problems prevent configuration of pritunl-client-electron:
 pritunl-client-electron depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.
 pritunl-client-electron depends on net-tools; however:
  Package net-tools is not installed.

dpkg: error processing package pritunl-client-electron (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 pritunl-client-electron

$ sudo apt --fix-broken install 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  libfprint-2-tod1 libllvm9 python3-click python3-colorama
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gconf-service gconf-service-backend gconf2-common libgconf-2-4 net-tools
The following NEW packages will be installed:
  gconf-service gconf-service-backend gconf2-common libgconf-2-4 net-tools
0 upgraded, 5 newly installed, 0 to remove and 4 not upgraded.
1 not fully installed or removed.
Need to get 1,055 kB of archives.
After this operation, 8,956 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 gconf2-common all 3.2.6-6ubuntu1 [698 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libgconf-2-4 amd64 3.2.6-6ubuntu1 [84.8 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 net-tools amd64 1.60+git20180626.aebd88e-1ubuntu1 [196 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 gconf-service-backend amd64 3.2.6-6ubuntu1 [58.6 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 gconf-service amd64 3.2.6-6ubuntu1 [17.4 kB]
Fetched 1,055 kB in 0s (2,576 kB/s)      
Selecting previously unselected package gconf2-common.
(Reading database ... 160191 files and directories currently installed.)
Preparing to unpack .../gconf2-common_3.2.6-6ubuntu1_all.deb ...
Unpacking gconf2-common (3.2.6-6ubuntu1) ...
Selecting previously unselected package libgconf-2-4:amd64.
Preparing to unpack .../libgconf-2-4_3.2.6-6ubuntu1_amd64.deb ...
Unpacking libgconf-2-4:amd64 (3.2.6-6ubuntu1) ...
Selecting previously unselected package net-tools.
Preparing to unpack .../net-tools_1.60+git20180626.aebd88e-1ubuntu1_amd64.deb ..
.
Unpacking net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Selecting previously unselected package gconf-service-backend.
Preparing to unpack .../gconf-service-backend_3.2.6-6ubuntu1_amd64.deb ...
Unpacking gconf-service-backend (3.2.6-6ubuntu1) ...
Selecting previously unselected package gconf-service.
Preparing to unpack .../gconf-service_3.2.6-6ubuntu1_amd64.deb ...
Unpacking gconf-service (3.2.6-6ubuntu1) ...
Setting up net-tools (1.60+git20180626.aebd88e-1ubuntu1) ...
Setting up gconf2-common (3.2.6-6ubuntu1) ...

Creating config file /etc/gconf/2/path with new version
Setting up gconf-service (3.2.6-6ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for sgml-base (1.29.1) ...
Setting up libgconf-2-4:amd64 (3.2.6-6ubuntu1) ...
Setting up gconf-service-backend (3.2.6-6ubuntu1) ...
Setting up pritunl-client-electron (1.0.2440.93-0ubuntu1~focal) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...

vmware

Download and run the installer - before running make sure you install the compiler

sudo apt install build-essential

Be sure to disable the shared machines settings, we don't need VMWare listening.

pycharm

use the snapcraft snap

install git screen vim

sudo apt install git screen vim

Shell

zsh

sudo apt install zsh
zsh # for the setup
# now install [oh-my-zsh](https://ohmyz.sh/#install)
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

I use powerlevel10

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc.

plugins

zsh-syntax-highligher
zsh-autosuggestions

messing with fish

I ended up liking zsh better, i'm sure i could get fish setup nicely, but i already know my zsh setup, so just use zsh for now.

sudo apt-add-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get install fish
chsh -s /usr/bin/fish

get oh my fish

curl -L https://get.oh-my.fish | fish

install nerd fonts

git clone https://github.com/ryanoasis/nerd-fonts --depth 1
cd nerd-fonts
./install.sh

zoom

https://zoom.us/download?os=linux

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