Skip to content

Instantly share code, notes, and snippets.

@kehanlu
Last active September 16, 2021 14:00
Show Gist options
  • Select an option

  • Save kehanlu/4066ba7e5c4485b43ff7e4718db925a0 to your computer and use it in GitHub Desktop.

Select an option

Save kehanlu/4066ba7e5c4485b43ff7e4718db925a0 to your computer and use it in GitHub Desktop.
sudo apt install git curl htop tmux vim
  • telegram
sudo snap install telegram-desktop
  • spotify
sudo snap install spotify
  • gnome tweaks
    • 可以設定雙螢幕的 workspace
sudo apt install gnome-tweak-tool

ssh

ssh server

sudo apt install openssh-server
sudo systemctl enable ssh

# if firewall
sudo ufw allow ssh

# other command
sudo systemctl start ssh  
sudo systemctl stop ssh  
sudo systemctl restart ssh

sudo systemctl status ssh

key gen

ssh-keygen -t ed25519 -C "kehanluu@gmail.com"
ssh-keygen -t rsa -C "kehanluu@gmail.com"

oh-my-zsh

sudo apt install zsh

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install p10k

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

Set ~/.zshrc

ZSH_THEME="powerlevel10k/powerlevel10k"

https://github.com/Mayccoll/Gogh

bash -c "$(wget -qO- https://git.io/vQgMr)"

![[Pasted image 20210812195924.png]]

pyenv

Python dependencies

sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

https://github.com/pyenv/pyenv-installer

curl https://pyenv.run | bash

~/.profile

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"

# bash

eval "$(pyenv init --path)"

~/.zshrc or ~/.bashrc

eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Install python version

pyenv install 3.8.5

create virtualenv

pyenv virtualenv 3.8.5 lab
pyenv activate lab

Docker

Install docker engine https://docs.docker.com/engine/install/ubuntu/ Install docker compose https://docs.docker.com/compose/install/ Post-installation: Non-root user https://docs.docker.com/engine/install/linux-postinstall/

Zotero

https://www.zotero.org/support/installation Better Bibtex

other

sudo adduser hank

sudo usermod -g docker hank

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