Hello,
is there a way to run a graphical program via ssh/X forward with low quality, i.e. 16 bit mode/800x600 etc? Sometimes I need to run firefox/chrome from a remote server, and I would like, if possible, to run them not like it's 1024x768 or higher. I searched google, but nothing comes so far.
Thanks in advance.
On 09/05/2016 12:48 AM, Todor Petkov wrote:
is there a way to run a graphical program via ssh/X forward with low quality, i.e. 16 bit mode/800x600 etc? Sometimes I need to run firefox/chrome from a remote server, and I would like, if possible, to run them not like it's 1024x768 or higher. I searched google, but nothing comes so far.
vncserver is what I use. You can set the display size on the server and the quality is set by the client connection.
On 9/5/2016 11:05 AM, Samuel Sieb wrote:
On 09/05/2016 12:48 AM, Todor Petkov wrote:
is there a way to run a graphical program via ssh/X forward with low quality, i.e. 16 bit mode/800x600 etc? Sometimes I need to run firefox/chrome from a remote server, and I would like, if possible, to run them not like it's 1024x768 or higher. I searched google, but nothing comes so far.
vncserver is what I use. You can set the display size on the server and the quality is set by the client connection.
Hello,
thanks for the fast answer. The machine we are connecting and exporting the display, is a virtual machine, which is shared by several members of a team. They are travelling and sometimes the connection is not that fast, so I am looking for a way to decrease the quality of the exported display. For example, rdesktop has options "-g" and "-a", for geometry and colour depth respectively. I can not find such option for firefox/chrome, so I was looking for another way to control it, probably like a shell variable.
I will look into vncserver meanwhile.
Regards,
On 09/06/2016 03:52 AM, Todor Petkov wrote:
thanks for the fast answer. The machine we are connecting and exporting the display, is a virtual machine, which is shared by several members of a team. They are travelling and sometimes the connection is not that fast, so I am looking for a way to decrease the quality of the exported display. For example, rdesktop has options "-g" and "-a", for geometry and colour depth respectively. I can not find such option for firefox/chrome, so I was looking for another way to control it, probably like a shell variable.
You are confusing things a bit. Firefox and Chrome are the server side applications. They don't set the screen size or quality, they use whatever the X server is set to. And you definitely don't want to be running raw X protocol over a slow link! That's why you use something like rdesktop (RDP protocol) or VNC. With both of those, the server side part sets the geometry (screen size) and the remote user running the vnc or rdp client sets the quality that it wants. The server reduces the colour depth and compresses the data before sending it to the client.
When you start vncserver, you can pass it the "-geometry" option to set the screen size. For the client side, I use remmina. It handles almost all the remote viewing protocols and you can set the quality options that you want.
Methinks you are also confused - the browsers (and any other graphical app) are X clients to the X server - they make requests for resources (like geometry) to the X server which may or may not honour them. Otherwise what you say is ok :)
On 6 Sep 2016, at 18:08, Samuel Sieb samuel@sieb.net wrote:
On 09/06/2016 03:52 AM, Todor Petkov wrote: thanks for the fast answer. The machine we are connecting and exporting the display, is a virtual machine, which is shared by several members of a team. They are travelling and sometimes the connection is not that fast, so I am looking for a way to decrease the quality of the exported display. For example, rdesktop has options "-g" and "-a", for geometry and colour depth respectively. I can not find such option for firefox/chrome, so I was looking for another way to control it, probably like a shell variable.
You are confusing things a bit. Firefox and Chrome are the server side applications. They don't set the screen size or quality, they use whatever the X server is set to. And you definitely don't want to be running raw X protocol over a slow link! That's why you use something like rdesktop (RDP protocol) or VNC. With both of those, the server side part sets the geometry (screen size) and the remote user running the vnc or rdp client sets the quality that it wants. The server reduces the colour depth and compresses the data before sending it to the client.
When you start vncserver, you can pass it the "-geometry" option to set the screen size. For the client side, I use remmina. It handles almost all the remote viewing protocols and you can set the quality options that you want.
users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
On 09/06/2016 10:50 AM, Ntlworld wrote:
Methinks you are also confused - the browsers (and any other graphical app) are X clients to the X server - they make requests for resources (like geometry) to the X server which may or may not honour them. Otherwise what you say is ok :)
Yes and no. The geometry he was referring to in this case was the display size as far as I could tell. The rdp or vnc server is the X server. And yes, the browser can ask for graphical resources with different colour depth than the display, but that is also irrelevant in this case.
On 6 Sep 2016, at 18:08, Samuel Sieb samuel@sieb.net wrote:
On 09/06/2016 03:52 AM, Todor Petkov wrote: thanks for the fast answer. The machine we are connecting and exporting the display, is a virtual machine, which is shared by several members of a team. They are travelling and sometimes the connection is not that fast, so I am looking for a way to decrease the quality of the exported display. For example, rdesktop has options "-g" and "-a", for geometry and colour depth respectively. I can not find such option for firefox/chrome, so I was looking for another way to control it, probably like a shell variable.
I also use vncserver (note: it is tigervnc and tigervnc-server) there are a couple of others, but they are probable dependencies.
I would also recommend install the xfce desktop since it doesn't require the graphics and power of gnome3.
I generally use rc.local to start the vnc rather than the method using systemd.
In rc.local I put the following line runuser -l usersid -c 'vncserver :port -geometry 1280x1024'
The userid would be the login name that you want to use for the connection. port is the port you want to use. This is offset from 5900, which is the regular windows default port. Generally use a number from 10-99:
The geometry can be changed to whatever you want.
If you want to connect to the vnc using ssh, I've used stunnel to do this, but would have to look for the instruction. I had posted it on the stunnel site, but that was a long time ago. You would need to have it connect on the stunnel port and then have it to a local connect to the vnc port.
If you are using xfce you have to make changes to the xstartup in the users .vnc directory.
This is how I have it setup on one of my classroom machines #!/bin/sh
# Uncomment the following two lines for normal desktop: unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS exec /bin/sh /etc/xdg/xfce4/xinitrc # X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey #vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & startxfce4 & #twm &
The original one using twm instead of the startxfce
If you are using windows to connect, I find the tight vnc viewer works better. With linux the tigervnc is what I use.
On 5 Sep 2016 at 10:48, Todor Petkov wrote:
To: users@lists.fedoraproject.org From: Todor Petkov petkovptodor@gmail.com Subject: Question about export display Date sent: Mon, 5 Sep 2016 10:48:38 +0300 Send reply to: Community support for Fedora users users@lists.fedoraproject.org
Hello,
is there a way to run a graphical program via ssh/X forward with low quality, i.e. 16 bit mode/800x600 etc? Sometimes I need to run firefox/chrome from a remote server, and I would like, if possible, to run them not like it's 1024x768 or higher. I searched google, but nothing comes so far.
Thanks in advance.
users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
+----------------------------------------------------------+ Michael D. Setzer II - Computer Science Instructor Guam Community College Computer Center mailto:mikes@kuentos.guam.net mailto:msetzerii@gmail.com Guam - Where America's Day Begins G4L Disk Imaging Project maintainer http://sourceforge.net/projects/g4l/ +----------------------------------------------------------+
http://setiathome.berkeley.edu (Original) Number of Seti Units Returned: 19,471 Processing time: 32 years, 290 days, 12 hours, 58 minutes (Total Hours: 287,489)
BOINC@HOME CREDITS ABC 16613838.513356 | EINSTEIN 111289288.288695 ROSETTA 47957225.246853 | SETI 91073425.814269
On 09/05/2016 02:06 AM, Michael D. Setzer II wrote:
I generally use rc.local to start the vnc rather than the method using systemd.
In rc.local I put the following line runuser -l usersid -c 'vncserver :port -geometry 1280x1024'
One thing to be aware of in case you are also using a normal desktop on the computer. Closing the vnc server session may kill a lot of your desktop session as well. I didn't look into why this happens, but it may have been because I was starting the vnc server from within the existing session.
On 09/05/2016 12:48 AM, Todor Petkov wrote:
is there a way to run a graphical program via ssh/X forward with low quality, i.e. 16 bit mode/800x600 etc?
Generally, setting a resolution and bit depth are operations that you apply to a remote display with a root window, such as a standard RDP session. X11 applications don't have their own root window (and neither do "rootless" RDP applications), so you don't set bit depth or resolution for those.
Regardless, you're probably trying to make X11 applications over the network faster, and the problem there isn't (usually) the bit depth, it's that X11 applications require *lots* of round-trips with the X11 server, and when there's any significant latency involved, they become extremely slow. Working around that usually involves VNC or NX (NoMachine).