ECS Ubuntu图形界面使用笔记1
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终端)

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
ABAP Netweaver, SAP Cloud Platform和Kubernetes的用户区分
ABAP Dialog: Individual, interactive system access. System: Background processing and communication within a system (such as RFC users for ALE, Workflow, TMS, and CUA). Communication:Dialog-free communication for external RFC calls. Service: Dialog user available to a larger, anonymous group of users. Reference: General, non-person related users that allows the assignment
- 下一篇
基于阿里云SLB/ESS/EIP/ECS/VPC的同城高可用方案演练
基于阿里云SLB/ESS/EIP/ECS/VPC的同城高可用方案演练 今天基于阿里云SLB/ESS/EIP/ECS/VPC等产品进行了一次同城高可用方案演练: 基本步骤如下: 1. 在华东1创建VPC网络VPC1,在华东1可用区B和G各创建一个虚拟交换机vpc1_switch 和vpc1_switch_2_g; 2. 创建两个EIP,其中一个用于绑定到ECS上方便远程操作,另一个用于绑定到SLB上对外提供服务: 3. 在可用区G 创建一台ECS,同时将其中一个EIP绑定到该ECS上,远程登陆该ECS安装软件运行环境: 运行网站可以得到该ECS的内网IP: 4. 创建可用区G的这台服务器的镜像,用来作为模板新建ECS。 5. 使用自定义镜在可用区B 创建一台ECS,至此,我们在可用区B和G各有一台ECS。 6. 创建内网负载均衡SLB并绑定剩余的EIP: 7. 绑定SLB后端的服务器为可用区B和可用区G的 各1台服务器,设定80端口监控; 8. 检查负载均衡效果,使用负载均衡的EIP进行访问,通过IP看出,响应应该1:1分别来源于 可用区B和G的服务器,负载均...
相关文章
文章评论
共有0条评论来说两句吧...