formats

Optimize MySQL my.cnf

Optimize MySQL my.cnf | If you are using MySQL, it can help to optimize MySQL according to how much ram you have on your server. Make these changes by editing: /etc/mysql/my.cnf Ubuntu and most all distros include example config file settings based on your available ram. These examples are generally located in: /usr/share/doc/mysql-server-5.1/examples/ -> my-small.cnf.gz my-medium.cnf.gz my-large.cnf.gz my-huge.cnf.gz my-small.cnf

formats

intoDNS.com – Check Your DNS

intoDNS.com – Check Your DNS | intoDNS is a slick web based DNS check. Check it out: http://www.intodns.com

formats

Tiger Local Security Audit

Tiger Local Security Audit | Tiger is an excellent local Linux (*nix) system security audit tool. sudo apt-get install tiger Then run: sudo tiger Tiger checks various things such as all user accounts on the machine, problematic cron and service entries, complete system file permission check, rootkits, backdoors, (Debian/Ubuntu example: complete md5sum of installed files against Debian Security Advisories), listening

formats

Add User to Wheel Group

Add User to Wheel Group | To add a user to the wheel group, simply issue this command: sudo gpasswd -a bob wheel In this example the username is ‘bob’. The output will return: Adding user bob to group wheel

formats

Linux Security Notices

Linux Security Notices | A few links for Linux security alerts and notices:

formats

CentOS Yum Automatic Updates

CentOS Yum Automatic Updates | How to set CentOS to use automatic updates 1. yum install yum-cron 2. chkconfig yum-cron on 3. /etc/init.d/yum-cron start That’s it! This job will run when regular cron.daily tasks are scheduled to run as specified in /etc/crontab.

formats

Rsync Over SSH

Rsync Over SSH | Here is a quick and easy way for transferring files via rsync over ssh. rsync [options] ssh [local source directory] [user@server]:[destination on server] Example: # rsync -avPz /home/bob/workstuff bob@192.168.1.125:~/ a (recursive, hidden files incl, etc. – the standard rsync option) v verbose P show Progress z compress data during transfer This will make a copy

formats

shellinabox With Apache Authentication Over HTTPS 443

shellinabox With Apache Authentication Over HTTPS 443 | shellinabox is an amazing web-based SSH client. It is very handy if you are not on a machine with a good terminal app, are filtered to not having port 22 available, or other uses such as a good web based shell to use while on the ChromeOS notebook. This guide shows how to setup and

formats

Cron Only Email Errors

Cron Only Email Errors | To have your trusty cron job only email errors, simply add this designation to the end of your cron entry: >/dev/null Example: */30 * * * * /usr/local/bin/myscript.pl >/dev/null Optional more geeky details: There are two different kinds of output from any given command. “>” is the same as issuing “1>” which is the non-error

formats

Quick Hping How-To

Quick Hping How-To | hping is an excellent networking tool that can be used to send a crafted packet over a specific port to test firewall settings. In this example, I’ll show you how to do quick firewall port testing using hping3. First, install hping! Ubuntu has the latest hping3: sudo apt-get install hping3 Ok, now let’s send a

Home Archive for category "sysadmin" (Page 16)