~ overflow ~

Archive for March 5th, 2009

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!