/.the-bootstrap

Personal configuration.

Primary LanguageShell

.the-bootstrap

Personal configuration.

Installation

# Use with caution:
export TB_RECOMMENDED_DRIVERS=true
export TB_NVIDIA=true

sudo apt update && sudo apt install git && cd && \
    git clone https://github.com/cristobalcl/.the-bootstrap.git &&
    .the-bootstrap/bootstrap.sh

Other steps

  • Reboot?
  • Install recommended drivers (if you didn't with the scripts): ALT + F2 -> kcmshell5 kcm_driver_manager
  • Launch Yakuake: ALT + F2 -> yakuake
  • Launch Dropbox: ALT + F2 -> dropbox
  • Create ssh keys: ssh-keygen -t rsa -b 4096 -C "ccarnerolinan@gmail.com"
  • Start ssh-agent: eval "$(ssh-agent -s)"
  • Add ssh key: ssh-add ~/.ssh/id_rsa
  • Configure new key in GitHub
  • Install tmux plugins: c-b I

Install NeoVim plugins and language server for Python:

nvim +PlugInstall +qa

Fix origin:

cd ~/.the-bootstrap/
git remote set-url origin git@github.com:cristobalcl/.the-bootstrap.git

Features

For (K)ubuntu, OpenSuse (very experimental), and MacOS (experimental).

Install recommended drivers

TB_RECOMMENDED_DRIVERS=true .the-bootstrap/bootstrap.sh

Fish

powerline-shell

Vim & NeoVim

xbindkeys

Spotify shortcuts:

  • ALT + z: Previous
  • ALT + x: Pause
  • ALT + c: Play
  • ALT + v: Next

amixer shortcuts:

  • ALT + "+": Volume up
  • ALT + "-": Volume down

Music On Console Player shortcuts:

  • ALT + a: Previous
  • ALT + s: Pause
  • ALT + d: Play
  • ALT + f: Next

Others:

  • ALT + t: Insert today date in ISO format
  • ALT + p: Insert random password

Ubuntu drivers for NVIDIA

To activate run the script like this:

TB_NVIDIA=true .the-bootstrap/bootstrap.sh

Dropbox

Spotify

Scripts

Appendix

Quick installation for servers

bash <(curl -s https://raw.githubusercontent.com/cristobalcl/.the-bootstrap/master/quick-install-server.sh)

Really quick copy&paste Bash session configuration

export PS1="\[\033[1;34m\]\u@\H \[\033[1;33m\]\w\[\033[0m\]\$ "

alias l='ls -hlA'
alias lo='ls -hlAtr'
alias ll='ls -hlASr'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias -- ,='cd -'
alias -- +='pushd .'
alias -- -='popd'

References

Troubleshooting

Ethernet network not working after Kubuntu 16.04 install

Install Kubuntu again without connecting the cable :(

Glitches around mouse pointer in Kubuntu with NVIDIA

  1. Install latest NVIDIA driver.
  2. Go to System setting -> Display and Monitor -> Compositor -> Rendering Backend and change OpenGL 2.0 to XRender.

Source: Ubuntu Forums

Docker permission denied

Full error message:

docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/containers/create: dial unix /var/run/docker.sock: connect: permission denied.

Solution (this is done by the bootstrap script):

sudo usermod -a -G docker $USER

Then reboot.

Source: Techoverflow