Blog by Andreas Glaser

Linux

Linux commands to install a CounterStrike Linux Server

by Andreas Glaser on Nov.11, 2008, under Computer, Gaming, Linux, Operating system

Step 1
We need the hldsupdatetool (Half Life Dedicated Server Update Tool).

Command:

1
wget http://storefront.steampowered.com/download/hldsupdatetool.bin

Output:

1
2
3
4
5
6
7
8
9
10
--2008-11-11 09:14:51--  http://storefront.steampowered.com/download/hldsupdatetool.bin
Resolving storefront.steampowered.com... 87.248.218.141, 87.248.218.161
Connecting to storefront.steampowered.com|87.248.218.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3513408 (3.4M) [application/octet-stream]
Saving to: `hldsupdatetool.bin'
 
100%[====================================================================================================================>] 3,513,408   9.69M/s   in 0.3s
 
2008-11-11 09:14:52 (9.69 MB/s) - `hldsupdatetool.bin' saved [3513408/3513408]

Step 2

Now we have to grand the owner of the file read/write/execute (rwx) permission.

Command:

1
chmod u+x hldsupdatetool.bin

Output:

1
None

Step 3

The time has come to run the hldsupdatetool.bin

Command:

1
./hldsupdatetool.bin

Output:

1
...I hereby agree to be bound by the Agreement.  I also acknowledge and agree that this Agreement (including the Subscription Terms, Steam Online Conduct rules and other Rules of Use, and Privacy Policy) is the complete and exclusive statement of the agreement between Valve and me, and that the Agreement supersedes any prior or contemporaneous agreement, or other communications, whether oral or written, between Valve and myself.

Enter ‘yes’ to accept this agreement, ‘no’ to decline:

Step 4

You have to accept the agreement with writing and confirming the word “yes”

Command:

1
yes (return)

Output:

1
extracting steam.tar.Z...done

Step 5

Finally we can start to install the actual CounterStrike Source Linux Server.

Command:

1
./steam -command update -game "Counter-Strike Source" -dir .

Output:

1
2
3
4
Checking bootstrapper version ...
Getting version 34 of Steam HLDS Update Tool
Downloading. . . . . . . . . . .
Steam Linux Client updated, please retry the command

Step 6

The fifth command once again… this last command will take a while to execute… depending on your Internet bandwith.

Command:

1
./steam -command update -game "Counter-Strike Source" -dir .

Output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Checking bootstrapper version ...
Getting version 34 of Steam HLDS Update Tool
Downloading. . . . . . . . . . .
Steam Linux Client updated, please retry the command
root1:/home/gaming/css-rotate# ./steam -command update -game "Counter-Strike Source" -dir .
Checking bootstrapper version ...
Updating Installation
No installation record found at .
No installation record found at .
No installation record found at .
No installation record found at .
No installation record found at .
Checking/Installing 'Counter-Strike Source Shared Content' version 69
 
0.57%   .\cstrike\bin\server.dll
1.96%   .\cstrike\bin\server_i486.so
1.96%   .\cstrike\cfg\buypresetsdefault_ct.vdf
1.96%   .\cstrike\cfg\buypresetsdefault_ter.vdf
1.96%   .\cstrike\cfg\game.cfg
1.96%   .\cstrike\cfg\skill1.cfg

Thats it… the server is now installed.

So long,
Andreas Glaser

Leave a Comment :, , , , , more...

Starship - Release

by Andreas Glaser on Sep.25, 2008, under Announcement, Computer, Development, Gaming, Linux, PHP, Reports, Software, Various

Hello everybody,

I would like to present you my first little game - called “Starship”.
It is basically a 2D space shooter in a great 80’s look with some funny features.

Screenshots

Controls

  • S - Start game
  • Arrow keys - Steering
  • Space - Fire
  • ESC - Quit


Please post me some comments and your improvement suggestions!
Have fun with this little pastime game!

Download

  Starship 1.2 (2 MiB, 38 hits)


So long,
Andreas Glaser (aka JaZz)

Leave a Comment :, , , , , more...

CounterStrike Source Linux Server Startscript

by Andreas Glaser on Sep.05, 2008, under Computer, Development, Gaming, Linux, Linux Shell Script, Operating system

Here it is… a well commented and easy for rookies to understand CounterStrike Source Linux Server Startscript. It includes all basic start parameter as well as a good error display system.

How to use:

After you successfully installed a Counterstrike Source Server under Linux with the SRCDS tool you just have to download the startscript at the bottom of this post.
Save the “startscript” into the root directory of your CSS server and change the permission to “u + x” (chmod u+x startscript).

Now open the start script with your preferred editor (vim, joe, mono etc.) and customize the configuration variables to your system.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
############################*
# Configuration (Required):
#
 
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# |~~ 1. SYSTEM PARAMETERS ~~~~~~~~~~|
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
 
# ~~ Description: Set the user who owns the CounterStrike Server (root is not recommended)
# ~~ Params: Existing user on your system
SYS_USER="root";
 
# ~~ Description: Path to the root directory of the server
# ~~ Params: System path
SYS_DIR="/path/to/your/server/";
 
# ~~ Description: Server daemon
# ~~ Default Value: srcds_run
SYS_DAEMON="srcds_run";
 
# ~~ Description: Name of the server on your system
SYS_NAME="CSS001";
 
# ~~ Description: Description of the server
SYS_DESC="My first CSS Server";
 
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
# |~~ 2. SERVER START PARAMETER ~~~~~|
# |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
 
# ~~ Description: IPv4 Address of your server
# ~~ Params: XXX.XXX.XXX.XXX
START_PARAMS_IP="127.0.0.1";
 
# ~~ Description: Port of your server
# ~~ Params: Between 0 and 65535
# ~~ Default Value: 27015
START_PARAMS_PORT="27016";
 
# ~~ Description: Defines the default maps
# ~~ Params: Every on the server installed map is possible
START_PARAMS_MAP="de_dust2";
 
# ~~ Description: Defines the amount of player slots
# ~~ Params: Between 1 and 32
START_PARAMS_MAXPLAYERS="24";
 
# ~~ Description: Defines wether VAC (Valve Anti Cheat) is activated
# ~~ Params: secure / insecure
# ~~ Default Value: secure
START_PARAMS_SECURE="secure";
 
# ~~ Description: Pingboost
# ~~ Params: 0 / 1 / 2 / 3
# ~~ Default Value: 0
START_PARAMS_PINGBOOST="0";
 
# ~~ Description: Defines the tickrate
# ~~ Params: 33 / 66 / 100
# ~~ Default Value: 33
START_PARAMS_TICKRATE="100";
 
#
# CONFIGURATION END
############################*

After this step just execute the start script (./startscript start).

Thats it!

Required Linux packages

Download

  CounterStrike Source Linux Server Startscript v1.0 (6.8 KiB, 169 hits)

So long,
Andreas Glaser (aka JaZz)

Leave a Comment :, , , , , , , , more...

XHTML / CSS Playground

by Andreas Glaser on Aug.18, 2008, under Cascade Style Sheet, Development, Linux, XHTML

Hey there,

just a small update…! On my daily ride through the Internet I found this great website, where you can test and get information about XHTML/CSS tags.

htmlplayground

Enjoy it!

Links

So long,
Andreas Glaser (aka JaZz)

Leave a Comment :, , , more...

Ventrilo Linux Server Startscript

by Andreas Glaser on Jun.15, 2008, under Computer, Development, Gaming, Linux, Linux Shell Script, Operating system

Hello everyone,

some minutes ago i had to create a Linux start script for Ventrilo a great voice communication software especially for gamers.

The script
This script is absolutely simple and configurable

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
 
####################
# Configuration 
 
var_User="ventrilo"
var_Path="/home/gaming/ventrilo/"
var_Daemon="ventrilo_srv"
 
####################
# Don not edit below this line
 
case "$1" in start)
echo "Starting Ventrilo Server."
cd $var_Path
./$var_Daemon -d
echo "Ventrilo Server Started"
;;
stop)
echo "Shutting Down Ventrilo Server."
cd $var_Path
kill `cat $var_Daemon.pid`
echo "Ventrilo Server Is Now Down"
;;
restart)
echo "Restarting Ventrilo Server..."
cd $var_Path
kill `cat $var_Daemon.pid`
./$var_Daemon -d
echo "Ventrilo Server Restarted"
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0

So long,
Andreas Glaser

Leave a Comment :, more...

Linux | Hard- und Softlinks

by Andreas Glaser on Nov.05, 2007, under Computer, Grundlagen, Linux, Operating system

1. Was sind Hard- und Softlinks unter Linux

Den meisten von Ihnen wird der Begriff “Verknüpfung” unter Windows bekannt sein.
Dies sind kleine Dateien die als Zeiger auf eine andere Datei dienen.

Man benutzt Verknüpfungen normalerwiese, damit man große Dateien bzw. allgeimen Dateien nicht mehrmals auf der Festplatte zu speichern hat.

2. Syntax Hardlink

1
ln /pfad/der/orginaldatei /pfad/zu/neuerdatei

2.1 Eigenschaften von Hardlinks

Hardlinks haben eigentlich nur einen Vorteil - sie beziehen sich expliziet auf die Orginaldatei, denn wenn diese gelöscht wird, verschwindet auch der Link.
Leider bieten Hardlinks sonst keine besonderen funktionen. Zudem können diese nicht auf ein Verzeichnis verweisen und sind nicht partitionsübergreifend einsetzbar.

3. Synatx Softlink

1
ln -s /pfad/der/orginaldatei /pfad/zu/neuerdatei

3.1 Eigenschaften von Softlinks

Diese Art von Links besitzt die Eigenschaft sich auf Dateien und Verteichnisse beziehen zu können, jedoch wenn die Ursprungsdatei gelöscht wird bleibt der Link bestehen. Dies kann unter Umständen zu Problemen führen.

Mit freundlichen Grüßen,

Andreas Glaser

Leave a Comment more...

Umstieg von Windows auf Linux

by Andreas Glaser on Oct.04, 2007, under Computer, Linux, Operating system

Hallo Welt,

heute möchte Ihnen heute einen kleinen Einblick in Sachen Umstieg von Windows auf Linux geben.

1. Vorwort

In den vergangenen Jahren habe ich des öfteren verschiedenen Personen/Kunden ein Linux Betriebssystem mit Desktop Environment (Desktop:Arbeitsoberfläche Environment:Umgebung - Kurz: DE) anstatt eines üblichen Windows Systems installiert.
Dabei habe ich einiges an Erfahrung gewonnen. Sehr wichtig empfinde ich folgende Punke/Fragen.


2. Wieso ein Umstieg?

Nun diese Frage kann nicht ganz eindeutig beantwortet werden. Es gibt Personen die steigen um da Linux kostenlos ist, andere weil sie schlechte Erfahrungen mit Windows gemacht haben, manche möchten sich von der kommerziellen Seite entfernen und einige finden es einfach “cool” etwas zu benutzen/verstehen, was nicht ganz so im “Mainstream” liegt.

Meine ganz persönliche Meinung beinhaltet eigentlich ein bisschen von allen genannten Beweggründen aber dies muss jeder für sich selbst entscheiden.

2.1 Vorteile von Linux

Einer der größten Vorteile ist natürlich das alles sozusagen kostenlos ist. Angefangen von dem Betriebssystem selbst über Webserver, Mailserver, Fileserver uvm. bis hin zu einer Abreitsumgebung die Windows sehr ähnlich ist (siehe Screenshot).

KDE KDE KDE

Es gibt tausende von frei erhältlichen Paketen die einfach nachinstalliert werden können.

Des Weiteren besticht Linux durch seine Schlankheit. Hier muss jedoch dazu gesagt werden, dass dies von Distribution zu Distribution variiert. Die einen installieren das System von vorn hinein sehr minimal (somit schnell) und die anderen legen Wert darauf, ein sehr komplettes System anzubieten.

Ich empfehle jedoch für etwas erfahreneren Benutzer die schlankeren Distributionen zu verwenden a la Debian oder Gentoo.

Ein weiterer Vorteil ist, dass es für Linux noch nicht so viele Viren gibt wie für Windows, was aber nicht direkt als Vorteil gesehen genannt werden kann, da sich dies nur der jetzige Stand der Dinge ist.

Vorteile im Überblick:

  • Kostenlos erhältlich
  • Tausende von frei erhältlichen Anwendungen
  • Kann sehr abgespeckt benutzt werden
  • Zu 100% frei anpassbar

(continue reading…)

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...