Page 1 of 1

Starting Dude on Linux upon boot

Posted: Fri Aug 08, 2008 5:45 am
by iam8up
Has anyone come up with a solution to start the Dude server so all you have to do is reboot the server? I would like to put my Dude server (that is running CentOS and Gnome) in a rack and not have to get some sort of head to it just to start Dude.

I tried using an init script and /etc/rc.local but when invoked by root from the init stage $DISPLAY is empty so wine doesn't know where to put the window for Dude.

If the command is executed from the GUI terminal it works perfectly fine, but I don't know how to automate anything like that. Has anyone figured this one out?

Re: Starting Dude on Linux upon boot

Posted: Tue Aug 12, 2008 4:08 pm
by Torin
Hi

Little faq:

edit /etc/inittab:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

edit /etc/X11/xdm/Xsetup_0:

# run dude
/usr/bin/wine /root/.wine/drive_c/Program\ Files/Dude/dude.exe --server &

Work fine ;)

Torin

Re: Starting Dude on Linux upon boot

Posted: Tue Aug 19, 2008 8:13 pm
by iam8up
I found a solution already. The above post won't work, I don't believe.

Dude requires to run from wine. Wine requires X. While root is going though init.d it has no X interface to output what is necessary for Dude =/

Re: Starting Dude on Linux upon boot

Posted: Thu Aug 28, 2008 6:00 pm
by digicomtech
And what is the solution you have found and does it work ... ?

Re: Starting Dude on Linux upon boot

Posted: Fri Aug 29, 2008 4:00 am
by iam8up
Half way at this point.

It will automatically login with my custom user, and will start The Dude. However, it is unable to ping anything (local problem). I used the GUI in the System menu on CentOS 5.

The user itself can ping from the shell (probably a GUI app, if there is one) so I know it isn't a permissions issue. I haven't had any time to work on this, but I will post when I get it figured out.

Re: Starting Dude on Linux upon boot

Posted: Thu Oct 23, 2008 5:50 am
by iam8up
Solved by using RouterOS instead of a Linux distro.

Re: Starting Dude on Linux upon boot

Posted: Fri Jun 04, 2010 9:44 am
by idzole32
thx, solved by running under administrator previledged :)

Re: Starting Dude on Linux upon boot

Posted: Sat Nov 20, 2010 5:37 pm
by HellMind
The best way is using xvfb-run

Re: Starting Dude on Linux upon boot

Posted: Tue Nov 23, 2010 1:07 pm
by celestius
I run it in an nx session. Installed nomachine on my server which is a secure remote access management software. Log into it and run the dude on that session, then disconnect from the session and it stays running.

Re: Starting Dude on Linux upon boot

Posted: Thu Nov 25, 2010 9:30 am
by EMOziko
I have centOS and I installed RouterOS on XEN. Then installed the dude on routeros. and it works fine.
The Dude on wine is not stable and it's requiring X server.