新裝Ubuntu後的配置

2021-09-26 21:39:56 字數 651 閱讀 4671

1.使用putty遠端登入ubuntu時出現network error:connection refused

按ctrl+alt+t開啟終端

輸入 sudo apt-get install openssh-server 安裝ssh伺服器

/etc/ssh/sshd_config 配置問題:perrootlogin 選項,將 no 改為 yes

2.為root使用者設定密碼(新安裝的系統)

按ctrl+alt+t開啟終端

輸入 sudo passwd root 為使用者設定密碼

輸入當前使用者密碼

輸入兩次新設定密碼(root使用者)

輸入su root後輸入密碼進入root使用者

輸入su 「username」後輸入密碼進入username使用者

3.檢查更新

按ctrl+alt+t開啟終端

輸入 sudo apt-get update 檢查

4.安裝apache

sudo apt-get install apache2

5.啟停用防火牆

ufw enable

ufw disable

6.防火牆開啟80埠

sudo ufw allow 80

sudo ufw delete allow 80

Linux新裝後配置聯網步驟

1 修改網絡卡資訊 etc sysconfig network scripts ifcfg eth0 vi etc sysconfig network scripts ifcfg eth0 將onboot no改為onboot yes 將nm controlled yes改為nm controlle...

ubuntu新裝的root密碼

ubuntu裝完後沒有root密碼,必須要自己手動設定乙個 給root使用者設定密碼需要如下命令 sudo passwd q root 回車後會出現讓你輸入原始密碼,新密碼和確認密碼,sudo password for you 輸入你的密碼 你現在這個使用者的密碼 不回顯 enter new uni...

ubuntu 16 04 LTS 新裝配置指南

因為深度學習訓練需要,新裝一台ubuntu 16.04 lts,原電腦已有一塊固態硬碟 500g機械硬碟,新配了一塊1t的機械硬碟。參考文章 win10開機無法進入系統,始終卡在轉圈圈這步,怎麼辦?裝windows linux雙系統後開機無法進入windows解決辦法 18.04螢幕複製 xrand...