- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: remote Xorg login
Operating System - Linux
1753727
Members
4444
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 03:12 AM
тАО08-12-2007 03:12 AM
Solution
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)
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2007 12:02 AM
тАО08-13-2007 12:02 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2007 08:53 AM
тАО08-13-2007 08:53 AM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2007 06:29 AM
тАО08-30-2007 06:29 AM
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?
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP