Starting Dude on Linux upon boot

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?

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 :wink:

Torin

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 =/

And what is the solution you have found and does it work … ?

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.

Solved by using RouterOS instead of a Linux distro.

thx, solved by running under administrator previledged :slight_smile:

The best way is using xvfb-run

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.

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.