Ubuntu_11_10_Server_64bit_Installation.txt First Created: Thursday 29th December 2011, 13:34 PT Last updated: Sun 29 Apr 2012 15:34 PM PST Ubuntu 11.10 Server (64 bit) on Dell Inspiron 620 Installation Dell Inspiron 620 (arrived new in December 2011) with Windows 7 installed. http://www.ubuntu.com/download/server/download follow instructions in above link to burn the image to a USB memory stick Connect all devices to the Dell 620 (mike, speakers, monitor, mouse, Internet cable), put the USB stick in the Dell 620 and turn on. DO NOT PLUG IN THE ROUTER YET. SEE LATER IN THIS DOCUMENT. it boots to W7, so need to reboot the machine holding down F2 change 1st boot device to USB Hard Drive Save and exit and Ubuntu Installer boots up Just follow the easy friendly instructions For Partition Disks section, I chose the default: Guided - use entire disk and set up LVM selected 999.9 GB default for amount of volume group to use for guided partitioning It started installing the base system at 14:47 PT (Thu 29 Dec 2011). System name: AD4 user: anne pw:------- don't panic if you make the wrong selection, just let the installation continue, and at the next step you get the option to go back... At the "Software Selection" screen, MAKE SURE you read the navigation instructions, if you press Enter at the wrong time before selecting anything, it just installs the core system for you, so you have to the entire install again. I selected to install: OpenSSH server DNS server LAMP server (The other options are: Mail server, PostgreSQL database, Print servre, Samba file server, Tomcat Java server, Virtual Machine host Ubuntu desktop USB Manual package selection) MySQL root password set to same as for user anne. Select and install software started at 15:04 PT At 15:12, the installation was complete. I pressed enter to restart the computer, holding down key F2, to change the boot sequence back to 1st boot to hard drive, make sure to save changes and exit. Ubuntu then boots to the prompt Note: the first welcome screen has this link for the server documentation: https://help.ubuntu.com/11.10/serverguide/C AD4 login: anne sudo -s (to get to root) Note: the first welcome screen has this link for the server documentation: https://help.ubuntu.com/11.10/serverguide/C UPDATE THE SOFTWARE at root prompt: # sudo apt-get update it reads and lists several packages lists and then returns to the root prompt # after a few seconds. INSTALL THE DESKTOP # sudo apt-get install ubuntu-desktop repond with Y then it starts to download the desktop files. This will take approx. 2 hours, after which time it will return to the # prompt The messages given included one that says JRE,JVM and package libre-office-java-common need to be in stalled. At the # prompt: # shutdown -h now (will completely shutdown the system) Switch on again, and the system boots to the regular Unity desktop. Browsing the Internet works by default, and Network info (upper right corner of desktop between mail and volume control) shows Wired Network - device not managed, I enabled Networking and Wireless. [ by the way, last month (19th Nov 2011) when I attempted installing 11.10 server on my 32 bit Dell Dimension 3100, it couldn't connect to the Internet, and this fixed it: sudo -s dhclient eth0 (should return silently to the root prompt) and I had other problems relating to items like Ubuntu Software Center disappearing from the Launcher and actually being uninstalled - this was just after changing the desktop background. A Google search reports others had the same problem and suggest a fix. As a precaution, I will leave the desktop background on this new server as it is by default. ] RESTORE THE /var/www/data DIRECTORY In my old server, I have a data folder in /var/www/ which I had backed up. This directory stores LAMP files used in CSCI165 course. I installed this folder back to /var/www/ and copied the index.html from data to /var/www/ ready for broadcasting when the server is live on the Internet. INSTALL NEW SOFTWARE Go to the Launcher's Ubuntu Software Center, and install Synaptic Package Manager then drag it to the launcher. Go to the Launcher's Ubuntu Software Center, and install FileZilla then drag it to the launcher. Go to the Launcher's Ubuntu Software Center, and install Chromium then drag it to the launcher. INSTALL FLASH PLAYER 11 (FOR 64 BIT MACHINES) Installing Flash Player - at the Adobe download page it says there is a special version of Flash for 64 bit machines. (Search for "Download Flash Player 10 for 64-bit Linux - Adobe Labs") From the regular Adobe page, we know Adobe Flash Player 10 is used for Ubuntu 11.10, the version for 64 bit machines is called Flash Player "Square" (Flash 11). Go to: get.adobe.com/flashplayer/otherversions/ and select: Linux (64 bit) Flash Player 11 for Ubuntu (apt) (for Browser Firefox) When you click to download it AUTOMATICALLY goes to the Ubuntu Software Center to start downloading: adobe-flashplugin (Available from the "oneiric-partner source. I clicked on Use This Source, and the Progess circle shows the number 1 It seems to go forever on the number 1 progress, I clicked on one of the buttons on the top bar of the Ubuntu Software Center and it came up with the message that it was waiting for the Synaptic Package Manager to close, (I previously had it open) so I closed it, then it goes to the Ubuntu Software Center screen again for "adobe-flashplugin", this time with an Install button, and options for extra Add-ons, which I don't think I need, so I just click on the "Install" button. The progress circle and a progress bar show action and after a few seconds it reports "Installed on 2011-12-30". Close down Chrome and reopen. Type this is the address bar of the chrome browser to see if the plugin has been added: Type "about:plugins" in the address bar of the Chrome browser. Actually, when I typed about:plugins, Flash is now on there with other installed plugins and all are enabled. I didn't even need to restart Chrome, it just worked. When I started Firefox and typed about:plugins in the address bar, it shows Flash 11 installed and enabled by default. And Flash now runs on both browsers. INSTALL WEBMIN (for Server admin GUI) My original server installation instructions for Ubuntu Server version 6 (see email) explain how to install and use webmin. When I go to the Ubuntu Software Center (USC) from the Unity Launcher and search for webmin, it is not found. Neither found on Synaptic Package Manager (SPM) (which search the same I suppose). So I go inro Synaptic Package Manager -> Settings -> Repositories, and under tab Other Software, select also "Independednt" and quit to save new settings. Try the search again for webmin in USC and SPM - still not found. So now I go to the webmin website: webmin.com/tgz.html to get instructions for installation. (ignoring old server instructions to install build-essential etc). BEFORE downloading the tar.gz file, I have to ensure that Perl 5 is installed. Open a terminal $ sudo -s # cd /usr/bin ls perl AND perl5.12.4 is there ALSO - READ THE WIKI PAGE ON WEBMIN ... I do have OpenSSL installed (search on SPM), so my system can be configured for SSL. Here it says that webmin defaults to TCP port 10000 for communicating. Now I am ready to download the webmin tar.gz file... as per the instructions here: http://webmin.com/tgz.html # cd /tmp # wget http://prdownloads.sourceforge.net/webadmin/webmin-1.570.tar.gz the download starts and on my machine ETA = 2 minutes. After 2 min, the root prompt returns, then: # ls shows the downloaded tar.gz file # gunzip webmin-1.570.tar.gz # ls the tar.gz file is now replaced by the file webmin-1.570.tar # tar xf webmin-1.570.tar # ls now we have the directory webmin-1.570 # cd webmin-1.570 root@AD4:/tmp/webmin-1.570# ./setup.sh /usr/local/webmin installing webmin to /usr/local/webmin: just accept the defaults: Config file directory: /etc/webmin log file directory: /var/webmin Full path to perl: /usr/bin/perl It tests perl and reports "Perl seems to be installed OK. It detects the OS: Ubuntu Linux 11.10 Web server port (default 10000) Login name: anne password: Start webmin at boot time: n After a few seconds it reports: Webmin has been installed and started successfully. Use your web browser to go to: http://AD4:10000/ and log in with the username and password (see just above). Went to firefox and entered http://AD4:10000/ in the address bar The Login to Webmin screen appeared. I logged in... ****************** Note: you can log in remotely replace the localhost(AD4) with the server IP address: http://AD4:10000/ http://50.64.46.135:10000/ *************************** The webmin first screen gives you an overview of the system, OS, CPU, Memory, etc. It showed at the bottom: 2 package updates are available. I clicked on that link. The two updates were listed and selected ready for clicking the "Update Selected Packages" button. Before I did that, there is also a place her to schedule checking options, I chose every week to check, and to automatically install any updates, then save. Go back to the Software Packages Updates screen and click "Update Selected Packages". At the MySQL server part of webmin, I logged in as username: root password: (see MySQL root password set up on original server setup - see above) and I was let in to the MySQL server admin part, where I can see that MySQL version 5.1.58 is running. At the Apache Webserver part of webmin, Apache version 2.2.20 is running The Existing virtual hosts: Virtual Server: Address:any Port:80 Server name:Automatic Document Root /var/www At the SSH Server part of webmin, SSH version OpenSSH_5.8 is running So let's check if I can see my /var/www/index.html Check my IP address: 50.64.46.135 I type that in a browser address bar and see my index page for CSCI165A Also tested remotely by SC a few minutes later. He could see the index page too. The web server is now up and running. I amended the index.html page so that there is a link to student1's directory on the web server: /var/www/student1 (I'll just start off getting one student working, before adding the other 30) I need a student group to which each student (student1, student2, student3 ... student30) belongs. Appropriate file and SSH permissions must be set. Last time I set up the server, these are the notes I created: http://www.annedawson.net/165_server_user_ssh.txt I will do all setups via webmin at http://AD4:10000/ Before I do that, I need to plug in the router. See next section. ********************************************************************************************** Ubuntu_11_10_Server_64bit_Installation_Router_First_Attempt.txt (with BEFSX41 FIREWALL ROUTER) ********************************************************************************************** The above didn't work, so I then switched routers to the wireless Linksys router model WRT54G, with full success... http://www.annedawson.net/AD4_Server_WRT54G_Router_setup.txt ********************************************************************************************** **********************************************************************************************