jump to navigation

Ubuntu Updates and Installs December 20, 2008

Posted by ModelR in UBUNTU LAMP Project.
add a comment
THIS IS A SUBSECTION OF THE VERY VITAL UBUNTU LAMP SERVER PROJECT

You can find the full outline of this project here:
LINK: Very Vital Ubuntu LAMP Server Project Outline

Please support this project.
Make A Donation

Just a quick recap. Basically we have installed the Jeos server. Now it’s fresh and ready for us to customize.

First we will run a check for updates with the following command:
$ sudo apt-get update && sudo apt-get upgrade

Then we will move on to installing VMware Tools
You can also refer to this documentation: Ubuntu Help on installing VMware Tools
Or documentation more specific to Jeos:Installing VMware Tools on Jeos
Here are the commands we will run:
$ sudo aptitude install build-essential linux-headers-$(uname -r)

$ sudo aptitude install psmisc

On the VMware server console, click: VM -> Install VMware Tools

$ mount /media/cdrom0

$ sudo cp -a /media/cdrom0/VMwareTools*.gz /tmp/
$ cd /tmp/
$ sudo tar -xzvf VMwareTools*.gz

$ cd vmware-tools-distrib/
$ sudo ./vmware-install.pl

Accept all the default settings when asked for input

—-
Now that all that is out of the way we will install the LAMP package
NOTE: To install the various LAMP components on a Debian system, see this article here: http://www.howtoforge.com/ubuntu_debian_lamp_server

$ sudo apt-get install lamp-server^

Install the OpenSSH server
$ sudo apt-get install openssh-server

Install the Samba server
$ sudo apt-get install samba

Install phpMyAdmin
$ sudo apt-get install phpmyadmin

Install GD Graphics Library
$ sudo apt-get install php5-gd

Installed the Nano text editor (it’s more convenient to use than vi)
$ sudo apt-get install nano

Installed cURL
$ sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

Give the tmp directory proper permissions
$ sudo chmod 1777 /tmp

On the STANDARD version, enabled the userdirectory module
Now each user can store their own website in their /home/username/public_html directory
$ sudo a2enmod userdir

—–
We will create a first run script to change the user1 password and the MySQL root password

add the following to bottom of /etc/bash.bashrc:

if [ ! -e /etc/opt/first-run/initial_config_done ]; then
/opt/first-run/initial_config.sh
sudo touch /etc/opt/first-run/initial_config_done
fi

create a sub-directory called first-run in /opt/
$ sudo mkdir /opt/first-run/

create a sub-directory called first-run in /etc/opt/
$ sudo mkdir /etc/opt/first-run/

create this file:
/opt/first-run/initial_config.sh

edit the file initial_config with a text editor, entering this:
#!/bin/bash

# FIX THE NETWORK BY DELETING A FILE
echo ""
echo ""
sudo rm -rf /etc/udev/rules.d/70-persistent-net.rules
echo ""
echo ""
echo ""
echo "Thank you for choosing the Very Vital LAMP Server"
echo "This is the FIRST RUN of this server"
echo "We are going to go through a few setup steps"
echo "Then we will reboot the server"
echo ""
echo "For your security we will now change your password"
let done=0
while [ $done -eq 0 ]; do
read -s -p "New password: " NEWPASS1
echo""
read -s -p "Confirm new password: " NEWPASS2
echo ""
if [ "$NEWPASS1" == "$NEWPASS2" ]; then
let done=1
(echo $NEWPASS1; echo $NEWPASS1) | passwd
else
echo "The passwords do not match, please try again."
echo ""
fi
done

# Now change the mysql password
echo ""
echo ""
echo "Please specify a new MySQL root password"
let done=0
while [ $done -eq 0 ]; do
read -e -s -r -p "New MySQL root password:" PASS1
echo ""
read -e -s -r -p "Confirm the MySQL root password:" PASS2
if [[ "$PASS1" == "$PASS2" ]]; then
let done=1
#perfrom the actual change assuming that our initial password is root
mysqladmin -u root --password='root' password $PASS1
else
echo "The passwords do not match, please try again."
fi
done

#Perform the reinstall of openssh so that the key is regenerated
echo ""
echo ""
echo "Would you like to create new SSH keys?"
echo "Please note that you will require an internet connection"
echo "If you do not have an internet connection type NO"
echo "Otherwise you will not be able to use SSH to connect to this server"
read -p "Create new SSH keys? Type YES to create new: " confirm
if [ "$confirm" == "YES" ]; then
echo "We are now going to generate your ssh keys"
sudo apt-get .purge -y remove openssh-server
sudo apt-get install -y openssh-server
echo ""
else
echo ""
echo "SSH new key creation successfully aborted."
echo ""
fi
# ADDITIONAL FIRST USER LOGIN ACTIONS BELOW
echo ""
echo "The current hostname is: "$(hostname)
read -p "Would you like to change it? Type YES to change: " change
if [ "$change" == "YES" ]; then
echo ""
echo "Note: After name change system will reboot"
read -p "Enter new hostname : " newhost
cat /etc/hostname | sed -e {'s/'$(hostname)'/'$newhost'/'} > /tmp/hostname2
cat /etc/hosts | sed -e {'s/'$(hostname)'/'$newhost'/'} > /tmp/hosts2
sudo rm -rf /etc/hostname
sudo mv /tmp/hostname2 /etc/hostname
sudo rm -rf /etc/hosts
sudo mv /tmp/hosts2 /etc/hosts
echo "The hostname has been changed to: "$newhost
echo ""
else
echo ""
echo "Current hostname is still the same: "$(hostname)
echo ""
fi
echo "You have completed the FIRST RUN"
echo "Before you start please reboot the system"
echo "Type this command to reboot the system: sudo init 6"
echo ""

Then we’ll make the above script executable
$ sudo chmod a+x /opt/first-run/initial_config.sh
—–
Now we will start cleaning up the VM
$ sudo apt-get clean

We right null to a file
$ sudo dd if=/dev/null of=junk
Then we run this command
$ sync

We will fill the unused space with zeros
$ sudo dd if=/dev/zero of=junk
After running this you will get the message
“dd: writing to ‘junk’: No space left on device”

Then we run this command
$ sync
And now we remove the junk file
$ sudo rm junk

Clear the commands that we have typed
$ history -c
or we can edit this file and delete it's contents:
/home/user1/.bash_history

Installing Ubuntu JeOS Edition December 19, 2008

Posted by ModelR in UBUNTU LAMP Project.
add a comment
THIS IS A SUBSECTION OF THE VERY VITAL UBUNTU LAMP SERVER PROJECT

You can find the full outline of this project here:
LINK: Very Vital Ubuntu LAMP Server Project Outline

Please support this project.
Make A Donation

-I will include selected screenshots that are usefull.

*This is the first screen that you will see when you boot from the Ubuntu Jeos image file
First screen of the Ubuntu Jeos install

*This is the main install screen for Ubuntu Jeos
First screen of the Ubuntu Jeos install

*In this step you will be given the option to choose the language for your install
First screen of the Ubuntu Jeos install

*In this screen you are asked to provide your location -> Not sure if you’ve noticed yet, but so far we have been selecting all defaults. (Nice, this makes it pretty easy)
First screen of the Ubuntu Jeos install

*Here is where we stray from the defaults. We choose not to detect the keyboard
First screen of the Ubuntu Jeos install

*We choose the origin of the keyboard
First screen of the Ubuntu Jeos install

*Making the choice of a standard layout
First screen of the Ubuntu Jeos install

*After these choices, the installer goes through the process of detecting hardware and such.
——
*Now it’s time to make some decisions. Here we select the hostname for the server
First screen of the Ubuntu Jeos install

*Here we are selecting the timezone for the clock setup
First screen of the Ubuntu Jeos install

*Then the installer proceeds to detect some more hardware (disks). We strayed from the defaults and made this selection.
First screen of the Ubuntu Jeos install

*As you can see we have a 2GB SCSI disk on our VM
First screen of the Ubuntu Jeos install

*Here we choose to write changes to the disk and configure LVM
First screen of the Ubuntu Jeos install

*Here we give authorization to follow through with what we have selected (formating, writing partition, etc.)
First screen of the Ubuntu Jeos install

*The system goes through the process of writing the changes to the disks, then proceeds to install the base system
——

*Time for some more decisions. Here we enter in the full name we have chosen for the first user
First screen of the Ubuntu Jeos install

*Now we enter the username for that first user (this is the logon name)
First screen of the Ubuntu Jeos install

*Here is where we enter the password for the user we are creating
First screen of the Ubuntu Jeos install

*Verifying the password
First screen of the Ubuntu Jeos install

*Here we specify our proxy server (that’s if we have one, which we don’t, so it’s left blank)
First screen of the Ubuntu Jeos install

*The install goes through with some background work
—–

*Installation verifies if your system clock is set to UTC or has been changed to local time by another operating system (we’ll leave the answer as yes)
First screen of the Ubuntu Jeos install

After all this the Jeos is finished installing and ready to go after a reboot. Remove the installation media and, hit continue to reboot.

Ubuntu LAMP Server Project Outline December 17, 2008

Posted by ModelR in UBUNTU LAMP Project.
add a comment

DESCRIPTION
This is a project that I have started because I was in need of a LAMP server. The features that I needed were not available pre-configured in other LAMP servers. I decided to make an easily updated and adaptable server for VMware (also called a Virtual Machine or Appliance).

DONATIONS
Compiling all this information in an easy to follow guide and also making revisions requires a lot of time. If you feel that the information that you find in these pages is beneficial please donate to the cause.
Make A Donation

OUTLINE
Initial Installation
Installing Ubuntu Jeos Edition
Configurations
Ubuntu Updates and Installs
Enabling Samba Shares
Script To Create New Users
Script To Delete A User
Script To Fix eth0 After Moving VM
STANDARD Edition Enhancements
phpMyAdmin Multiple Users setup

GENERAL NOTES
PLEASE CHANGE USER NAMES AND PASSWORDS!!
To make your setup secure change the appropriate settings.

System:
256Mb of RAM
2 Gb Hard drive
1 Network card

Hostname: jeos-lamp

Users:

username: user1 password: user1
The first user. You can also use sudo with this user. The sudo password for this user is user1

MySQL
username: root password: root

Creating New User’s:

To create a new user run the script: /usr/local/bin/newuser.sh as sudo and follow the on-screen directions.

Deleting New User’s:

To delete a user run the script: /usr/local/bin/removeuser.sh as sudo and follow the on-screen directions.

To Fix eth0:

To fix eth0 run the script: /usr/local/bin/removeuser.sh as sudo. This will fix eth0 if it has stopped working after you move the VM to a new directory or such

Shares:

To get to the share directory of the user, go to \\jeos-lamp\ and login as the user

Directories:

  • user1’s home directory: /home/user1
  • user1’s Apache/Web directory: /home/user1/public_html

Databases:

Currently there aren’t any databases on the server. Use phpMyAdmin to create the databases.

When creating users in phpMyAdmin make sure to:

  • Set the location to localhost
  • select “Grant all privileges on wildcard name (username\_%)”
REQUIREMENTS
In order to run these VMs, you will need VMware Player (you can also use VMware server). Don’t worry it’s FREE.

Download Link: VMware Player

LATEST RELEASES

Very Vital Ubuntu LAMP Server – BASE Edition v0.01
Download File Size: 221MB

Very Vital Ubuntu LAMP Server – STANDARD Edition v1.00
Download File Size: 221MB

Very Vital Ubuntu LAMP Server – ULTIMATE Edition v0.00
COMING SOON

Make A Donation

BUG REPORTS / FEATURE REQUESTS
If you would like to request features to be included in the next release, or if you have a bug to report, please place it in the comments of this post.

  • FEATURE REQUEST: Management Console

REVISION HISTORY

Very Vital Ubuntu LAMP Server – STANDARD Edition
V1.00

  • Initial version
    Ubuntu 8.10 JeOS
  • Last Updates Run on: Jan. 14, 2009
  • Package contains:
    VMware Tools
    OpenSSH server
    Samba file server
    phpMyAdmin
    nano (text editor)
    GD Graphics Library
  • Configurations:
    Installed cURL
    Enabled the userdirectory module
    Configured phpmyadmin for multiple users. All users, (except for root), are only able to see their own databases
    Included a script to create new users
    Included a script to remove users
    Included a script to fix eth0
Very Vital Ubuntu LAMP Server – BASE Edition
V1.00

  • Initial version
    Ubuntu 8.10 JeOS
  • Last Updates Run on: Jan. 14, 2009
  • Package contains:
    VMware Tools
    OpenSSH server
    Samba file server
    phpMyAdmin
    nano (text editor)
    GD Graphics Library
  • Configurations:
    Installed cURL
    Included a script to create new users
    Included a script to remove users
    Included a script to fix eth0

Geek Squad In-Home Services December 13, 2008

Posted by ModelR in Computer Services.
Tags: , ,
add a comment


Pricing from the Best Buy Canada website for some of the services Geek Squad provides in-home
:

  • Operating System Installation – $249
  • The installation of a new operating system can be a daunting challenge. Facing many updates, possible driver and security issues, only a computer expert should attempt such task. Our highly trained Agents can install, configure, update and optimize your computer to perform to its fullest.

  • Data Back-Up – $199
  • A Geek Squad Agent will come to your home or business to securely back up your files, photos and more using your newly purchased external hard drive.

  • Premium In-Home PC Computer Setup – $164
  • Maximize your computer’s performance with more than 100 enhancements. We’ll personalize it to your needs, remove all unnecessary clutter and install all critical updates PLUS we’ll install and configure Norton 360 (includes antivirus, antispyware and firewall protection).

  • Wireless Home Network Setup – $149
  • Wireless networking can be tricky, but, securing it properly can be even more difficult. Our Agents will setup, secure and enable simple file and print sharing between 2 computers of your choice whether it be at your place of business or in your home.

  • Internal Card/Modem Installation – $149
  • Looking to upgrade your PC’s audio, video or networking capabilities? We’ll remove your old audio, video or network card, install your new one, then run it through a series of tests to ensure that it’s functioning properly.

  • Drive Installation – $149
  • We’ll install an optical drive (CD, DVD, HD-DVD, Blu-ray) or hard drive into your PC and remove your old one. We then ensure that the drive is functioning correctly, and configure or partition it.

  • System Tune-Up – $129
  • Get your computer running the way it should be. We’ll optimize your computer’s start-up speed, clean and downsize the recycle bin and temporary files. Service includes de-fragmentation and optimization of the hard drive, as well as installation of critical updates for drivers and antivirus software (if available).

  • Standard Computer Setup – $129
  • Why suffer through the pains of dealing with all those evil cables? We will send an Agent out to your house/business to setup, optimize and show you how to operate your new computer system. Please note this is a limited time promotional price.

  • Software Installation – $129
  • Is a single piece of software giving you grief or are you unsure how to configure it properly? One of our Agents can install, update and import (maximum of 100MB) pre-existing data in the program of your choosing.

  • Memory Installation – $129
  • Has your computer slowed down over time? Do you perform a lot of multi-tasking? Allowing one of our Agents to increase the amount of System Memory in your machine will not only make your computer faster, but it will also make the use of it more enjoyable.

  • Anti-Virus Installation – $129
  • This package includes the installation and configuration of a separately purchased antivirus program. We also update the definitions, configure the software to automatically update, then scan your entire hard drive for any existing viruses.

  • Anti-Spyware Installation – $129
  • This package includes the installation and configuration of a separately-purchased anti-spyware program. We also update the definitions then scan your entire hard drive for any existing threats.

  • Add PC To Existing Wireless Network – $129
  • Do you have one computer which needs to be added to an already existing network? Not a problem; our Agents will be on the scene to setup and configure your system to fit your business/personal needs.

  • Data Transfer – $100
  • The Geek Squad Data Transfer gets your memories and important files placed onto your new Computer. A Geek Squad Agent will come to your home and transfer data from one Windows XP Computer to your new Windows Vista Computer.

Geek Squad In-Store Services December 13, 2008

Posted by ModelR in Computer Services.
Tags: , ,
add a comment


Pricing from the Best Buy Canada website for services Geek Squad provides in-store:

  • Advanced Diagnostic With Repair & Prevention – $210
  • Extensive inspection to discover the cause of crashes, lockups, unusual slowness or Internet problems. Includes software repair, virus and spyware removal, and installation of security and privacy software to keep your computer protected. Security software included.

  • Advanced Diagnostic With Repair – $189
  • Extensive inspection to discover the cause of crashes, lockups, unusual slowness or Internet problems. Includes software repair, virus and spyware removal. Optimize to enjoy faster computer speed and better performance.

  • Operating System Service – $99
  • We’ll repair any issues that you may be experiencing with your operating system and software. This includes any updates and software patches. Your hardware’s functionality is also verified in this process.

  • Data Back-Up – $89
  • Make sure your valuable data is safe. We’ll back-up specific data onto a CD, DVD, or other media. This is especially useful in situations where the needed data can’t be accessed because of file corruption or other issues.

  • System Diagnostic – $59
  • Does your PC seem to be acting up or sluggish? We’ll scan and diagnose your system to see what the problem could be. We’ll then advise you of what further actions, if any, are needed to resolve the issue.

  • Data Migration – $59
  • We’ll transfer data from your old PC, external hard drive or digital device to your PC and then verify that all information has been properly and safely transferred.

  • Internal Card Installation – $49
  • Looking to upgrade your PC’s audio, video or networking capabilities? We’ll remove your old audio, video or network card, install your new one, then run it through a series of tests to ensure that it’s functioning properly.

  • Drive Installation – $49
  • We’ll install an optical drive (CD, DVD, HD-DVD, Blu-ray) or hard drive into your PC and remove your old one. We then ensure that the drive is functioning correctly, and configure or partition it.

  • System Tune-Up – $39
  • Get your computer running the way it should be. We’ll optimize your computer’s start-up speed, clean and downsize the recycle bin and temporary files. Service includes de-fragmentation and optimization of the hard drive, as well as installation of critical updates for drivers and antivirus software (if available).

  • Software Service – $39
  • We will analyze and diagnose any software issues, then perform any necessary repairs including patches and updates, as well as verifying functionality with your operating system.

  • System Customization – $29
  • We’ll set up your user accounts with password protection, optimize your desktop and start-up time, run any critical updates, and minimize your temporary storage to ensure all systems are running smoothly.

  • Software Installation (Per Title) – $29
  • This package includes the installation and configuration of a software title. We’ll also install any relevant updates and ensure that the application is running properly with your PC.

  • Anti-Virus Installation – $29
  • This package includes the installation and configuration of a separately purchased antivirus program. We also update the definitions, configure the software to automatically update, then scan your entire hard drive for any existing viruses.

  • Anti-Spyware Installation – $29
    This package includes the installation and configuration of a separately-purchased anti-spyware program. We also update the definitions then scan your entire hard drive for any existing threats.