- 將自己帳號加入sudoer名單
su root #(獲得root權限)
chmod +w /etc/sudoers
vi /etc/sudoers
加入 帳號名 ALL=(ALL) ALL
後退出vi
chmod -w /etc/sudoers
exit #(退出root權限)
- 自動上網
sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
更改 ONBOOT=no
為 ONBOOT=yes
- 匯入數位簽章
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
- 新增EPEL到軟體倉庫/匯入數位簽章
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -Uvh epel-release-6*.rpm
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
- 新增Remi到軟體倉庫/匯入數位簽章
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm
sudo vi /etc/yum.repos.d/remi.repo
更改 enabled=0
為 enabled=1
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
- 更新系統
sudo yum update
- Guest Additions
裝置>插入GuestAdditionsCD映像 完成後, 共享資料將出現在 /media 下
sudo vi /etc/group
在 vboxsf:x:492:
後新增自己帳號
接著建立一個simbolic link連到共享資料夾
ln -s /media/共享資料夾 [任選的地方]
- 安裝文泉驛微米黑字型>設為終端機, 瀏覽器字體
sudo yum install wqy-mircohei-fonts
- 安裝Adobe Reader
wget http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i486linux_enu.rpm
sudo yum install nspluginwrapper.i686 libcanberra-gtk2.i686 gtk2-engines.i686 PackageKit-gtk-module.i686
sudo yum localinstall AdbeRdr9.5.5-1_i486linux_enu.rpm
- 安裝Dejavu Viewer
sudo yum install djview4
- 安裝壓縮格式
sudo yum install unrar p7zip p7zip-plugins
- 調整檔案管理
系統>偏好設定>檔案管理>運作方式:總是以瀏覽視窗開啟
ref: https://unix.stackexchange.com/questions/61892/install-minimal-desktop-on-centos-6-3
-
# yum groupinstall basic-desktop desktop-platform x11 fonts
-
# vi /etc/inittab
Then change id:3:initdefault:
to id:5:initdefault:
# reboot
ref1: https://www.centos.org/forums/viewtopic.php?t=47088
ref2: https://dokuwiki.tachtler.net/doku.php?id=tachtler:centos_7_-_minimal_desktop_installation
-
# yum groupinstall "X Window System"
-
# yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
-
# unlink /etc/systemd/system/default.target
-
# ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
-
# reboot
ref1: https://luppeng.wordpress.com/2017/07/17/enabling-virtualbox-host-only-adapter-on-mac-os-x/
-
Create a new virtual network interface (VirtualBox 5.2.X)
Launch VirtualBox and click on “File > Host Network Manager” on the Menu Bar (Or press “Command” + “W” )
Click on the “Create” button in the Host Network Manager window
This will create a host-only network called “vboxnet0”
Select if you want this Host-only network to have DHCP Server enabled
Close the Host Network Manager Window
-
Change the adapter type of your virtual machine
Settings.> Enable an adapter (Host-only Adapter) and attach it to vboxnet0.