Linux Server (Web, FTP, File) On Vmware

Transcription

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.2009Linux Server (Web, FTP, File) on VmwarePurposesMany people want to use Linux but don't want to spend all their weekend in order to befamiliar with this operating system. This file allows to share the way that I used in order toinstall a web, ftp and file server on Wmware. The linux used is CAELinux2008 based onPCLinuxOS2007.I'm beginner on Linux and I hope that this tutorial is made with simple language in order toshare these information with many other beginners. Of course, comments about this fileare welcome.Why CAELinux2008Basically the installation for CAELinux2008 or PCLinuxOS2007 is almost similar. ButCAELinux2008 provides many different engineering softwares (computation, CAD, FEM,CFD, .). Moreover this distribution is based on PCLinuxOS2007, which propose an easyinstallation, can be used with a 32 bits processor (compared to CAELinux2009 which need64 bits processor based on Ubuntu 8.04 LTS 64bit).If people are getting familiar with PCLinux2007they will use more easily CAELinux2008 !Index1 Softwares References.22 Software comparison Linux-Windows.23 VM: Create a new virtual machine on Vmware.34 VM: Load the CAELinux2008.iso file.35 Install Linux: Run the Live CD CAE Linux 2008.46 Install Linux: Install the CAE Linux 2008 on hard drive.57 Install Linux: Restart CAE Linux 2008 from live to hard drive system.68 Install Linux: Update CAE Linux 2008.79 Web Server: Setup.1010 FTP Server: Setup.1111 File server: Setup.1212 Figure.13v1.01 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.20091 Softwares ReferencesVmware ESX Server 3i, 3.5.0 (http://www.vmware.com)VMware Infrastructure Client, 2.5.0 (http://www.vmware.com)CAE Linux 2008 (based on PCLinuxOS 2007, kernel 2.6.22.17) (http://www.caelinux.com)Notice that a part of this file is based on “CAELinux2007 Installation Manual” available onwww.caelinux.com.2 Software comparison Linux-WindowsA short list which compare Linux and Windows softwaresLinuxAmarokCode FEM softwareTypsoft FTP ServerFileZillaMatlab (without free help file)Remote Desktop ControlUtorrentNotePadDVD playerCAD softwareCFD softwareMathematica2 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.20093 VM: Create a new virtual machine on Vmware3.13.23.33.43.53.6It assumes that VMware is already installedOpen VMware Infrastructure Client on the local machineClick on File / New / Virtual Machine .Define a Typical install, Next (Figure 1)Define the virtual machine name, Next (Figure 2)Define the datastore used for this virtual machine, Next In this case only one harddisc is used (Figure 3)3.7Define a Linux, Other Linux (32-bit) machine, Next (Figure 4)3.8Define the memory size, Next This depends on your system but 1024 MB isrecommended (Figure 5)3.9Choose the Network connection used for this virtual machine, Next (Figure 6)3.10 Define the datastore size, Next. This depends on your system but 15 Go is theminimum recommended3.11 Click Finish in order to install the new virtual machine (Figure 7)4 VM: Load the CAELinux2008.iso 44.154.164.174.184.194.20v1.0From your local computer, download the CAELinux2008.iso file fromwww.caelinux.comWhen the download is done, return to VMware Infrastructure ClientSelect the new virtual machine (previously created)Select the Summary tab on Vmware Infrastructure ClientClick on datastoreClick on the new virtual machine fileClick on Upload files from your local machine to this datastoreClick on Upload File and get the CAELinux2008.iso file from the local machine(Figure 8)Click Yes when the Upload/Download Operation Warning appears (Figure 9)Wait around 10 min in order to save the full .iso fileSelect the new virtual machineSelect the Summary tab on Vmware Infrastructure ClientClick on Edit Settings in Commands partSelect the Hardware tabClick on CD/DVD Drive 1Click Datastore ISO file in Device Type part and browse the CAELinux2008.iso file(Figure 10)Click on Connect at power on in Device Status part (Figure 11)Still in Virtual Machine Properties, click on SCSI Controller 0Click on Change Type . in SCSI Controller Type partSelect BusLogic instead of LSI Logic (Figure 12)3 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.20095 Install Linux: Run the Live CD CAE Linux 45.155.16v1.0On Vmware Infrastructure Client window click in the new virtual machineSelect the Summary TabClick Power On in order to start the virtual machineAnswer Yes to the Virtual Machine Question (about change on SCSI) (Figure 13)Click Open Console in order to open this virtual machineClick in the console and select Live CD (to unselect the console, ctrl alt (Figure14)Select the keyboard layout, NextSelect the timezone, NextDefine the Date, Clock and Time Zone Settings, NextSelect Ethernet as the connection that you want to configure, NextSelect the network interface to configure, NextSelect Automatic IP (BOOTP/DHCP) as the connection protocol, NextKeep the mark to Get DNS servers from DHCP. But unselect the mark to Assignhost name from DHCP address ! Then define the Host name as localhost, Next(Figure 15)No change on the Connection control (Don't allow users to manage the connection,Start the connection at boot), NextAnswer Yes to the question Do you want to start the connection now ?The network and Internet Configuration is done, Finish4 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.20096 Install Linux: Install the CAE Linux 2008 on harddrive6.16.26.36.46.56.66.76.8Log in with the root account, Enter, Username: root, Password: root (Figure 16)Ondesktop, click on Install PCLinuxOSThe wizard to install CAE Linux 2008 starts, Next (Figure 17)Select the Normal Hard drive (ide, sata) as the type of hard drive to install the OS,Next (Figure 18)Select Custom disk partitioning, Next (Figure 19)Answer Continue for the backup message, OK (Figure 20)Under sda tab, click on white partClick Create in order to create the first partitionDefine 1.5 GB for a Linux swap partition, OK (Figure 21)6.96.106.116.12Under sda tab, click on white partClick Create in order to create the second partitionDefine the maximum size for a Journalised FS: ext3 partition, OK (Figure 22)When these two partitions are created, Done (Figure 23)6.136.146.15Answer OK to the message before to format the partition (Figure 24)Click Next in order to format the partition (Figure 25)Click Next in order to install PC Linux OS 2008 on hard drive (Figure 26)6.166.176.186.196.20v1.0After few minutes CAE Linux 2008 is installed and the bootload have to be defined.Grub with graphical menu is recommended, Next (Figure 27)Define linux as the boot default (no other OS is used on this virtual machine),Finish (Figure 28)Define the administrator (boot) password, NextDefine an additional user (this step is not compulsory but recommended), Done.Notice that CAE user is already created and should not be deleted.A last message confirm the installation and ask to remove the live system andrestart the computer, Finish5 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.20097 Install Linux: Restart CAE Linux 2008 from live tohard drive .147.15v1.0Return to the Vmware Infrastructure Client by Ctrl Alt (without closing the console)Click on the new virtual machine in VMware Infrastructure ClientClick on Summary tabClick on Edit SettingsOn Hardware tab, click on CD/DVD Drive 1Unselect Connect at power on in order to disconnect the .iso file, OK (Figure 29)Return to the console (which should be still open)Click on PC (1st button from the left bottom corner), Log Out .Click on Turn Off Computer buttonReturn to the Vmware Infrastructure Client by Ctrl AltWhen the virtual machine is stopped, select the virtual machine in VmwareInfrastructure Client and click on Power on.From now the virtual machine is running with CAE Linux OS on the hard drive.Return to the console and select Linux in the boot list (Figure 30). When the CAELinux 2008 is starting, it is possible to click on ESC in order to see all steps.Log in as root user with the password previously defined (Figure 31)From now you are on CAE Linux 2008 desktop running on your hard drive (Figure32)6 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.20098 Install Linux: Update CAE Linux 20088.18.28.38.48.58.68.7Click on Synaptic button (6th button from the left bottom corner) in order to open thepackage managerClick on Search buttonWrite mozilla-firefox, Search (Figure 33)Right click on mozilla-firefox packageClick on Mark for RemovalClick on Apply buttonClick Apply in order to accept the changes (Figure 34)8.88.98.108.118.128.13When the changes are applied, click Search buttonWrite compiz, SearchRight click on compiz packageClick Mark for RemovalClick on Apply buttonClick Apply in order to accept the changes8.148.158.168.178.188.19When the changes are applied, click Search buttonWrite OpenOffice.org, SearchRight click on OpenOffice.org packageClick Mark for RemovalClick on Apply buttonClick Apply in order to accept the changes8.208.218.228.238.248.258.268.27When the changes are applied, click ReloadClick Search buttonWrite GConf2, SearchRight click on GConf2 packageClick Mark for Upgrade (Figure 35)Click Mark in order to mark additional required changes (Figure 36)Click on Apply buttonClick Apply in order to accept the changes8.288.298.308.318.328.338.348.358.36When the changes are applied, click SearchClick Search buttonWrite gtk 2.0, SearchRight click on gtk 2.0 packageClick Mark for UpgradeClick Mark in order to mark additional required changesClick on Apply buttonClick Apply in order to accept the changesWhen the changes are applied, close Synapticv1.07 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on 8.488.498.508.5113.10.2009Open Konsole (From the desktop or from PC/system/Terminals/Konsole)Write apt-get clean, EnterWrite apt-get autoclean, EnterWrite apt-get update, EnterWrite apt-get upgrade, Enter.Answer Y to continue the upgrade, Enter (this step can spend around 15 min)When the update are done, write /etc/init.d/network restart, EnterWrite apt-get dist-upgrade, EnterAnswer Y to continue the upgrade, Enter (this step can spend around 15 min)8.528.538.548.558.56When the change are applied, reboot the system (PC/Log out./Restart Computer)Select Boot PCLinuxOS (default) in the boot listLogin as rootOpen SynapticClick Search buttonWrite kernel-latest, Search (If the step does not give any result, write kernel andchoose the last one manually)Right click on kernel-latest packageClick Mark for Installation (Figure 37)Click Mark in order to mark additional required changesClick on Apply buttonClick Apply in order to accept the 78.68When the change are applied, reboot the system (PC/Log out./Restart Computer)Select Linux with kernel 2.6.26.8.tex3 (default) in the boot listLogin as rootOpen SynapticClick Reload buttonClick Search buttonWrite libgmime, SearchRight click on libgmime2.4 2 packageClick Mark for InstallationClick Mark in order to mark additional required changesClick on Apply buttonClick Apply in order to accept the changesv1.08 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware8.698.708.7113.10.2009When the change are applied, click on Reload buttonClick on Mark all Upgrades buttonNormally no update are available (Apply bottom is not active) and this confirms thatthe OS is full updated8.728.738.748.758.768.778.78Click Search buttonWrite firefox, SearchRight click on firefox packageClick Mark for InstallationClick Mark in order to mark additional required changesClick on Apply buttonClick Apply in order to accept the changes8.798.808.818.828.838.848.85Click Search buttonWrite OpenOffice.org, SearchRight click on OpenOffice.org packageClick Mark for InstallationClick Mark in order to mark additional required changesClick on Apply buttonClick Apply in order to accept the changes8.868.878.888.89When the change are applied, click Search buttonWrite compiz, SearchVerify if compiz package is already installed, if not install this packageClose Synapticv1.09 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.20099 Web Server: 149.159.169.179.189.199.20v1.0Open the file /etc/hosts with KwriteIn this file write the following .1.22 hostname.dnshostnamelocalhostSave the change and close KwriteOpen PCLinuxOS Control Center (5th button from the left bottom corner)In Sharing menu, click on Configure webserver (Figure 38)Click Next in order to install apache-mpm-prefork packageClick Next in order to install apache-mod userdir package. These last two stepsshould be performed only for the first configuration.Click Next in order to start the web server configuration wizardClick Next in order to accept the warning message about DHCP address (Figure39). Notice that this setup consider a Lan Static DHCP which defines IP addressdepends on the MAC address.Unselect Enable the Web server for the intranet because we are only interestedabout an internet web server, Next (Figure 40)Click Next in order to allow users to get a directory in their home directories (Figure41)This step is actually not used for this setting but something must be written. Next(Figure 42)The document root give the path of directory where html file will be saved. Next(Figure 43)Click Next in order to confirm the installationClick Finish in order to close the wizardClose the PCLinuxOS Control CenterFrom now, it is important to consider the following setup in order to access thewebsite from the web:- Static DHCP in the LAN. Define IP address depends on MAC address- Accept port 80 (HTTP) in firewall rules from WAN to LAN- Port forwarding in the NAT configuration in order to forward port 80 on webserver IPaddressWhen these last setting are fixed, Open a Web page with another computerType http://www.hostname as given in file /etc/hostsThe following page should appear and give the proof that the webserver workscorrectly (Figure 44)10 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.200910 FTP Server: Setup10.110.210.310.410.510.610.710.810.9Open SynapticClick Search buttonWrite gproftpd, SearchRight click on gproftpd packageClick Mark for InstallationClick Mark in order to mark additional required changesClick on Apply buttonClick Apply in order to accept the changesClose Synaptic10.10 Open Konsole10.11 Write gproftpd10.12 Click Yes to the Gproftpd question (only the first time)10.13 On Servers Tab a first server is already installed by default but the followingparameters should be considered- Port: 21- Default home directory: /var/ftp , which is the ftp server directory10.14 Click on Users tab10.15 Define the Username, the Password the Group and the Comment10.16 Click on Add directory button10.17 Double click on directory and change the path, Enter10.18 Select the user rules (Upload, Download and maybe Rename, Overwrite andDelete)10.19 Click on Add button10.20 Click Close in order to close the user information10.21 The user is then considered by the FTP server (Figure 45)10.22 Click on Activate button in order to start the FTP server10.23 Close the GproFTPD and Konsole10.24 From now, it is important to consider the following setup in order to access the ftp10.25 server from the web:10.26 - Static DHCP in the LAN10.27 - Accept port 80 (HTTP) in firewall rules from WAN to LAN10.28 - Port forwarding in the NAT configuration in order to forward port 80 on webserverIP address10.29 When these last setting are fixed, Open a FTP client (Windows explorer or FileZilla10.30 Client)with another computer10.31 Type ftp://hostname.dns as given in file /etc/hosts10.32 Write your login and password in order to access the the ftp directory (Figure 46)v1.011 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.200911 File server: Setup11.111.211.311.411.511.611.711.8Open Control Center (4th button from the left bottom corner)On left menu click on Internet and Network and SambaClick on Shares tabClick on Add New Share. buttonClick on the Base Settings tabIn the Directory part select the file that you want to share, OKDefine the Name and Comment for this shared fileIn the Main Properties part, properties on this file can be defined. Public share isrecommended only if the server is protected by a firewall (Figure 47)11.9 Click OK in order to share this file11.10 Click Apply in order to confirm the changes11.11 Close Control Center11.12 Open the Konsole11.13 Write samba restart, Enter11.14 Close the Konsole11.15 Open PCLinuxOS Control Center (4th button from the left bottom corner)11.16 On left menu click on Network Sharing11.17 Click on Share drives and directories with Windows (SMB) system11.18 Click OK to the Samba server configuration question11.19 Select a Standalone – standalone server, OK (Figure 48)11.20 The Workgroup name should already be defined, OK11.21 Select a Security mode as server, OK11.22 Define the name which will be given to your server (ex: FileServer), OK11.23 Click OK in order to accept the log file configurations11.24 Click OK in order to setup the samba server11.25 Click OK to the Samba Wizard message11.26 Close the PCLinuxOS – Control Center11.27 Open Konqueror (3rd button from the left bottom corner) and select the shared file11.28 Right click on share file and select Properties11.29 Click on Share tab11.30 Click on Configure File Sharing button (Figure 49)11.31 Select Advanced Sharing11.32 Unselect Use NFS (Linux/UNIX) (Figure 50)11.33 Click OK in order to accept all changes11.34 Reboot the computer11.35 From now another computer in your Workgroup can access to this shared file.v1.012 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.200912 FigureFigure 1Figure 2v1.013 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.2009Figure 3Figure 4v1.014 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.2009Figure 5Figure 6v1.015 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.2009Figure 7Figure 8v1.016 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.2009Figure 9Figure 10v1.017 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.2009Figure 11Figure 12v1.018 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware13.10.2009Figure 13Figure 14v1.019 - 37Sébastien Thomas

CAELinux2008 Server (Web, FTP, File) on Vmware1

GproFtpd Typsoft FTP Server KFTPGrabber FileZilla Koctave Matlab (without free help file) Krdc Remote Desktop Control Ktorrent Utorrent Kwrite NotePad Mythdvd DVD player Salomé CAD software Saturne CFD so