当前位置:   article > 正文

【UOS】配置网络 本地源_uos1040d下载

uos1040d下载

基于1040d版本

配置网络和主机名

方法1:使用nmtui(步骤省略)

方法2:修改配置文件

  1. 配置网络:
  2. root@ispsrv:~# vi /etc/network/interfaces
  3. auto ens33
  4. iface ens33 inet static
  5. address 81.6.63.100
  6. netmask 255.255.255.0
  7. gateway 81.6.63.254
  8. dns-nameservers 127.0.0.1
  1. 修改主机名:
  2. root@ispsrv:~# hostnamectl set-hostname ispsrv
  3. root@ispsrv:~# vi /etc/hosts
  4. 127.0.0.1 localhost
  5. 127.0.0.1 ispsrv
  6. # The following lines are desirable for IPv6 capable hosts
  7. ::1 localhost ip6-localhost ip6-loopback
  8. fe00::0 ip6-localnet
  9. ff00::0 ip6-mcastprefix
  10. ff02::1 ip6-allnodes
  11. ff02::2 ip6-allrouters

配置本地源:

  1. root@ispsrv:~# mount /dev/sr0 /mnt
  2. mount: /mnt: WARNING: device write-protected, mounted read-only.
  3. root@ispsrv:~# vi /etc/apt/sources.list
  4. ## Generated by deepin-installer
  5. #deb https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
  6. #deb-src https://enterprise-packages.chinauos.com/server-enterprise fou/1040 main contrib non-free
  7. deb [trusted=yes] file:///mnt fou main
  8. root@ispsrv:~# vi /etc/apt/sources.list.d/appstore.list
  9. #deb https://enterprise-store-packages.chinauos.com/appstore eagle appstore
  10. root@ispsrv:~# apt update
  11. Get:1 file:/mnt fou InRelease
  12. Ign:1 file:/mnt fou InRelease
  13. Get:2 file:/mnt fou Release [1,578 B]
  14. Get:2 file:/mnt fou Release [1,578 B]
  15. Get:3 file:/mnt fou Release.gpg
  16. Ign:3 file:/mnt fou Release.gpg
  17. Reading package lists... Done
  18. Building dependency tree
  19. Reading state information... Done
  20. All packages are up to date.
  21. root@ispsrv:~#

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/408477
推荐阅读
相关标签
  

闽ICP备14008679号