Change root password
passwd root

Get latest updates
apt-get upgrade
apt-get update

Add 32-bit support
dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386
apt-get install libncurses5:i386

Install proftpd (FTP SERVER)
apt-get install proftpd

Edit configuration file of shells
nano /etc/shells
add /bin/false 

Edit configuration file of proftpd
nano /etc/proftpd/proftpd.conf
ServerName: server name.
UseIPV6: You may switch it to “Off“, if you don’t use it.

Remove the # in front of DefaultRoot
# Lock users in their home directory
DefaultRoot ~

Restart the service
service proftpd restart

Create the server directory
mkdir /home/SERVER

Add a user with password and set home directory for that user
useradd USERNAME -p PASSWORD -d /home/SERVER

Set permission to upload files to the server directory
chmod -R 777 /home/SERVER


Upload files to ftp
or use wget and URL

Run the installer
First set permission, chmod -R 777 /home/SERVER

Unpack patch and server manager
tar xzvf "filename"

Create symbolic link for bf1942_lnxded
ln -s bf1942_lnxded.static bf1942_lnxded

Edit servermanager.con
nano /"LOCATION"/mods/bf1942/settings/servermanager.con

Start server
/LOCATION/bfsmd -port 14667 -path /LOCATION/ -daemon -adminlog -nodelay -restart -start
14667 is default RM port, change this to run multiple servers, remember to change the port in servermanager.con as well