Skip to content

Will add shell scripts and tutorials on setting up new linux machine and related tools.

Notifications You must be signed in to change notification settings

LiyangLingIntel/LinuxSetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LinuxSetup

This repo includes basic configuration of setup Linux development environment.

Softwares to install at first

sudo apt update && sudo apt upgrade -y
sudo apt install vim git tmux curl wget python-is-python3
sudo apt install gcc g++ ccls
sudo apt install htop

Enable SSH Server

  • Install openssh-server

    sudo apt update
    sudo apt install openssh-server
  • Verify installation

    sudo systemctl status ssh
  • Enable and disable openssh service

    sudo systemctl disable --now ssh
    sudo systemctl enable --now ssh

Install ZSH & Oh-My-Zsh

  • ZSH with Oh-My-Zsh are very productive shell for developers

    • Install ZSH
    sudo apt install zsh
    echo $SHELL
    chsh -s $(which zsh)

    log out of the terminal and log in again to enable zsh.

    • Install Oh-My-Zsh

      sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    • Install Plugins for ZSH

      • ZSH-autosuggestions & ZSH-Syntax-highlighting

        git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
        git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

      Don't forget update these two into .zshrc plugins field.

      • Autojump

        git clone https://github.com/wting/autojump.git $ZSH_CUSTOM/plugins/autojump
        $ZSH_CUSTOM/plugins/autojump
        ./install.py

        Please also add autojump to .zshrc plugins with this line in below.

        [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
        autoload -U compinit && compinit -u
  • Oh-My-Zsh also provides various themes, ys is the best for me.

Beatify

Tmux Powerline

This part refers to Tmux with Powerline on Ubuntu - tutorial for beginners.

  • Install Powerline

    sudo apt install powerline -y
  • Install powerline fonts

    git clone https://github.com/powerline/fonts.git --depth=1
    cd fonts
    ./install.sh
    cd ..
    rm -rf fonts
  • Add below code section to ~/.tmux.conf

    # enable the powerline status bar
    run-shell 'powerline-config tmux setup'
    
    # Set tmux mode to vi (default is emac)
    set-window-option -g mode-keys vi

About

Will add shell scripts and tutorials on setting up new linux machine and related tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published