Category: Ubuntu
IPTables
To have the tables load after reboot sudo apt-get install iptables-persistent Then after you edit the iptables, if you want to update the initial file you should sudo /etc/init.d/iptables-persistent save To enable the log, you need to: iptables -N […]
Script to Rotate Backups
Delete all files except the ones the first day of the month. root@DiskStation:/volume1/homes/scripts# find /volume1/NetBackup/Servers/MIA/Asterisk/Admin/Cron/ -type f -mtime +7 ! -name '*01-*' -exec rm -rf {} \;
Ubuntu: Resolve out of Memory
Out of memory: Kill process 10356 (mysqld) This happens because the system is out of memory, you should investigate the reason. It is not necessarily a MySQL problem, there may be a memory leak somewhere else that leaves […]
Ubuntu: Relevant and Useful Commands
Example of the Command FIND How to find all the Logs on your server find / -iname '*.log' find /var/spool/asterisk/monitor/ -iname '*0414*' Change server Timezone dpkg-reconfigure tzdata Restart Openbravo Tomcat /etc/init.d/openbravo-tomcat restart To Check if your server is 32 or […]