Auto Mount NAS drive on MAC

sudo nano /etc/auto_master Add to the end /mnt/NAS auto_nas sudo nano /etc/auto_nas Shared -fstype=afp afp://username:password@nasname/Shared sudo automount -vc Open Finder goto /mnt drag them to Favs

FusionPBX PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0

I was working on a FusionPBX and it wouldn’t upload a voicemail greeting. When i checked in the /var/log/httd/error_log there was a error PHP Warning: File upload error – unable to create a temporary file in Unknown on line 0, referer: /app/voicemail_greetings/voicemail_greetings.php?id=1001&back=%2Fapp%2Fvoicemails%2Fvoicemails.php   After doing some digging around i found that the upload_tmp_dir = wasn’t set. After […]

Windows can’t find driver USB Storage devices?

I spent a few days trying to figure this out, and apparently all modern versions of Windows suffer from it, yet it’s barely/poorly documented anywhere: If your usb devices are no longer recognized by Windows, no matter how many times you try to install or update the drivers, go look in c:\windows\inf\ (make sure you […]

Register all dll’s in a folder.

If you need to register a lof of dll’s all at once this command will help you out. for %x in (c:\windows\system32\*.dll) do regsvr32 -s %x

Reset Xerox Spooler

Unplug the machine from power for five minutes. Plug it back in, but dont turn it on. Press and hold down the [6] button on the numeric keypad, the [Energy Saver] and the [Stop] buttons Then, only once you are holding those buttons, power on the machine. Continue to hold down the three buttons until […]

Firewalld Add allowed Port or Block IP

To allow ports like webmin firewall-cmd –permanent –zone=public –add-port=10000/tcp firewall-cmd –reload Also to block firewall-cmd –permanent –add-rich-rule=”rule family=’ipv4′ source address=’89.163.210.0/24′ reject” firewall-cmd –reload

TCP Offload

IF your having slow network on your Centos box best you check for TCP offloading issues. tcpdump -i eth1 -v -nn| grep -i incorrect   If you get a lot of 103.4.122.47.22 > 103.4.123.36.53996: Flags [P.], cksum 0xc3d6 (incorrect -> 0xd4eb), seq 7496:7592, ack 9003, win 559, length 96   then try ethtool -K eth0 […]

Centos password sniffer

Some time you need to see what customers are typing in as their password on the server to find typos.   tcpdump -i eth0 port smtp or port imap or port pop3 -l -A | egrep -i ‘pass=|pwd=|log=|login=|user=|username=|pw=|passw=|passwd=|password=|pass:|user:|userna me:|password:|login:|pass |user ‘ This little command will show you unencrypted passwords on the fly.