Skip to content

Instantly share code, notes, and snippets.

@sxd1140
Last active November 8, 2019 08:27
Show Gist options
  • Save sxd1140/84157b3bf8a96ce354bf727989ceb0a8 to your computer and use it in GitHub Desktop.
Save sxd1140/84157b3bf8a96ce354bf727989ceb0a8 to your computer and use it in GitHub Desktop.
[Linux]
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/
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 #设置子网掩码
apt-get install ca-certificates
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
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
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
nano .bashrc
alias l='ls -lah --color'
nano /etc/ssh/sshd_config
PermitRootLogin yes
/sys/class/thermal/thermal_zone0/temp #cpu 温度
passwd 用户名
dpkg-reconfigure tzdata
tzselect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment