LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-30-2014, 05:56 PM   #1
jcamez
LQ Newbie
 
Registered: Oct 2006
Location: Guaymas, Sonora, Mexico
Distribution: Slackware Stable
Posts: 23

Rep: Reputation: 1
KRDC not working after upgradng kde to 4.12.4


Hi guys...
After upgrading stock kde from slackware 14.1 to alien bob kde 4.12.4, krdc doesn´t work.
First, it showed an error about xfreerdp not being installed. I installed it from SBo and now doesn´t show the error, but when i try to connect to a remote server using rdp, it asks for the username and the password, but just stays in a blue screen. It fails to connect.
Anyone knows why this is happening?? It worked ok with stock kde 4.10.5.
Thanks in advance!!!

Last edited by jcamez; 04-30-2014 at 05:58 PM.
 
Old 05-01-2014, 08:10 AM   #2
Bertman123
Member
 
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380

Rep: Reputation: 77
If you're trying to connect to a windows server you'll need to type the domain name you are connecting to as well: domain-name\username and then type the password.
 
Old 06-23-2014, 10:12 AM   #3
jotapdiez
Member
 
Registered: Apr 2010
Location: -current
Distribution: Slackware
Posts: 47

Rep: Reputation: 2
I have the same issue.

After a lot of google searches, I made this:

With kdebugdialog I enabled debug for KRDC. After that, start KRDC from konsole and try to connect to anywhere. I get this error:

Code:
krdc(3242) MainWindow::loadAllPlugins: "### Plugin VNC found ###"
krdc(3242) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(3242) MainWindow::loadAllPlugins: # Description: "Allows managing VNC sessions through KRDC"
krdc(3242) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(3242) MainWindow::loadAllPlugins: # Sorting: 20
krdc(3242) MainWindow::loadAllPlugins: "### Plugin RDP found ###"
krdc(3242) MainWindow::loadAllPlugins: # Version: "1.0"
krdc(3242) MainWindow::loadAllPlugins: # Description: "Allows managing RDP sessions through KRDC"
krdc(3242) MainWindow::loadAllPlugins: # Author: "Urs Wolfer"
krdc(3242) MainWindow::loadAllPlugins: # Sorting: 60
krdc(3242) MainWindow::loadAllPlugins: "# Plugin Test found, however it's not activated, skipping..."
krdc(3242) RemoteDesktopsModel::RemoteDesktopsModel: Browsing for zeroconf hosts.
krdc(3242)/kdeui (kdelibs): Attempt to use QAction "remote_desktop_dockwidget" with KXMLGUIFactory! 
krdc(3242) MainWindow::updateActionStatus: -1
krdc(3242) MainWindow::tabChanged: 0
krdc(3242) MainWindow::updateActionStatus: 0
krdc(3242) main: ########## KRDC ready: 173 ms ##########
krdc(3242) MainWindow::newConnection: "Found plugin to handle url (rdp://Administrador@192.168.1.8): RdpView"
krdc(3242) MainWindow::tabChanged: -1
krdc(3242) MainWindow::updateActionStatus: -1
krdc(3242) MainWindow::tabChanged: 0
krdc(3242) MainWindow::updateActionStatus: 0
krdc(3242) MainWindow::tabChanged: 0
krdc(3242) MainWindow::updateActionStatus: 0
krdc(3242)/krdc (RDP backend) RdpView::start: Is LDAP login: false "Administrador"
krdc(3242)/kdeui (Wallet): The kwalletd service has been disabled 
krdc(3242)/kdeui (Wallet): The kwalletd service has been disabled 
krdc(3242)/kdeui (Wallet): The kwalletd service has been disabled 
krdc(3242)/kdeui (Wallet): The kwalletd service has been disabled 
krdc(3242)/kdeui (Wallet): The kwalletd service has been disabled 
krdc(3242)/kdeui (Wallet): The kwalletd service has been disabled 
krdc(3242)/krdc (RDP backend) RdpView::start: Starting xfreerdp with arguments: ("-g", "1280x1024", "-k", "0x0000040A", "-u", "Administrador", "-p", "asd", "-D", "-X", "67108911", "-a", "16", "-x", "l", "--ignore-certificate", "--plugin", "cliprdr", "-t", "3389", "192.168.168.168")
krdc(3242) MainWindow::statusChanged: -2
krdc(3242) MainWindow::statusChanged: -1
krdc(3242) MainWindow::statusChanged: 0
krdc(3242)/krdc (RDP backend) RdpView::receivedStandardOutput: receivedStandardOutput: "
FreeRDP - A Free Remote Desktop Protocol Implementation
See www.freerdp.com for more information

Usage: xfreerdp [file] [options] [/v:<server>[:port]]

Syntax:
    /flag (enables flag)
    /option:<value> (specifies option with value)
    +toggle -toggle (enables or disables toggle, where '/' is a synonym of '+')

    /v:<server>[:port]          Server hostname
    /port:<number>              Server port
    /w:<width>                  Width
    /h:<height>                 Height
    /size:<width>x<height>      Screen size
    /f                          Fullscreen mode
    /bpp:<depth>                Session bpp (color depth)
    /kbd:0x<layout id> or <layout name> Keyboard layout
    /kbd-list                   List keyboard layouts
    /kbd-type:<type id>         Keyboard type
    /kbd-subtype:<subtype id>   Keyboard subtype
    /kbd-fn-key:<function key count>    Keyboard function key count
    /admin                      Admin (or console) session
    /restricted-admin           Restricted admin mode
    /pth:<password hash>        Pass the hash (restricted admin mode)
    /client-hostname:<name>     Client Hostname to send to server
    /multimon                   Use multiple monitors
    /span                       Span screen over multiple monitors
    /workarea                   Use available work area
    /monitors:<0,1,2...>        Select monitors to use
    /monitor-list               List detected monitors
    /t:<title>                  Window title
    +decorations (default:off)  Window decorations
    +smart-sizing (default:off) Scale remote desktop to window size
    /a                          Addin
    /vc                         Static virtual channel
    /dvc                        Dynamic virtual channel
    /u:[<domain>\]<user> or <user>[@<domain>]   Username
    /p:<password>               Password
    /d:<domain>                 Domain
    /g:<gateway>[:port]         Gateway Hostname
    /gu:[<domain>\]<user> or <user>[@<domain>]  Gateway username
    /gp:<password>              Gateway password
    /gd:<domain>                Gateway domain
    /load-balance-info:<info string>    Load balance info
    /app:<executable path> or <||alias> Remote application program
    /app-name:<app name>        Remote application name for user interface
    /app-icon:<icon path>       Remote application icon for user interface
    /app-cmd:<parameters>       Remote application command-line parameters
    /app-file:<file name>       File to open with remote application
    /app-guid:<app guid>        Remote application GUID
    +compression (default:off)  Compression
    /compression-level:<level>  Compression level (0,1,2)
    /shell                      Alternate shell
    /shell-dir                  Shell working directory
    /sound                      Audio output (sound)
    /microphone                 Audio input (microphone)
    /audio-mode                 Audio output mode
    /multimedia                 Redirect multimedia (video)
    /network                    Network connection type
    /drive                      Redirect drive
    +drives (default:off)       Redirect all drives
    +home-drive (default:off)   Redirect home drive
    +clipboard (default:off)    Redirect clipboard
    /serial                     Redirect serial device
    /parallel                   Redirect parallel device
    /smartcard                  Redirect smartcard device
    /printer                    Redirect printer device
    /usb                        Redirect USB device
    +multitouch (default:off)   Redirect multitouch input
    +gestures (default:off)     Consume multitouch input locally
    /echo                       Echo channel
    /disp                       Display control
    +fonts (default:off)        Smooth fonts (ClearType)
    +aero (default:off)         Desktop composition
    +window-drag (default:off)  Full window drag
    +menu-anims (default:off)   Menu animations
    -themes (default:on)        Themes
    -wallpaper (default:on)     Wallpaper
    /gdi:<sw|hw>                GDI rendering
    /gfx                        RDP8 graphics pipeline (experimental)
    /rfx                        RemoteFX
    /rfx-mode:<image|video>     RemoteFX mode
    /frame-ack:<number>         Frame acknowledgement
    /nsc                        NSCodec
    /jpeg                       JPEG codec
    /jpeg-quality:<percentage>  JPEG quality
    -nego (default:on)          protocol securi"
krdc(3242)/krdc (RDP backend) RdpView::receivedStandardOutput: receivedStandardOutput: "ty negotiation
    /sec:<rdp|tls|nla|ext>      force specific protocol security
    -sec-rdp (default:on)       rdp protocol security
    -sec-tls (default:on)       tls protocol security
    -sec-nla (default:on)       nla protocol security
    +sec-ext (default:off)      nla extended protocol security
    /cert-name:<name>           certificate name
    /cert-ignore                ignore certificate
    /pcb:<blob>                 Preconnection Blob
    /pcid:<id>                  Preconnection Id
    /spn-class:<service class>  SPN authentication service class
    +credentials-delegation (default:off)       Disable credentials delegation
    /vmconnect:<vmid>           Hyper-V console (use port 2179, disable negotiation)
    -authentication (default:on)        authentication (hack!)
    -encryption (default:on)    encryption (hack!)
    -grab-keyboard (default:on) grab keyboard
    -toggle-fullscreen (default:on)     Alt+Ctrl+Enter toggles fullscreen
    -mouse-motion (default:on)  mouse-motion
    /parent-window:<window id>  Parent window id
    -bitmap-cache (default:on)  bitmap cache
    -offscreen-cache (default:on)       offscreen bitmap cache
    -glyph-cache (default:on)   glyph cache
    /codec-cache:<rfx|nsc|jpeg> bitmap codec cache
    -fast-path (default:on)     fast-path input/output
    /max-fast-path-size:<size>  maximum fast-path update size
    +async-input (default:off)  asynchronous input
    +async-update (default:off) asynchronous update
    +async-transport (default:off)      asynchronous transport (unstable)
    +async-channels (default:off)       asynchronous channels (unstable)
    /wm-class:<class name>      set the WM_CLASS hint for the window instance
    /version                    print version
    /help                       print help
    /play-rfx:<pcap file>       Replay rfx pcap file
    +auth-only (default:off)    Authenticate only.
    +auto-reconnect (default:off)       Automatic reconnection
    /reconnect-cookie:<base64 cookie>   Pass base64 reconnect cookie to the connection
    +print-reconnect-cookie (default:off)       Print base64 reconnect cookie after connecting
    +heartbeat (default:off)    Support heartbeat PDUs
    +multitransport (default:off)       Support multitransport protocol

Examples:
    xfreerdp connection.rdp /p:Pwd123! /f
    xfreerdp /u:CONTOSO\JohnDoe /p:Pwd123! /v:rdp.contoso.com
    xfreerdp /u:JohnDoe /p:Pwd123! /w:1366 /h:768 /v:192.168.1.100:4489
    xfreerdp /u:JohnDoe /p:Pwd123! /vmconnect:C824F53E-95D2-46C6-9A18-23A5BB403532 /v:192.168.1.100

Clipboard Redirection: +clipboard

Drive Redirection: /drive:home,/home/user
Smartcard Redirection: /smartcard:<device>
Printer Redirection: /printer:<device>,<driver>
Serial Port Redirection: /serial:<device>
Parallel Port Redirection: /parallel:<device>
Printer Redirection: /printer:<device>,<driver>

Audio Output Redirection: /sound:sys:alsa
Audio Input Redirection: /microphone:sys:alsa

Multimedia Redirection: /multimedia:sys:alsa
USB Device Redirection: /usb:id,dev:054c:0268

More documentation is coming, in the meantime consult source files

"
krdc(3242) MainWindow::disconnectHost:
krdc(3242)/krdc (RDP backend) RdpView::startQuitting: About to quit
krdc(3242) MainWindow::tabChanged: -1
krdc(3242) MainWindow::updateActionStatus: -1
krdc(3242) MainWindow::tabChanged: 0
krdc(3242) MainWindow::updateActionStatus: 0
In short, is trying to connect with this arguments:
Code:
"-g", "1280x1024", "-k", "0x0000040A", "-u", "Administrador", "-p", "asd", "-D", "-X", "67108911", "-a", "16", "-x", "l", "--ignore-certificate", "--plugin", "cliprdr", "-t", "3389", "192.168.168.168"
using xfreerdp and NOT rdesktop.

The arguments are wrong.
What is wrong? It should use rdesktop or xfreerdp and change the syntaxis?

I downloaded the krdc source code
Code:
# mkdir krdc_sources && cd krdc_sources && git init && git remote add origin git://anongit.kde.org/krdc && git fetch
and (on tag v4.13.1) it says:
Code:
    arguments << "-t" << QString::number(m_port);
    arguments << m_host;

    kDebug(5012) << "Starting xfreerdp with arguments:" << arguments;

    setStatus(Connecting);

    connect(m_process, SIGNAL(error(QProcess::ProcessError)), SLOT(processError(QProcess::ProcessError)));
    connect(m_process, SIGNAL(readyReadStandardError()), SLOT(receivedStandardError()));
    connect(m_process, SIGNAL(readyReadStandardOutput()), SLOT(receivedStandardOutput()));
    connect(m_container, SIGNAL(clientClosed()), SLOT(connectionClosed()));
    connect(m_container, SIGNAL(clientIsEmbedded()), SLOT(connectionOpened()));

    m_process->start("xfreerdp", arguments);
(rdp/rdpview.cpp lines 241 to 254)
 
Old 07-16-2014, 12:20 PM   #4
jotapdiez
Member
 
Registered: Apr 2010
Location: -current
Distribution: Slackware
Posts: 47

Rep: Reputation: 2
On kde 4.13.3 (alien compilation) KRDC works?
 
Old 09-24-2014, 02:16 PM   #5
MiRacLe
LQ Newbie
 
Registered: Sep 2014
Distribution: Slackware64-current
Posts: 4

Rep: Reputation: Disabled
Current (4.14.1) alien's packages - same problem with rdp:

Quote:
krdc(13660)/krdc (RDP backend) RdpView::start: Starting xfreerdp with arguments: ("-g", "800x600", "-k", "0x00000409", "-D", "-X", "67108897", "-a", "24", "--plugin", "rdpsnd", "--plugin", "rdpdr", "--data", "disk:media:/media", "--", "-x", "l", "--rfx", "--ignore-certificate", "--plugin", "cliprdr", "-t", "3389", "127.0.0.1")

Quote:
basename /var/log/packages/freerdp*
freerdp-20131115_ea18d2b-x86_64-1_SBo
Quote:
$ xfreerdp -h

Usage: xfreerdp [file] [options] [/v:<server>[ort]]

Syntax:
/flag (enables flag)
/option:<value> (specifies option with value)
+toggle -toggle (enables or disables toggle, where '/' is a synonym of '+')

/v:<server>[ort] Server hostname
/port:<number> ...
 
Old 11-06-2014, 11:05 AM   #6
jotapdiez
Member
 
Registered: Apr 2010
Location: -current
Distribution: Slackware
Posts: 47

Rep: Reputation: 2
The problem is with my installation/configuration or with the packages?
 
Old 11-06-2014, 03:11 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
The KDE 4.14.3 packages which are coming soon, I will apply a patch to krdc which should fix this issue. The cause seems to be that xfreerdp 1.1.0 and higher uses a different syntax than krdc expects.

Eric
 
Old 11-06-2014, 08:34 PM   #8
jotapdiez
Member
 
Registered: Apr 2010
Location: -current
Distribution: Slackware
Posts: 47

Rep: Reputation: 2
Thumbs up

Quote:
Originally Posted by Alien Bob View Post
The KDE 4.14.3 packages which are coming soon, I will apply a patch to krdc which should fix this issue. The cause seems to be that xfreerdp 1.1.0 and higher uses a different syntax than krdc expects.

Eric
Wow,thanks. I use KRDC a lot.
 
Old 11-13-2014, 05:54 AM   #9
MiRacLe
LQ Newbie
 
Registered: Sep 2014
Distribution: Slackware64-current
Posts: 4

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by Alien Bob View Post
The KDE 4.14.3 packages which are coming soon, I will apply a patch to krdc which should fix this issue. The cause seems to be that xfreerdp 1.1.0 and higher uses a different syntax than krdc expects.

Eric
Now it's works! Thank you!
 
Old 11-15-2014, 08:40 AM   #10
m-h
LQ Newbie
 
Registered: May 2010
Location: Hamburg, Germany
Distribution: Slackware
Posts: 16

Rep: Reputation: 9
Unfortunately the patch doesn't work properly. It may work with KRDC's standard settings, but for example if you set KRDC to not play sound on the local machine, it calls xfreerdp with these arguments:

Quote:
-decorations /w:1280 /h:800 /kbd:0x00000407 /u:user /parent-window:123733117 /bpp:16 udio-mode: /drive:media,/tmp /network:broadband /rfx /cert-ignore /clipboard /port:3389 /v:win1 /p:yourpassword
See "udio-mode:". I'm not sure, yet, if this is the only problem.

Personally I used xfreerdp 1.0.2 with KDE versions prior to 4.14.3, which worked fine. If someone is interested I could provide a small patch for the SlackBuilds script, to compile 1.0.2.

And if you don't want to enter username and password in KRDC, but instead get a login-screen from the remote machine to enter username and password, enter -sec-nla (--no-nla for xfreerdp 1.0.2) as additional argument. KRDC still asks for a username, but if you press escape or click on cancel you get a login-screen like with old KRDC/rdesktop versions.


By the way, you can easily check the arguments xfreerdp is called with by replacing /usr/bin/xfreerdp temporarily with the following script:

Code:
#!/bin/sh

echo $@ >/tmp/xfreerdp-args
Don't forget to chmod +x /usr/bin/xfreerdp. cat /tmp/xfreerdp-args then shows the arguments.

Mike
 
Old 11-15-2014, 08:55 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
I personally don't use krdc nor xfreerdp, so if there are additional patches to be applied to KDE that I missed, I'll gladly apply them.

Eric
 
Old 04-23-2015, 08:07 AM   #12
sberthelot
LQ Newbie
 
Registered: Feb 2012
Location: France
Distribution: Ubuntu
Posts: 15

Rep: Reputation: Disabled
Post

KDE 4.14.3 has been merged in current and RDP in KRDC doesn't work anymore.

I managed to compile FreeRDP (1.1.0_770c67d340 from git since older have issues with cmake 3.1+) and it seems it almost works.
KRDC devs are more to blame than maintainers since they rely on an unstable and apparently evolving tool to replace a known a stable one (even if not well maintained anymore).
Since they removed completely support for rdesktop we'll have to switch to FreeRDP in the future.

For now I'm using a recent git version (https://github.com/FreeRDP/FreeRDP/a...c67d340.tar.gz) and compiled with the script available on SBo.
When you launch a RDP session you have a box to add additional options, there I put
Code:
/sec:rdp
and it seems to work like before.

Hope it helps.

I'll try to ask rworkman to add FreeRDP in -current for KRDC to work "out-of-the-box" but I'm not sure the quality of upstream packages will be good enough
 
Old 10-25-2015, 07:57 AM   #13
nafea
LQ Newbie
 
Registered: Oct 2015
Posts: 1

Rep: Reputation: Disabled
Hi,
I've just installed a Slackware current from last month (September) with KDE 4.13.3 and found the same problem with KRDC i.e. that it reports:

"Could not start "xfreerdp"; make sure xfreerdp is properly installed."

Can anybody confirm if KDE 5 has the same issue?

Also, did KRDC not used to use rdesktop rather than xfreerdp? I can find rdesktop application within this version of current but no mention of xfreerdp.

Using rdesktop from the command line works fine.

nafea
 
Old 10-26-2015, 05:05 AM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Did you actually install a freerdp package? Slackware contains rdesktop but not freerdp. You will find a SlackBuild script on SBo.
KDE's Krdp program switched from using rdesktop to freerdp quite a while ago.
Slackware applies a patch to Krdc to make it work properly with recent versions of freerdp.
 
Old 11-24-2016, 04:08 PM   #15
kebeq
LQ Newbie
 
Registered: Nov 2016
Location: Czech Republic
Distribution: Slackware 14.2
Posts: 1

Rep: Reputation: Disabled
Same problem here with Slackware 14.2. It worked in Slackware 14.1. Both full installs.

I've compiled/installed the freerdp. The KRDC doesn't write the error anymore but the connection still doesn't work.
What works is running the xfreerdp directly.

Last edited by kebeq; 11-24-2016 at 04:40 PM.
 
  


Reply

Tags
alien, kde, krdc



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
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
Why krdc (KDE 4.1.2) cannot connect to vnc server (RealVNC) ? rangertang Slackware 0 10-29-2008 09:46 PM
KRDC in SuSE 10.3 not working like it did in 10.2 dougnc Linux - Software 1 02-26-2008 08:46 AM
krdc paul62 Mandriva 4 10-05-2006 10:29 PM
krdc VNC mattd7591 Linux - General 2 09-10-2006 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:38 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