更改源
安装ifconfig
sudo apt install net-tools
配置ssh
sudo apt-get install openssh-server -y
安装配置vim
sudo apt-get install vim -y
sudo vim ~/.vimrc
colorscheme ron
:syntax on
filetype on
filetype plugin on
filetype indent on
set sts=4
set shiftwidth=4
set backspace=2
set tabstop=4
set showmode
set nu
set nohlsearch
安装samba
sudo apt-get install samba -y
sudo apt-get install smbclient
sudo mkdir -p /home/share
sudo chmod 777 /home/share
sudo vim /etc/samba/smb.conf
[share]
path = /home/share
browseable = yes
writable = yes
comment = smb share test
sudo smbpasswd -a ddl
安装git
sudo apt-get install git
GIT修改默认编辑器
git config --global core.editor vim
生成ssh-key
ssh-keygen -t rsa -b 4096 -C "d_duanlin@163.com"
cat /home/ddl/.ssh/id_rsa.pub
安装ZSH
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s $(which zsh)
chsh -s /usr/bin/zsh
设置主题
ZSH_THEME="ys"
ZSH 插件安装
sudo apt install autojump
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
添加插件
plugins=(
git
autojump
zsh-syntax-highlighting
zsh-autosuggestions
)