apt-get update
apt-get update時卡在 waiting for headers,等了好久,最後報出Hash Sum mismatch的錯誤
解決方法:
rm /var/lib/apt/lists/*
rm /var/lib/apt/lists/partial/*
apt-get update
apt-get install xinit
安裝圖形界面
atp-get install ubuntu-desktop
添加普通用戶:hadoop
sudo useradd -m hadoop -s /bin/bash
sudo passwd hadoop
sudo adduser hadoop sudo
hadoop用戶安裝vim
su hadoop
sudo apt-get update
sudo apt-get install vim
hadoop登陸圖形界面,安裝漢語支持
firefox無法正常啓動,嘗試:
sudo chown –R hadoop:hadoop ~/.mozilla/
sudo chown –R hadoop:hadoop ~/.cache/
安裝sougou拼音
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
sudo apt-get –f install
sudo apt-get install fcitx
sudo apt-get install fcitx-conffig-gtk
sudo apt-get install fcitx-table-all
sudo apt-get install im-switch (im-config)
sudo dpkg –i souguopinyin.deb
安裝VNC服務器並配置
apt-get install vnc4server
apt-get install xfce4
apt-get install xfce4如果安裝不上,就
apt-get update
apt-get upgrade更新一下,一般是沒有問題的
vi ~/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
#xrdb $HOME/.Xresources
#xsettroot -solid grey
#startxfce4&
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
sesion-manager & xfdesktop & xfce4-panel &
xfce4-menu-plugin &
xfsettingsd &
xfconfd &
xfwm4 &
1、關閉ubuntu的防火牆
ufw disable
開啓防火牆
ufw enable
2、卸載了iptables
apt-get remove iptables
3、關閉ubuntu中的防火牆的其餘命令
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
在VNC中使用xfce桌面無法打開終端解決方案
在 Settings Manager -> Preferred Applications 中重新設置默認終端
(設置->首選應用程序 實用程序:終端模擬器->X終端)