Step-by-step Install Guide for Ubuntu: Difference between revisions
Mikel Stous (talk | contribs) m (format change) |
Mikel Stous (talk | contribs) m (Modfied table format) |
||
Line 16: | Line 16: | ||
Select your '''language''', '''country''', and '''keyboard layout''' (i.e. English, United States, American English) | Select your '''language''', '''country''', and '''keyboard layout''' (i.e. English, United States, American English) | ||
Select '''autodetect network''', if you have DHCP. Should be | Select '''autodetect network''', if you have DHCP. Should be a static IP in a development or production environment. | ||
Enter your servername (i.e. moodletest) | Enter your servername (i.e. moodletest) | ||
Line 22: | Line 22: | ||
Select to '''manually edit the partition table'''. I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production. | Select to '''manually edit the partition table'''. I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production. | ||
::/boot | :<table> | ||
: | :<tr><td>/boot</td><td>ext3</td><td>200MB</td><td>bootable</td><td>(needs to be on the first part of the drive)</td></tr> | ||
: | :<tr><td>/</td><td>ext3</td><td>10GB</td><td></td><td>(files are relatively static)</td></tr> | ||
: | :<tr><td>swap</td><td></td><td>4GB</td><td></td><td>(4x if you don't have much memory, 1x if you have gobs of memory)</td></tr> | ||
:<tr><td>/var</td><td>ext3</td><td>26GB</td><td></td><td>(variable content – uses rest of the drive)</td></tr> | |||
:</table> | |||
Select your '''timezone'''. (i.e. Central) | Select your '''timezone'''. (i.e. Central) | ||
Line 31: | Line 33: | ||
Set clock to '''Universal Time'''. | Set clock to '''Universal Time'''. | ||
Enter Administrators ''' | Enter Administrators '''full name'''. (i.e. Joe Smith) | ||
Enter '''account name'''. (i.e. joesmith) | Enter '''account name'''. (i.e. joesmith) | ||
Line 51: | Line 53: | ||
sudo apt-get dselect-upgrade | sudo apt-get dselect-upgrade | ||
</pre> | </pre> | ||
Just press | Just press Y to install all the updates. | ||
And reboot! | |||
<pre> | <pre> | ||
sudo reboot | sudo reboot |
Revision as of 05:09, 24 January 2007
What you need to start
- Ubuntu 6.06 LTS server CD
- x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.
- One hour of time. (seriously!)
Directions:
Install Ubuntu
Start computer and use F12 to boot from CD.
Select Install to hard drive.
Select your language, country, and keyboard layout (i.e. English, United States, American English)
Select autodetect network, if you have DHCP. Should be a static IP in a development or production environment.
Enter your servername (i.e. moodletest)
Select to manually edit the partition table. I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.
/boot ext3 200MB bootable (needs to be on the first part of the drive) / ext3 10GB (files are relatively static) swap 4GB (4x if you don't have much memory, 1x if you have gobs of memory) /var ext3 26GB (variable content – uses rest of the drive)
Select your timezone. (i.e. Central)
Set clock to Universal Time.
Enter Administrators full name. (i.e. Joe Smith)
Enter account name. (i.e. joesmith)
Enter a secure password. (‘abcde’ is not a good one!)
Let the computer restart.
Log in your account.
Type the following on the command line. Uncomment line Twenty-Two to enable access to the universe package source. You will need to re-enter your account password when sudo asks for it.
sudo vi /etc/apt/sources.list
Now to get all the security updates.
sudo apt-get update sudo apt-get dselect-upgrade
Just press Y to install all the updates.
And reboot!
sudo reboot
Install MySQL
sudo apt-get install mysql-server mysqladmin –u root password ''YourDatabasePassword'' OTHER MYSQL PASSWORD COMMAND
Install Apache
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli sudo apt-get install ntp ntp-simple unattended-upgrades sudo apt-get install clamav unzip zip aspell-en sudo apt-get install libapache2-mod-security php5-ldap php5-odbc
The last line installs optional packages for our moodle site.
Install Moodle
cd /var/www sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz sudo tar –zxf moodle-latest-17.tgz sudo mkdir /var/moodledata sudo chown –R www-data.www-data /var/moodledata /var/www/moodle sudo vi /etc/apache2/sites-available/default
(modify lines 4 and 9 from /var/www to /var/www/moodle)
mysql -u root -p (enter your MySQL root password)
CREATE DATABASE moodle; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.* TO moodle@localhost IDENTIFIED BY 'moodlepassword'; FLUSH PRIVILEGES; QUIT;
Configure Moodle website
ifconfig (look for your server’s ip address on the 2nd line)
On another computer open a web browser and put in your server address
Complete the Moodle install using a secure username and password
Reboot
Go to a bar for a few hours.
Come back and tell your boss that you FINALLY got the test server running.