Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unable to get tight VNC working

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
MaxTroy
Posts: 3
Joined: 2020-01-21 09:17

Unable to get tight VNC working

#1 Post by MaxTroy »

Hi Forum,

Im a new linux user but have been an IT tech for 15 years now. Im pretty good with Windows but Linux is a whole new world.

Could I get some assistance with this please? Im totally stuck. I have been following guides etc and following the guides exactly. It seems that there is no single guide that gives 100% of the information so I have used bits and pieces from mulitple sources. Here is what I have done:

Kali GNU 2019.4
1. Login as root user
2. apt-get install update
3. apt-get upgrade
4. apt-get install xfce4 xfce4-goodies gnome-icon-theme tightvncserver
5. apt-get install tightvncserver
6. adduser vnc
7. apt-get install sudo
8. gpasswd -a vnc sudo
9. su - vnc
10. chmod 755 /home/vnc/.vnc/xstartup
11. chown vnc /home/vnc/.vnc/xstartup
12. chmod 755 /root/.Xauthority
13. chown vnc /root/.Xauthority
14. vncserver
15. nano .vnc/xstartup (add gnome-session & to the bottom of the file)
16. vncserver -kill :1
17. vncserver :1 -geometry 1280x720 -depth 24 -dpi 96 (same as desktop resolution but not sure about depth and dpi)

When starting the VNC server as the VNC user I get this:
Timeout in locking authority file /root/.Xauthority

When attempting to connect with the client I get "Unable to contact setting server could not connect: permission denied"

So I tried running vncserver as the root user. It doesn't error when starting but I just get a grey screen with a black X as the cursor.

Any suggestions on what I am missing please? Should tightvnc run OK as root? I read somewhere else that it won't run as the root user for security reasons.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Unable to get tight VNC working

#2 Post by arochester »

Kali GNU 2019.4 ?

Kali Linux Forums >>> https://forums.kali.org/
If you are looking for a Linux distribution to learn the basics of Linux and need a good starting point, Kali Linux is not the ideal distribution for you. You may want to begin with Ubuntu, Mint, or Debian instead. If you're interested in getting hands-on with the internals of Linux, take a look the "Linux From Scratch" project.
Source - https://www.kali.org/docs/introduction/ ... ali-linux/

MaxTroy
Posts: 3
Joined: 2020-01-21 09:17

Re: Unable to get tight VNC working

#3 Post by MaxTroy »

I need to use Kali as I am studying for security certs...

I figured Kali is built on Debian so this would be a good place to post this?

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Unable to get tight VNC working

#4 Post by arochester »

I figured Kali is built on Debian so this would be a good place to post this?
Kali Linux has its own Forums.
Would that not be better?

Start with Debian.
Add something.
Take something else away.
Change something else...
It's not Debian any more.

Your problem MIGHT relate to a remaining Debian part.
Or it MIGHT be specific to Kali Linux.
There are about 120 distros which are said to be "based" on Debian.
People who use the real, original Debian cannot be expected to know everything about these 120 "derivatives".
Should we answer questions about Ubuntu, because it is based on Debian, or should we point people to Ubuntu Forums?

MaxTroy
Posts: 3
Joined: 2020-01-21 09:17

Re: Unable to get tight VNC working

#5 Post by MaxTroy »

OK well I got it working!! After a day of tinkering about the solution was SOOO simple.

apt-get update && apt-get install -y x11vnc

Winner. Worked straight away. Lesson learned: Only use programs from the kali repository.

Post Reply