vncviewer on windows connecting to linux box - windows

I'm just starting to use vncviewer and I'm having a problem resizing windows on the client side. For example firefox defaults to a small window and I can't resize it. I have tried the following. First of all server startup:
vncserver :6 -geometry 1024x768 &
for xterms this works but the font is too small and I can't change that:
xterm -geometry 160x50
for firefox this doesn't work:
firefox -height xx -width yy
the window remains too small and anchored top/left
So, how do I get firefox to be larger?
thanks,
Paul.
Update:
The particular linux box seems to have a pretty barebones install and a lot of utilities are missing so I just tried a few different things and this worked for firefox:
firefox -safe-mode
I'm not sure what's causing the problem but in safe mode the browser window is pretty close to fullscreen so that will work for me.

For xterm you also want to take a look at the -fn option. In a running xterm you can also use Ctrl plus the right mouse button to get a font menu.
Firefox appears to have not bothered with any useful options. You might be able to use something like wmctrl after the fact.

Related

Fullscreen 'commands/apps' causes window to grey out

I am getting a grey/white overlay when using commands that take up the entire terminal like nmon and bmon. The first image is iterm2 and the second is the base macos terminal app, both running nmon.
It is not the transparency settings as I have already disabled those, not sure what setting to change to fix this.

Inkscape export window not displaying??

I am trying to export a png with transparent background to use as a favicon. However when I am in Inkscape and use the "save as" option the background is not transparent. After looking around, people said I needed to export instead to get the transparent background.
The problem comes when I go into Inkscape and go to File>Export and then no window shows up. When I go to the launch view (view on mac where you can see all your open windows in one view) I can clearly see there IS an export window but it will not show up on my normal screen no matter what. It seems like it is showing up way to the left of my normal Inkscape window in the preview as well.
I am using a MacBook Air OS X 10.9.5 with Inkscape and XQuartz. I've had problems with installing XQuartz before and wonder if it's something I did wrong when installing? I am also using an attached external monitor to my MacBook Air but when I unplugged and only used my MacBook Air I still had the same problem.
Does anyone know how I can get the export window to show so I can export my files? Thanks for your help.
When I upgraded from 0.49 to the current 0.91 I have had the exact same problem. But just right now I realized that the "Export PNG Image" is a dock now, not a free window.
Seems to be a problem with my external monitor set up. Rebooted and tried again without the monitor plugged in and the main Inkscape window (with the graphics in it) showed up way to the right side (I could only see the very left edge of the window). This was enough to click on File>Export and it finally showed the Export window in the middle of my screen. Not sure what to do about a permanent fix though or why it's doing this.

Xvfb top-left adjustment

I have an X11 virtual frame buffer that I would like to run just one particular program in so that I can connect and disconnect from either my desktop or tablet without closing the program (and also without running a full desktop manager). Everything works great except the window top left of the window is off by a few hundred pixels each, is it possible to adjust this on an xvfb?
Screenshot:
Try starting your application with the option ‘-geometry WIDTHxHEIGHT+0+0‘ replacing WIDTH and HEIGHT with the screen size. See ‘man X‘ for a description of the -geometry option.
seems the issue was with not running a window manager, I thought you could get away with it, guess not!

Win7 screen resolution quick change

I want to be able to create a shortcut, hotkey, anything, to be able to switch between 2 (or more?) different screen resolutions (only on one of my screens - I work with win7 extended screen layout).
I've tried HotKey Resolution Changer v1.4 from http://www.howtogeek.com/howto/17604/change-desktop-resolution-with-a-keyboard-shortcut/ ,
but it works for me only for the first change and then crashes.
Any ideas?
Thanks,
I had stumbled on this issue when starting to use KVM with Windows 7. It keeps forgetting the resolution and it became a hassle to change it. Anyway, to the point:
Download Nircmd from here, extract it somewhere on your PC and create a desktop shortcut using Nircmd itself:
nircmd.exe cmdshortcut "~$folder.desktop$" "800x600x24" setdisplay 800 600 24
This will create a shortcut that will set the display mode to 800x600x24bit colors.
Hope it helps and not too late.
Asaf

Scrolling inside Vim in Mac's Terminal

I've been googling around trying to figure out if it's possible to use my mouse wheel to scroll while inside Vim in Mac's Terminal, with no luck. It seems as if only X11 or iTerm support this.
Before I give up, I thought I'd try the geniuses here to see if anyone knows a way to do this. So, does anyone know if I can set that up?
Or should I seriously consider using a different terminal application?
And if you're using iTerm, add this to your vimrc
:set mouse=a
http://bitheap.org/mouseterm/
Use MouseTerm (and do make sure to install SIMBL first!) and scrolling will work like a charm, even remote, using Mac Terminal.
You need to fully quit the Terminal application (Command+Q) and then launch it again after installing MouseTerm.
This is an old question, but a top hit on google, so I feel compelled to provide an updated answer.
Running OSX El Capitan 10.11, vim mouse and trackpad scrolling just worked(TM) for me in Terminal.app by default. However occasionally the mouse/trackpad input stopped manipulating the vim buffer, and started scrolling the terminal buffer. The answer was Command+R or Menu View --> Allow Mouse Reporting. Turning that on allowed the mouse/trackpad scroll operations to move the cursor in vim.
Termanal Menu > View > Allow Mouse Reporting
Terminal Menu > Preferences >
Keyboard > Scroll alternate screen
If the mouse functionalities still do not work properly take a look at my answer in this post How to let vim behave on Mac OS X as on Ubuntu?, just add to your .vimrc
set ttymouse=xterm2
You can read this article, but I'm pretty sure since the default terminal in Mac OS X has a built-in scrollbar, the mousewheel commands automatically go to it. You could definitely use gVim as suggested in the previous answer. I find that I don't generally want to use the mouse in Vim though as it takes my hands off the keyboard.
I just use 50j to go down and 50k to go up. Not exactly scrolling, but it works pretty well.
Make sure the terminal is xterm & not ansi in Terminal Menu > Preferences > Profiles > Advanced. I accidentally broke scrolling by changing the term type in a naive effort to get coloring to work over ssh.
Use gVim, which gives you a text editing environment in a window you can scroll. Terminal is not involved when using gVim.
I'm using xterm in X11 (XQuartz 2.3.4) and vim works very fine with mouse and also suport 256 colors.
Here is the ~/.Xresources I use to make my xterm nicer in X11:
XTerm*faceName: Lucida Sans Typewriter Regular
XTerm*faceSize: 9
XTerm*utf8: 1
xterm*saveLines: 1000
xterm*jumpScroll: true
!xterm*awaitInput: true
!xterm*multiScroll: true
XTerm*scrollBar: false
xterm*scrollbar*thickness: 16
xterm*rightScrollBar: true
XTerm*foreground: white
XTerm*background: grey10
!XTerm*background: black
XTerm*cursorColor: yellow
xterm*visualBell: false
xterm*loginShell: true
Little tips, to remove the bell sound in X11's xterm type this command:
xset b 0
I would recommend using iTerm - it has so many advantages over Terminal eg Mouse support, 256 colors, sensible copy and paste (auto-copy, word/url selection with double click, middle click paste)...
When using iTerm create a .vimrc file (if not already there) in your home folder and add the line:
:set mouse=a
Scrolling down in vim to view a file works after this.

Resources