Skip to content

Instantly share code, notes, and snippets.

@pwasiewi
Forked from Bengt/UbuntuSetup.md
Created September 8, 2018 10:56
Show Gist options
  • Save pwasiewi/4a0fffd987b2226c709356f6ad06160c to your computer and use it in GitHub Desktop.
Save pwasiewi/4a0fffd987b2226c709356f6ad06160c to your computer and use it in GitHub Desktop.
This is how I setup Ubuntu ... more or less.

Installation Media

cd Downloads && \
wget http://releases.ubuntu.com/releases/18.04/ubuntu-18.04-desktop-amd64.iso && \
dd bs=4M if=ubuntu-18.04-desktop-amd64.iso of=/dev/sd<TODO> status=progress oflag=sync

Base Installation

Select Check media for errors.

Reboot

Select Install Ubuntu.

Select Minimal System.

Select Download Updates During Installation.

Select Something else.

Select proper mount points for partitions.

Select Install Now

Reboot

Deinstallations

Desktop Applications

sudo apt remove gnome-characters gnome-font-viewer gnome-getting-started-docs yelp gnome-contacts

Gnome Applications

Open Software, go to Installed, uninstall any useless stuff.

GNOME Software Updater

sudo apt remove update-manager update-manager-core update-notifier update-notifier-common

Chrome GNOME-Shell

sudo apt remove chrome-gnome-shell

Switch to Vanilla GNOME

sudo apt-get install gnome-core && sudo apt-get remove ubuntu-gnome-desktop    

memtest86+

sudo apt remove memtest86+

Remove left-over config files

sudo dpkg -P $(dpkg -l | awk '/^rc/ { print($2) }')

Installations

Hugin

# sudo add-apt-repository ppa:hugin/hugin-builds && \
sudo apt install hugin python-wxgtk3.0

Inkscape

sudo apt install inkscape

GIMP

sudo apt install gimp

Git, hg, curl

sudo apt install git mercurial curl meld

Git and GNOME Keyring

sudo apt-get install libgnome-keyring-dev
cd /usr/share/doc/git/contrib/credential/gnome-keyring
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyring

VIM

sudo apt install vim

Trash-CLI

sudo apt-get install trash-cli

Current Python

See DeadSnakes PPA:

sudo add-apt-repository ppa:deadsnakes/ppa && \
sudo apt-get update && \
sudo apt install python3.6

Python Development Headers

sudo apt install python-dev python3.5-dev python3.6-dev

Alternative Python Interpreters

sudo apt install cython pypy ipython

Stand-Alone Virtualenv

sudo apt install virtualenv

Current Wine

wget https://dl.winehq.org/wine-builds/Release.key && \
sudo apt-key add Release.key && \
sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/' && \
sudo apt update && \
sudo apt install winehq-stable

LM-Sensors

sudo apt install lm-sensors && \
yes | sudo sensors-detect

Stress Testing

sudo apt install stress

PyCharm via Snap

sudo snap install pycharm-professional --classic

PWGEN

sudo apt install pwgen

Steam

sudo apt-get install steam

Ubuntu-X PPA

sudo add-apt-repository ppa:ubuntu-x-swat/updates && \
sudo apt update && \
sudo apt upgrade

GLXGEARS

sudo apt install mesa-utils

CPU Frequency Scaling Governor

Modern CPUs fake their frequency to the OS and scale the real one on demand, so do not interfere:

sudo apt install linux-tools-common linux-tools-generic

sudo cpupower frequency-set -g performance

LaTeX

sudo apt install \
    texlive \
    texlive-lang-german \
    texlive-latex-extra

TeX Tools

sudo apt install \
    texstudio \
    pandoc

OpenSCAD

Source: http://www.openscad.org/downloads.html

OpenSCAD is ridiculously missing from Ubuntu's repositories:

sudo add-apt-repository ppa:openscad/releases
sudo apt install openscad

ROCm 1.8.1 from AMD's Repository

See ROCm install notes:

sudo apt install libnuma-dev
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt install rocm-dkms
sudo usermod -a -G video $LOGNAME

Reboot to 4.13 and test:

uname -r
dmesg | grep kfd

/opt/rocm/bin/rocminfo
sudo apt install clinfo && clinfo

ROCm Platform

For Tensorflow-ROCm.

See ROCm Packages:

sudo apt remove miopen-opencl
sudo apt install rocrand rocfft hipblas rocblas miopen-hip

Code XL 2.5

For Tensorflow-ROCm.

See CodeXL README:

sudo apt install cxlactivitylogger

Tensorflow-ROCm

See Tensorflow ROCm Basic Install:

cd Promotion
rm -rf venv3.5
virtualenv -p python3.5 venv35
source venv3.5/bin/activate
python -m pip install http://repo.radeon.com/rocm/misc/tensorflow/tensorflow-1.3.0-cp35-cp35m-manylinux1_x86_64.whl
python pfasdr/debug/debug_tensorflow.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment