TaoTao - Saber - Desktop & Server
Screenshot
Desktop Edition : Including I3wm desktop configuration based on Ubuntu Server version
Server Edition : It is a refined workspace based on Ubuntu Server
Desktop Edition
-
CLI
- Fd
- Bash - A Unix shell and command language.
- Xclip
- Ranger
- Silversearcher-ag
- Unzip
- ctags
- Curl
- Inotify-tools
- Z - Tracks your most used directories, based on frecency.
- Tmux - A terminal multiplexer.
- Git - A free and open source distributed version control system.
- Diff-so-fancy - Make your diffs human readable instead of machine readable.
- Htop - An interactive text-mode process viewer.
- Bat - A cat clone with syntax highlighting and Git integration.
- Fzf - A command-line fuzzy finder.
- Ripgrep - A line-oriented search tool that recursively searches directories for a regex pattern.
- Wget - A free software package for retrieving files using HTTP, HTTPS, FTP, and FTPS.
- Vim
- vim-airline
- onedark.vim
- vim-airline
- vim-airline-themes
- vim-fugitive
- nerdtree
- tabular
- vim-table-mode
- tagbar
- fzf
- asyncrun
- vim-tmux-navigator
- indentLine
- nerdcommenter
- vim-startify
- ultisnips
- vim-snippets
- markdown-preview
- markdown2ctags
- neuims
- fcitx.vim
- md-img-paste
- vimwiki
- vim-zettel
- vim-multiple-cursors
- Pip Tools
- Powerline-shell
- Pandas
- Django
- Pyvirtualdisplay
- Selenium
- Gem Tools
- Vimwiki_markdown
-
GUI
- i3 - A tiling window manager.
- i3blocks - A feed generator for text based status bars.
- i3lock-fancy - A script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text.
- Rofi - A window switcher, application launcher and dmenu replacement.
- Compton - A lightweight compositor for X11.
- Alacritty - A cross-platform, GPU-accelerated terminal emulator.
- zathura
- open-vm-tools-desktop
- calibre
- deepin-screenshot
- Fcitx
- Chrome
- Fonts
- Inziu
- NordFonts
git clone https://github.com/hantaotaohan/Dotfiles.git
# Users in China
git clone https://hub.fastgit.org/hantaotaohan/Dotfiles.git
cd Dotfiles
./install.sh
sh -c "$(wget -O- https://raw.githubusercontent.com/hantaotaohan/Dotfiles/master/setup/auto_run_install.sh)"
If it prompts failed: Connection refused.
sudo vim /etc/hosts
Copy the following content in
# GitHub Start
52.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com
192.30.253.112 github.com
185.199.108.153 assets-cdn.github.com
151.101.185.194 github.global.ssl.fastly.net
140.82.114.9 codeload.github.com
# GitHub End
Update Vim
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
# if network slow also
sudo sed -i "s/http:\/\/ppa\.launchpad\.net/https:\/\/launchpad.proxy.ustclug.org/g" /etc/apt/sources.list.d/*.list
sudo apt install vim
sudo add-apt-repository --remove ppa:jonathonf/vim
A tool for terminal to view CSV file
sudo wget https://github.com/obsidianmd/obsidian-releases/releases/download/v0.7.6/obsidian_0.7.6_amd64.snap
sudo snap install ./obsidian_0.7.6_amd64.snap --dangerous
E-book viewing software
sudo snap install foliate
Recording GIF software
sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt install peek
sudo add-apt-repository --remove peek-developers/stable
VMware Tools patch file Solve the problem of VMware sharing files
$ git clone https://github.com/rasa/vmware-tools-patches.git
$ cd vmware-tools-patches
$ ./download-tools.sh latest
$ ./untar-and-patch.sh
$ ./compile.sh
$ sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other,nonempty
System backup software
wget https://github.com/teejee2008/timeshift/releases/download/v20.03/timeshift-v20.03-amd64.deb
sudo dpkg -i timeshift-v20.03-amd64.deb
sudo apt install -f
sudo dpkg -i timeshift-v20.03-amd64.deb
Chinese font
sudo apt install fonts-noto-cjk
Mouse driven
sudo apt install solaar
Bag grabbing tool
wget -c "https://downloads.getfiddler.com/linux/fiddler-everywhere-1.0.0.AppImage" -O fiddler.AppImage
sudo ln -f fiddler.AppImage /usr/local/bin/
Conver png > pdf Tools
wget https://www.imagemagick.org/download/ImageMagick.tar.gz
cd ImageMagick
./configure
make
sudo make install
sudo ldconfig /usr/local/lib
magick -version
# magick pdfname.pdf image.png
# or
# magick imagename.png pdfname.pdf
# or
------------------------------------------------------------------
sudo apt install imagemagick
sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>/g' /etc/ImageMagick-6/policy.xml
Cheatsheet
sudo bash -c "$(wget -O- https://raw.githubusercontent.com/denisidoro/navi/master/scripts/install)"
Translator
OCR
sudo apt install tesseract-ocr
sudo apt install tesseract-ocr-chi-sim
sudo add-apt-repository ppa:sandromani/gimagereader
sudo apt install gimagereader
i3blocks-email config
python3 $HOME/.config/i3blocks/email --add $Email@xxx.com
themes
sudo apt install arc-theme
sudo sed -i 's/gtk-theme-name = Ambiance/gtk-theme-name = Arc-Dark/g' /etc/gtk-3.0/settings.ini
ssr
https://github.com/shadowsocksrr/electron-ssr
timedatectl set-local-rtc 1 --adjust-system-clock
python2
import keyring
keyring.set_password("system", "username", "password")
or
keyring set bteb hantao@bteb.cn
keyring set bteb hantaotaohan@hotmail.com
vimwiki 修改 .vim/plugged/vimwiki/autoload/vimwiki/vars.vim
1190行 let mkd_syntax.Weblink1Template
处找到 \ mkd_syntax.rxWeblink1Separator. '__LinkUrl__'. rxWeblink1Ext.
修改成 \ mkd_syntax.rxWeblink1Separator. '/__LinkUrl__'. rxWeblink1Ext.
/home/taotao/.vim/plugged/vim-zettel/autoload/zettel/vimwiki.vim
539行位置修改成
silent! execute "normal! :'<,'>s/\\%V.*\\%V./" . zettel#vimwiki#format_link( name, "\\\\0") ."\<cr>\<C-o>" | redraw
编辑当前页面功能修改正确地址
编辑 themes/LoveIt/layouts/partials/single/footer.html 修改 34 行处的位置里面的 herf 地址处即可
找到 /home/taotao/desktop/blog/themes/LoveIt/layouts/partials/plugin/link.html
修改 <a href="{{ .Destination | safeURL }}">
为 <a href="{{ .Site.BaseURL }}/{{ .Destination | safeURL }}">