MTA stands for „mail transfer agent“. Popular ones are sendmail, exim and postfix.
If you want to know what MTA is running locally you can check which program listens on port 25:
You might also telnet on port 25 and let the MTA himself respond who he is:
For configuring exim4 the preferred way is to use the graphical interface, call it with:
dpkg - reconfigure exim4 - config
The swiss army knife for smtp is swaks:
you simply may download the script from the page and execute it like this:
Veröffentlicht unter smtp.
Some usefull commands:
change your nick
List channels on current server
Join a channel named „channelname“
Leave a channel
Easiest way to check a connection for a MSSQL database:
Create a file called : myfile.udl
Paste the following content (make sure to use your settings):
[ oledb ] ; Everything after this line is an OLE DB initstring Provider = SQLOLEDB . 1 ; Persist Security Info = False ; User ID = myUsername ; Data Source = 188.8.131.52 ; Password = myPassword
Veröffentlicht unter mssql.
Do you want to know how often words occur in a pdf file? And sort them by the most occurring word:
pdftotext mypdf . pdf - | sed "s/[[:cntrl:][:digit:][:punct:]]//g" | tr '[:space:]' '[\n*]' | sort | uniq - c | sort - bnr
Let’s break it down step by step:
displays the pdf content on the command-line
replaces all control characters (cntrl), all numbers (digits) and all punctuation characters (punct) with an empty string.
See here for character classes.
replaces all spaces with a newline
sort | uniq - c | sort - bnr
The last part sorts the output, groups unique lines and prefix them with the amount and finally sort them again
with ignored leading blanks (-b), sort numeric (-n), in reverse order (-r)
Veröffentlicht unter pdf.
Let’s have a look which packages are already installed and show only those with „php“ in the name. A fresh system usually shouldn’t give any results.
dpkg -- get - selections | grep php
Next you can check what kind of modules are available. Do it like this:
sudo apt - cache search -- names - only php7
Now install the php7 base packages with the command:
sudo apt - get install - y php7 . 0
Now install some other packages for php:
sudo apt - get install - y libapache2 - mod - php7 . 0 php7 . 0 - curl php7 . 0 - xml php7 . 0 - mysql php7 . 0 - mcrypt php7 . 0 - intl php7 . 0 - zip php7 . 0 - bz2
Sometimes it happens that you can’t use your services cause they deal with blocked ports. For exampel you use mysql on the commandline and it is by some reason denied. A proxy can help you. Tsocks helps you to use a proxy. Tsocks is a library for intercepting outgoing network connections and redirecting them through a SOCKS server.
install tsocks with
sudo apt - get install tsocks
Configure the file /etc/tsocks.conf
# the proxys address server = 10.100.13.50 # the server type server_type = 5 # the proxys port server_port = 3306
and finally call your command like this:
tsocks mysql - h myHost - u myUser - pPassword