赞
踩
基于1040d版本
配置网络和主机名
方法1:使用nmtui(步骤省略)
方法2:修改配置文件
- 配置网络:
-
- root@ispsrv:~# vi /etc/network/interfaces
-
- auto ens33
- iface ens33 inet static
- address 81.6.63.100
- netmask 255.255.255.0
- gateway 81.6.63.254
- dns-nameservers 127.0.0.1
-
- 修改主机名:
- root@ispsrv:~# hostnamectl set-hostname ispsrv
-
- root@ispsrv:~# vi /etc/hosts
-
- 127.0.0.1 localhost
- 127.0.0.1 ispsrv
-
- # The following lines are desirable for IPv6 capable hosts
- ::1 localhost ip6-localhost ip6-loopback
- fe00::0 ip6-localnet
- ff00::0 ip6-mcastprefix
- ff02::1 ip6-allnodes
- ff02::2 ip6-allrouters
配置本地源:
- root@ispsrv:~# mount /dev/sr0 /mnt
- mount: /mnt: WARNING: device write-protected, mounted read-only.
- root@ispsrv:~# vi /etc/apt/sources.list
-
- ## Generated by deepin-installer
- #deb https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
- #deb-src https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
- deb [trusted=yes] file:///mnt fou main
-
-
- root@ispsrv:~# vi /etc/apt/sources.list.d/appstore.list
-
- #deb https://enterprise-store-packages.chinauos.com/appstore eagle appstore
-
-
- root@ispsrv:~# apt update
- Get:1 file:/mnt fou InRelease
- Ign:1 file:/mnt fou InRelease
- Get:2 file:/mnt fou Release [1,578 B]
- Get:2 file:/mnt fou Release [1,578 B]
- Get:3 file:/mnt fou Release.gpg
- Ign:3 file:/mnt fou Release.gpg
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- All packages are up to date.
- root@ispsrv:~#

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。