You can setup new arch linux laptop or desktop easily with Socialst
- Clone this repo at your home directory (check :
echo $HOME)
git clone https://github.com/Axect/Socialst- Go to Script directory
cd Socialst/Script- Go to
00_Archdirectory
cd 00_Arch- Install
paruand prerequisites (base-devel)
sh paru.sh- Install packages
sh package.sh- Go back to Script directory
cd ..-
Execute shell script files sequentially
01_env.sh: Setup for zsh, vim, eisvogel, zathura, input method, zellij- Recommend : Custom zsh, Astronvim, Kime
02_git.sh: Configure git with an option:credential.helper store- Recommend action:
gh auth login
- Recommend action:
03_proj.sh: Clone whole projects forhttps://github.com/Axect(It is just for my convenience - You don't need to execute this file)04_rust.sh: Setup rust viarustup05_rust_analyzer.sh: Install rust analyzer as a component of rustup06_cargo.sh: Install useful applications viacargo07_coc.sh: If you chose 'Neovim' in01_env.sh, then this script provided setup forCoc08_nim.sh: Install nim viachoosenim09_rprofile.sh: Change R repo to Seoul (If you are not korean, this script file may be harmful)10_R.sh: Install useful R packages11_npm.sh: Create.npm-globaldirectory and prefix12_extra_python.sh: Install extra useful python packages viapip13_file.sh: Make nautilus default file manager (If you don't use nautilus, it may be harmful)14_openblas.sh: Download & MakeOpenBLASto/optdirectory (You should have$HOME/zbindirectory before executing this)15_root_jupyter.sh: Install ROOT jupyter kernel16_julia_docker.sh: Julia docker setup (Deprecated)17_julia_package.jl: Install julia packages (Execute byjulia 17_julia_package.jl)18_haskell.sh: Install haskell viaghcup19_xkcd.sh: Setup xkcd font for matplotlib20_npm_package.sh: Install useful npm packages
-
After hook
- If you set UIM in
sh 01_env.sh, then you should configure UIM viauim-pref-gtk. If you are korean, then refer Arch UIM Setup. If you finish setup, then should logout or reboot. - Broot may bother you after start new zsh session. In terminal, type
brootand install. And it may modify zshrc so, remove new lines including broot in.zshrc
- If you set UIM in
-
Useful commands (alias & zsh functions)
- Git
gitu:git add . && git commit && git push
- Latex
latexinit: Generate initial latex files fromSocialst/Templates/Latex_Template/
- Remark
remarkinit: Generate remark files fromSocialst/Templates/Remark_Template/remark2pdf: Generate PDF file from remark slide show
- Eisvogel (Pandoc)
eisvogelinit: Generate pandoc files fromSocialst/Templates/Eisvogel_Template/md2pdf FILENAME: Generate PDF file from markdown file
- Typst
typstinit: Generate typst template files fromSocialst/Templates/Typst_Template/
- Python
ncplotinit: Template for matplotlib + netCDF4
- C++
cppdebug FILENAME: Compile & Debug via-fstack-usagecpprun FILENAME: Compile & Run with-O3cppbuild FILENAME: Compile with-O3cppasm FILENAME: Compile & Generate.asm
- Tools
countdown TIME: Countdown in terminal viatermdownzell FILENAME:zellij --layout $HOME/Socialst/Zellij/$FILENAME.yaml
- Git
Although you are not Arch user, you can setup with Socialst.
-
Zsh
- Pre-requisites
zshzsh-history-substring-searchzsh-autosuggestionszsh-syntax-highlightingzsh-completionsfzf
- Setup
# Backup .zshrc file (if exists) mv $HOME/.zshrc $HOME/.zshrc.old # Create link to Socialst ln -s $HOME/Socialst/Zsh/.zshrc $HOME/.zshrc # Make zsh default chsh -s `which zsh`
- Pre-requisites
-
Neovim
- Pre-requisites
neovimpython-neovimxclippowerlinepowerline-fonts
- Setup
# Download vim-plug curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim # Create .config/nvim directory if not exists if [ ! -d "$HOME/.config/nvim" ]; then mkdir $HOME/.config/nvim fi # Create symbolic link to Socialst ln -s $SOCIALST/NeoVim/init.vim $HOME/.config/nvim/init.vim
- Pre-requisites
-
Eisvogel
- Pre-requisites
texlivepandoc
- Setup
mkdir -p $HOME/.pandoc/templates ln -s $SOCIALST/Pandoc/eisvogel.latex $HOME/.pandoc/templates/eisvogel.latex
- Pre-requisites
-
Zellij
- Pre-requisites
rustcargo- Above Zsh setup
- Setup
# Install Zellij cargo install zellij # For key binding if [ ! -d "$HOME/.config/zellij" ]; then mkdir -p "$HOME/.config/zellij" fi ln -s $SOCIALST/Zellij/config.yaml $HOME/.config/zellij/config.yaml
- Pre-requisites
-
Other available shell scripts (For almost all of linux distros)
02_git.sh: Configure git with an option:credential.helper store04_rust.sh: Setup rust viarustup06_cargo.sh: Install useful applications viacargo07_coc.sh: If you chose 'Neovim' in01_env.sh, then this script provided setup forCoc08_nim.sh: Install nim viachoosenim11_npm.sh: Create.npm-globaldirectory and prefix12_extra_python.sh: Install extra useful python packages viapip14_openblas.sh: Download & MakeOpenBLASto/optdirectory (You should have$HOME/zbindirectory before executing this)15_root_jupyter.sh: Install ROOT jupyter kernel20_npm_package.sh: Install useful npm packages