In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to prepare oracle 11g vnc installation environment on azure cloud, the article is very detailed, has certain reference value, interested friends must read it!
1, first check whether the server has installed VNC service, no installation, check whether the server has installed VNC command is as follows
yum or rpm package 2 installation methods are under check:
[root@hch_test_pd_121_129 ~]# ps -eaf|grep vnc root 15895 15846 0 15:04 pts/1 00:00:00 grep vnc[root@hch_test_pd_121_129 ~]#[root@hch_test_pd_121_129 ~]# rpm -qa | grep vnc[root@hch_test_pd_121_129 ~]#
2, install vnc software
yum installation command:
yum install tigervnc tigervnc-server -y yum install -y libvncserver*
After installation, check:
[root@hch_test_pd_121_129 ~]# rpm -qa | grep vnc tigervnc-1.1.0-16.el6.centos.x86_64libvncserver-devel-0.9.7-7.el6_6.1.x86_64tigervnc-server-1.1.0-16.el6.centos.x86_64libvncserver-0.9.7-7.el6_6.1.x86_64[root@hch_test_pd_121_129 ~]#
3. Install gnome software
This is the component needed to generate the GUI lock:
yum install -y gnome* yum install libXfont -yyum install xorg-x11-xfs yum install xorg-x11-xfs-utils yum install xorg-x11-xinit yum install xorg-x11-xdm yum install xorg-x11-fonts*
4. Configure vncservers
Configure vnc servers, here shows the initial size of the desktop window for vnc remote connection to the server, the default is 800x600, you can also set it to your usual mode, such as 1280x960:
[root@hch_test_pd_121_129 ~]# vim /etc/sysconfig/vncservers VNCSERVERS="1:root"VNCSERVERARGS[1]="-geometry 800x600"
5, Set vncserver password
Set to yueworld, password must be set before starting vnc:
[root@hch_test_pd_121_129 ~]# vncpasswd Password:Verify:[root@hch_test_pd_121_129 ~]#
6, Start Stop vncserver
Start command servicevncserver start:
[root@hch_test_pd_121_129 ~]# service vncserver start Starting VNC server: 1:root xauthority: creating new authority file /root/.Xauthority New 'hch_test_pd_121_129:1 (root)' desktop is hch_test_pd_121_129:1 Creating default startup script /root/.vnc/xstartupStarting applications specified in /root/. vnc/xstartupLog file is /root/. vnc/hch_test_pd_121_129:1.log [OK][root@hch_test_pd_121_129 ~]#
Stop command servicevncserver stop:
[root@hch_test_pd_121_129 ~]# service vncserver stop Close VNC server: 1:root [OK][root@hch_test_pd_121_129 ~]#
Restart command servicevncserver restart:
[root@hch_test_pd_121_129 ~]# service vncserver restart Close VNC server: 1:root [OK] Starting VNC server: 1:rootNew 'hch_test_pd_121_129:1 (root)' desktop is hch_test_pd_121_129:1 Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/hch_test_pd_121_129:1.log [OK][root@hch_test_pd_121_129 ~]#
7. Configure xstartup command
Configure the/root/.vnc/xstartup command as follows:
[root@hch_test_pd_121_129 ~]# more /root/.vnc/xstartup #!/ bin/sh # Uncomment the following two lines for normal desktop:unset SESSION_MANAGERexec /etc/X11/xinit/xinitrc[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic term -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" twm &gnome-session &[root@hch_test_pd_121_129 ~]#
PS1:
If you are using gnome graphics interface, you need to comment out the following two lines,
xterm -geometry80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm &
And add the following line:
gnome-session &
PS2:
If the screen is black, the background log reports the following error:
Sat May 7 15:05:35 2016 vncext: VNC extension running! vncext: Listening for VNC connections on all interface(s), port 5901 vncext: created VNC server for screen 0/root/.vnc/xstartup: line 4: /etc/X11/xinit/xinitrc: No such file or directory/root/.vnc/xstartup: line 4: exec: /etc/X11/xinit/xinitrc: cannot execute: No such file or directory
Then go to the server to retrieve xinitrc, as follows:
[root@xxx rpms]# ll /etc/X11/xinit/xinitrcls: cannot access /etc/X11/xinit/xinitrc: No such file or directory[root@xxx rpms]# find / -name xinitrc[root@xxx rpms]#
The solution adopted is to comment out exec /etc/X11/xinit/xinitrc in/root/.vnc/xstartup, let vncserver select the default, and let vnc load the default graphical interface program.
8. Change xstartup permissions
This is a problem that many people tend to ignore, and it is also one of the reasons for the black screen after successful connection.
In CentOS, the xstartup file path is: /root/.vnc/(you can view the xstartup file path through locatexstartup)
So you need to execute chmod 777/root/.vnc/xstartup to grant permissions. Then restart vncserver.
9, Windows installation vnc viewer, Remote access
Install vnc client under windows, download address: http://pan.baidu.com/s/1skADLrZ; package name, RealVNC_cngr.rar, install it under windows, and then open it to start connecting. The connection address is displayed as follows, D:\study\csdn\0801.png:
After entering the password, enter "Application"-"System Tools"-"Terminal", drag the terminal to the desktop, double-click the terminal on the desktop, and you can start installing Oracle, as shown in D:\study\csdn\0802.png:
The above is "how to prepare oracle 11g vnc installation environment on azure cloud" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.