CentOS 6 VPS GoDaddy Setup FTP and Pico Editor

Unknown

CentOS 6 VPS GoDaddy, without a control panel, setup FTP, Pico Text Editor notes below.

Connect via SSH; using your servers IP and VPS server username and password.

Login as sudo super user
su -

Install vsftpd
yum install -y vsftpd

Install nano for pico
yum install nano
cd /usr/bin/
ln -s nano pico
export EDITOR=”pico”

Add it to the group used by your web server
sudo usermod -a -G apache yourusername

Change the account to use the document root as its home directory
User logged in error
sudo usermod -d /var/www/html yourusername

Change the document root so it and its contents are in the same group as the web server
sudo chgrp -R apache /var/www/html

Make the document root group-writable
Set the “setgid” permission on the document root
sudo chmod -R g+w /var/www/html
sudo chmod g+s /var/www/html

Restart vsftpd
sudo service vsftpd restart

Put Some Space Around It

space-ps3

Most of the machines we love and depend on are air cooled. Allowing for proper air flow will extend the life of your machine. Even your iPhone will heat up in your pocket; after extended use.

When a router over heats; it can perform intermittently. This can make it hard to troubleshoot. Tightly packed closets are usually the cause. Simply restart/power cycle the router and it usually fixes the issue. But you’ll also have to deal with the closet while you’re there. A tightly packed closet can be improved without much cost to the organization. Improving air flow in an out of the closet may be all that is needed. Only in extreme cases are costly racks and fans required. Leaving the closet door open can have immediate results.

Whether it be a cell phone, PS3, router, desktop, laptop or tablet allow four inches of space for air flow on all sides.

Here are a few ideas on adding air flow to your existing machines without much cost to you or your organization.

Clean the air intake vents of dust. Use a vacuum to remove dust and debris from vents.

Some cell phones and tablets don’t have vents. If the device has an after market case; be sure that it allows for adequate air flow. Remove the case when you feel the device heating up.

If you have any heat producing power blocks/plugs you can add a plastic cup to hold it up and away from the heat trapping carpet.

I saw one smart designer use a wire tray/basket that was used to hold legal sized paper from the office. The tray/basket was flipped upside down and the rubber feet on the tray keeps the MacBook Pro unscratched.

paper-tray

A Dollar Store Door hanger/coat rack can be used to extend the life of a number of machines.

door-coat-hanger

Do you have a way of keeping your machines cool that you would like to share? Let me know at twitter.com/carlnunes

Spiral Sketch with Four Color Pen


90% planning, 10% execution. Sketching is an essential part of any design process. Even the sharpest minds sketch in their heads before executing their craft.

Four Color Ballpoint Ink Pen

  • Black, Blue, Green, Red. Colors help to section ideas

Spiral Sketch with Perforated Recycled Paper Pages

  • Blank pages for drawing and writing
  • Perforated pages for removing and scanning

Spiral sketch with perforated recycled pages and four color ink pen.
Do you have a favorite design sketch book and pen? Let me know at twitter.com/carlnunes

Install MySQL on Snow Leopard and database administration using Terminal Commands

MySQL Installation

MySQL server administration using Terminal Commands

Done with phpMyAdmin, for localhost development, since discovering the simplicity of MySQL administration via Terminal. C.R.U.D.

Connect to MySQL Server

  • Open Terminal
  • sudo -s
  • enter your password
  • /usr/local/mysql/bin/mysql

Create

  • create database sandbox;

Read

  • use sandbox;
  • show tables;

Update

  • use sandbox;
  • update table_example_name set field_example_name = replace(field_example_name, ''''http://sandbox.com'''', ''''http://sandbox.dev'''');

Delete

  • drop database sandbox;

MySQL Cheatsheet

en.wikibooks.org/wiki/MySQL

Install websites locally or offline for localhost development on Snow Leopard 10.6.7

Install websites locally for offline development on Snow Leopard 10.6.7 using Mac OS X’s built in Apache2, PHP5, adding only MySQL and set up Virtualhosts in three steps.

Using the Sites Folder as Document Root helps to centralize data backups. This does present a permissions issues but is solved with two terminal commands.

Edit apacheclt

  • Open Terminal
  • sudo -s
  • enter your password
  • pico /usr/sbin/apachectl
  • ctrl + W
  • ULIMIT
  • Enter
  • remove everything in the quotes
  • Ctrl + X
  • Y
  • Enter

PHP5 Enabling

  • pico /etc/apache2/httpd.conf
  • ctrl + W
  • LoadModule php5_module
  • Delete the hash symbol
  • Ctrl + X
  • Y
  • Enter
  • apachectl restart
  • open http://localhost

MySQL Installation

Install MySQL on Snow Leopard and database administration using Terminal Commands

Sites Folder as DocumentRoot

  • pico /etc/apache2/httpd.conf
  • Ctrl + W
  • DocumentRoot "/Library/WebServer/Documents"
  • Replace “/Library/WebServer/Documents” with “/Users/carlnunes/Sites”
  • Ctrl + X
  • Y
  • Enter
  • Add user to /private/etc/apache2/users/carlnunes.conf
  • pico /private/etc/apache2/users/carlnunes.conf
  • Edit file to match these settings
  • <Directory "/Users/carlnunes/Sites/"> Options FollowSymLinks Indexes MultiViewsAllowOverride AllOrder allow,denyAllow from all</Directory>
  • Ctrl + X
  • Y
  • Enter
  • chown -R :_www /Users/carlnunes/Sites
  • chmod -R 777 /Users/carlnunes/Sites

Enable Virtualhosts in httpd.conf

  • pico /etc/apache2/httpd.conf
  • Ctrl + W
  • #Include /private/etc/apache2/extra/httpd-vhosts.conf
  • Delete the hash symbol
  • Ctrl + X
  • Y
  • Enter

Add Virtualhosts in httpd-vhosts.conf

  • Open httpd-vhosts.conf
  • pico /private/etc/apache2/extra/httpd-vhosts.conf
  • Ctrl + W
  • NameVirtualHost *:80
  • Add the following code for each Virtualhost
  • <VirtualHost *:80> <Directory /Users/carlnunes/Sites/sandbox> AllowOverride All Order allow,deny Allow from all </Directory> DocumentRoot /Users/carlnunes/Sites/sandbox ServerName sandbox.dev </VirtualHost>
  • Ctrl + X
  • Y
  • Enter

Add VirtualHost to hosts File

  • Open hosts
  • pico /etc/hosts
  • Add the following code for each Virtualhost
  • 127.0.0.1 sandbox.dev
  • Ctrl + X
  • Y
  • Enter
  • apachectl restart
  • open http://sandbox.dev

WordPress Install Checklist

  • Record your install information, in a text file, before you install.

    hst: URL to hosted database
    dbn: databasename
    pas: Y0ur$3curPassW0rD
    phpMyAdmin: URL to database admin

    usr: WordPressAdmin *Do not use the default admin user name
    pas: Y0ur$3curPassW0rD

  • Create database at host

    Record database information after database creation. Host will sometimes change your username or password; to keep them unique.

  • Rename Category Uncategorized to Default

  • Uncheck Bar in User settings

  • Edit or erase default tagline

  • Permalinks to /%POSTNAME%/

Recommended Plugins

HTML5, iOS, LAMP, Mac OS X, MySQL, PHP5, Web Apps, Web Design