ubuntu18

ubuntu1804

https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/18.04/

1 source

echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse" > /etc/apt/sources.list
echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse" >> /etc/apt/sources.list
echo "deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse" >> /etc/apt/sources.list
apt-get update

 

clean

apt-get autoclean
apt-get clean
apt-get autoremove

2 install

apt-get install build-essential -y
apt-get install vim -y
apt-get install git -y
apt-get install fswatch -y
apt-get install p7zip-full -y
apt-get install cmake -y
apt-get install net-tools -y
apt-get install tmux -y
apt-get install gawk -y
apt-get install tree -y
apt-get install flex -y
apt-get install bison -y
apt-get install exfat-utils -y
apt-get install httrack -y
apt-get install fcitx-bin -y
apt-get install fcitx-table -y
apt-get install ttf-mscorefonts-installer -y
apt-get install fontconfig
apt-get install terminator -y
apt-get install lua5.3 -y
apt-get install curl -y
apt-get install fzf -y
apt-get install expect -y
apt-get install openjdk-8-jdk -y

sudo apt-get install chromium-browser
sudo apt-get install exfat-utils

 3 Vbox增强功能

sudo usermod -aG vboxsf $(whoami)

 

 

 

apt-get install nodejs -y
apt-get install npm -y
npm config set registry https://registry.npm.taobao.org
npm install -g typescript

 

#下载texlive镜像 https://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/

#加载镜像文件
sudo mount -o loop texlive.iso /mnt

cd /mnt
sudo ./install-tl

#点击完成,卸载镜像文件
cd /; sudo umount /mnt  

 

vscode plugin

repeat() { while :; do $@ && return; sleep 10; done }

echo 开始获取已经安装的插件
installed=`code --list-extensions 2>&1`
echo 完成获取全部已经安装插件

tryin() {
    ison=$(echo "$installed" | grep $1)
    if [[ "$ison" != "" ]]
    then
        echo "略,早都安完了,$1"
        return 0
    fi

    echo "正在试 $1"
    msg=`code --install-extension $1 2>&1`
    echo "尝试 $1 结果: $msg"
    result=$(echo "$msg" | grep -P "TIME.*OUT | getaddrinfo.*NOT.*FOUND")
    if [[ "$result" != "" ]]
    then
        echo "网不好,再试: $1"
        return 1
    else
        echo "应该安装完了: $1"
        return 0
    fi
}

repeat tryin 13xforever.language-x86-64-assembly
repeat tryin aaron-bond.better-comments
repeat tryin abierbaum.vscode-file-peek
repeat tryin abusaidm.html-snippets
repeat tryin actboy168.lua-debug
repeat tryin adamhartford.vscode-base64
repeat tryin adamwalzer.string-converter
repeat tryin adashen.vscode-tomcat
repeat tryin AlanWalk.markdown-toc
repeat tryin alefragnani.Bookmarks
repeat tryin alefragnani.project-manager
repeat tryin annsk.alignment
repeat tryin auchenberg.vscode-browser-preview
repeat tryin austin.code-gnu-global
repeat tryin bajdzis.vscode-database
repeat tryin basdp.language-gas-x86
repeat tryin bbenoist.Doxygen
repeat tryin bbenoist.shell
repeat tryin berublan.vscode-log-viewer
repeat tryin bibhasdn.unique-lines
repeat tryin bierner.markdown-checkbox
repeat tryin bierner.markdown-emoji
repeat tryin bierner.markdown-preview-github-styles
repeat tryin bltg-team.masm
repeat tryin bradymholt.pgformatter
repeat tryin brunnerh.insert-unicode
repeat tryin chrisdias.vscode-opennewinstance
repeat tryin christian-kohler.npm-intellisense
repeat tryin christian-kohler.path-intellisense
repeat tryin chrmarti.regex
repeat tryin CoenraadS.bracket-pair-colorizer
repeat tryin Compulim.vscode-clock
repeat tryin cschlosser.doxdocgen
repeat tryin cssho.vscode-svgviewer
repeat tryin d9705996.perl-toolbox
repeat tryin dakara.transformer
repeat tryin danielpinto8zz6.c-cpp-compile-run
repeat tryin darkriszty.markdown-table-prettify
repeat tryin DavidAnson.vscode-markdownlint
repeat tryin dbaeumer.vscode-eslint
repeat tryin donjayamanne.python-extension-pack
repeat tryin DotJoshJohnson.xml
repeat tryin doublefint.pgsql
repeat tryin dsznajder.es7-react-js-snippets
repeat tryin dtsvet.vscode-wasm
repeat tryin eamodio.gitlens
repeat tryin earshinov.permute-lines
repeat tryin ecmel.vscode-html-css
repeat tryin EFanZh.graphviz-preview
repeat tryin eg2.vscode-npm-script
repeat tryin emilast.LogFileHighlighter
repeat tryin eriklynd.json-tools
repeat tryin esbenp.prettier-vscode
repeat tryin everettjf.filter-line
repeat tryin faustinoaq.lex-flex-yacc-bison
repeat tryin fcrespo82.markdown-table-formatter
repeat tryin florianloch.text-transform
repeat tryin formulahendry.auto-close-tag
repeat tryin formulahendry.auto-rename-tag
repeat tryin formulahendry.code-runner
repeat tryin formulahendry.vscode-mysql
repeat tryin geeklearningio.graphviz-markdown-preview
repeat tryin goessner.mdmath
repeat tryin gogocrow.webpack-snippets
repeat tryin GrapeCity.gc-excelviewer
repeat tryin Gruntfuggly.todo-tree
repeat tryin hars.CppSnippets
repeat tryin hdg.live-html-previewer
repeat tryin helixquar.asciidecorator
repeat tryin HookyQR.beautify
repeat tryin hoovercj.vscode-power-mode
repeat tryin IBM.output-colorizer
repeat tryin idleberg.emoji-code
repeat tryin ithildir.java-properties
repeat tryin James-Yu.latex-workshop
repeat tryin janisdd.vscode-edit-csv
repeat tryin jaycetyle.vscode-gnu-global
repeat tryin jebbs.plantuml
repeat tryin jeremyrajan.webpack
repeat tryin jerriepelser.copy-markdown-as-html
repeat tryin jock.svg
repeat tryin Kelvin.vscode-sshfs
repeat tryin keyring.Lua
repeat tryin kriegalex.vscode-cudacpp
repeat tryin liximomo.sftp
repeat tryin luggage66.AWK
repeat tryin magicstack.MagicPython
repeat tryin maptz.regionfolder
repeat tryin mechatroner.rainbow-csv
repeat tryin mhutchie.git-graph
repeat tryin Mikael.Angular-BeastCode
repeat tryin mitchdenny.ecdc
repeat tryin mohsen1.prettify-json
repeat tryin mrmlnc.vscode-apache
repeat tryin ms-python.python
repeat tryin ms-vscode-remote.remote-ssh
repeat tryin ms-vscode-remote.remote-ssh-edit
repeat tryin ms-vscode-remote.remote-ssh-explorer
repeat tryin ms-vscode.cmake-tools
repeat tryin ms-vscode.cpptools
repeat tryin ms-vscode.Theme-MarkdownKit
repeat tryin msjsdiag.debugger-for-chrome
repeat tryin msjsdiag.vscode-react-native
repeat tryin naco-siren.gradle-language
repeat tryin octref.vscode-json-transform
repeat tryin oijaz.unicode-latex
repeat tryin Pivotal.vscode-spring-boot
repeat tryin PKief.markdown-checkbox
repeat tryin pthorsson.vscode-jsp
repeat tryin qcz.text-power-tools
repeat tryin quicktype.quicktype
repeat tryin redhat.java
repeat tryin redhat.vscode-xml
repeat tryin RomanPeshkov.vscode-text-tables
repeat tryin ryu1kn.edit-with-shell
repeat tryin ryu1kn.partial-diff
repeat tryin ryu1kn.text-marker
repeat tryin sandcastle.whitespace
repeat tryin sensourceinc.vscode-sql-beautify
repeat tryin shakram02.bash-beautify
repeat tryin shinnn.stylelint
repeat tryin shuworks.vscode-table-formatter
repeat tryin sidthesloth.svg-snippets
repeat tryin SimonSiefke.svg-preview
repeat tryin sleistner.vscode-fileutils
repeat tryin slevesque.shader
repeat tryin sohibe.java-generate-setters-getters
repeat tryin Stephanvs.dot
repeat tryin stkb.rewrap
repeat tryin supakornras.asymptote
repeat tryin TabNine.tabnine-vscode
repeat tryin tangzx.emmylua
repeat tryin technosophos.vscode-make
repeat tryin tushortz.java-imports-snippets
repeat tryin tushortz.java-snippets
repeat tryin twxs.cmake
repeat tryin Tyriar.sort-lines
repeat tryin vincaslt.highlight-matching-tag
repeat tryin VisualStudioExptTeam.vscodeintellicode
repeat tryin vsciot-vscode.vscode-arduino
repeat tryin vscjava.vscode-java-debug
repeat tryin vscjava.vscode-java-dependency
repeat tryin vscjava.vscode-java-pack
repeat tryin vscjava.vscode-java-test
repeat tryin vscjava.vscode-maven
repeat tryin vscode-icons-team.vscode-icons
repeat tryin vscodevim.vim
repeat tryin whiteout2.x86
repeat tryin wmaurer.join-lines
repeat tryin xabikos.JavaScriptSnippets
repeat tryin xabikos.ReactSnippets
repeat tryin ybaumes.highlight-trailing-white-spaces
repeat tryin Yog.yog-plantuml-highlight
repeat tryin yzane.markdown-pdf
repeat tryin yzhang.markdown-all-in-one
repeat tryin zeithaste.cursorCharCode
repeat tryin zenor.makefile-creator
repeat tryin zh9528.file-size
repeat tryin Zignd.html-css-class-completion
repeat tryin zxh404.vscode-proto3

 

font

# 使mkfontscale和mkfontdir命令正常运行
sudo apt-get install ttf-mscorefonts-installer

# 使fc-cache命令正常运行
sudo apt-get install fontconfig

# 创建目录
/usr/share/fonts/myfonts

# 字体复制到文件夹
sudo cp ~/myfonts/* /usr/share/fonts/myfonts/  

# 修改字体文件的权限,使root用户以外的用户也可以使用
cd /usr/share/fonts/
sudo chmod -R myfonts 755

# 建立字体缓存
mkfontscale
# 如果提示 mkfontscale: command not found
# 在Ubuntu下运行如下命令
# sudo apt-get install ttf-mscorefonts-installer

mkfontdir
fc-cache -fv 
# 如果提示 fc-cache: command not found
# 在Ubuntu下运行如下命令
# sudo apt-get install fontconfig

 

remove topbar

#css修改,在文件末尾添加
/usr/share/gnome-shell/theme/ubuntu.css

#panel,#panel *{
height: 0px;
color: rgba(0, 0, 0, 0)
}

#重启

sudo echo "#panel,#panel *{" >> /usr/share/gnome-shell/theme/ubuntu.css
sudo echo "height: 0px;" >> /usr/share/gnome-shell/theme/ubuntu.css
sudo echo "color: rgba(0, 0, 0, 0)" >> /usr/share/gnome-shell/theme/ubuntu.css
sudo echo "}" >> /usr/share/gnome-shell/theme/ubuntu.css

 

git config

用户名 邮箱
查看配置信息
git config --list

全局配置
git config --global user.name "urn"
git config --global user.email "ure@mail.com"
git config --global color.ui auto

局部配置
git config  user.name "urn"
git config  user.email "ure@mail.com"

优先使用局部配置

 

posted @ 2020-08-05 11:06  fndefbwefsowpvqfx  阅读(192)  评论(0编辑  收藏  举报