1753727 Members
4444 Online
108799 Solutions
New Discussion юеВ

Re: remote Xorg login

 
Go to solution
Geert Van Pamel
Regular Advisor
Solution

Re: remote Xorg login

You should *not* manually execute twm, it is run automatically from /usr/local/xrdp/startwm.sh when accessing the system from the "Remote Desktop Client".

Make sure that openssl-devel and pam-devel is installed. You should install versions compatible with your OS.

rpm -qa > /tmp/installed.txt

grep openssl-devel /tmp/installed.txt
...
openssl-devel-0.9.6b-29

grep pam-devel /tmp/installed.txt
...
pam-devel-0.75-40


Make sure that xrdp and Xvnc is properly installed, and running:

ls /usr/local/xrdp
ad256.bmp cursor1.cur libscp.so libxrdp.so sesman sesrun sestest Tahoma-10.fv1 xrdp256.bmp
cursor0.cur librdp.so libvnc.so libxup.so sesman.log sessvc startwm.sh xrdp xrdp_control.sh

Check that xrdp_control.sh and startwm.sh is available in the above directory.

Check that xrdp is a symbolic link in the /etc/init.d directory

ls -ld /etc/init.d/xrdp
lrwxrwxrwx 1 root root 31 Jun 24 10:20 /etc/init.d/xrdp -> /usr/local/xrdp/xrdp_control.sh

You should see the following menu when typing the command "service xrdp"

service xrdp
Usage: xrdp_control.sh {start|stop|restart|force-reload}

which Xvnc
/usr/bin/Xvnc

ps -ef |grep Xvnc
geertvp 27692 27690 0 Aug11 ? 00:00:01 Xvnc :10 -geometry 1280x800 -dep

Display :10 corresponds to 6000 + 10 = TCP port 6010, 6000 being the base X port number

grep 6000 /etc/services
x11 6000/tcp X # the X Window System

Terminal services should run:

nmap localhost
...
3389/tcp open ms-term-serv

netstat -l
...
tcp 0 0 *:x11-ssh-offset *:* LISTEN
tcp 0 0 *:3389 *:* LISTEN

netstat -ln
...
tcp 0 0 0.0.0.0:6010 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN

Edit the file /usr/local/xrdp/startwm and put the following commands at the top of the script:

twm&
xterm
exit 0

From the above and your last remark, I conclude that the xrdp startup script does not run correctly, and that possibly there is a problem with the Xvnc installation.

Please also verify the protection of all above mentioned files and directories.

Another problem that can block access is a local firewall.

Are you sure that KDE is correctly installed?? Try with Gnome, or with other options in the shell script /usr/local/xrdp/startwm.sh

You can also enable error logging for "xrdp start" troubleshooting:

vi /usr/local/xrdp/xrdp_control.sh
[old]
LOG=/dev/null
[new]
LOG=/tmp/xrdp.log
...
xrdp_start()
{
echo -n "Starting: xrdp and sesman . . "
./$XRDP >> $LOG
./$SESMAN >> $LOG
echo "."
sleep 1
return 0;
}

Then start xrdp again, and verify the log file:

service xrdp start

cat /tmp/xrdp.log

When everything works ok, you should see the display on the xterm terminal session:

echo $DISPLAY
:10.0

(could, and will certainly be another number on your system)
monu_1
Regular Advisor

Re: remote Xorg login

Thanks a lot.
Its working now but not displaying as same as of my server desktop.
Its dispaly TWM Icon Manager, VNC Config and terminal only.
is there any setting in configuration(resolution setting) to dispaly proper desktop?

Thanks,
MKS
Geert Van Pamel
Regular Advisor

Re: remote Xorg login

We are sure now that you have a working X-display and that xterm creates a virtual terminal. This proves that the basic functionality of Remote Desktop Server works.

Now you can try to edit the file /usr/local/xrdp/startwm.sh again and put one of the following commands at the top of the script (depending on whether you installed Gnome or KDE)

gnome-session
exit 0

kde
exit 0

startkde
exit 0
Rick Blalock
New Member

Re: remote Xorg login

I'm trying to accomplish this very thing myself, but my machine is running Slackware 12 and as far as I can see, pam-devel and openssl-devel are only available in RPM packages. Is there a way to install an RPM on a Slack machine?