PDA

View Full Version : linux server debian package


elitak
20-03-2003, 20:37
Below is a link to a debian package I assembled that will make the installation of the server a bit easier for debian users. This is the first debian package I've made so it probably has some faults. Let me know if you find any.

Just use "dpkg -i tss_2.0.19.16-1_i386.deb" as root to install.
The package sets up the server to run on bootup as well.
Use "/etc/init.d/tss start" or "stop" or "restart" as root if needed.

tss_2.0.19.16-1_i386.deb (http://www.calpoly.edu/~elitak/tss_2.0.19.16-1_i386.deb)

--EDIT--
latest version: tss_2.0.20.1-1_i386.deb (http://www.calpoly.edu/~elitak/tss_2.0.20.1-1_i386.deb)

R. Ludwig
20-03-2003, 20:41
could you please use the server build 22 ?

elitak
20-03-2003, 20:48
This is the Teamspeak2 Linux Server 2.0.19.16 (Build 19?), it's the one I get when I click on the linux server link on the downloads page. Is there a link to Build 22 someplace?

woutur
21-03-2003, 16:24
Better make a new deb with the 22 version availably in the developper section in this forum. That version is patched buggered and all. And a bit better than our initial release.

elitak
22-03-2003, 10:43
Okay, here is the updated package. It uses build 22.

tss_2.0.19.22-1_i386.deb (http://www.calpoly.edu/~elitak/tss_2.0.19.22-1_i386.deb)

Again, let me know if this is helpful or if the package is broken in any way.

vern_
01-04-2003, 05:14
Elitak,
Thanks for the package. I tried to use it but did something wrong. I am new to linux and have a debian woody installation. I wanted to see if you, or anyone else, might be able to point me in the right direction to solve my problem. I am not even sure what to search for to start solving the problem. I have tried reading the apt HOWTO but must be missing something. The problem that I am having is the package installation failed due to my libc6 version. Now when I try to install anything with apt-get it wants to remove tss but can't remove it. I am having trouble figuring out how to get rid of the errors. I have searched packages.debian.org/stable for libc6 to try and upgrade but just don't know enough to understand what is happening. When I run apt-get install libc6 apt tells me that libc6 is already the latest version. I also did apt-get update and then upgrade and then dist-upgrade. Then I tried apt-get -f install and dpkg --configure -a, which is listed in section 7 of the apt HOWTO, to correct the problem. None of those worked.

Any pointers would be appreciated.

Here is the output that dpkg -i tss_2.0.19.22-1_i386.deb returns as root:

Selecting previously deselected package tss.
(Reading database ... 60507 files and directories currently installed.)
Preparing to replace tss 2.0.19.22-1 (using tss_2.0.19.22-1_i386.deb) ...
Unpacking replacement tss ...
rm: cannot remove `/etc/rc1.d/S95tss': No such file or directory
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
dpkg: dependency problems prevent configuration of tss:
tss depends on libc6 (>= 2.3.1-1); however:
Version of libc6 on system is 2.2.5-11.2.
dpkg: error processing tss (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
tss

Thanks

AdLentis
01-04-2003, 10:17
Originally posted by vern_
Elitak,
Here is the output that dpkg -i tss_2.0.19.22-1_i386.deb returns as root:

Selecting previously deselected package tss.
(Reading database ... 60507 files and directories currently installed.)
Preparing to replace tss 2.0.19.22-1 (using tss_2.0.19.22-1_i386.deb) ...
Unpacking replacement tss ...
rm: cannot remove `/etc/rc1.d/S95tss': No such file or directory
dpkg: warning - old post-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
dpkg: dependency problems prevent configuration of tss:
tss depends on libc6 (>= 2.3.1-1); however:
Version of libc6 on system is 2.2.5-11.2.
dpkg: error processing tss (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
tss

Thanks
I have a debian woody installation too, but I am not new to linux anymore. ;) As you can see, there is a dependency prolbem. The version of libc6 on your system is too old to run the TeamSpeak server. Unfortunately, the required version of libc6 is not yet available in the stable archives. The best thing you can do (I did that too and it worked) is download the latest libc6 (2.3.1-16) and libdb1-compat (2.1.3-7) from packages.debian.org. Just search the unstable archives and you should find them. Then, run "dpkg -P libnss-db" to remove that package (otherwise you will see it will conflict with the new libc6). Then install both downloaded packages with "dpkg -i <libdb1-compat.deb-file> <libc6.deb-file>." After that, you should be able to run "dpkg -i <tss.deb-file>" without any problems.

vern_
02-04-2003, 01:40
AdLentis,
Thanks for the help, you are a lifesaver. I did everything that you outlined and it all worked perfectly. Now the .deb package works properly as well. No more error messages. Your instructions also helped me understand a little more about dpkg.
Thanks to Elitak for the package, much easier to manage TS now.

AdLentis
02-04-2003, 06:21
You're welcome! :D ;)

TazWare.com
17-04-2003, 01:19
Finally after a GOOD talk to my Debian install i managed to install the packages you gave, my system was talking about depencies and cannot install,,, while logged in with webmin i made it dance, thanks for the tips, finally the TS server runs like a charm :)

-Taz

spas
30-04-2003, 19:17
i installeds the package too

after i won the fight with my libc6 it runs :0)

the only thing is
i get a error msg although the ts server runs perfectly

i get this msg
"Error starting Daemon. ABorted"

but like i said TS is running, i can config it ....

better then no msg and ts is not running :0)

big thx for the package and the libc6 update help

greetz

spas

Lethe
30-04-2003, 20:09
Originally posted by spas


the only thing is
i get a error msg although the ts server runs perfectly

i get this msg
"Error starting Daemon. ABorted"

but like i said TS is running, i can config it ....


Spas,

Read my thread here on that subject:

http://www.teamspeak.org/forums/showthread.php?s=&threadid=4171&highlight=aborted

Nick

spas
30-04-2003, 20:40
oh ok :0)

thank you again

JamieWolf
11-06-2003, 02:13
Can anyone make a new Debian Packet for the new Version?

I donno howto do it, otherwise i would do it ...

Thanks in advance

elitak
15-06-2003, 01:24
Here's the updated package (2.0.19.40)

tss_2.0.19.40-1_i386.deb (http://www.calpoly.edu/~elitak/tss_2.0.19.40-1_i386.deb)

Let me know if you encounter any problems or if anything is missing.

Echo
04-07-2003, 01:58
Anybody tested this guy's new package? Does it work?

I am running my TS2 server from within my home directory, but I would like to run it LSB-style, with different files belonging in different locations.

Anyone?

[-WL-]ScorPioN
15-07-2003, 20:37
Hi there, i will go try it out right away :-)

Hold on ill be back en just a second :p

[-WL-]ScorPioN
15-07-2003, 21:04
NIICCEEE
runs really fine, no problems by installing and start stop,, thats cool, nice job :-)

Btw, is it possible to store users in mysql database ???

prompt
19-07-2003, 00:47
Theres a problem with the package - or its not so much the package its more the dependencies of teamspeak.

Teamspeak is using a version of libc6 thats to new for the stable release of debian.

How to fix this problem, without switching from stable to unstable?

[-WL-]ScorPioN
20-07-2003, 21:15
You dont have to use unstable, only testing, testing is better then unstable ;)

prompt
20-07-2003, 22:53
U right, and it relly dosent matter i installed libc6 from unstable and it works great!

I get the "Error starting Daemon. Aborted" message, but hey hopefully they will fix it in a later release

[-WL-]ScorPioN
20-07-2003, 23:29
The ts server starts up itself after install, i did get same warning, because i tryed to start the ts server after i installed it, it also starts up by boot

nanno
14-08-2003, 16:55
anyone have ideas how i get my webinterface to work??
ts server works, but webinterface don't work...

Platform: debian linux,

14-08-03 17:23:39,ALL,Info,server, Server version: 2.0.19.40 Linux
14-08-03 17:24:10,ERROR,All,WEBINTERFACE, WebInterface startup failed with port 14534, Exception:Could not bind socket.$
14-08-03 17:24:10,ERROR,All,TCPQUERY, TCPQuery startup failed with port 51234, Exception: Could not bind socket. Address an$


:confused:

ironsnake
15-08-2003, 19:04
Serious problems im my linux box.

I tried to install the debian package, but I had dependence problems. And now, I am trying to remove the tss package or the "garbage" that was installed before the dependence error, but i cant. I got a dpkg error!

<b>-($:/home/thiago)-apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
tss
6 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/4451kB of archives. After unpacking 254kB will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 30651 files and directories currently installed.)
Removing tss ...
rm: cannot remove `/etc/rc1.d/S95tss': No such file or directory
dpkg: error processing tss (--remove):
subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
tss
E: Sub-process /usr/bin/dpkg returned an error code (1)
</b>

From now on I am not able to use apt or dpkg 'cause of this error. Please, help me. What I have to do to uninstall tss and get my apt working as well again?

Tks a lot
IronSnake

prompt
17-08-2003, 16:22
When will u update the deb package to the new version of TS?

ptaszor
18-08-2003, 11:20
I have installed tss_2.0.19.40-1_i386.deb, and then I realised that it's not working. In Debian Woody this packege block my apt-get every time. Now i can't update or install anything, I try every method to uninstall this package :). I have removed every symlink in start folders from rc.1 to rc.5...
How to uninstall this package!!


Below there is presented information from screen:

-------------------------------------------------
Usuwanie tss ...
rm: nie można usunąć `/etc/rc1.d/S95tss': Nie ma takiego pliku ani katalogu
dpkg: błąd przetwarzania tss (--purge):
podproces post-removal script zwrócił kod błędu 1
Wystąpiły błędy podczas przetwarzania:
tss
--------------------------------------------------
sorry but I'm locate in Poland :)

what is the error code 1?

ptaszor

AdLentis
25-08-2003, 11:52
It seems that that file was not created due to the error when installing. The uninstall script is not accepting that the file does not exist. But since it has to be deleted anyway, it really should ignore the error...

So just create a dummy file '/etc/rc1.d/S95tss' and try again. ;)

ptaszor
25-08-2003, 17:36
I have tried to remove exact file in the dir :'/etc/rc1.d/S95tss' ,
after that dpkg shows me an error due to anather non-existing file in: '/etc/rc2.d/S95tss' or '/etc/rc3.d/S95tss' or '/etc/rc4.d/S95tss'. This script whatever it is, really make me... .

anybody knows how force in dpkg to forget this instalation??

this version of Teamspeak I can run just after unpack it, without any errors.

ptaszor

ptaszor
04-09-2003, 18:54
I just want to warn these of You, which wants to install the package tss_2.0.19.40-1_i386.deb, this package crush the apt program. All the time it shows me an error correspondig to tss.
I've just do everything!
The apt-get and dpkg can't forget tss packege.

state of tss is like (dpkg -l ->/~list.txt):
pHR tss 2.0.19.40-1 TeamSpeak2 Linux Server

What to do? I want my Debian to forget tss at all!!!!!

ptaszor

vossi
08-09-2003, 23:39
so i tried it and i get the same error as if i try to run the tar.bz2 packed script manualy

does anybody know what this means:

root@murauer:/home/vossi> dpkg -i tss_2.0.19.40-1_i386.deb
Selecting previously deselected package tss.
(Reading database ... 21775 files and directories currently installed.)
Unpacking tss (from tss_2.0.19.40-1_i386.deb) ...
Setting up tss (2.0.19.40-1) ...
Starting TeamSpeak 2 Server Daemon
/etc/init.d/tss: line 25: 23815 Killed ./server_linux -PID=tsserver2.pid

root@murauer:/home/vossi>

ptaszor
11-09-2003, 23:21
This problem really fuck me, so I look at:
/var/lib/dpkg/info

where looked at files:
available

and at:

tss.conffiles
tss.list
tss.md5sums
tss.postinst
tss.postrm
tss.prerm

I had to remove every file reported in this files
also and a record in "available".
After doing this - My dpkg and apt-get forgot everything about tss :)

elitak
16-09-2003, 14:29
I've been out of the loop for a while; sorry for the delayed update.

Here's the updated package:
tss_2.0.19.46-1_i386.deb (http://www.calpoly.edu/~elitak/tss_2.0.19.46-1_i386.deb)

As usual, let me know if anything's wrong with it.

elitak
21-02-2004, 19:36
here is the package updated for 2.0.19.51 (beta release):
tss_2.0.19.51-1_i386.deb (http://www.calpoly.edu/~elitak/tss_2.0.19.51-1_i386.deb)

Note that all documentation (including the new html manual) is installed in /usr/share/doc/tss

I've nearly perfected the start-stop scripts, so this package shouldn't break anybody's dpkg/apt-get any more.

I still haven't added support for running the server as a non-root user. Let me know if there is any demand for this and I can add it.

If you want to use a mysql database with this, you can, just read the instructions in /usr/share/doc/tss/INSTALL.mysql and modify /opt/tss2_rc2/server.ini accordingly. I tested it and it works.

If you don't want the server to start when the system boots, edit /etc/default/tss

use /etc/init.d/tss start, /etc/init.d/tss stop and /etc/init.d/tss/restart to start, stop and restart(stop then start) the server.

nomad
29-02-2004, 03:47
I still haven't added support for running the server as a non-root user. Let me know if there is any demand for this and I can add it.
[/B]

yes that would be useful because running the server as root is not a good idea actually.

Rabautz
10-03-2004, 09:43
To run as non-root:
addgroup --system group
adduser --system --home /opt/tss2_rc2 --no-create-home --ingroup group user

chown -R user.group /opt/tss2_rc2

In the init-script:
start-stop-daemon -c user -g group [...]

Works for me ;)

ddcb-scorpion
14-03-2004, 15:46
i get this error when i try start the ts server after install :confused:

Starting TeamSpeak 2.0.19.51 Server Daemon: start-stop-daemon: unrecognized option `--chdir'
Try `start-stop-daemon --help' for more information.
ERROR: could not start tss

ddcb-scorpion
14-03-2004, 15:51
i installed the non beta version and now its working fine :-)

JamieWolf
13-06-2004, 23:18
Hi elitak,

thanks for the debs :) nice work. One question! How do you do them? I want to create, or better try to create my own.

And also can we expect a new deb for the 2.20 Version of TSS2?


Greetz JamieWolf

elitak
16-09-2004, 11:49
Sorry, I haven't been to this forum in ages. I finally updated the package to the latest version (2.0.20.1).

tss_2.0.20.1-1_i386.deb (http://www.calpoly.edu/~elitak/tss_2.0.20.1-1_i386.deb)


Creating packages for Debian isn't very easy. The only reference I used was the Debian New Maintainers' Guide (http://www.debian.org/doc/maint-guide/).

For future reference: If I don't update this package upon the release of a new version, you can simply extract the new archive into /opt, replacing all the old files. Chances are it will work just fine.

konik
30-09-2005, 07:32
I all,
Just to give my little contribution for people having some permission denied problems under debian stable.

- follow 10-03-2004 08:43 Rabautz's post
- chmod -R 0750 /opt/tss_rc2/
- modify the /etc/init.d/tss script to be as follow


#! /bin/bash
#
# Author: Eric Litak <elitak@calpoly.edu>

NAME=tss
DESC="TeamSpeak 2.0.20.1 Server Daemon"

DEFAULT=/etc/default/tss
TSS_DIR=/opt/tss2_rc2

DAEMON=$TSS_DIR/server_linux
PID="${TSS_DIR}/run/$NAME.pid"
DAEMON_OPTS="-PID=$PID"
#change here under
USER=CHANGE_USER_NAME
GROUP=CHANGE_GROUP_NAME

start_at_boot=$(test -r $DEFAULT && grep -i "^[[:space:]]*start_at_boot" $DEFAULT | cut -d "=" -f 2)

if [[ "$start_at_boot" != "true" && "$start_at_boot" != "yes" ]]; then
echo "$DESC not starting as requested in $DEFAULT (or $DEFAULT is missing)"
exit 0
fi

set -e
case "$1" in
start)
echo -n "Starting $DESC: "
if start-stop-daemon -c ${USER} -g ${GROUP} --start --oknodo --quiet\
--pidfile ${PID}\
--chdir $TSS_DIR\
--exec $DAEMON -- $DAEMON_OPTS ; then
echo "$NAME"
else
echo "ERROR: could not start $NAME"
fi
;;
stop)
echo -n "Stopping $DESC: "
if start-stop-daemon --stop --oknodo --quiet\
--pidfile ${PID}\
--exec $DAEMON; then
echo "$NAME"
else
echo "ERROR: could not stop $NAME"
fi
;;
restart)
$0 stop
for (( timeout=10; timeout > 0; timeout-- )); do
sleep 1
test -n "`ps -ef | grep -v "grep" | grep $DAEMON`" || timeout=0
done
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit 0


Hope this can helps

konik

Knuckles
01-10-2005, 00:47
What is the /etc/default/tss file suppose to look like?

Cause i get following error message when trying to start the server:
TeamSpeak 2.0.20.1 Server Daemon not starting as requested in /etc/default/tss (or /etc/default/tss is missing)