[Share Experiences] Resolving Oracle VNC Desktop Black Screen Issue
Experiences and Insight 370 views · 0 replies ·
Cheryl7
Moderator
2024-10-30 03:10
Author
The following content is from user@HelloWorld!, Thanks for the sharing!
Step 1: Log in to the Oracle account
Open the terminal and log in to the Oracle account.
Navigate to the <span>.vnc</span> directory. If the <span>xstartup</span> file does not exist, create one and edit it with the following content:
<span>#!/bin/shunset SESSION_MANAGER</span>
<span>xrdb $HOME/.Xresources</span>
<span>xsetroot -solid grey</span>
<span>x-window-manager &</span>
<span>/etc/X11/Xsession</span>
<span>exec /etc/X11/xinit/xinitrc</span>
Step 2: Start VNC
In the terminal, run:
<span>oracle@deepin:~/.vnc$ tigervncserver</span>
Take note of the <span>:1</span> that appears, as it will be used later.
After that, use <span>vncviewer</span> to successfully connect to the desktop.
Step 3: Start<strong><span>dbca</span></strong>
If after running <span>dbca</span> you see the message "DISPLAY NOT SET," execute the following commands:
<span>oracle@deepin:~$ export DISPLAY=:1 # :1 is the VNC display number shown when you started VNC</span>
<span>oracle@deepin:~$ xhost +</span>
<span>access control disabled, clients can connect from any host # When this line appears, the setup is correct</span>
<span>oracle@deepin:~$ dbca # Run the dbca command</span>
The desktop will display the <span>dbca</span> graphical interface. If Chinese characters appear as boxes, you'll need to modify environment variables to fix this issue.
Step 4: Solution for Chinese Characters Displaying as Boxes
To resolve the issue of Chinese characters displaying as boxes, edit the <span>.bash_profile</span> file in Oracle's home directory.
In the terminal, run:
<span>oracle@deepin:~$ vim ./.bash_profile </span>
The following content is from user@HelloWorld!, Thanks for the sharing!
Step 1: Log in to the Oracle account
Open the terminal and log in to the Oracle account.
Navigate to the
<span>.vnc</span>
directory. If the<span>xstartup</span>
file does not exist, create one and edit it with the following content:<span>#!/bin/shunset SESSION_MANAGER</span>
<span>xrdb $HOME/.Xresources</span>
<span>xsetroot -solid grey</span>
<span>x-window-manager &</span>
<span>/etc/X11/Xsession</span>
<span>exec /etc/X11/xinit/xinitrc</span>
Step 2: Start VNC
In the terminal, run:
<span>oracle@deepin:~/.vnc$ tigervncserver</span>
Take note of the
<span>:1</span>
that appears, as it will be used later.After that, use
<span>vncviewer</span>
to successfully connect to the desktop.Step 3: Start
<strong><span>dbca</span></strong>
If after running
<span>dbca</span>
you see the message "DISPLAY NOT SET," execute the following commands:<span>oracle@deepin:~$ export DISPLAY=:1 # :1 is the VNC display number shown when you started VNC</span>
<span>oracle@deepin:~$ xhost +</span>
<span>access control disabled, clients can connect from any host # When this line appears, the setup is correct</span>
<span>oracle@deepin:~$ dbca # Run the dbca command</span>
The desktop will display the
<span>dbca</span>
graphical interface. If Chinese characters appear as boxes, you'll need to modify environment variables to fix this issue.Step 4: Solution for Chinese Characters Displaying as Boxes
To resolve the issue of Chinese characters displaying as boxes, edit the
<span>.bash_profile</span>
file in Oracle's home directory.In the terminal, run:
<span>oracle@deepin:~$ vim ./.bash_profile </span>
Add the following line to the file:
<span>export LANG=en_US.UTF-8</span>
Then reload the profile:
<span>oracle@deepin:~$ source ./.bash_profile</span>
At this point, when you open
<span>dbca</span>
, it will display in English and there will be no more character boxes.