Preparing a Ubuntu (or other distro) Web Server for Drupal

So I recently created a VMware application with Ubuntu to test some of my Drupal sites offline. You can easily install Ubuntu by downloading one of their Images, I recommend 8.04.4 LTS (Hardy Heron) as it comes with Php 5.2. Anything after Hardy Heron comes with PHP 5.3 which causes issues with Drupal 6. If you are using Drupal 7 or newer, than it probably wont matter. But as most of us our probably on Drupal 6, I thought I would mention this.

So just download the server version and run through the installation. It's pretty straitforward and at one point it will ask if you want to install optional services. Install the LAMP, OpenSSH, and anything else you will want. Now you should have a running server with a basic LAMP install running. You will want to edit a few things so that it plays nicely with Drupal.

Drupal uses a bit of memory, so let's increase this first. Edit your php.ini and my.cnf files.

# nano /etc/mysql/my.cnf

Search for max_allowed_packet, there will be two occurrences, increase the limit to whatever you see fit, I push mine to 128M.

# nano /etc/php5/apache2/php.ini Read more »

Linux - How to Install and Use Zip

With Ubuntu you can easily install Zip by issuing the following command:

# sudo apt-get install zip

Then to zip a folder do this:

# zip -9 -r archivename /folder/location

That's it!


Ubuntu - How to Install and Setup Samba File Sharing

Install Samba

sudo apt-get install samba smbfs

Then edit the config file

sudo nano /etc/samba/smb.conf

Find the Authentication section which is marked with a header of

'####### Authentication #######' and make the following changes.

Uncomment the security line and add a line

security = user
username map = /etc/samba/smbusers

Now let's add a Samba user by running this command:

# sudo smbpasswd -a <username>

it will then ask you to set a password and confirm

next we will create the file we referenced above and add this

user we just added.

# sudo gedit /etc/samba/smbusers

Add the ubuntu username which you want mapped to the current user

you just added to samba.

Something like this:

<ubuntu-username> = "<samba username>"

save file and exit

Now setup which folders to share

# sudo nano /etc/samba/smb.conf

Find the Share definition section by looking for this

"#======================= Share Definitions

=======================" Read more »

Ubuntu - How to setup SSH

To enable SSH you simply need to install openssh server. For Ubuntu do the following:

# sudo apt-get install openssh-server

It should work as is, but if you want to limit access you should edit the following file:

# nano /etc/ssh/sshd_config

Now from a PC or Mac use a SSH client and access your Ubuntu server.


Ubuntu - How to Set a Static IP Address

You will need to manually edit some files to set your static IP address. Do the following:

# sudo nano /etc/network/interfaces

Change the file to look like below:

auto lo eth0
iface lo inet loopback
iface eth0 inet static

Change the xxx's with the appropriate network information. Read more »

How to Sync Multiple Google Calendars with your iPhone calendar

Well hopefully you are using Google's calendar system to manage your everyday tasks, appointments, birthdays, and special days. If not, you really need to get on the bandwagon. Google Calendar is hands down the BEST calendar software out there and it's free. It's everything you need in a calendar system, fast, super efficient at adding/removing and changing dates. Easily add others, setup reminders, recurring events, etc. It even has an appointment section now that you can set windows of time to be able for appointment and then give that link out to people to set appointments with you. Cool right?!?! Read more »

Screencast and best production settings for youtube and online sites

The worst part about making video tutorials and screen casts is how difficult it is to produce the video and ensure the quality remains good once it gets on Youtube. I spent a lot of time testing different codecs, resolutions, etc. However these standards seem to change every year, and then video distribution platforms change how they encode videos, etc. So I wanted to share which format I use and record it to get good results on YouTube currently.

For screen casts I record in 1280 x 720 resolution. Then I use Camtasia studio to edit my screen recording and I output/produce as mp4. This seems to convert fairly quickly and also upload and go live fairly quickly on YouTube. The quality ends up being very good and appears almost loss less.



WOL - Wake on Lan video tutorial has been uploaded to Youtube

If you have read my previous tutorial on WOL, be sure to check out my video tutorial which is now up on youtube!

New Favorite Quote

My new favorite quote, and I live and breathe by it. "CEOs should care about details. Even shades of yellow. On a Sunday" - Vic Gundotra

If you read the post below it will make a lot more sense...

Vic Gundotra originally shared this post: Read more »

Syndicate content