Results 1 to 2 of 2
Hi all,
Probably a simple one for most but I'm stuck!
I want to run vncviewer on my workstation without a window border and fullscreen on only 1 monitor (out ...
- 04-23-2011 #1Just Joined!
- Join Date
- Jul 2006
- Location
- Brisbane, Australia
- Posts
- 4
vncviewer not backgrounding in .sh script
Hi all,
Probably a simple one for most but I'm stuck!
I want to run vncviewer on my workstation without a window border and fullscreen on only 1 monitor (out of 4 available).
When this script runs, vncviewer starts, but execution does not continue to the next line (which converts it to fullscreen) until I close the vncviewer window. Then, of course, there is nothing for wmctrl to work with.Code:#!/bin/sh vncviewer teraserver:0 wmctrl -r "TightVNC: teraserver:0" -b add,fullscreen
I've tried:
andCode:#!/bin/sh vncviewer teraserver:0 & wmctrl -r "TightVNC: teraserver:0" -b add,fullscreen
but execution still does not pass to the 3rd line until I close the vncviewer window.Code:#!/bin/sh vncviewer teraserver:0 > outfile & wmctrl -r "TightVNC: teraserver:0" -b add,fullscreen
If I open 2 terminal screens, then (in the first terminal) run the command to show vncviewer, then switch to the second terminal, then run the command to alter the window properties for the viewer, it all works OK. However, this is a pain and I'm certain this can all be done in one script.
I am also unable to use
as this then fullscreens at the center of my X display (the center position of 4 monitors)Code:#!/bin/sh vncviewer -fullscreen teraserver:0
The remote display is the same resolution as the local display. At present, I have the vncserver scaling the image down slightly so I can see the whole remote display without vncviewer showing scrollbars.
I am running Linux Mint 10 KDE, Xinerama, NVidia driver, ummm, I'm probably missing something else here. I'm using the KDE window rules to place the app where it should go. If I use the "no border" window option, I get scroll bars on the vncviewer.
to sum up:
want viewer to be fullscreen on local display,
no window border,
no scrollbars.
Should be able to do all this if I can get script execution to proceed to the next line after loading vncviewer.
If anyone knows of a way to achieve this, I'm all ears! Please ensure, though, that YOU got it to work before suggesting I try it. Thanks.
If I have missed anything relevant, please ask!
- 05-05-2011 #2Just Joined!
- Join Date
- Jul 2006
- Location
- Brisbane, Australia
- Posts
- 4
SOLVED - but not the way I had hoped...
Hi all,
Found a workaround to my problem but did not manage to solve the original problem of being able to send vncviewer to process in the background. If anyone manages to work this one out, please let me know!


Reply With Quote