Last active
November 8, 2019 08:27
-
-
Save sxd1140/84157b3bf8a96ce354bf727989ceb0a8 to your computer and use it in GitHub Desktop.
[Linux]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://mirrors.tuna.tsinghua.edu.cn/ | |
/etc/apt/sources.list | |
https://mirrors.tuna.tsinghua.edu.cn/news/#oh-my-tuna | |
https://tuna.moe/oh-my-tuna/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ifconfig eth0 192.168.0.1 netmask 255.255.255.0 //临时 | |
nano /etc/network/interfaces | |
auto lo | |
auto eth0 #开机自动连接网络 | |
iface lo inet loopback | |
allow-hotplug eth0 | |
iface eth0 inet static #static表示使用固定ip,dhcp表述使用动态ip | |
address 192.168.1.243 #设置ip地址 | |
netmask 255.255.255.0 #设置子网掩码 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ca-certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /proc/version | |
uname -a | |
lsb_release -a | |
nano /etc/apt/sources.list | |
deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib | |
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ jessie main non-free contrib | |
yum groupinstall "Development Tools" | |
apt-get install build-essential |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/zyedidia/micro/releases/download/v1.4.1/micro-1.4.1-linux-arm.tar.gz --no-check-certificate | |
tar xzf micro-1.4.1-linux-arm.tar.gz | |
cd micro-1.4.1 | |
cp ./micro /usr/local/bin | |
apt-get install xclip | |
https://github.com/zyedidia/micro/releases/latest | |
curl https://getmic.ro | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://raw.githubusercontent.com/taaem/nodejs-linux-installer/master/node-install.sh 2>/dev/null | sh | |
npm config set registry https://registry.npm.taobao.org/ | |
npm config set disturl https://npm.taobao.org/dist/ | |
npm config set unsafe-perm true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano .bashrc | |
alias l='ls -lah --color' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano /etc/ssh/sshd_config | |
PermitRootLogin yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/sys/class/thermal/thermal_zone0/temp #cpu 温度 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
passwd 用户名 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dpkg-reconfigure tzdata | |
tzselect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment