Skip to content

Instantly share code, notes, and snippets.

@dev117uday
Last active June 14, 2022 17:53
Show Gist options
  • Save dev117uday/804b1b177f339aa1b300491ae41242a7 to your computer and use it in GitHub Desktop.
Save dev117uday/804b1b177f339aa1b300491ae41242a7 to your computer and use it in GitHub Desktop.

Setup.txt

OS setup

add 
max_parellel_downloads=10 
to 
/etc/dnf/dnf.conf

dnf install

sudo dnf install cmake g++ curl  tlp tlp-rdw thermald git  tldr htop gnome-tweaks terminator openvpn micro gnome-calendar flameshot cheese filezilla nomacs dialog qbittorrent gnupg python3-pip golang python3-setuptools neofetch stacer tree apt-transport-https papirus-icon-theme python3-virtualenv maven fbreader chromium telegram vlc

sudo systemctl enable tlp.service 

git config --global user.name "Uday Yadav" && git config --global user.email "[email protected]" && git config --global core.editor "nano" && git config --global alias.mylog "log --decorate --oneline --graph"

Docker

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh && sudo groupadd docker && sudo usermod -aG docker $USER

Zsh

sudo yum install zsh
chsh -s $(which zsh) 
# configure zsh
zsh
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Add to .zshrc

alias pp="cd program"
alias pc="code ."
alias file="xdg-open ."
alias ns="npm run start"
alias nr="npm run dev"
alias pci="code-insiders ."


export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

Manual installation

Other Install

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install --lts
npm i -g typescript ts-node nodemon yarn firebase firebase-tools sass pnpm

# https://go.dev/dl/
go install golang.org/x/tools/gopls@latest && go install golang.org/x/tools/cmd/godoc@latest

# github cli login
gh auth login

sudo sensors-detect

update

sudo dnf update && sudo dnf upgrade && dnf clean all
set -eu

LANG=C snap list --all | awk '/disabled/{print $1, $3}' |
    while read snapname revision; do
        snap remove "$snapname" --revision="$revision"
    done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment