ubuntu16 04優麒麟配置

2021-08-08 05:21:15 字數 2981 閱讀 6060

電腦壞了需要重新安裝linux虛擬機器,但是上次配置沒記錄下來,又需要查很多資料,這次就一勞永逸吧。

sudo gedit /etc/apt/sources.list
然後新增以下內容之一:

#阿里源(此行不複製)  

##測試版源

# 原始碼

##測試版源

# canonical 合作夥伴和附加

#中科大的源(此行不貼上)

.com/ubuntu precise-security multiverse

,然後:

sudo apt-get update

sudo apt-get install openssh-server

ifconfig//命令檢視ip位址並使用xshell連線。
sudo apt install vim//安裝vim
設定vim解決亂碼和行號問題

vim ~/.vimrc  

set fileencodings=utf-8,gb2312,gbk,gb18030

set termencoding=utf-8

set fileformats=unix

set encoding=prc

setnumber

ubuntu16 04配置網絡卡

第一步 檢視網絡卡資訊 輸入ifconfig命令檢視網絡卡資訊,下圖紅圈處就是網絡卡名稱。第二步 配置網絡卡檔案 注意 不同的linux系統,網絡卡配置檔案是不同的,這裡ubuntu的網絡卡配置檔案是 etc network inte ces。輸入下面命令進行編輯網絡卡檔案 sudo vi etc ...

ubuntu16 04配置網絡卡

第一步 檢視網絡卡資訊 輸入ifconfig命令檢視網絡卡資訊,下圖紅圈處就是網絡卡名稱。注意 不同的linux系統,網絡卡配置檔案是不同的,這裡ubuntu的網絡卡配置檔案是 etc network inte ces。輸入下面命令進行編輯網絡卡檔案 sudo vi etc network inte...

Ubuntu16 04配置網絡卡

配置網絡卡檔案 注意 不同的linux系統,網絡卡配置檔案是不同的,這裡ubuntu的網絡卡配置檔案是 etc network inte ces。輸入下面命令進行編輯網絡卡檔案 sudo vi etc network inte ces 預設的檔案內容如下 auto lo iface lo inet ...