armbian开启ssh_armbian笔记

本文介绍了Armbian系统,它是为ARM开发板定制的轻量级Debian系统。通过`cat /etc/debian_version`等命令查看系统版本,利用`vi /etc/network/interfaces`配置静态IP,并使用`systemctl`管理网络服务。此外,还详细说明了如何安装SSH服务并修改配置以允许root登录。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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:~# 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 可能不管用,我直接重启的

开始玩吧

标签:查看,debian,笔记,armbian,网卡,etc,alip,linaro

来源: https://blog.csdn.net/yjkhtddx/article/details/109984169

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值