OnITRoad - 常见问题

Ubuntu Unable to find a suitable destination to install 32-bit compatibility libraries

Ubuntu Unable to find a suitable destination to install 32-bit compatibility libraries 问题 在Ubuntu 18.04系统上安装英伟达驱动报错: Unable to find a suitable destination to install 32-bit compatibility libraries

Views:0  2020-07-07

Ubuntu允许SSH root登录

Ubuntu允许SSH root登录 默认情况下,Ubuntu 14.04 Linux服务器禁止使用root用户进行ssh登录。 将提示类似于下面的消息: $ ssh root@10.1.1.12 root@10.1.1.12's password: Permission denied, please try again. root@10.1.1.12's password: 要允许roo

Views:0  2020-07-07

apt-get update cannot be used to add new CD-ROMs

apt-get update cannot be used to add new CD-ROMs 问题 使用apt-get或者其他一些GUI包管理应用程序在Ubuntu或者Debian Linux上安装新包时,会出现以下错误消息: W:Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416

Views:0  2020-07-07

apt update 和 apt upgrade有什么区别?

apt update 和 apt upgrade有什么区别? apt update apt更新 apt upgrade apt升级 apt update从所有配置的源(即在“/etc/apt/sources.list”中配置的源)下载包信息。这就是您的系统如何知道哪些软件包可用于升级,以及在何处检索该软件。 apt upgrade然后可以根据此信息将所有安装的软件包升级到其最新版本。此命令将仅升

Views:0  2020-07-07

bash 如何检查文件和目录是否存在

bash 如何检查文件和目录是否存在 $VAR1=''; if [ -d "${VAR1}" ]; then echo "Exists!"; fi $

Views:0  2020-07-07

使用LUKS加密Linux分区

使用LUKS加密Linux分区 安装cryptsetup debian/ubuntu $sudo apt-get install cryptsetup Centos/Fedora Centos # yum install crypto-utils cryptsetup-luks cryptsetup-luks-devel cryptsetup-luks-libs Fedora # dnf

Views:0  2020-07-07

bash c语言样式的for循环

bash c语言样式的for循环 bash简单的c风格的for循环: #!/bin/bash MAX=3 for ((i=1; i <= MAX ; i++)) ; do echo "$i" done bash for循环打印所有数组元素: #!/bin/bash ARRAY=( 'Debian Linux' 'Redhat Linux' 'Ubuntu Linux'

Views:0  2020-07-07

使用Macchanger Linux命令更改MAC地址

使用Macchanger Linux命令更改MAC地址 安装Macchanger 要在Ubuntu,Debian和Linux Mint上安装Macchanger: $sudo apt install macchanger 在CentOS,Fedora,Almalinux和Red Hat中安装Macchanger: $sudo dnf install macchanger 要在Arch Li

Views:0  2020-07-07

如何修改Ubuntu 20.04的系统语言

如何修改Ubuntu 20.04的系统语言 检查当前的系统语言设置。 $ locale 重新配置当前系统语言设置。 $ sudo dpkg-reconfigure 更改系统语言的Systemd特定命令是localectl(它允许更多配置选项)。 但是,使用dpkg-reconfigure命令更容易些,因为它也会自动下载所需的语言包,并直接为用户提供一个选项,以便一次设置新系统语言。 使用上下箭

Views:0  2020-07-07

如何查看debian版本

如何查看debian版本 最简单方法是查看/etc/issue文件 root@debian:~# cat /etc/issue Debian GNU/Linux 9 \n \l 但是,上面的命令可能不会显示当前的Debian更新点版本(update point releases)。 因此,我们可以使用以下Linux命令获得更准确的信息: root@debian:~# cat /etc/debia

Views:0  2020-07-07

在Ubuntu 20.04检查显卡驱动程序

在Ubuntu 20.04检查显卡驱动程序 检查当前使用的驱动程序: $ sudo lshw -c video 另一种方法可以使用Mesa Utils: $ sudo apt install mesa-utils $ glxinfo -B ubuntu查看显卡的型号 $ lspci -nn | grep -E 'VGA|Display' 或者 $ sudo lshw -c video

Views:0  2020-07-07

如何ping远程服务器的特定端口?

如何ping远程服务器的特定端口? 问题: 如何ping远程服务器的特定端口? 如何检查远程服务器上的端口是否打开。 解决方案 ping实用程序不允许我们在远程服务器上ping特定端口。 要查看特定端口是否在远程服务器上打开,我们可以使用诸如NMAP的端口扫描器,或者只需尝试使用Telnet连接到套接字(IP-Soundradort)。 在下面的示例中,我们测试主机Google.com上的

Views:0  2020-07-07

检查Linux Mint版本

检查Linux Mint版本 查看/etc/issue文件: $cat /etc/issue Linux Mint 19.1 Tessa \n \l 使用hostnamectl linux命令: $hostnamectl Static hostname: onitroad Icon name: computer-vm Chassis: vm

Views:0  2020-07-07

如何检查ZFS ZPool状态

如何检查ZFS ZPool状态 ZPool状态 使用zpool status命令可以查看zfs池的状态 jack@onitroad:~# zpool status pool: zfspool1 state: ONLINE status: The pool is formatted using an older on-disk format. The pool can st

Views:0  2020-07-07

在Ubuntu 20.04上找不到命令'curl'

在Ubuntu 20.04上找不到命令'curl' 报错信息: Command 'curl' not found, but can be installed with: OR bash: /usr/bin/curl: No such file or directory 首先尝试安装curl命令。 $ sudo apt install curl 如果找不到curl命令,请检查curl二进制可执行

Views:0  2020-07-07

在Ubuntu 20.04上找不到命令'make'

在Ubuntu 20.04上找不到命令'make' 错误信息: Command 'make' not found, but can be installed with: OR bash: /usr/bin/make: No such file or directory 首先尝试安装make命令。 $ sudo apt install make 或者安装整个开发包Build-enginence,

Views:0  2020-07-07