armbian笔记

编程知识 更新时间:2023-04-27 05:25:01

armbian笔记

文章目录

  • armbian笔记
    • armbian什么鬼
    • 怎么查看系统版本
    • 查看网卡
      • 查看全部网卡
      • 查看虚拟网卡
      • 查看物理网卡
    • 配置网络
    • 改源
    • 安装SSH服务端
    • 开始玩吧

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/"
SUPPORT_URL="https://www.debian/support"
BUG_REPORT_URL="https://bugs.debian/"

装然工具软件也行,# 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/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 可能不管用,我直接重启的

开始玩吧

更多推荐

armbian笔记

本文发布于:2023-04-20 13:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/b835073f8600d6b73880cba2e07b1886.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:笔记   armbian

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 90140文章数
  • 23301阅读数
  • 0评论数