Você está na página 1de 5

FSD Base / FSD Server / CentOs 5.

7+ Setup Tutorial

Please note that most of the instructions are generalized in order to keep this document short and to the point. I continue to see people struggling with setting up FSD base and/or FSD server. So, Im providing this to help out. Second note is that most of the commands given will work with other distros, but you should have knowledge in your distro or able to find it.

What we need: VPS or Dedicated machine SSH (putty is the most common) FTP Client with SFTP capabilities (Filezilla is the most common) Notepad editor (I use Notepad++)

What I will not cover: Setting up Apache Setting up Perl Setting up DNS Setting up POP3/IMAP or any other MAIL system

Initial VPS or Dedicated Setup

1. Using putty to SSH the server, login and update the server. Yum update y (-y tells yum to answer Yes)

2. After its updated we need to ensure or install certain programs and libraries needed Yum install gcc-devel gcc-c++ automake make nano perl sudo y 3. Once we have those installed, we need to create a folder and user for the FSD server Cd .. (to ensure we are not in the root directory) Mkdir fsd && useradd fsd (Im using a directory and user named fsd) Cd fsd 4. Lets get our FSD server files (well get fsdbase in a bit) Wget http://www.vmatsim.net/fsd/fsd1110.tar.gz Chmod 777 *.tar.gz ( or chmod +x *.tar.gz) Tar zxf fsd1110.tar.gz ls (shows us our files and folders listed) cd fsd1110 (you may or may not have to cd fsd1110 again, use ls to determine) cd fsd ls (you should see a bunch of .cpp and .h files) make make clean (If you get any errors during make, your system will fault. Warnings are ok)

At this point I start moving things around for my sanity, I suggest you do this because it makes things a bit easier. Especially when setting up fsdbase and you need to know folders. cd /fsd/ (this will bring us back to the folder we made) ls (should see our fsd1110.tar.gz and fsd1110 file/folder)

This next part is moving the files and can be tricky. Please note your folder setup: /fsd/fsd1110/ Or /fsd/fsd1110/fsd1110/

In this tutorial were using the folder structure /fsd/fsd1110/, so lets start moving: mv /fsd/fsd1110/* /fsd/ mv /fsd/docs/admin.txt /fsd/unix/help.txt So, the last one is needed. We move the admin.txt file AND rename it to help.txt, this way when we telnet our server and type help, it will give us this file. Since we are root while doing this, we need to change ownership to our user: cd .. cd .. chown fsd:fsd fsd R The fsd:fsd is setting ownership to user fsd and group fsd. The R is telling it to apply our command to all files and folders inside fsd recursively. Lets check our files and folders to ensure we have the right ownership: ls l (this will show us ownership and group permissions for folders and files. Do not change default ownership from the system. We are only changing the ownership of our fsd folder) cd fsd ls l Now that weve checked our permissions, its time to edit our fsd.conf cd unix ls nano fsd.conf

The next page will show us what to modify

Under [system] ident= (3 or 4 letter short code only) email=(who gets the email) name=(this is where we name it. Pilots connecting will see this name and serv info will see it) hostname=(This is not the hostname of the server. This is the domain of your server) password=disable (Change this to something simple and easy to remember) location=Nowhere (change to City,ST [City, State two letter code]) whazzup=whazzup.txt (I told you Im not setting up an apache, you should know where your home folder is located on your server)

Scroll down til you find [connections] #connectto= #allowfrom= Change to: connectto=127.0.0.1 allowfrom=127.0.0.1 This keeps other servers from connecting to yours and pulling your info. You can change this later on. Once your done editing, press ctrl and x. Itll ask if you wish to save changes, press y. Then it will ask you for the file name. Press enter. One more file to edit: nano fsd.sh Find this: USER=fsd Change this to the user we created earlier if yours isnt the fsd example

Now, find this line: DIR=/home/fsd/fsd We need to change this to our folder setup DIR=/fsd/unix/ Again, once were done, press ctrl and x at the same time, then yes and enter to finish editing.

***Advanced users warning*** Inside fsd.sh we noticed a few lines speaking of init.d, which is our systems service manager. The instructions given are wrong in the file, ignore them. This is what I have done: ln s fsd.sh /etc/init.d/ cp fsd.sh /etc/init.d/ This way, all I have to do is: /etc/init.d/fsd.sh start Instead of : /fsd/unix/fsd.sh start

Moving on, if you downloaded fsdbase, then using a program like winzip or izarc, extract the files. Upload them to the server and follow Jamess setup. You can quickly rename the fsdbase.config.sample file with putty: mv fsdbase.config.sample fsdbase.config Then edit the file to match your settings: nano fsdbase.config Once done, run the setup.sh. Any errors, you know by this point if you followed along how to correct. If your still having problems, post in the Apollo3 forums and Ill be more than willing to help and Im sure James will help as well.

Você também pode gostar