1. http://ubuntuforums.org/showthread.php?t=259448
2. http://ubuntuforums.org/showthread.php?t=122402
What i need is to use vncserver to start kde when the user do remote desktop with vnc viewer client. IN my previous howto, i should login to kde first before i can do a remote desktop so this method will be no use if i put the server in host center and when the machine reboot, i couldn't manage to do a remote desktop to that server because kde/gnome desktop isn't activated.
I just copied this manual from the forum, just to prevent if sometimes the thread has been removed and i still have a copy in here :)
My vncserver setting a bit different since i only can see a grey window from the screen when i do the remote desktop. I use this command to run the vncserver:
This guide is very similar to the Gnome Ubuntu HOWTO, located here:
http://ubuntuforums.org/showthread.php?t=122402
I have borrowed a lot of the notes from that author, only changing things to work for Kubuntu users. Most of the credit for the info goes to the author of that post. If you are having problems, I strongly recommend browsing through that thread first.
This guide is intended for Kubuntu users, and details how to enable Xdmcp for your KDE session. It was written using Kubuntu 6.06 (i386) as a reference. In the steps, I use kate as the text editor, but you can use whatever editor you prefer. In reality I use vi, but most people don't know vi commands so I stick with kate in these examples.
Required packages:
To make sure you have the proper software installed, execute the following:
Type in a terminal:The latest versions are:Code:sudo apt-get install vnc4server xinetd xvncviewer
vnc4server: Xvnc Free Edition 4.1.1
xinetd: xinetd Version 2.3.14 libwrap loadavg
xvncviewer: VNC viewer version 3.3.7 - built Feb 20 2006 12:04:05
If you're using previous versions of any of these packages, there's no guarantee this will work. (Actually, there's no guarantee this will work anyway, but if you use versions below what I indicated, then you're just making it harder on yourself)
WARNING: Make sure you install vnc4server and NOT vncserver. These packages ARE different, and the latter will NOT work correctly.
Note to AMD64 users: The current version of vnc4server in the repositories has a bug, so you need to download and install the fixed vnc4 packages as shown below:THE STEPS:Code:wget http://qt1.iq.usp.br/download/vnc4server_4.0-7.3_amd64.deb
wget http://qt1.iq.usp.br/download/xvnc4viewer_4.0-7.3_amd64.deb
sudo dpkg -i vnc4server_4.0-7.3_amd64.deb
sudo dpkg -i xvnc4viewer_4.0-7.3_amd64.deb
1. ENABLE XDMCP IN KDE
Type in a terminal:At the very bottom of the file, you'll see this section:Code:sudo kate /etc/kde3/kdm/kdmrcChange it to look exactly like this:Code:[Xdmcp]
Enable=false
Willing=/etc/kde3/kdm/XwillingSave the file and quit. Then type this in your terminal:Code:[Xdmcp]
Enable=true
Port=177
Xaccess=/etc/kde3/kdm/Xaccess
Willing=/etc/kde3/kdm/XwillingThis is a big file and can be confusing, so make sure you do this exactly as shown. Scroll down and find this line:Code:sudo kate /etc/kde3/kdm/XaccessRemove the # from the beginning of that line, so it looks like this:Code:#* #any host can get a login windowThen find this line:Code:* #any host can get a login windowRemove the # from the beginning of that line, so it looks like this:Code:#* CHOOSER BROADCAST #any indirect host can get a chooserSave the file and quit out of KATE.Code:* CHOOSER BROADCAST #any indirect host can get a chooser
Now we need to restart the KDM process so it will re-read the configuration file. The easiest way to do this is to just reboot the machine. The quickest is to do the following:This will print out a list of processes with the letters 'kdm' in the name. Find the one that looks like the following (Specifically the one that ends in /usr/bin/kdm):Code:ps -ef | grep kdmSee the number right after root? 4530 in my example, you will almost certainly have a different number. That's the process ID or PID. Type the following command to restart kdm (Substituting the PID number you have for the 4530 in my example):Code:root 4530 1 0 0:09:20 ? 00:00:00 /usr/bin/kdmCode:sudo kill -HUP 4530
2. SET THE VNC PASSWORD
Type this in a terminal:Code:sudo vncpasswd /root/.vncpasswd
3. ADD VNC SERVICE TO XINETD
Type this in a terminal:Enter this in to the new file:Code:sudo kate /etc/xinetd.d/XvncI recommend leaving all of that code alone, but you can safely change the 1024x768 to be a bigger or smaller resolution for your Xvnc window, depending on what you want. You can also change the depth, but understand that increasing the depth bits will cause more bandwidth to be used over your network, which could slow down your VNC experience considerably.Code:service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd
port = 5901
}
4. RESTART XINETD
If the following code does not work, try rebooting:Don't worry if you see a message like "Xvnc: no process killed". This just means there was no open, active session of VNC running at the time. This is expected and is normal.Code:sudo /etc/init.d/xinetd stop
sudo killall Xvnc
sudo /etc/init.d/xinetd start
5. TEST
If you followed all of the above steps correctly, you should now be able to test your VNC server. Type the following in a terminal:You should be prompted for the VNC password, and then see the KDM login screen where you can login and start a new X session. If that works, you can now go ahead and try to connect from remote machine using your favorite VNC client (remember to first close the local vncviewer we started above). Remember to use the VNC server machine's domain name or IP address, followed by :1 (e.g. 192.168.0.100:1). If connecting locally as shown above works, but connecting remotely fails, then this means you have a problem with a firewall which is blocking some ports. See the notes below about how to deal with that.Code:vncviewer localhost:1
Note about ports: The VNC server set up as shown uses TCP port 5901. If you are using firewall software (e.g. firestarter) on that machine, you need to allow incoming connections on this port. If you are using a router which assigns your machine a private address (e.g. 192.168.0.100) which is not accessible from the internet, then you need to forward TCP port 5901 from the router to this machine.
Note about security: This setup allows any user to start an X-session remotely by logging in using his regular password (after starting the VNC connection using the VNC password), so if the user disconnects without logging out, any other user which knows the VNC password can connect afterwards and resume the same session that the first user started. So if you do not want to log out before disconnecting, it's advisable to at least lock your VNC X-session screen. Also note that while a remote user is connected thru VNC, no other connection will be accepted. An idle VNC client will be disconnected after one hour, but this can be changed by using the "-IdleTimeout" option in the server_args line in /etc/xinetd.d/Xvnc. For example, you can add "-IdleTimeout 300" to change it to 5 minutes.
reference links:
Gnome VNC howto: http://ubuntuforums.org/showthread.php?t=122402
Xdmcp in kdm: http://klomdark.servebeer.com:8081/M...px?MsgNum=1967
Good luck!
user # vncserver :0 -name kde -geometry 1024x768 -depth 16 -httpport 5800I need to run this vncserver on port 5900 so i should use :0 because my firewall only opened to this port.
)
3 comments:
Good day !.
You may , probably very interested to know how one can manage to receive high yields .
There is no initial capital needed You may begin to receive yields with as small sum of money as 20-100 dollars.
AimTrust is what you haven`t ever dreamt of such a chance to become rich
The company represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.
It is based in Panama with affiliates everywhere: In USA, Canada, Cyprus.
Do you want to become really rich in short time?
That`s your choice That`s what you really need!
I feel good, I started to get income with the help of this company,
and I invite you to do the same. If it gets down to select a proper partner who uses your savings in a right way - that`s it!.
I earn US$2,000 per day, and my first deposit was 1 grand only!
It`s easy to start , just click this link http://ilokowubi.kogaryu.com/wyjupon.html
and go! Let`s take our chance together to get rid of nastiness of the life
Hello !.
You may , perhaps curious to know how one can make real money .
There is no need to invest much at first. You may start to receive yields with as small sum of money as 20-100 dollars.
AimTrust is what you haven`t ever dreamt of such a chance to become rich
The company represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.
Its head office is in Panama with structures everywhere: In USA, Canada, Cyprus.
Do you want to become an affluent person?
That`s your choice That`s what you wish in the long run!
I feel good, I began to take up income with the help of this company,
and I invite you to do the same. It`s all about how to choose a proper partner who uses your funds in a right way - that`s the AimTrust!.
I earn US$2,000 per day, and my first investment was 500 dollars only!
It`s easy to join , just click this link http://etumegopa.digitalzones.com/uwaxel.html
and lucky you`re! Let`s take our chance together to become rich
Hi !.
You may , probably curious to know how one can make real money .
There is no need to invest much at first. You may commense to get income with as small sum of money as 20-100 dollars.
AimTrust is what you thought of all the time
AimTrust incorporates an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.
It is based in Panama with offices everywhere: In USA, Canada, Cyprus.
Do you want to become a happy investor?
That`s your chance That`s what you desire!
I`m happy and lucky, I began to get income with the help of this company,
and I invite you to do the same. If it gets down to choose a proper partner who uses your savings in a right way - that`s the AimTrust!.
I earn US$2,000 per day, and my first deposit was 1 grand only!
It`s easy to start , just click this link http://witecukut.builtfree.org/ucacyd.html
and lucky you`re! Let`s take this option together to get rid of nastiness of the life
Post a Comment