Skip to content

Instantly share code, notes, and snippets.

@adamki
Last active June 13, 2019 04:59
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 adamki/4695445c28d8285cc6db9b7202537054 to your computer and use it in GitHub Desktop.
Save adamki/4695445c28d8285cc6db9b7202537054 to your computer and use it in GitHub Desktop.
ubuntu/debian notes

New Machine Setup


General Sanity/First items

  • re-map CapsLock to control/ESC.

Install xcape.

Depending on your DE, this will be slightly different.

On Mac, Get started with Karibiner and Karibiner-elements

On Gnome 3.x, place the following script in `./profile

On XFCE4, place the following script in a file and use Settings > Session and Startup > Application Autostart tasks to call the file. Note: don't forget to make the file executable first

# make CapsLock behave like Ctrl:
setxkbmap -option ctrl:nocaps

# make short-pressed Ctrl behave like Escape:
xcape -e 'Control_L=Escape'

For Gnome 3.x DE, I've had luck placing this in the .profilea For XFCE4, I needed to make a file and call it from Settings > Session and Startup > ApplicationAutostart`

Shell commandline tools


install zsh: sudo apt-get update && sudo apt-get -y install zsh set zsh as default: chsh -s /bin/zsh install antigen? (Decide if its best to configure this now or wait until ./makesymlinks runs) install zsh-spaceship (No real install needed, just need to use antigen) install neofetch

install ripgrep For Debian Sid user (MX LINUX too)

curl -LO https://github.com/BurntSushi/ripgrep/releases/download/11.0.1/ripgrep_11.0.1_amd64.deb
sudo dpkg -i ripgrep_11.0.1_amd64.deb

Otherwise `sudo apt-get install ripgrep install fzf

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

install tmux: sudo apt-get install tmux install tpm: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm set true colors download fonts like dank mono, fira mono, operator mono install kitty terminal

curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin

Languages (these should happen BEFORE neovim as well)

install nvm, node, and npm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
nvm --version
nvm install node

install rbenv and then ruby

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
~/.rbenv/bin/rbenv init
rbenv install [arg]

This is an rbenv plugin that gives you the install command

mkdir -p "$(rbenv root)"/plugins
$ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build`
rbenv install [arg]

Install Gem:

sudo apt-get install rubygems
gem install bundler

install python2? install python3?

Neovim

Dependencies

  • Plug Manager
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Neovim depends on various provider services. They are:

Ruby provider

gem install neovim

Node Provider

npm install -g neovim

python2 provider
  • Not sure if this is correct. I had to manually install pip via:
Installs Pip2
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
python2 -m pip install --user --upgrade pynvim
python3 provider
  • Not sure if this is correct. I had to manually install pip via:
installs pip3
wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
python3 -m pip install --user --upgrade pynvim

Finally, install Neovim. Ive had better luck with the command below as it gets the most updated version of Neovim

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