ubuntu1804系统设置在哪里_ubuntu1804安装后设置
安装ubuntu系统1804(注意有live和不带live的版本,本次用不带live的版本)
注意开始默认为NAT模式
ubuntu默认以普通用户身份登陆,切换到root
ubuntu切换到root用户,使用su root命令去切换到root权限,此时会提示输入密码
,可是怎么也输不对,提示“Authentication failure”
此时有两种情况一个是密码真的错了,另一种就是刚安装好的Linux系统,没有给root设置密码
解决办法:给root 用户设置密码,输入命令: sudo passwd root,输入密码,并确认密码
重新输入命令:su root,然后输入密码,便可切换到root权限了
返回普通用户exit,或者使用命令su username
修改配置文件默认登陆为root账户登陆
修改配置文件vim /etc/ssh/sshd_config
#PermitRootLogin prohibit-password #找到此项修改如下
PermitRootLogin yes
#UseDNS no #找到此项去掉注释,修改如下
UseDNS no
修改主机名
hostnamectl set-hostname ubuntu1804
Ubantu网络配置
网卡名称:
默认ubantu的网卡名称和Centos7类似,如:ens33,ens38等
修改网卡名称为传统命名方式:(最好在装系统时就改好,在安装界面输入net.ifnames=0 biosdevname=0)
修改配置文件为下面形式
vi /etc/default/grub
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
生效新的grub.cfg文件
grub-mkconfig -o /boot/grub/grub.cfg #Centos里面是grub2
重启reboot
官方文档
https://help.ubuntu.com/lts/serverguide/network-configuration.html.zh-CN
配置自动获取IP(注意缩进格式)
cat /etc/netplan/01-netcfg.yaml
network
version: 2
renderer: networkd
ethernets:
ens33:
dhcp4: yes
修改网卡配置文件后需执行命令生效:netplan apply
配置静态IP:
cat /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
192.168.56.64/24
10.20.156.23/24
gateway4: 192.168.56.1
nameservers:
search: [mydomain,otherdomain]
addresses: [114.114.114.114]
查看IP和gateway
ip addr
route -n
查看DNS
ls -l /etc/resolv.conf
systemd-resolve --status
同步时间
sudo apt-get update??
Ubuntu最小化没有selinux,不用关闭
没有防火墙,验证一下
systemctl disable firewalld
systemctl disable iptables
清空防火墙规则iptables -F
iptable -vnL查看
更改为阿里云的yum源
vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
sudo apt-get update更新apt源
[c:\~]$ Connecting to 192.168.247.64:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-29-generic x86_64)
System information disabled due to load higher than 2.0
234 packages can be updated.
117 updates are security updates.
通过Xshell远程链接后如下
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
/usr/bin/xauth: file /root/.Xauthority does not exist
root@ubuntu-torrent:~#
ubuntu1804系统设置在哪里_ubuntu1804安装后设置相关推荐
- PostgreSQL 10.1 手册_部分 III. 服务器管理_第 16 章 从源代码安装_16.5. 安装后设置...
16.5. 安装后设置 16.5.1. 共享库16.5.2. 环境变量 16.5.1. 共享库 在一些有共享库的系统里,你需要告诉你的系统如何找到新安装的共享库.那些并不是必须做这个工作的系统包括 F ...
- 在RHEL6.0 X64系统中安装oracle 11g数据库及安装后设置
前提条件: 1.查看系统版本 [root@server ~]#cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.1 ( ...
- Debian10Standard无网络安装后,设置静态IP,安装openssh-server 221024记录
Debain各版本 bd cd dvd iso 归档下载地址 - Debian CDs/DVDs archive - http://cdimage.debian.org/cdimage/archive ...
- MXLinux 安装后设置
最近MXlinux更新了中国源,下载速度超快,于是就有了这篇文章,抛砖引玉吧 MXLinux 安装后调教 XFCE面板 更换最快的源 选择Repo Manager,点开后,更换最快的源 安装完成后执行 ...
- ubuntu1804系统设置在哪里_Ubuntu1804(Server 版) 安装及使用
Ubuntu1804(Server 版) 安装及使用 1 系统安装操作步骤 OS Version:1804 镜像下载: http://cdimage.ubuntu.com/releases/ 1.1 ...
- ubuntu1804系统设置在哪里_Ubuntu1804(Server版)安装及使用
1 系统安装操作步骤 OS Version:1804 镜像下载:http://cdimage.ubuntu.com/releases/ 1.1 选择安装语言: 1.2 安装界面选择第一项进行系统安装 ...
- Linux新安装后设置root密码
linux在安装过程中未设置root密码 导致在使用中无法su 解决方法是设置root密码: 输入: sudo passwd root [sudo] password for you: -> 输 ...
- ubuntu1804系统设置在哪里_ubuntu1804修改IP地址方式及脚本
sed -rn '/((2(5[0-5]|[0-4][0-9]))|[0-1]?[0-9]{1,2})(\.((2(5[0-5]|[0-4][0-9]))|[0-1]?[0-9]{1,2})){3}/ ...
- manjaro安装php,manjaro 安装后设置
我使用的是manjaro-xfce桌面环境 设置时区 sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 排列中国区域的源 sudo pa ...
最新文章
- Linux系统及编程期末试题,《LINUX系统及其编程》考试试题及答案.doc
- 计算机发展趋势是规格化,2016年春季计算机应用基础月考卷(4月).doc
- Leetcode题解(十三)
- 数据:以太坊Gas价格较月初下降45%
- 使用System Center Essentials 2007进行软件部署
- eclipse-java-2018-09-win32-x86_64配置tomcat(内含更新eclipse,如何解决添加时找不到最新tomcat版本)...
- 光盘显示0字节可用_AT89C2051单片机开发点钞机外接显示屏
- 拓端tecdat|R语言对股票风险“溃疡指数”( Ulcer Index)曲面图可视化
- vue返回上一页面时回到原先滚动的位置
- 挑战程序设计竞赛2 算法与数据结构 笔记
- Java 多线程编程基础(详细)
- oracle下载,linux版本的oracle数据库下载
- 黑马程序员——Java基础知识——泛型、枚举
- MATLAB神经网络工具箱的使用——Neural Net Fitting app
- 证明彼得森图不是平面图
- 8种隔夜食物千万不要吃
- 辽宁移动cm201-2机顶盒把720P输出强制修改为1080P输出的方法
- 数量金融学(8):Markowitz均值-方差模型(2)
- 广域网(WAN)简介
- 解决了新版微信个人收款二维码在H5网页里不能长按识别支付