Teamspeak Linux Setup

  1. Download proper Teamspeak server for your architecture.
  2. Create teamspeak user.
  3. tar -xvf *.tar.bz2
  4. vi /etc/systemd/system/teamspeak.service

[Unit]
Description=TeamSpeak 3 Server
After=network.target

[Service]
WorkingDirectory=/home/teamspeak/ts3s/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3s/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3s/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3s/ts3server.pid
RestartSec=15
Restart=always

[Install]
WantedBy=multi-user.target

5. systemctl start teamspeak

6. cat /usr/local/teamspeak/logs/* | grep “token”

7. Login to Teamspeak using client and enter token to take ownership.

Hits: 92

Fucking w/ TinyDNS

Getting the serial number/change date for a domain on an authoritative server.

nameserver:/root # tinydns-get soa domain.com
6 domain.com:
193 bytes, 1+1+3+3 records, response, authoritative, noerror
query: 6 domain.com
answer: domain.com 60 SOA ns1.domain.com domain.com 2012043001 10800 3600 604800 3600
authority: domain.com 60 NS ns1.domain.com
authority: domain.com 60 NS ns2.domain.com
authority: domain.com 60 NS ns3.domain.com
<SNIP>

Hits: 133

Syslog: Log Levels

0 -> emerg —-> System is unusable.
1 -> alert ——> Should be corrected immediately.
2 -> crit ——–> Failure in the system’s primary application.
3 -> err ———> An application has exceeded storage.
4 -> warning -> An error will occur if action is not taken.
5 -> notice —–> Events that are unusual.
6 -> info ——–> Normal operational messages.
7 -> debug —–> Debug level logging.

Hits: 537

debian housekeeping

script /common/scripts/debianHK.sh

http://www.linuxquestions.org/questions/debian-26/how-do-i-get-apt-get-to-completely-uninstall-a-package-237772/
http://www.rootkit.nl/files/lynis-documentation.html

apt-get install deborphan debfoster

#apt-get remove –purge package
#apt-get clean

the later will clean the /var

#debfoster

will show files and libraries still left after the apt-get remove –purge, if you don’t recognize a library, keep it, later on, deborphan will give you a list of ‘orphaned’ libraries that are hanging with no use, and are safe to nuke.

if you make a mistake with debfoster, type ‘u’ and will ask you again if you want to keep it. When you are thru with it, invoke deborphan.

#deborphan

will give a list of libraries that are hanging just taking space, to get rid of them:

#deborphan | xargs apt-get -y remove –purge

when thru with that:

#apt-get clean

recently after a dist-ugrade to sid, it installed emacs21, i removed it, and debfoster found some files like emacsen, etc.

aptitude purge ~c
apt-get autoremove

Also you do not need the “remove” when doing apt-get remove –purge package, just apt-get purge package.

deborphan | xargs apt-get -y remove –purge

To remove all orphaned data packages run:

deborphan –guess-dev | xargs apt-get -y remove –purge

To see all the orphaned packages on your system run:

deborphan –guess-all

Hits: 6