View previous topic :: View next topic |
Author |
Message |
keivan n00b
Joined: 22 Nov 2010 Posts: 42
|
Posted: Wed Dec 28, 2011 8:20 am Post subject: xrdp: How to define monitor resolution? {Solved} |
|
|
I'm a xRDP user. I have configured my xRDP using this tutorial.
Everything work fine and I am able to connect to my Linux workstation using windows 7 RDP client (My laptop). xRDP startx to kde.
My MOST important problem is that:
Monitor of my laptop has native resolution of 1280*800. When I remote destop to kde, I see kde in a different (smaller) resolution. Is there a way to define screen resolution for xRDP or TigerVNC?
Last edited by keivan on Fri Dec 30, 2011 8:25 am; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21498
|
Posted: Wed Dec 28, 2011 11:16 pm Post subject: |
|
|
You can instruct a VNC server to use a particular geometry when you start it. However, unless it supports RandR, you cannot change it after it is running. |
|
Back to top |
|
|
keivan n00b
Joined: 22 Nov 2010 Posts: 42
|
Posted: Thu Dec 29, 2011 2:55 am Post subject: |
|
|
Please Tell me how to do that. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21498
|
Posted: Thu Dec 29, 2011 3:32 am Post subject: |
|
|
Aftering reading the first page of the fine manual, it looks like the -geometry option will do what you want. |
|
Back to top |
|
|
keivan n00b
Joined: 22 Nov 2010 Posts: 42
|
Posted: Thu Dec 29, 2011 6:28 am Post subject: |
|
|
I tried to find the manual of tigervnc but I can't find it. I tried
where is the manual? |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3921 Location: Hamburg
|
Posted: Thu Dec 29, 2011 9:06 am Post subject: |
|
|
keivan wrote: | I tried to find the manual of tigervnc but I can't find it. I tried
where is the manual? | Probably you need the USEe flag +doc for that package - otherwise an alternative didn't you look at the home page of tigervnc ? |
|
Back to top |
|
|
keivan n00b
Joined: 22 Nov 2010 Posts: 42
|
Posted: Thu Dec 29, 2011 4:58 pm Post subject: |
|
|
I think I should look for the manual of /etc/conf.d/tigervnc configuration file. It seems this configuration file is Gentoo specific and there is no -geometry option for this file. |
|
Back to top |
|
|
user Apprentice
Joined: 08 Feb 2004 Posts: 194
|
Posted: Thu Dec 29, 2011 10:34 pm Post subject: |
|
|
Hi keivan,
example needed?
Code: | # grep VNC_OPTS /etc/conf.d/tigervnc
VNC_OPTS="-depth 24 -geometry 2500x1400 -interface 127.0.0.1 -nolisten tcp" |
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21498
|
Posted: Thu Dec 29, 2011 11:17 pm Post subject: |
|
|
keivan wrote: | I tried to find the manual of tigervnc but I can't find it. I tried
where is the manual? | Since you want to affect the VNC server, man vncserver. Per convention, the manual page is named after the command that is executed, not the package that provides the command.
toralf wrote: | Probably you need the USEe flag +doc for that package | There is no USE=doc for net-misc/tigervnc. The manual page is always installed.
keivan wrote: | I think I should look for the manual of /etc/conf.d/tigervnc configuration file. It seems this configuration file is Gentoo specific and there is no -geometry option for this file. | Per convention, that file is just options used by /etc/init.d/tigervnc when it runs vncserver. The example given by user looks like it should work fine. |
|
Back to top |
|
|
keivan n00b
Joined: 22 Nov 2010 Posts: 42
|
Posted: Fri Dec 30, 2011 8:01 am Post subject: |
|
|
Thanks a lot. that example solved my problem. |
|
Back to top |
|
|
To Veteran
Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Mon Dec 10, 2012 11:23 pm Post subject: |
|
|
This doesn't work for me.
I have on /etc/conf.d/tigervnc
Code: | DISPLAYS="to:1"
VNC_OPTS="-depth 24 -geometry 1024x768" |
And on /home/to/.vnc/xstartup
Code: |
#!/bin/sh
XSESSION=Gnome
XDG_MENU_PREFIX=gnome-
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
|
And I endup with a screen 1.5 x over my screen connecting remotly and my screen is a 1650x1080 .... Any clues? _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
|
|