Unable to get tight VNC working

If it doesn't relate to Debian, but you still want to share it, please do it here

Unable to get tight VNC working

Postby MaxTroy » 2020-01-21 11:21

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.
MaxTroy
 
Posts: 3
Joined: 2020-01-21 09:17

Re: Unable to get tight VNC working

Postby arochester » 2020-01-21 11:30

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/
arochester
 
Posts: 1611
Joined: 2010-12-07 19:55

Re: Unable to get tight VNC working

Postby MaxTroy » 2020-01-21 12:17

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?
MaxTroy
 
Posts: 3
Joined: 2020-01-21 09:17

Re: Unable to get tight VNC working

Postby arochester » 2020-01-21 12:32

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?
arochester
 
Posts: 1611
Joined: 2010-12-07 19:55

Re: Unable to get tight VNC working

Postby MaxTroy » 2020-01-21 12:48

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.
MaxTroy
 
Posts: 3
Joined: 2020-01-21 09:17


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable