Dienstag, 16. Januar 2018

Unix LINUX: how to find a string in a file

find /here-your-directory -type f -exec grep here-your-text {} \; -print

sudo find /here-your-directory -type f -print0 | xargs -0 grep here-your-text

Donnerstag, 28. Dezember 2017

MAC TFTP Server

MAC OS/X has a build-in TFTP server:

Start it with:

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
sudo launchctl start com.apple.tftpd

The default tftp file path is

/private/tftpboot


Stop it with:

sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist

Donnerstag, 21. Dezember 2017

Snom VPN how to

In case you want to use a Snom via VPN

Export your openSense blabla.ovpn configuration.
Rename it to vpn.cnf
Create a pass.txt file with username and password for the VPN User
Create ca.crt file
Make a tar out of the files above call openvpn.tar


Montag, 27. November 2017

FreePBX and Postfix

In case your FreePBX can not send mails....

sudo postmap /etc/postfix/sasl_passwd
sudo postfix reload

Mailqueue anzeigen ( „less“,  falls zu viele Mails in der Schlange stehen) mailq | less
oder
postqueue -p
gesamten Schlange löschen: postsuper -d ALL
einzelne Mails aus der Schlange löschen: postsuper -d ID (Die ID erfährt man durch „mailq | less“)
Postfix zwingen, die Mails zu versenden postqueue -f
Versuchen verzögerte (deferred) Mails abzuschicken (erzwingen) postqueue -i ID
Verzögerte (deferred) Mails aus dem Queue löschen postsuper -d ALL deferred

Mittwoch, 15. November 2017

mySql und myPHPAdmin an alternate way to administrate

In case you need access to you mySQL DB on your Server try this:

https://www.adminer.org/de/

Just put it in /var/www/html/wp-access/

Change group
Make it executable


Sonntag, 5. November 2017

FreePDF problems with Windows 10


In case you use FreePDF and you have problems with the layout. Try this in a command shell as administrator:



ren "%windir%\System32\spool\drivers\x64\3\MSGENCOL.PPD" MSGENCOL.PPD.BACKUP

copy "%ProgramFiles(x86)%\FreePDF_XP\freepdfxp.ppd" "%windir%\System32\spool\drivers\x64\3\MSGENCOL.PPD"

net stop spooler

net start spooler

Sonntag, 15. Oktober 2017

Ubuntu: Boot-Partition full

In case your /boot is used 100%

List your installed kernels:

sudo dpkg -l | grep linux-image

remove old files:

sudo apt-get purge linux-image-4.4.0-93-generic