LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-30-2023, 08:01 PM   #1
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Rep: Reputation: 1
Krdc/Krfb remote desktop doesn't work


I have two PCs on the same LAN, both Debian 12 with KDE. I installed Krfb on one and Krdc on the other.

When I try to connect from the client, Krdc to the server Krfb, I get the popup on the server asking for permission to allow the connection. I confirm, and the client comes up again with the popup to enter the password, stating that "authentication failed". I tried Remmina as a client and same issue happen.

The two PCs don't have a firewall set up or any other security running. Running nmap against the server confirms that port 5900, the default for Krfb is listening. It should be a straightforward connection. The internet doesn't have much at all on something like this. Any ideas?
 
Old 12-31-2023, 12:09 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Works here... Are you using the right password? You're meant to use the one generated by KRFB, which shows in the window.

I did note that it doesn't work with blank/null passwords. You need to have a password in there.
 
Old 12-31-2023, 12:21 AM   #3
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Original Poster
Rep: Reputation: 1
Oh yes, I definitely used the exact password that Krfb generated, many times. Eventually I started experimenting with changing it but still no luck.

It's such a weird thing. Krdc sees the server right away when I start it, Krfb responds right away when I enter the password in Krdc, but then the connection just doesn't happen.
 
Old 12-31-2023, 12:48 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Are these physical machines or VMs?
 
Old 12-31-2023, 06:29 AM   #5
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Original Poster
Rep: Reputation: 1
2 physical machines next to each other.
 
Old 12-31-2023, 08:20 AM   #6
rufwoof
Member
 
Registered: Nov 2017
Distribution: Kernel+busybox+ssh+vnc+alsa (framebuffer)
Posts: 201

Rep: Reputation: Disabled
I don't use Debian, and instead use tigervnc. Install that from the repo, something like apt get tigergvnc on both systems. You might also like to install a light windows manager, apt get jwm perhaps.

On one, run vncserver :1
that will prompt for a password that must be at least 6 characters, that has to be entered twice.

Immediately thereafter kill that
vncserver -kill :1
and edit the newly created ~/.vnc folders xstartup to change the last line from twm to jwm (or whatever window manager).

Restart vncserver, but with no security
vncserver :1 -SecurityTypes none


On the same box, connect to that. vnc adds 5900 to whatever Display number you allocated, so 5901 in this case
vncviewer localhost:5901
and it should drop straight into a jwm windows desktop

From the other box I more usually set up a ssh tunnel
ssh -f -N -L 5900:localhost:5901 <ip of server>
and then run
vncviewer localhost

Going through the above might help to identify where the problem lay with your current setup/choice.
 
Old 02-18-2024, 09:10 AM   #7
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Original Poster
Rep: Reputation: 1
Just an update if anyone else has the same problem. I got it to work, partially...

After following the instructions at https://wiki.debian.org/PipeWire I can finally use Krdc to vnc into the Krfb server. The problem is that the display of the remote server is garbled and can't be used.

I then used Remmina as a client and the display works perfectly. The mouse works, but the keyboard doesn't work. It's a KDE bug according to this post: https://bugs.kde.org/show_bug.cgi?id=435338

Until Krfb is fixed, I'm experimenting with x11vnc.


EDIT: I just installed Gnome and removed KDE on the server. Gnome works fine with x11vnc and now I can remote without a single issue.

Last edited by zalmox; 02-18-2024 at 05:42 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't use left-hand mouse with krdc/krfb Woodsman Slackware 6 12-02-2013 12:45 PM
LXer: Simple KDE Trick #2: using remote desktops with avahi, krfb and krdc (with vide LXer Syndicated Linux News 0 10-22-2009 06:02 PM
krfb (remote desktop sharing) and mouse clicks crux19 Linux - Software 0 02-28-2007 01:00 PM
krdc remote desktop brianhall Linux - General 0 05-15-2006 07:54 AM
Remote admin of parents linux w/ krfb pH* Linux - General 1 01-02-2005 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration