[Share Experiences] Resolving Oracle VNC Desktop Black Screen Issue
Experiences and Insight 713 views · 0 replies ·
Cheryl7
Moderator
2024-10-30 11: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 .vnc directory. If the xstartup file does not exist, create one and edit it with the following content:
#!/bin/shunset SESSION_MANAGER
xrdb $HOME/.Xresources
xsetroot -solid grey
x-window-manager &
/etc/X11/Xsession
exec /etc/X11/xinit/xinitrc
Step 2: Start VNC
In the terminal, run:
oracle@deepin:~/.vnc$ tigervncserver
Take note of the :1 that appears, as it will be used later.
After that, use vncviewer to successfully connect to the desktop.
Step 3: Startdbca
If after running dbca you see the message "DISPLAY NOT SET," execute the following commands:
oracle@deepin:~$ export DISPLAY=:1 # :1 is the VNC display number shown when you started VNC
oracle@deepin:~$ xhost +
access control disabled, clients can connect from any host # When this line appears, the setup is correct
oracle@deepin:~$ dbca # Run the dbca command
The desktop will display the dbca 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 .bash_profile file in Oracle's home directory.
In the terminal, run:
oracle@deepin:~$ vim ./.bash_profile
Add the following line to the file:
export LANG=en_US.UTF-8
Then reload the profile:
oracle@deepin:~$ source ./.bash_profile
At this point, when you open dbca, it will display in English and there will be no more character boxes.
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
.vncdirectory. If thexstartupfile does not exist, create one and edit it with the following content:#!/bin/shunset SESSION_MANAGERxrdb $HOME/.Xresourcesxsetroot -solid greyx-window-manager &/etc/X11/Xsessionexec /etc/X11/xinit/xinitrcStep 2: Start VNC
In the terminal, run:
oracle@deepin:~/.vnc$ tigervncserverTake note of the
:1that appears, as it will be used later.After that, use
vncviewerto successfully connect to the desktop.Step 3: Start
dbcaIf after running
dbcayou see the message "DISPLAY NOT SET," execute the following commands:oracle@deepin:~$ export DISPLAY=:1 # :1 is the VNC display number shown when you started VNCoracle@deepin:~$ xhost +access control disabled, clients can connect from any host # When this line appears, the setup is correctoracle@deepin:~$ dbca # Run the dbca commandThe desktop will display the
dbcagraphical 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
.bash_profilefile in Oracle's home directory.In the terminal, run:
oracle@deepin:~$ vim ./.bash_profileAdd the following line to the file:
export LANG=en_US.UTF-8Then reload the profile:
oracle@deepin:~$ source ./.bash_profileAt this point, when you open
dbca, it will display in English and there will be no more character boxes.