~ overflow ~

Tag: vnc

VNC clipboard transfer / Windows clipboard issues

by z3n on Oct.02, 2009, under Linux Happyness, Tips & Hints

Problem:

Windows clipboard stop working from nothing;

Windows <=> VNC (unix) not working;

Using alternate copy/paste keys/methods (ctrl/shift + insert, ctrl+x/v/c) will not help;

Solution:

vncconfig must be open on vnc server client

vncviewer must be configurated to allow clipboard transfers

If you are using Xvnc the default options for the server is to allow clipboard transfers, although you might want to check your config file to make sure it’s right (check man page link below).

You can also install autocutsel to check the debug and make sure it’s working.

On windows you might fall into clipboard issues, cleaning the clipboard at `clipbrd.exe` might not resolve the issue, sometimes  a program keeps the clipboard handler open,  making impossible to write data. There’s a little this program that detects that. You may also get the source code for it at code project link below.

Fun:

During the research on this, someone suggested that windows clipboard is a service and that by restarting it you would fix the problem.

Sources:

ObjectMix.com

XVnc Man page

CodeProject

Autocutsel

Leave a Comment :, , , , , , more...

Real VNC Viewer on Windows + VNC Server on Linux = Accent Issues

by z3n on Jun.05, 2009, under Linux Happyness

Problem:

Accents (á,à,ã,etc) not working on vnc viewer, for example:

instead of  á it shows  ”a (double ‘)

Solution:

I’ve been looking around for a long time to fix this issue, i haven’t found any relevant information about it.

So i decided to install a different VNC client program, turns out that TightVNC Fixed the issue.

Note that it will not work if you don’t configure your keyboard proprietly on linux, I write in portuguese and english, so as keyboard i have Generic International keyboard, as layout Brazil / Brazil.

Leave a Comment :, , , , , , , , more...

Running VNC on Local Display (X:0)

by z3n on Apr.24, 2009, under Linux Happyness

Problem:

Running a VNC server on a virtual display is easy but when it comes to emulate a logged session it’s a hell. I’ve been looking around and couldn’t find anything about “how to run vnc on local display” , “running vncserver on :0″ etc etc google has let me down.

Solution:

I’m using vnc-server 4.1.3-1.fc10 on my machine, however, this solution has been implemented a long time ago (apparently), but it’s obscure:

x0vncserver

Note that it will not have a good performance, at least not on my crappy machine, but it works…

Leave a Comment :, , , , more...

Fedora + VNC Server + Wine + Perfect Dark p2p

by z3n on Mar.05, 2009, under Linux Happyness

Problem:

Run perfect dark on a remote fedora/linux server

Solution:

You need to install a vncserver and wine (to emulate windows),

yum install wine-tools wine-capi wine-core wiwine-nas wine-twain wine-nas wine-cms wine-jack wine-ldap wine vnc-server vnc

then you configure the user(s) who will use the vnc server here:

vi /etc/sysconfig/vncservers

VNCSERVERS=”2:your_happy_user_name”
VNCSERVERARGS[2]=”-geometry 800×600 -nohttpd”

(note that the number 2 matches, if you need to add more users just change the array, note that when you connect you will need to change the display to match this number as well)

after that you need to configure the vncserver password on your user (do this logged as the user you will use on vnc) — the command is vncpasswd

alright now you’re ready to start the vnc server, you can either put it to start automatically or do it manually, i like it manually so know when it’s up:

service vncserver start

now on your client machine you open the vncviewer and connect to your server, remember that number 2 on the config file? it’s the display number, so you gonna connect to : example.com:2

there you go, now you just need to place perfect dark on your “drive_c” folder , which is at ~/.wine/drive_c/ then start it, by

cd ~/.wine/drive_c/Perfect_Dark/;wine ./perfect \dark.exe

don’t forget to configure your folders and the firewall. to view the japanese fonts you need to edit the visual.txt (if you don’t have it at mutagen folder, go on perfect dark options and click on generate mutagen) on visual.txt you will need to change:

“default font” = “MS Pゴシック”

“eye font” = “MS Pゴシック”

MS Pゴシック is the best font for perfect dark, it don’t get blurry or too small, however if you don’t have it you can use MS PGothic, which gets blurry but it’s readable.

if “MS Pゴシック” don’t work for you use “MS PGothic” instead, don’t forget that you need to upload the file msgothic.ttc (from your windows fonts) to ~/.wine/drive_c/windows/fonts/

this visual.txt is also in utf-16, so get yourself a good editor.

that’s it, also a last note, if you open perfect dark and it says “connected but port not open” even if you know you’re not behind a firewall, do this:

go settings and change the ports to a different number and press ok

magic! it’s working!!!

hahahah

Leave a Comment :, , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!