Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
witam!
sciągnalem sobie TeamSpeak'a, rozpakowalem i jak chce odpalic do wywalia mi Killed
jak mam to uruchomic??
linux to debian 3.0
jestem poczatkujacym uzytkownikiem i nie moge sobie poradzic :(
Offline
a moze podalbys pelen komunikat konsoli ?
o ile dobrze wiem, wrozenia tu sie nie praktykuje ;]
pzdr
Offline
takie cos mam w konsoli
./teamspeak2-server_startscript start WARNING ! For security reasons we advise: DO NOT RUN THE SERVER AS ROOT !!!!!!!!!!! starting the teamspeak2 server ./teamspeak2-server_startscript: line 92: 825 Killed ./server_linux -PID=tsserver2.pid
Offline
hm a pokaż ten fragment linii 92 i okolic tego skryptu
próbowałeś odpalać jako zwykły user?
Offline
no probowalem jako zwykly user i to samo wywala
fragment tego skryptu
teamspeak~rtscript [----] 0 L:[ 52+40 92/ 94] *(2453/2465b)= e 101 0x65 echo "server does not shutdown cleanly - killing" kill -KILL `cat tsserver2.pid` rm tsserver2.pid sleep 5 else echo "done" fi else echo "tsserver2.pid is missing, no started server ?" exit 7 fi ;; restart) $0 stop && $0 start || exit 1 ;; status) if [ -e tsserver2.pid ]; then echo "the server seems to be running" exit 0 else echo "the server seems to be stopped" exit 3 fi ;; passwords) if [ -e server.log ]; then date=$(cat server.log | grep "admin account info: username: admin" | tail -n 1 | sed "s/^([0-9]+-[0- spass=$(cat server.log | grep "superadmin account info: username: superadmin" | tail -n 1 | sed "s/^.* pass=$(cat server.log | grep "admin account info: username: admin" | tail -n 1 | sed "s/^.*username: a echo "Following passwords were generated on $date" echo "superadmin = "$spass"" echo "admin = "$pass"" else echo "server.log not found, maybe you did not start the server yet ?" exit 1 fi ;; *) echo "Usage: $0 {start|stop|restart|status|passwords}" exit 2 esac exit 0
w lini 92 jest dokladnie wlasnie
esac
Offline
za esac wstaw ;;
albo wywal exit 0
Offline
jak zamiast esac dalem ;; wywalilo
debian:~/tss2_rc2# ./teamspeak2-server_startscript start ./teamspeak2-server_startscript: line 93: syntax error near unexpected token `0' ./teamspeak2-server_startscript: line 93: `exit 0'
jak usunolem exit 0 tez nic nie pomoglo :(
Offline
sorks mój błąd tak ma być
*) echo "Usage: $0 {start|stop|restart|status|passwords}" exit 2 ;; esac exit 0
Offline
tak tez sie wywala
czepia sie tego esac
Offline
pokaż cały skrypt
Offline
caly skrypt
#! /bin/bash # Copyright (c) 2004 TeamSpeak team All rights reserved. # # Author: pwk.linuxfan 2004 # case "$1" in start) if [ -e tsserver2.pid ]; then echo "tsserver2.pid already exists...server already started ?"; echo "If you are sure the server is not running, delete tsserver2.pid" exit 1 else if [ "$UID" = "0" ]; then echo WARNING ! For security reasons we advise: DO NOT RUN THE SERVER AS ROOT for c in $(seq 1 10); do echo -n "!" sleep 1 done echo ! fi echo "starting the teamspeak2 server" if [ -e server_linux ]; then if [ ! -x server_linux ]; then echo "server_linux is not executable, trying to set it" chmod u+x server_linux fi if [ -x server_linux ]; then ./server_linux -PID=tsserver2.pid else echo "server_linux is not executable, fix this" exit 4 fi else echo "Couldnt find server_linux" exit 5 fi fi ;; stop) if [ -e tsserver2.pid ]; then echo -n "stopping the teamspeak2 server" if ( kill -TERM `cat tsserver2.pid` ); then for c in $(seq 1 300); do if [ -e tsserver2.pid ]; then echo -n "." sleep 1 fi done fi if [ -e tsserver2.pid ]; then echo "server does not shutdown cleanly - killing" kill -KILL `cat tsserver2.pid` rm tsserver2.pid sleep 5 else echo "done" fi else echo "tsserver2.pid is missing, no started server ?" exit 7 fi ;; restart) $0 stop && $0 start || exit 1 ;; status) if [ -e tsserver2.pid ]; then echo "the server seems to be running" exit 0 else echo "the server seems to be stopped" exit 3 fi ;; passwords) if [ -e server.log ]; then date=$(cat server.log | grep "admin account info: username: admin" | tail -n 1 | sed "s/^([0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0- spass=$(cat server.log | grep "superadmin account info: username: superadmin" | tail -n 1 | sed "s/^.*username: superadmin password: pass=$(cat server.log | grep "admin account info: username: admin" | tail -n 1 | sed "s/^.*username: admin password: ([a-z0-9]+).*$ echo "Following passwords were generated on $date" echo "superadmin = "$spass"" echo "admin = "$pass"" else echo "server.log not found, maybe you did not start the server yet ?" exit 1 fi ;; *) echo "Usage: $0 {start|stop|restart|status|passwords}" exit 2 esac exit 0
Offline
cała sekcja passwords wyhaszuj ją powinno działać na poprawkę tej sekcji nie mam pomysłów.
EDIT
Miałbym pomysł jeśli bym miał plik server.log :-)
BTW.
Lorenzo jest lepszy ode mnie może coś wymyśli.
Offline
nic nie dalo po wyhaszowaniu passwords
pliku server.log nie ma bo tworzy on sie dopiero gdy serwer wstanie
w syslogu mam takie cos
Feb 1 22:34:21 debian kernel: PAX: From 88.156.25.69: execution attempt in: /root/tss2_rc2/server_linux, 08217000-0822f000 000ce000 Feb 1 22:34:21 debian kernel: PAX: terminating task: /root/tss2_rc2/server_linux(server_linux):13712, uid/euid: 0/0, PC: 0821af37, SP: 5ff4c394 Feb 1 22:34:21 debian kernel: PAX: bytes at PC: 83 44 24 04 dc e9 53 4a e3 ff 83 44 24 04 dc e9 5d 4a e3 ff Feb 1 22:34:21 debian kernel: grsec: From 88.156.25.69: attempted resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 by /root/tss2_rc2/server_linux[server_linux:13712] uid/euid:0/0 gid/egid:0/0, parent /root/tss2_rc2/teamspeak2-server_startscript[teamspeak2-serv:25655] uid/euid:0/0 gid/egid:0/0 Feb 1 22:38:01 debian /USR/SBIN/CRON[20747]: (mail) CMD ( if [ -x /usr/sbin/exim -a -f /etc/exim/exim.conf ]; then /usr/sbin/exim -q ; fi)
Offline
tak masz mieć
[url=http://wklej.org/id/3bf87e7764][b]LINK[/b][/url]
u mnie działa
~@g-point $: ./teamskpeak Usage: ./teamskpeak {start|stop|restart|status|passwords}
EDIT
swoją drogą to ten serwer możesz odpalić dając polecenie
./server_linux
swoją drogą potrzebny ci na kompie ten serwer ? ty chcesz udostępniać usługę czy tylko komunikować się przy pomocy tego.
Offline
dalej lipa
juz mi normalnie glowa od tego peka, nie wiem o co chodzi...
EDIT
gdy odpalam przez ./server_linux odrazu wywala Killed
potrzebuje serwer zeby z ludzmi po lanie gadac...
Offline
wyedytowałem a ty odpisałeś w tym czasie
przeczytaj to co jest po EDIT w moim poście wcześniej bo nie chce mi się powtarzać ;-)
Offline
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00143 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.144.46.90' WHERE u.id=1 |
0.00087 | UPDATE punbb_online SET logged=1732554015 WHERE ident='3.144.46.90' |
0.00023 | SELECT * FROM punbb_online WHERE logged<1732553715 |
0.00091 | DELETE FROM punbb_online WHERE ident='3.16.82.208' |
0.00021 | SELECT topic_id FROM punbb_posts WHERE id=51550 |
0.00025 | SELECT id FROM punbb_posts WHERE topic_id=6685 ORDER BY posted |
0.00029 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=6685 AND t.moved_to IS NULL |
0.00032 | SELECT search_for, replace_with FROM punbb_censoring |
0.00083 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=6685 ORDER BY p.id LIMIT 0,25 |
0.00093 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=6685 |
Total query time: 0.00641 s |