formats

Apache WordPress Drupal Website Permissions

Published on 2013/01/14, by in linux, sysadmin.

Apache WordPress Drupal Website Permissions | Permissions on a Linux webserver is an often confusing topic but hopefully I can clear the mud. There may not be one right answer for all, but below are some suggested configurations! The following applies to WordPress, Drupal, or any similar application. Two concepts to hang on to: – In Linux there are users who

formats

Use du to show directory sizes only

Published on 2013/01/11, by in linux, windows.

Use du to show directory sizes only | du can show directory sizes only. This is helpful to get a quick glance at what directories are taking up space. Here’s the command I like to use: $ du -sh * Here is what it looks like in action from /var on one of my servers: stmiller@li166-66:/var$ sudo du -sh * 38M backups 48M

formats

How to Generate a Private Key and CSR from Command Line

Published on 2013/01/11, by in linux, sysadmin.

How to Generate a Private Key and CSR from Command Line | Use the following command to generate a private key and certificate signing request (CSR): $ openssl req -new -newkey rsa:2048 -nodes -keyout server_private.key -out server_csr.csr In the dialog that follows, pay particular attention to the CommonName (CN) indication. If you need a certificate for example.com, use example.com (exactly) as the CN. For example, if you

formats

Monitor MySQL Performance with mytop

Published on 2013/01/10, by in linux, sysadmin.

Monitor MySQL Performance with mytop | mytop is an excellent app to monitor mysql performance. Let’s check it out! Firstly, install mytop: $ sudo apt-get install mytop Run mytop with tack tack prompt to have mytop prompt for the root mysql password: $ mytop –prompt Done! You can now monitor the number of mysql queries the server is processing as well

formats

Make your terminal snow

Published on 2012/12/24, by in linux.

Make your terminal snow | Make your terminal snow with this cool python terminal app. The github page is: https://gist.github.com/1508912

formats

Tunnel DNS through ssh -D socks proxy

Published on 2012/12/19, by in linux, osx, sysadmin.

Tunnel DNS through ssh -D socks proxy | When using ssh -D to setup a socks proxy, DNS queries and DNS traffic are not sent through the ssh tunnel. However, with Firefox a config change can be made to send DNS traffic through the ssh tunnel. Here’s how it works! First, establish an ssh proxy: $ ssh -D 9000 user@host Then in Firefox,

formats

Use hdparm to Retrieve Hard Drive Specs

Published on 2012/12/13, by in linux.

Use hdparm to Retrieve Hard Drive Specs | hdparm is an excellent command line utility for various things concerning hard drives. A quick feature it has is to provide detailed specs of a particular hard drive. I’ll show you how it works! The command is sudo hdparm -I hard drive Here is an example: $ sudo hdparm -I /dev/sdc /dev/sdc: ATA device, with

formats

Nessus html5 URL

Published on 2012/12/12, by in linux, sysadmin.

Nessus html5 URL | Nessus now has a fancy html5 interface! The URL is: https://localhost:8834/html5.html

formats

CentOS 6 or Red Hat 6 | Install DHCP Server

Published on 2012/12/10, by in linux, sysadmin.

CentOS 6 or Red Hat 6 | Install DHCP Server | On CentOS 6 or Red Hat 6, installing a DHCP server is not too difficult. I’ll show you how it works! First, install the DHCP server: $ sudo yum install dhcp The configuration file (blank) is located here: /etc/dhcp/dhcpd.conf To copy a sample configuration file over for the production file, use the following command: $

formats

Use nmap to check DNS configuration best practices

Published on 2012/12/03, by in linux, sysadmin.

Use nmap to check DNS configuration best practices | A new NSE script in nmap 6.25 checks DNS zone configuration best practices. I’ll show you how it works! First, you will need nmap 6.25 (or later) installed: http://nmap.org/download.html Now with nmap 6.25 installed, run the below command against a DNS server. In this example, I am checking the configuration of the zone google.com from

Home Archive for category "linux" (Page 11)