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

Ubuntu系统常用命令备忘

admin2年前 (2024-02-21)技术教程1985

安装时软件源改为清华源

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系统常用命令备忘” 的相关文章

Centos系统中SSD HDD硬盘读写性能压测命令

#ssd 压4k  fio -filename=磁盘盘符 -direct=1 -iodepth 128 -thread -rw=randrw -rwmixread=90 -ioengine=psync -bs=4K -size=10G -numjobs=100 -runtime=...

Dell R720服务器bios升级报错解决方法

Lifecycle Controller 未启用。 要启用 Lifecycle Controller,请重新引导服务器。 在 POST 期间,请按 F2 进入“系统设置”。 转到 iDRAC 设置-> Lifecycle Controller,选择“启用”,然后保...

查看ssh端口号_更改centos系统ssh连接端口号

查看ssh端口号_更改centos系统ssh连接端口号

1、修改ssh配置文件sshd_config[root@VM_0_10_centos ~]# vi /etc/ssh/sshd_config截图中红色框中的部分,建议先保留22端口号,然后新增自定义端口号2、防火墙放行[root@VM_0_10_centos ~]# firewall-cmd –zo...

No supported authentication methods available (server sent: publickey)

No supported authentication methods available (server sent: publickey)

1、putty登录出现如下报错:  2、解决方法, 修改配置文件, 重启ssh服务root@DESKTOP-1N42TVH:/home# vim /etc/ssh/sshd_config  重启ssh服务:root@DESKTOP-1N42...

HTML网页自动跳转代码整理

网页自动跳转代码方法很多,在这里专门为大家提供网页自动跳转代码方法,希望可以帮助到大家实现网页自动跳转。1、html网页跳转代码在网页头部<1head>…</head>之间插入以下代码<meta http-equiv="refresh"&n...

win10窗口最大化后无法拖动解决方法

win10窗口最大化后无法拖动解决方法

当关闭设置->多任务处理->贴靠窗口时,最大化窗口无法使用鼠标拖动当打开设置->多任务处理->贴靠窗口时,最大化窗口可以使用鼠标拖动,如切换屏幕等...