当前位置:首页 > 技术教程 > 正文内容

Ubuntu系统常用命令备忘

admin1年前 (2024-02-21)技术教程1152

安装时软件源改为清华源

sudo sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list

sudo sed -i "s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list

sudo apt update


开启root用户登录


设置root用户密码

sudo passwd root


启用root

sudo passwd -u root


修改文件

vim /etc/ssh/sshd_config

将以下代码注释

#PermitRootLogin prohibit-password


添加

PermitRootLogin yes

保存重启SSH服务

service ssh restart


安装显卡驱动

ubuntu-drivers devices

sudo ubuntu-drivers autoinstall


查看网卡速率

ethtool enp10s0

扫描二维码推送至手机访问。

版权声明:本文由59519发布,如需转载请注明出处。

本文链接:https://www.59519.com/?id=47

分享给朋友:

“Ubuntu系统常用命令备忘” 的相关文章

解决新版谷歌浏览器无法显示www/https(插件方式)

解决新版谷歌浏览器无法显示www/https(插件方式)

升级了谷歌浏览器(Google Chrome),升级后发现www部分和https://协议又被Google隐藏掉了,这次Google的做法比较粗暴,无法再通过chrome://flags/设置回来。经过了多方查找,最终只能通过Google提供的扩展插件来解决,如果你有更好的方法请留言给我!本文方法理...

ubuntu20.04 配置root登录和ssh root登录

ubuntu20.04 配置UI root登录和ssh root登录 一、开启root用户sudo passwd root二、修改配置文件 2.1sudo vi /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf增...

Centos开机提示Give root password for maintenance(or press Control-D to continue):

Centos开机提示Give root password for maintenance(or press Control-D to continue):

输入系统密码登录然后vim /etc/fstab,将挂在失败的逻辑卷从fstab中注释掉,然后再次执行mount -o remount,rw / mount -a reboot...

Ubuntu下安装nvidia驱动(详细)

使用下面命令搜索可用的驱动:ubuntu-drivers devices根据系统版本选择驱动安装驱动sudo apt install nvidia-driver-470安装完成后,输入nvidia-smi...

万兆交换机ZTE 5228F配置详解——Web控制台、VLAN、链路聚合LACP

万兆交换机ZTE 5228F配置详解——Web控制台、VLAN、链路聚合LACP

准备1. USB连接windows电脑(安装完驱动),rj45连接console口。2. 打开putty软件,连接方式选择Serial,Speed:9600,从windows的设备管理器里面可以看到打开的是那个COM口。操作putty连接成功后,按回车会看到欢迎界面,进入命令行。**********...