[转载]BITNAMI提供的VMWARE虚拟机设置HOWTO

摘要:
Thereareseveralwaystodothat.YoucaninstallaFTPserverinthevirtualapplianceusingthepackagemanagerbutthiscouldnotbeeasyanditisnotsecureneither.WeencouragetouseSCP(SecureCopyProtocol)tomoveyourfilestotheVirtualAppliance.ThisprotocolrequirestoenableSSHinthemachinewhichisnotenabledforsecurityreasonsbydefault.YoucanfindmoreinfoabouthowtodothatatVirtual_Appliances_Quick_Start_Guide#How_to_enable_sshd.3fThenyoucanconnecttotheVirtualApplianceusingthe"bitnami"usercredentials.Trytousethefollowingtools:FileZillahttp://filezilla-project.org/WinSCPhttp://winscp.netHowtoensurethatmyBitNamiVirtualApplianceisaccessiblefromothermachines?SomeBitNamiapplicationsrequireyoutoreconfiguretheIP/hostnameifitchangesduringtheboot.IfyourVirtualApplianceseemstonotbeaccessiblefromothermachines,youshouldconfiguretheapplicationIP/hostnameusingthe'updateip'tool.$sudo/opt/bitnami/updateipHowtoconfiguretheapplicationIP/hostname?

来源:http://wiki.bitnami.org/Virtual_Appliances_Quick_Start_Guide

How to enable sshd?

The "ssh" server is disabled by default. You can enable the "ssh" server as follows:

  • For Ubuntu
    $ sudo mv /etc/init/ssh.conf.back /etc/init/ssh.conf
    $ sudo start ssh
    
  • For openSUSE
    $ sudo chkconfig sshd on
    $ sudo /etc/init.d/sshd start

How to copy files in the Virtual Appliance?

There are several ways to do that. You can install a FTP server in the virtual appliance using the package manager but this could not be easy and it is not secure neither. We encourage to use SCP (Secure Copy Protocol) to move your files to the Virtual Appliance.

This protocol requires to enable SSH in the machine which is not enabled for security reasons by default. You can find more info about how to do that atVirtual_Appliances_Quick_Start_Guide#How_to_enable_sshd.3f

Then you can connect to the Virtual Appliance using the "bitnami" user credentials.

Try to use the following tools:

How to ensure that my BitNami Virtual Appliance is accessible from other machines?

Some BitNami applications require you to reconfigure the IP/hostname if it changes during the boot.

If your Virtual Appliance seems to not be accessible from other machines, you should configure the application IP/hostname using the 'updateip' tool.

  $ sudo /opt/bitnami/updateip

How to configure the application IP/hostname?

By default, BitNami applications update their internal IP/hostname at boot time. However you may want to change it manually if the Virtual Machine has changed its IP. For doing that, execute:

  $ sudo /opt/bitnami/updateip --machine_hostname < ip or hostname >

or if you want the tool setting the current Virtual Machine IP you can type only:

  $ sudo /opt/bitnami/updateip

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.

How to install VMWare tools on BitNami Virtual Appliances?

Before starting your Virtual Appliance, you should add a cdrom device to the machine if this device does not exist. If you have VMWare Workstation, VMWare Player or you simply are using a web interface you can add easily a new cdrom device from your Control Panel. The commands below are specific foropenSUSE Virtual Appliances.

You should install the latest kernel, in case a new one has been released since the virtual machine was created. You can do so issuing the following command:

$ sudo zypper update kernel-default

If no newer version is found, the command will not take effect. If the zypper package tool installed a new kernel, you will need to reboot the machine:

$ sudo reboot

Once the machine is started using the new Linux kernel, you can access the VMWare tools. In the version of VMWare that we tested there is an option in the Control Panel: VM -> Install VMWare tools

This action simulates mounting 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 rpm -i VMWareTools-*.rpm 

Before running the VMWare configuration tool it is necessary to install some dependencies:

$ sudo zypper install gcc make tar kernel-source 

Finally you can configure the VMWare tools installed in the BitNami Virtual Appliance.

$ sudo vmware-config-tools.pl 

These steps are specific for openSUSE based appliances. If you are using theUbuntu 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/kernel_version/build/include/linux/utsrelease.h
$ sudo ln -s /lib/modules/kernel_version/build/include/generated/autoconf.h /lib/modules/kernel_version/build/include/linux/autoconf.h
$ sudo ./vmware-config-tools.pl

How to install a FTP server?

Some applications use a FTP connection to download and install modules. IMPORTANT: This server should not be used to copy files into the machine, for remotely connection it is advisable to connect throughSFTP or SCPfor security reasons. Most of the Virtual Appliances already included the "vsftpd" server configured to be accessed locally.

If you want to use it from your application these are the setting that you should use:

Hostname: 127.0.0.1
Username: bitnami
Password: the bitnami user password Connection method: FTP

If your Virtual Appliance does not include FTP, you can installvsftpdserver following these steps:

On Ubuntu:

$ sudo apt-get update
$ sudo apt-get install vsftpd

On openSuSE:

$ sudo zypper update
$ sudo zypper install vsftpd

Now the FTP server is running on your machine. For security reasons you should modify the configuration file to only listen requests from the local machine. Add the following line at the end of the configuration file "/etc/vsftpd.conf". You can add it running the following command:

$ echo -e "write_enable=YES\nlisten_address=127.0.0.1" | sudo tee -a /etc/vsftpd.conf

Then restart the service and that is all.

On Ubuntu:

$ sudo restart vsftpd

On openSuSE:

$ sudo /etc/init.d/vsfptd restart

The FTP credentials for the application will be the following:

Hostname: localhost
Port: 21
Username: bitnami
Password:bitnami user password in your machine
FTP Root: /opt/bitnami/apps/your_application/htdocs

1

免责声明:文章转载自《[转载]BITNAMI提供的VMWARE虚拟机设置HOWTO》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇J2ME 开发环境搭建Linux环境下非root用户安装Python3下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Ubuntu安装SSH和SFTP Windows与Ubuntu Linux互传文件

Ubuntu安装SFTP和安装SSH可以一部完成,即:安装好了SSH就可以用SFTP连接了。 安装SSH sudo apt-get install openssh-server 查看SSH是否启动 sudo ps -e | grep ssh 设置ssh开机启动(这一步可选,一般安装好之后默认就是开机启动) # 开机自动启动ssh命令 sudo system...

修改 ubuntu NTFS 文件系统下没有执行权限的问题

由于NTFS本身的特殊性,不能对其分区的文件权限进行修改,无论是sudo还是root都没有用。 安装以下两个插件解决问题: sudo apt-get install ntfs-3g //这个12.04已经有了。sudo apt-get install ntfs-config //这个是个图形界面的NTFS权限配置程序。 打开ntfs-config后,我把权...

树莓派 4B 安装 Manjaro

layout: posttitle: 树莓派4B安装Manjaroslug: Rpi4BinstallManjarodate: 2020/12/27 16:12:53status: publishauthor: owxccategories: CS 嵌入式tags: 工具 Manjaro/Arch常用命令 Pacman常用命令 - 简书 也是安装...

Ubuntu Linux系统开启TELNET服务的方法(2)

  Ubuntu Linux系统中默认没有Telnet服务,首先我进行安装开启服务,步骤如下: 1. sudo apt-get install xinetd telnetd(安装成功后,系统会有相应的提示) 2.sudo vi /etc/xinetd.conf并加入以下内容: 3. sudo vi /etc/xinetd.d/telnet并加入以下内容:...

centos7下安装composer和git

一、安装composer composer 属于php的包依赖管理工具。 1、进入Composer国内镜像网站文档页查看安装方法: https://docs.phpcomposer.com/00-intro.html 2、在centOS系统中进入特定目录执行以下命令: cd /usr/local/composer curl -sS https://get...

Ubuntu18.04完全卸载mysql5.7并安装mysql8.0的安装方法

Ubuntu18.04版本下,如果直接输入: sudo apt install mysql-server 命令,会默认安装mysql5.7版本,安装过程并没有提示输入密码,安装完成后也无法正常登录,这是因为mysql为Ubuntu18.04提供了新版本mysql8.0,所以此时就需要卸载5.7,重新安装8.0版本。 注意:一定要完全卸载并清楚数据,不然等会...