Setting up GlusterFS on Centos 6.5
This is a step by step setup on GlusterFS on a single node and drive. Mostly this is a proof of concept but it is also intended to provide an easily scalable method of adding storage space as my needs increase. I don’t need high availability or a very high degree of performance since this […]
Using Gmail as a relay for postfix
First, install the needed packages: # yum install postfix # yum install cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 Then configure postfix: Edit /etc/postfix/main.cf and add these lines: smtp_sasl_security_options = noanonymous relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd Create /etc/postfix/sasl/passwd and add this line: [smtp.gmail.com]:587 username@gmail.com:password Then change the permissions for […]
Creating a Partition Larger than 2TB on Linux with Parted
First, find out the size of the disk by typing the following command: fdisk -l /dev/sdb Then, to create a partition start GNU parted as follows: parted /dev/sdb Creates a new GPT disklabel i.e. partition table: (parted) mklabel gpt Next, set the default unit to TB, enter: (parted) unit TB To create a 3TB partition […]
Create a Custom Command on Linux
Creating a custom command is sometimes very convenient and very easy. 1. Create a bash script and save #!/bin/bash # The code goes here 2. Make the script executable chmod +x [script] 3. Then you can either move it into the /usr/bin directory or create a soft link in /usr/bin to the script file ln […]
IPTABLES Configuration
In addition to using system-config-firewall (which is not installed on RHEL by default) one can edit the configuration file directly. This also helps if you need to add more specific rules. File: /etc/sysconfig/iptables Open a port up to everybody: -A INPUT -m state –state NEW -m tcp -p tcp –dport [Port Number] -j ACCEPT Open […]
This website uses cookies to improve your browsing experience. Cookies help us remember your preferences, keep you logged in, and understand how you interact with our site. We do not share any personal information collected by cookies with third parties.