Last active
May 31, 2019 14:42
-
-
Save ethanj/9840c721061752f0bfd6503df74f541e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# new install of 16.04 | |
#add swap | |
sudo fallocate -l 10G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab | |
# swap ctrl and alt to act like a Mac | |
# https://askubuntu.com/questions/885045/how-to-swap-ctrl-and-alt-keys-in-ubuntu-16-04/885047 | |
dconf write "/org/gnome/desktop/input-sources/xkb-options" "['ctrl:swap_lalt_lctl','ctrl:swap_ralt_rctl']" | |
#install some basic stuff | |
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev | |
#install config stuff | |
sudo apt-get install dconf-editor compizconfig-settings-manager unity-tweak-tool | |
# move launcher to bottom | |
gsettings set com.canonical.Unity.Launcher launcher-position Bottom | |
# focus on hover | |
gsettings set org.gnome.desktop.wm.preferences focus-mode 'mouse' | |
#snapping windows | |
CompizConfig Settings Manager -> Window Management | |
- check Snapping Windows | |
-> Snapping Windows -> behavior | |
- check edge resistance, screen edges, window edges | |
- adjust edge resistance distance (50 / 20) | |
# speed up resizing by showing rectangle | |
CompizConfig Settings Manager -> Resize Windows -> General | |
- default resize mode: outline | |
- uncheck "maximize vertically is screen edge hit" | |
# turn on workspaces in system settings | |
appearance -> behavior -> enable workspaces | |
# also show menus in title bar, always displayed | |
# redo workspace switcher dimensions and keys | |
compizconfig -> general options -> desktop size = to edit switcher dimensions (4 x 1) | |
- uncheck application switcher at top level of compizconfig | |
# system settings to config keys | |
keyboard-> shortcuts -> navigation | |
# edit terminal shortcuts.. copy/paste, prev/next, find (f3/f4), new terminal/window, close terminal | |
# note: might need to remap fn function key functionality | |
# cpu monitor applet | |
sudo apt-get install indicator-multiload | |
#configure it by right clicking on menubar item | |
# install chrome from https://www.google.com/chrome/browser/ | |
# install dropbox from https://www.dropbox.com/install | |
# install slack from https://slack.com/downloads/linux | |
# install Atom | |
sudo add-apt-repository ppa:webupd8team/atom | |
sudo apt update; sudo apt install atom | |
#install module sync-settings and connect to settings | |
apm install sync-settings | |
#go to sync-settings extension config and set... | |
personal access-token: xxxxxxxxxxxxxxxxxxx | |
gist id: xxxxxxxxxxxxxxxxxxxxxx | |
# install vscode from https://code.visualstudio.com/download | |
# vscode settings sync | |
# install | |
ctrl-p | |
> ext install Shan.code-settings-sync | |
# download existing config | |
ctrl-shift-d | |
personal access-token: xxxxxxxxxxxxxxx | |
ubuntu GIST ID : xxxxxxxxxxxxxxxxx | |
# if no existing config gist, follow instructions in the extension config | |
# turn off system error reporting | |
sudo vi /etc/default/apport | |
sudo service apport restart | |
OPTIONAL STUFF | |
#reassign mouse buttons | |
#https://askubuntu.com/questions/459277/how-do-i-make-a-program-auto-start-everytime-i-log-in-in-ubuntu-14-04 | |
# add new startup command: | |
xmodmap -e "pointer = 1 8 3 4 5 6 7 2 9" | |
#pyenv | |
# https://github.com/pyenv/pyenv#basic-github-checkout | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc | |
#start with system version 2.7.xx | |
pyenv global system | |
sudo apt-get install python-pip pylint | |
git clone https://github.com/momo-lab/pyenv-install-latest.git "$(pyenv root)"/plugins/pyenv-install-latest | |
pyenv install-latest | |
# video stuff | |
sudo apt install gnome-mplayer vlc browser-plugin-vlc | |
#install acroread | |
sudo apt-get install gtk2-engines-murrine:i386 libcanberra-gtk-module:i386 libatk-adaptor:i386 libgail-common:i386 | |
sudo add-apt-repository "deb http://archive.canonical.com/ precise partner" | |
sudo apt-get update | |
sudo apt-get install adobereader-enu | |
sudo add-apt-repository -r "deb http://archive.canonical.com/ precise partner" | |
sudo apt-get update | |
#opencv | |
sudo apt-get install libopencv-dev | |
#install tmux | |
sudo apt-get install tmux | |
ARGGG they took out --save-config functionality!! | |
#create per workspace config file, by creating just those windows | |
#start the windows by attaching to the shells locally so they connect on reopen | |
#gnome-terminal --save-config=~/shells/gtconfig-default | |
# add borders to windows | |
sudo vi /usr/share/themes/Ambiance/gtk-3.0/apps/unity.css | |
#change to | |
-UnityDecoration-extents: 28px 4px 4px 4px; | |
# manually set date / time (if out of sync for some reason) | |
sudo date +%Y%m%d%T -s "20181127 11:22:00" | |
# maybe sudo date -s '2014-12-25 12:34:56' ? | |
# eliminate password requirements (if you want a really short password) | |
vi /etc/pam.d/common-password | |
password [success=1 default=ignore] pam_unix.so minlen=3 | |
# more useful image viewers than eof | |
sudo apt-get install geeqie edisplay | |
# make 'open' useful | |
sudo rm /bin/open | |
sudo ln -s /usr/bin/xdg-open /usr/local/bin/open | |
# increase "overlay" slider width | |
# create a custom css file | |
# this customizes stuff in ie. /usr/share/themes/Ambiance/gtk-3.0/gtk-widgets.css | |
# http://xahlee.info/linux/linux_disable_ubuntu_overlay_scrollbar.html | |
vi ~/.config/gtk-3.0/gtk.css | |
.scrollbar { | |
-GtkRange-slider-width: 20; | |
-GtkScrollbar-min-slider-length: 71; | |
border-radius: 20px; | |
} | |
# doesnt work for some reason... | |
# https://askubuntu.com/questions/776592/how-can-i-enable-overlay-scrolling-in-ubuntu-16-04-lts | |
# speed up task switching | |
# https://superuser.com/questions/66909/task-switching-in-ubuntu-is-painfully-slow | |
compizconfig app -> Desktop -> Viewport Switcher = OFF | |
# custom coloring for ls | |
# generate new file with dircolors -p > ~/.dircolors | |
# edit ~/.dircolors to customize | |
# add this to .zshrc | |
[ -e ~/.dircolors ] && eval $(dircolors -b ~/.dircolors) | |
patbenatar
commented
May 31, 2019
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment