CubieTruck + Sharing an X11 desktop >
I did get things working successfully after some effort. The knowledge is in here but would need to be untangled to be useful to others.
I might have tested xtightvncviewer
Tested 2014-01-09 with:
- host: xrdp 0.5.0 on Lubuntu 1.00 on the cubietruck aka "Linaro"
-
FAIL - client: remmina 0.9.99.1 on Lubuntu 13.10
- It keeps attempting to connect to
192.168.0.1
, which is not what I'm specifying at the commandline!
- It keeps attempting to connect to
-
FAIL - client: rdesktop 1.7.1 on Lubuntu 13.10, updated recently.
rdesktop_into_cubietruck.sh ∞
I found a script lingering around. It let me pop into an IP I had hard-coded in, or specify whatever.
On the cubietruck ∞
My first attempt was to just install xrdp.
\apt-get install xrdp
Fail - It keeps attempting to connect to 192.168.0.1, which is not what I'm specifying at the commandline!
this thread gave me a hint, and I did this instead:
\sudo \apt-get remove xrdp tightvncserver \sudo \apt-get install tightvncserver \sudo \apt-get install xrdp
However, when I attempt to run it
\rdesktop 192.168.0.2
I get, within the GUI:
error - problem connecting
Fucking idiotic generic error messages..
The installation should also start it. If not, do
\xrdp
Learn a Linux computer's IP address
todo / notes ∞
- Try running
xrdp
twice, and there's a typo:
It looks like xrdp is already running,
remmina on the client computer - FAIL ∞
\sudo \apt-get install remmina
It keeps attempting to connect to 192.168.0.1, which is not what I'm specifying at the commandline!
rdesktop on the client computer - FAIL ∞
\sudo \apt-get install rdesktop
Use the IP address of the cubietruck. See Learn a Linux computer's IP address.
\rdesktop -f 192.168.0.2
It keeps attempting to connect to 192.168.0.1, which is not what I'm specifying at the commandline!
todo / notes ∞
more exploration ∞
\sudo \nano /etc/xrdp/xrdp.ini
change port:
[xrdp1] name=customsessionname lib=libvnc.so username=myusername password=ask ip=127.0.0.1 port=5912
\sudo \service xrdp restart
no change
\sudo \nano /etc/xrdp/startwm.sh
=> add exec /usr/bin/lxsession -s Lubuntu -e LXDE
=> deactivate #./etc/X11/Xsession
no change.
The previous stuff, where the port was -1, gave me more "stuff" so it feels closer to success.
reinstalling everything, I started to get (at the console)
\rdesktop 192.168.0.2
ERROR: recv: Connection reset by peer ERROR: send: Broken pipe
Thereafter, when attempting to run it, I get:
ERROR: 192.168.0.23: unable to connect
Restarting xrdp would claim the pid file was still there:
\sudo \rm /var/run/xrdp/xrdp.pid
During some attempts, I got xrdp 0.6.0, and now I'm getting 0.5.0.
Ok motherfucker, config files are being left around.
\sudo \apt-get remove xrdp tightvncserver \sudo \rm --force --recursive /etc/xrdp/ /var/run/xrdp/ \sudo \apt-get install tightvncserver \sudo \apt-get install xrdp
configuration files for tightvncserver? deleted this and reinstalled, no change:
~/.vnc/
(faq) no change attempting:
\rdesktop -n $( \hostname ) 192.168.0.2
Shit, I completely forgot about --purge
, this will remove the lingering configuration and maybe fix things.
\sudo \apt-get remove --purge tightvncserver xrdp \sudo \apt-get install tightvncserver \sudo \apt-get install xrdp
\rdesktop 192.168.0.2
.. this sortof works, I get further but then it just exits.
The fix is (source):
\sudo \nano /etc/xrdp/startwm.sh
#!/bin/sh if [ -r /etc/default/locale ]; then . /etc/default/locale export LANG LANGUAGE fi #. /etc/X11/Xsession \exec /usr/bin/lxsession --session=Lubuntu --de=LXDE
- rdesktop bug 361 - Black screen when switching from Full Screen to Window with xrdp.
-
.. there's supposed to be a companion bug filed by this submitter also for xrdp, but I haven't looked for it.
fixed notes ∞
(I don't think these are my notes)
I have three computers. One host and two clients.
I have xvnc and rdesktop working well.
From either client, I can start rdesktop and create a session. Disconnection and reconnection work fine, and their sessions resume correctly.
However, I do not know how to start a session on the first client and resume it on the second client. Is this even possible?
I've done a significant amount of googling and haven't even come across anyone else with this issue, so either I'm not using good terminology or this feature is not supported.
I can ssh into the machine, and see a session like so:
\ps alx | \grep -i Xvnc 4 1001 5159 5157 20 0 12668 10572 - R ? 12:06 Xvnc :10 -geometry 800x600 -depth 24 -rfbauth /home/user/.vnc/sesman_user_passwd -bs -ac -nolisten tcp
When I connect using a second client, that session list will increment (the notable change is in bold):
\ps alx | \grep -i Xvnc 4 1001 5159 5157 20 0 12668 10572 - R ? 12:47 Xvnc :10 -geometry 800x600 -depth 24 -rfbauth /home/user/.vnc/sesman_user_passwd -bs -ac -nolisten tcp 4 1001 5231 5229 20 0 7468 5352 poll_s S ? 0:00 Xvnc :11 -geometry 800x600 -depth 24 -rfbauth /home/user/.vnc/sesman_user_passwd -bs -ac -nolisten tcp
I have attempted to match the exact command line on a second computer
more notes ∞
I have no clue how to get Transmission/commandline running. I'm using xrdp/rdesktop for now:
rdesktop -n $(hostname) 192.168.0.11
xrdp/rdesktop copy/paste isn't working
(rebuild xrdp from source)
Midori segfaults
when xrdp already has stuff running, you can do this
- SSH in
-
DISPLAY=:10 midori
This will open it up in the rdesktop session
TODO - (write about this!)
check these out?:
- https://scarygliders.net/2011/11/17/x11rdp-ubuntu-11-10-gnome-3-xrdp-customization-new-hotness/
-
https://scarygliders.net/2012/06/20/x11rdp-o-matic-and-rdpsesconfig-version-2/
TODO - I don't know how to do an rdesktop from client1, then connect to that same session from client2. client2 just spawns its own session. (:10
incremented to :11
)
I see no hints in the man page. Searching has not helped.
rdesktop 192.168.0.11 -g800x420
Last updated 2023-04-05 at 16:53:02