armbian笔记
armbian什么鬼
来自百度百科:
Armbian是轻量级的Debian系统和为ARM开发板专门发行并重新编译的Debian系统(Ubuntu派生自Debian)。
怎么查看系统版本
命令 cat /etc/debian_version
linaro-alip:~# cat /etc/debian_version
9.9
命令 cat /etc/issue
linaro-alip:~# cat /etc/issue
Debian GNU/Linux 9 \n \l
命令 cat /etc/os-release
linaro-alip:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
装然工具软件也行,# apt-get install -y lsb-release
此处略过
linaro-alip:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
命令uname -a
linaro-alip:~# uname -a
Linux linaro-alip 4.4.103 #45 SMP Wed Dec 27 13:53:46 CST 2017 aarch64 GNU/Linux
命令arch
linaro-alip:~# arch
aarch64
命令 dpkg
linaro-alip:~# dpkg --print-architecture
armhf
查看网卡
查看全部网卡
linaro-alip:~# ls /sys/class/net/
eth0 lo
查看虚拟网卡
linaro-alip:~# ls /sys/devices/virtual/net
lo
查看物理网卡
linaro-alip:~# ls /sys/class/net/ | grep -v "`ls /sys/devices/virtual/net/`"
eth0
配置网络
vi /etc/network/interfaces
内容
auto lo
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
查看网络服务名称
linaro-alip:~# systemctl list-units --type=service | grep net
networking.service loaded active exited Raise network interfaces
systemd-networkd.service loaded active running Network Service
重启它
systemctl restart networking.service
systemd-networkd.service 什么鬼。。。
改源
清华源连接 (直接对Debain的源)
注意选版本
https://mirrors.tuna.tsinghua.edu.cn/help/debian/
cd /etc/apt/
sudo cp sources.list sources.list.bk
# 修改sources.list内容
sudo apt-get update
安装SSH服务端
sudo apt-get install -y openssh-server
安装ssh服务
sudo vim /etc/ssh/sshd_config
修改ssh配置
PermitRootLogin yes
开启root登录
passwd root
修改root密码
systemctl restart ssh.service
可能不管用,我直接重启的