Skip to content

Instantly share code, notes, and snippets.

@yohhaan
Last active August 15, 2021 02:56
Show Gist options
  • Save yohhaan/5af228f027bf13899aed20c0f79f7f11 to your computer and use it in GitHub Desktop.
Save yohhaan/5af228f027bf13899aed20c0f79f7f11 to your computer and use it in GitHub Desktop.
Backup of some commands to config a new machine

Shell

sudo apt-get -y install zsh 
sudo chsh -s /bin/zsh username
sudo chsh -s /bin/zsh root

Some packages

sudo apt-get -y install htop ncdu thunderbird openconnect kdenlive inkscape ffmpeg obs-studio redshift redshift-gtk curl vlc

Yubikey

See https://github.com/drduh/YubiKey-Guide

sudo apt-get -y install wget gnupg2 gnupg-agent dirmngr cryptsetup scdaemon pcscd secure-delete hopenpgp-tools yubikey-personalization
sudo apt-get -y install  python3-pip python3-pyscard
pip3 install PyOpenSSL
pip3 install yubikey-manager
sudo service pcscd start

Dotfiles and configs

sudo apt-get -y install yadm
yadm clone git@github.com:yohhaan/dotfiles.git
yadm bootstrap

Keyboard profile

sudo apt-get -y install g810-led
sudo cp .config/g810-profile/profile /etc/g810-led/profile

Firefox

Download tarball from https://www.mozilla.org/en-US/firefox/new/

Extract to /opt/firefox/firefox

Change permission to 755 and owner so that updates can be done automatically

sudo apt-get install kmenuedit

Add firefox with kmenuedit

sudo apt-get purge firefox-esr

Signal

See https://signal.org/download/

Spotify

See https://www.spotify.com/us/download/linux/

VS Code

See https://code.visualstudio.com/Download

Fixing Visual Studio Code Terminal Font issue

git clone https://github.com/abertsch/Menlo-for-Powerline.git
sudo cp "Menlo for Powerline.ttf" /usr/share/fonts/
sudo fc-cache -vf /usr/share/fonts/

Then in Visual Studio Code Settings set Terminal Font to Menlo for Powerline

VS Code extensions

austin.code-gnu-global
correctnessLab.dafny-vscode
eamodio.gitlens
James-Yu.latex-workshop
ms-azuretools.vscode-docker
ms-python.python
ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode-remote.vscode-remote-extensionpack
ms-vscode.cpptools
yzhang.markdown-all-in-one

Docker

See https://docs.docker.com/engine/install/debian/ and https://docs.docker.com/compose/install/

Pass

sudo apt-get -y install pass

Slack

See https://slack.com/intl/en-fr/downloads/linux

Zotero

See https://www.zotero.org/download/

KDE Desktop & Widgets

Add xrandr --output HDMI-2 --mode 3440x1440 -r 100 to /usr/share/sddm/scripts/Xsetup

Python3

sudo apt-get install python3 python3-venv python3-pip
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.7 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment