Get number of mails in queue in postfix
Wednesday, December 26th, 2012 Posted in Debian, Linux, Postfix | No Comments »To show the queue of postfix, just run postqueue -p But if you will like to show the total number of mails in the postfix queue, you can run this streng. postqueue -p | tail -n 1 | cut -d' ' -f5
Compiling Linux Kernel 3.6.X the debian/ubuntu way for Hyper-V
Thursday, November 8th, 2012 Posted in Andet, Debian, Linux | No Comments »Here is a guide to compile a kernel 3.6.X kernel for hyper-v the debian way. [crayon-519fb33e5a93b/]
Linux find hidden files in path
Monday, November 5th, 2012 Posted in Debian, Linux | No Comments »If you want to find any hidden files (Files with a dot first), you can use this command: [crayon-519fb33e5d28e/] You can change ./ to be /var/www to find any hidden files in /var/www
Problems with a shell script running from cron
Saturday, November 3rd, 2012 Posted in Debian, Linux | No Comments »If you have a shellscript thats run okay from shell, but not will running from cron, run this command (This is what it looks like when cron run it) [crayon-519fb33e5d604/]
Kill all process from ps and grep
Monday, October 1st, 2012 Posted in Debian, Linux | No Comments »This command will kill all instance from [crayon-519fb33e5d9b3/] [crayon-519fb33e5da28/]
Get list of installed programs from dead disk ubuntu debian
Tuesday, May 24th, 2011 Posted in Debian | No Comments »If you have a dead installation, some will not boot you can use this commands, to get the list of installed programs. [crayon-519fb33e5de58/] And this command to install it on a new installation: [crayon-519fb33e5decc/]
Ubuntu and (dot).local addresses – Avahi
Thursday, August 26th, 2010 Posted in Debian, Linux | No Comments »I have a Ubuntu server where there was a problem with .local address, i could't look up the zone from the server. After a little search i found that Avahi (Zeroconf) was the problem. The default setup of Avahi, is to look ...
Quick pingscan with nmap (ipscan / ip scan)
Thursday, May 20th, 2010 Posted in Debian, Linux | No Comments »root@ubuntu-server:~# nmap -sP 10.45.1.1-255 Starting Nmap 5.00 ( http://nmap.org ) at 2010-05-20 13:12 CEST Host 10.45.1.1 is up. Host 10.45.1.2 is up (0.0011s latency). MAC Address: 00:19:E0:12:26:1E (Tp-link Technologies Co.) Host 10.45.1.20 is up (0.040s latency). MAC Address: 00:1C:C4:0C:66:5F (Hewlett Packard) Host 10.45.1.30 is up (0.00093s latency). MAC ...
QMAIL + VPOPMAIL (with MySQL accounts) + COURIER-IMAP + Roundcube, QMAIL-SCANNER + CLAM ANTIVIRUS + SPAMASSASSIN
Wednesday, May 19th, 2010 Posted in Debian, Linux | No Comments »I have get the permission to copy paste this great guide and keep it updated. The Guide will soon come in a updated version on this homepage. Link to the Original is online here: http://www.bowe.id.au/michael/isp/webmail-server.htm INSTALL UCSPI-TCP [crayon-519fb33e5f6ff/] [crayon-519fb33e5f774/] [crayon-519fb33e5f7e6/] [crayon-519fb33e5f857/] [crayon-519fb33e5f8c8/] INSTALL DAEMONTOOLS [crayon-519fb33e5f93a/] INSTALL QMAIL Download the required files [crayon-519fb33e5f9ad/] Create ...
Pureftpd (Ubuntu / Debian)
Tuesday, March 23rd, 2010 Posted in Debian, Linux | No Comments »Setting up Pure ftpd to run on certains port is very simple. Log on to you linux box and run this command: echo "60010 60030" > /etc/pure-ftpd/conf/PassivePortRange /etc/init.d/pure-ftpd restart or if you run mysql as a backend /etc/init.d/pure-ftpd-mysql restart Now you just need to forward port ...