This tutorial demonstrates how to install vsftp on CentOS/Redhat and configure it to allow connections over TLS for additional security. We’ll also chroot the users to their own directory. Install vsftp: yum install vsftp Edit the config file “/etc/vsftpd/vsftpd.conf” and set the following: rsa_cert_file=/etc/vsftpd/vsftpd.pem rsa_private_key_file=/etc/vsftpd/vsftpd.pem chroot_local_user=YES anonymous_enable=NO ssl_enable=YES allow_anon_ssl=NO force_local_data_ssl=YES
Read moreContact our friendly team to get started.
Detect newly added disks. Linux on VMWare.
This one liner shows how to get Linux (CentOS in this case) to detect a newly added disk on a VMWare host. This was found on “http://wingloon.com/2013/05/07/how-to-detect-a-new-hard-disk-without-rebooting-vmware-linux-guest/”. ls /sys/class/scsi_host/ | while read host ; do echo “- – -” > /sys/class/scsi_host/$host/scan ; done There you have it.
Read moreInstall a MySQL client for Mac
Actually there are several to choose from. We’ll go with “Sequel” for this tutorial. Download it from here: https://sequel-pro.googlecode.com/files/sequel-pro-1.0.2.dmg The Sequel is a GUI based tool but still allows you to run queries, browse data, etc.
Read moreInstall and Configure Tripwire on CentOS/Redhat
This article demonstrates how to install Tripwire on CentOS and Redhat. yum -y install tripwire Then have a look at “/etc/tripwire/twcfg.txt” and “/etc/tripwire/twpol.txt”. Nothing needs changing unless you need to. I’d suggest adding “[email protected]” to “/etc/tripwire/twpol.txt” to have reports emailed to you. Run the following: tripwire-setup-keyfiles The above requires you
Read moreSchedule jobs with the AT command
You can schedule commands to run at a later time by using the ‘at’ command. Why use ‘at’ when you can use ‘cron’? Because ‘at’ is good for tasks that only need to run once. To set a task (to email a log file at a later time) to run
Read moreInstall a Gnome Desktop on CentOS or Redhat
This article explains how to install a GUI desktop (Gnome) on a Redhat or CentOS system and have the system boot to that GUI on startup. yum -y groupinstall “Desktop” “Desktop Platform” “X Window System” “Fonts” To have Gnome start on boot, you will need to edit the file “/etc/inittab”
Read moreUpgrade to php-5.5 on CentOS/Redhat
This article demonstrates how to upgrade from php-5.3 to php-5.5 on CentOS or Redhat. rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm Now run the yum command to see a list of php-5.5 options: yum list php55w* Run the upgrade using the following commands: yum install yum-plugin-replace yum replace php-common –replace-with=php55w-common You will receive a
Read morecPanel overwriting my pg_hba.conf file
This article describes and solves (work-around) a problems with PostgreSQL and cPanel. The issue is that cPanel modifies the file “/var/lib/pgsql/9.4/data/pg_hba.conf” setting it back to a default state. This article has more information: http://www.davidghedini.com/pg/entry/installing_postgresql_9_on_cpanel By setting that file to your liking such as the following: local all all md5 host
Read moreCSS Basics
This article explains how CSS (style sheets) work to enhance websites. Essentially CSS is used to change the way content is displayed in a web browser. Get more tips here http://www.w3schools.com/css/ Web browsers know what do to when text is marked-up. But you can change that with CSS. The following is
Read moreLogin to PostgreSQL with PSQL on Redhat/CentOS
This article explains how to login to a PostgreSQL server using the psql tool on Redhat and/or CentOS. You first need the psql tool: yum install postgresql Then use the format below to connect and login. Here we’ll use the username of ‘root’ and the hostname is ‘db.agix.com.au’. psql -h
Read more