Minilogin, Ports, Shorewall Info
In order to figure all this out, I've had to return to my old school of "Hard knocks and Falls"
And here's a summary of stuff i did/learned so you can skip this "course" ; How to run Minilogin with no Xwindows and the emu - this was simple; first run your start-up, then while you're starting up the emu (have minilogin executable in the same directory your startup files are), in the same shell, type "wine minilogin". don't matter if the other is starting and you see text rolling, just keep typing and press "enter" when you're done. it will all settle down, and Minilogin will eventually take over the shell, and that's why you run it last. I think I'll try a script, with a delay in it, and finally ends with the minilogin startup. Shorewall (Firewall) will keep you from accessing your Miniloging via Lan, as it keeps the ports shut down to any type of access. I've come up with these ports; 3306/udp 5999/udp 9000/udp 7000:7010/udp 3306/tcp 5999/tcp 7000:7010/tcp All works fine now - hope this helps someone else. |
In your startup script, you can add the lines;
sleep 40 wine minilogin at the end of the script; Code:
#!/bin/sh |
You can detach it from the shell.
try Code:
wine MiniLogin.exe > /tmp/Minilogin.log & You could also use the command nohup Code:
nohup wine MiniLogin.exe You can find more about shell programming here: http://www.freeos.com/guides/lsst/index.html |
First, a disclaimer... I have no idea about Linux, this is my first attempt to write a bash script in 10 years... so forgive me if it's a) not formatted properly, b) fails on your system, or c) can be improved.
My goal was to make one script for start, stop, status, and restarting Emu. I think I have everything working except that last MiniLogin.exe thing. I've tried eq4me's last suggestion, but I am getting a "Failed to open port 5999". If I run wine MiniLogin.exe by itself, I usually get it to work (though, connecting a client *still* isn't quite working hehe...) Ok, this post is just about the script. So, take this, tweak,and hope it comes in handy. It's a little "heavy", but adds some checks and balances. Code:
#! /bin/bash Not sure how to do the restart option. Anyone? |
Some of my zones are not loading fast enough, which results in client crash when booting up the dynamic zones.
An error example; Code:
Zone bootup timer expired, bootup failed or too slow. I'm thinking the reason for this is because my machine is too slow on loading all the new data I have added to the given zone (i'm runing a PIII with 1.5gig ram). This started when I did some changes to loots, and have just about every mob in the game droping something: on big zones like the LoY zones, changes like this are massive and I imagine require extra loading time. anyways here's a new start up I devised which adds static boot up too the slow loaders; Code:
#!/bin/sh And here's a working stop (I kept having port problems with mini-login and the wine-server); Code:
#!/bin/sh |
FYI Angelox, my Core 4 machine is currently P4 1.5GHz, 512m RAM, and a 40GB Quantum Fireball (I think that's 7200 rpm). I haven't had a zone load problem yet, but I am also not running any x-windows at all. Not sure how this stacks up against your machine.
But of course, now I have a new excuse to visit newegg.com, don't I? |
Just a shot in the dark:
If you are using IDE disks maybe DMA isnt turned on. To check the rough speed of your disk(in this example /dev/hda) install the package hdparm and do Code:
hdparm -Tt /dev/hda If they arent check if DMA is turned on. Code:
hdparm /dev/hda More in this guide, its slightly gentoo specific but quite good http://www.gentoo-wiki.com/HOWTO_Use...ce_performance |
Quote:
That's just what I use for a server, I do have my personal machine which is P4 2.5 GhZ, but I don't want to turn it into any kind of a server. I "almost" have a P4 Celeron put together - All I need is a motherboard. I had bought one on sale, one of those "as you see" no return" deals, but turns out it's for Pentium 4 CPU only, and not Celeron. So now I have a nice, shiny new MB to look at. When I get that one running , I'll move everything to there. |
Actually, the static zones are pretty nice, gives you a more realistic view of the game (as in Live); mobs that get killed re-spawn again within their time limit , even if the zone is empty. Also, if a named mob is up, you can get killed, then come back try kill him again, but if you're dynamic, the zone re-boots when you die, and it's all over.
|
John, few comments about your script:
1) I wrote the original :-) 2) I would move the LNAME code up to the top of the script, its really a configuration, not a start thing... 3) the LNAME test condition needs to be change to $2 instead of $1 since you added start/stop to the cmdline 4) when you stop minilogin, im pretty sure you need to be killing wine, not MiniLogin.exe. But that might upset things if they are using something else in wine... might wanna grep for the pid or something. Angelox: booting zones directly really isnt advised... especially on linux... the launcher is designed to automatically inject delay into zone booting to prevent your problems. |
FNW, thanks. I will make the changes, test them, and WIKI this script.
|
Quote:
My latest stop-script; Code:
#!/bin/sh |
Quote:
|
All times are GMT -4. The time now is 07:29 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.