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终端)