Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
Bitnami provides free virtual machines for popular open source applications. Visit our download
page, select your application of choice and then click on the download link.
14/08/2015 16:03
2 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
14/08/2015 16:03
3 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
Virtual Box
If you are using Virtual Box 4 or later, you would like to import the Virtual Appliance manually. You can do it
following these steps:
1. Create a new Virtual Machine and set that it is a Linux Ubuntu 64bit machine.
2. Configure RAM to 512 or higher. For Ruby-based or Java-based applciations (f.e. Liferay, Alfresco, GitLab), we
recommend more than 1Gb RAM.
3. Choose "existing hard disk" and select the Bitnami "vmdk" file. Be sure that you select the main one (without
s00X in the file name, not any of the other vmdk files: s001.vmdk, s002.vmdk, etc).
If you are using a previous VMware image with Ubuntu 10.10, go to Settings -> System -> Processor -> Enable
14/08/2015 16:03
4 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
14/08/2015 16:03
5 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
Go back to the "Session" section and save your changes by clicking the "Save" button.
Click the "Open" button to open an SSH session to the server.
PuTTY will first ask you to confirm the server's host key and add it to the cache. Go ahead and click "Yes" to
this request (learn more).
Enter the default username bitnami and password bitnami when prompted.
You should now be logged in to your virtual server.
14/08/2015 16:03
6 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
14/08/2015 16:03
7 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
2. Depending on your network configuration you should use a different netmask. If you know a free IP
address in your local network that the Virtual Machine could use, you can configure the network manually,
for example:
$ sudo ifconfig eth0 192.168.1.234 netmask 255.255.255.0 up
3. You can access the web application from any computer of your network at 192.168.1.234.
14/08/2015 16:03
8 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
14/08/2015 16:03
9 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
From the "Session" panel, use the "Login" button to connect to the cloud server and begin an SCP session.
You should now be logged into the /home/bitnami directory on the virtual machine. You can now transfer files by
dragging and dropping them from the local server window to the remote server window.
If you need to upload files to a location where the bitnami user doesn't have write permissions, you have two
options:
Once you have configured WinSCP as described above, click the "Advanced..." button and within the
"Environment Shell panel, select "sudo su -" as your shell. This will allow you to upload files using the
administrator account.
Upload the files to the /home/bitnami directory as usual. Then, connect via SSH and move the files to the
desired location with the "sudo" command, as shown below:
$ sudo mv /home/bitnami/uploaded-file /path/to/desired/location/
14/08/2015 16:03
10 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/bitnami/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/bitnami/.ssh/id_rsa.
Your public key has been saved in /home/bitnami/.ssh/id_rsa.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX bitnami@linux
We strongly recommend that you set a long passphrase. Once you have executed this command, you can check that
there are two files in the /home/bitnami/.ssh/ folder:
$ ls /home/bitnami/.ssh
id_rsa
id_rsa.pub
Save your private key (id_rsa file) in a secure location and do not share it with anybody.
Once you have the key pair ready, you need to enable access to the machine. It is only necessary to write the public
key into the /home/bitnami/.ssh/ file.
$ cd /home/bitnami/.ssh
$ cat id_rsa.pub >> /home/bitnami/.ssh/authorized_keys
Now edit the "/etc/ssh/sshd_config" file using the vi editor and uncomment (or add if not already present) the
following lines:
RSAAuthentication yes
PubkeyAuthentication yes
copy your private key "id_rsa" file in the client machine from which you will access the server.
$ mkdir /home/user/.ssh
$ cp /path/to/id_rsa /home/user/.ssh
$ chmod 0600 -R /home/user/.ssh
And that's all. If you do not want to repeat the passphrase you can run ssh-agent and ssh-add commands to save it
14/08/2015 16:03
11 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
14/08/2015 16:03
12 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
Then try to access from a remote machine. Please ensure that your Virtual Machine network configuration is
"Bridged". You can see the /Virtual_Appliances_Quick_Start_Guide#How_to_access_the_Bitnami_Virtual_Appliance.3f .
ESX or vSphere
The comman line tool to resize the disk size is vmkfstools. Log in the ESX server and run the following command
with your installed machine:
Extending a virtual disk only extends the virtual machine's disk. It is necessary to increase the size of the file Linux
system within the guest. To do this, it is necessary to boot the machine using a Live CD Linux so you are able to
mount the root partition and resize it. You can use an GParted Live CD.
- Download latest version of GParted Live CD http://gparted.org/livecd.php
- Change the boot order for your Virtual Machine and move the CD/DVD to the first one
- Configure the CD/DVD option to load the previous downloaded iso
14/08/2015 16:03
13 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
$ sudo vmware-config-tools.pl
These steps are specific for openSUSE based appliances. If you are using the Ubuntu Virtual Appliance, there is no
"rpm" tool installed by default. Instead of using "rpm", you can uncompress the tarball:
$ sudo tar -xzvf VMwareTools*.tar.gz -C /tmp
Check your current kernel version:
$ uname -a
Linux linux 2.6.35-28-virtual #32-Ubuntu SMP Fri Mar 28 08:10:02 UTC 2011 i686 GNU/Linux
Then install the same packages using the "apt-get" command:
$ sudo apt-get update
$ sudo apt-get install gcc make tar linux-source linux-headers-kernel_version
$ cd /tmp/VMware*
$ sudo ln -s /lib/modules/kernel_version/build/include/generated/utsrelease.h /lib/modules/
14/08/2015 16:03
14 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
$ uname -a
Linux linux 3.2.0-23-virtual #36-Ubuntu SMP Tue Apr 10 22:29:03 UTC 2012 x86_64 x86_64 x86_64 GNU/L
Then, install the packages with the proper kernel_version shown by the previous command:
$ sudo apt-get -y install dkms build-essential linux-headers-kernel_version
After that, the virtual machine must be restarted:
$ sudo reboot
Once the machine is started again, you can access the Virtualbox guest additions. There is an option in the menu:
Devices -> CD/DVD Devices -> Choose a virtual CD/DVD disk file... Then, select the VBoxGuestAdditions.iso file
(located in /usr/share/virtualbox/ if you are using Linux or in C:\Program Files\Oracle\VirtualBox
\VBoxGuestAdditions.iso in case you are using Windows).
This action simulates inserting a cdrom that includes the tools. Now it is necessary to mount the cdrom to install
them:
$ sudo mkdir /mnt/cdrom
$ sudo mount /dev/cdrom /mnt/cdrom
$ cd /mnt/cdrom
$ sudo sh ./VBoxLinuxAdditions.run --nox11
Because the last command is being running with the --nox11 option, the following minor error will appear, after a
while:
Installing the Window System drivers ...fail!
(Could not find the X.Org or XFree86 Window System.)
If the other tasks were completed with "done", VirtualBox Guest Additions have been successfully installed. You can
check this in the example below:
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.22 Guest Additions for Linux.........
VirtualBox Guest Additions installer
14/08/2015 16:03
15 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
Once you can access the Webmin application, you must configure it to manage the Bitnami servers. These are the
configuration files for MySQL and Apache servers:
14/08/2015 16:03
16 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
/etc/webmin/mysql/config
date_subs=0
max_text=1000
perpage=25
stop_cmd=/etc/init.d/bitnami stop mysql >/dev/null 2>&1
mysqldump=/opt/bitnami/mysql/bin/mysqldump
nodbi=0
mysql_libs=/opt/bitnami/mysql/lib
max_dbs=50
start_cmd=/etc/init.d/bitnami start mysql >/dev/null 2>&1 &
mysql_data=/var/lib/mysql
mysqlimport=/opt/bitnami/mysql/bin/mysqlimport
access=*: *
style=0
my_cnf=/opt/bitnami/mysql/my.cnf
mysqlshow=/opt/bitnami/mysql/bin/mysqlshow
mysql=/opt/bitnami/mysql/bin/mysql
nopwd=0
add_mode=1
passwd_mode=0
blob_mode=0
mysqladmin=/opt/bitnami/mysql/bin/mysqladmin
/etc/webmin/apache/config
link_dir=/opt/bitnami/apache2/conf/sites-enabled
test_manual=0
show_list=0
mime_types=/opt/bitnami/apache2/conf/mime.types
access_conf=/opt/bitnami/apache2/conf/access.conf
auto_mods=1
14/08/2015 16:03
17 sur 17
https://wiki.bitnami.com/Virtual_Appliances_Quick_Start_Guide#Ho...
</wbr>
When finished the installation process, edit the lightdm configuration file /usr/share/lightdm
/lightdm.conf.d/50-ubuntu.conf), and add the following line at the botton
greeter-show-manual-login=true
There could be problems with permissions in hidden files in the bitnami user's home directory. To fix it, execute the
following command
sudo chown bitnami:bitnami /home/
sudo chown -R bitnami:bitnami /home/bitnami/.*
Then reset your Virtual Machine. Next time it's started, you will see the login string, and you will be able to login
using bitnami (do not use bitnamiftp) as username and your password (also bitnami if you haven't changed it).
14/08/2015 16:03