2. Downloading and installing files |
HLDS_L-HOWTO |
Open a terminal on your Linux server as john.
("regular user" see 1.1 information)
Change to super user.
prompt[home]#> su
Server asks for password:
Give the root password.
Change to directory /usr.
prompt[home]#> cd /usr
Create directory called steam.
prompt[usr]#> mkdir steam
Put john in the "users" group.
prompt[usr]#> /usr/sbin/usermod -g users john
Give john access to the steam directory.
prompt[usr]#> chown john:users steam
Most Linux distributions have a group with the same name as the username.
Thus in most cases chown john:john steam will also do the trick.
The steam directory is now owned by john.
Exit the superuser mode.
prompt[usr]#> exit
Change to steam directory.
prompt[usr]#> cd steam
Download the linux_hlserver_3032004.tgz file to the steam directory.
prompt[steam]#> wget http://www.someserver.com/linux_hlserver_3032004.tgz
or
prompt[steam]#> cp -ipv /home/john/linux_hlserver_3032004.tgz /usr/steam
Unpack the linux_hlserver_3032004.tgz file.
prompt[steam]#> tar -zxvf linux_hlserver_3032004.tgz
New user ?? (existing users skip this step)
Create a steam account using the steam -create option.
prompt[steam]#> ./steam -command create -username john -email john@doo.com
-password PaSsWoRd -question "girlfriends name?" -answer jane
(Use your own -email address and -password and think up yr own -question and -answer)
Update steam using the steam -update option.
prompt[steam]#> ./steam -command update -game dod -dir /usr/steam/hlds_l
-username john@doo.com -password PaSsWoRd -remember_password
(Use the username and password as specified in the create command or your
existing username and password)
Note*
The steam installer will first update the steam installer and will exit the program.
Give the update command again.!
This update process will take awhile depending on your connection speed.
Create directory dod/addons/metamod/dlls
prompt[hlds_l]#> mkdir dod/addons/metamod/dlls
Change to directory dod/addons/metamod/dlls.
prompt[hlds_l]#> cd dod/addons/metamod/dlls
Download metamod-1.17.2-linux.tar.gz file to the dlls directory.
prompt[dlls]#> wget http://www.someserver.com/metamod-1.17.2-linux.tar.gz
or
prompt[dlls]#> cp -ipv /home/john/metamod-1.17.2-linux.tar.gz /usr/steam/hlds_l/dod/addons/metamod/dlls
Unpack the metamod-1.17.2-linux.tgz file.
prompt[dlls]#> tar -zxvf metamod-1.17.2-linux.tgz
Change to the dod directory.
prompt[dlls]#> cd /usr/steam/hlds_l/dod
Download amxmodx-0.16-steam.tar.gz file to the dod directory.
prompt[dod]#> wget http://www.someserver.com/amxmodx-0.16-steam.tar.gz
or
prompt[dod]#> cp -ipv /home/john/amxmodx-0.16-steam.tar.gz /usr/steam/hlds_l/dod
Unpack the amxmodx-0.16-steam.tar.gz file.
prompt[dod]#> tar -zxvf amxmodx-0.16-steam.tar.gz
Download shrikebot_231.tgz file to the dod directory.
prompt[dod]#> wget http://www.xs4all.nl/~jasp/shrikebot/shrikebot_231.tgz
or
prompt[dod]#> cp -ipv /home/john/shrikebot_231.tgz /usr/steam/hlds_l/dod
Unpack the shrikebot_231.tgz file.
prompt[dod]#> tar -zxvf shrikebot_231.tgz
Now remove all the remaining archives (.tgz, .tar.gz) files as they are not needed
any longer.
Change to the /usr/steam directory.
prompt[dod]#> cd /usr/steam
Remove the linux_hlserver_3032004.tgz file.
prompt[steam]#> rm -rf linux_hlserver_3032004.tgz
Remove the metamod-1.17.2-linux.tar.gz file.
prompt[steam]#> rm -rf hlds_l/dod/addons/metamod/dlls/metamod-1.17.2-linux.tar.gz
Remove the amxmodx-0.16-steam.tar.gz file.
prompt[steam]#> rm -rf hlds_l/dod/amxmodx-0.16-steam.tar.gz
Remove the shrikebot_231.tgz file.
prompt[steam]#> rm -rf hlds_l/dod/shrikebot_231.tgz