Ubuntu sudo執(zhí)行安裝命令與配置
Ubuntu sudo已被廣泛應(yīng)用但是也在不斷的更新,這里介紹Ubuntu sudo安裝設(shè)置使用,幫助大家安裝更新Ubuntu sudo系統(tǒng)。Ubuntu 是一個完全以 Linux 為基礎(chǔ)的操作系統(tǒng), 可自由的獲得,并提供社區(qū)和專業(yè)的支持。
硬件: Dell Inspiron 1520, Intel® Core(TM)2 Duo CPU T7100 @ 1.80GHz (2CPUs), 2.0GB RAM
操作系統(tǒng): Windows Vista Home Premium (6.0, 版本 6001) 32-bit
虛擬機軟件: Sun VirtualBox 2.2.0 r45846
安裝源: ubuntu-9.04-desktop-amd64.iso
內(nèi)存大小: 512 MB
顯存大小: 64 MB
網(wǎng)絡(luò)模式: Bridged network
/dev/sda1: 512 MB swap
/dev/sda2: 9.3 GB ext4 /
安裝完畢,重新啟動虛擬機后開始配置
讓 Ubuntu sudo命令不用輸入密碼
首先執(zhí)行以下命令(該命令用來修改 /etc/sudoers 文件):
$ sudo visudo然后把 # %sudo ALL=NOPASSWD: ALL 一行開頭的 # 刪除,并移動到文件未尾,如下所示:
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)%sudo ALL=NOPASSWD: ALL然后再執(zhí)行以下命令:
$ sudo adduser `whoami` sudo
就可以了。
***步的作用是使隸屬于 Ubuntu sudo 組的用戶在執(zhí)行 sudo 命令時不需要輸入密碼。
第二步的作用是把你自己加入 Ubuntu sudo 組。
關(guān)閉屏幕保護程序
System –> Preferences –> Screensaver:
將 Activate screensaver when computer is idle 前面的復(fù)選框不選中。
配置網(wǎng)絡(luò)
System –> Preferences –> Network Connections
Wired –> Auto eth0 –> Edit –> IPv4 Settings
Method 改為: Automatic (DHCP) addresses only
DNS Servers 改為: 192.168.1.1
IP Address : 192.168.1.204
Broadcast Address: 192.168.1.255
Subnet Mask : 255.255.255.0
Default Route : 192.168.1.1
Primary DNS : 192.168.1.1
配置軟件源
System –> Administration –> 軟件源
Download from: Other –> Select Best Server
Download from: http://mirror.lupaworld.com/ubuntu
安裝虛擬機的增強功能
Sun VirtualBox –> 設(shè)備 –> 安裝增強功能
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install dkms
$ cd /media/cdrom0
$ sudo sh ./VBoxLinuxAdditions-amd64.run
重新啟動虛擬機
Ubuntu sudo安裝語言支持(中文)
System –> Administration –> Language Support
安裝完成后,再次重新啟動虛擬機。
【編輯推薦】