From e4985b6eab80e2d8a51e3d135605c9ab18433a81 Mon Sep 17 00:00:00 2001
From: Chris Koeritz The cakelampvm project provides a Virtualbox VM that acts as an "internet
- in a bottle". The virtual machine provides DNS services (bind9), a Web server (Apache2), a full Ubuntu Linux desktop environment,
- the Fluxbox X window manager,
- and a suite of tools called the Feisty Meow® codebase .
- Together, these services provide you with a very flexible and powerful
- testbed for web development, especially suited for CakePHP.The cakelampvm VM:
-
Configuration and UsageBy Chris Koeritz
+ By Chris Koeritz
+ feisty meow® concerns ltd Vintage: cakelampvm v002
Updated: 2017-11-20 (rev F)
Commands preceded by an octothorpe ('#') below are intended to be typed into a bash shell running on the cakelampvm virtual machine. The bash shell can be obtained either by logging into the VM through ssh or by @@ -33,48 +40,24 @@ running on the Host PC).
The site avenger scripts are documented separately within the feisty meow - codebase. Consult the feisty -meow - readme file first, as it provides some valuable information on - configuring the codebase initially. The site avenger script commands - are documented in the feisty - meow command reference file.
-(The feisty meow codebase is already configured for the developer account - on the cakelampvm virtual machine.)
Configuring host-only networking for the VM makes the VM completely local to your machine. The cakelampvm will not be accessible on the - internet or from the LAN, and can only be accessed by your host PC.
+ internet or from the LAN, and can only be accessed by your host PC. + This is a key component of security for your VM and your host PC, and is + considered a crucial configuration step.Note: If the host-only or NAT network exist ahead of time, Virtualbox may complain about them even if they have the correct configuration. - This can be corrected simply by opening the VM settings and selecting the - appropriate network names again.
+ This can be corrected simply by opening the cakelampvm settings and + selecting the appropriate network names again.To configure the host-only network, follow these steps:
The NAT (Network Address Translation) network allows the VM to get off of the machine and onto the internet safely. It will use this interface - for any communication off of the host machine. Since the real IP - address of the VM is hidden behind the NAT firewall on Virtualbox, this - keeps the VM safe from attackers, and hence your machine stays safe as - well.
+ for any communication off of the host machine. This is another + crucial component for the security of the VM and your host PC. Since + the real IP address of the VM is hidden behind the NAT firewall on + Virtualbox, this keeps the VM safe from attackers, and hence your machine + stays safe as well.To set up the NAT network, follow these steps:
Using the Virtualbox interface, you should now be able to start your virtual machine. Virtualbox will complain if it detects any - remaining configuration problems in the VM, but it should start - normally. The Linux boot sequence will show many lines of text, - before bringing up a black console window with a login dialog.
+ remaining configuration problems in the VM. The Linux boot sequence + will show many lines of text, before bringing up a black console window + with a login dialog.If Windows complains about the Virtualbox application slamming into its firewall, then allow the Virtualbox to get through. Usually, telling Windows that once is enough, but if any odd network access problems @@ -160,35 +146,29 @@ meow it is generally more useful to connect to the cakelampvm over ssh. If the networking has been established properly, you should be able to do this with:
-ssh developer@cakelampvm.com (or equivalent with your ssh client)+
# ssh developer@10.28.42.20 # or the equivalent with your ssh client
And then provide the password to log in.
-If a feature called "X forwarding" is enabled in your ssh client, then - you can start graphical applications on the VM and display them on your - local machine. This works right away on most Linux hosts, but can - also work on PCs with X window system installed. The section below - describes how to set up Cygwin to run X server, which enable X forwarding - to your local display.
-...{insert that info}...
+Once the DNS services are set up (discussed in detail below), you will be + able to run the much friendlier command:
+# ssh developer@cakelampvm.com
The cakelampvm is released with the intention to not be released - again. Version 001 was not built with that explicit intention, which - then required the release of Version 002. We hope to not need a v003 - release.
+The cakelampvm v002 is released with the intention that it not need to be + released again. Version 001 was not built with that explicit + intention, which then required the release of Version 002. But we + hope to not need a v003 release...
There is an update feature built into the VM that is quite easy to use. The updates are driven by the feisty meow script repository in conjunction with a local scripted command. To activate the "update process" for your VM, run the following commands on the VM (without the initial '#' symbol):
-# rpuffer $FEISTY_MEOW_APEX # updates to the latest version
- of feisty meow
- # revamp_cakelampvm # enacts any configuration changes
- needed, plus fixes web folder and other permissions.
# rpuffer $FEISTY_MEOW_APEX # updates to the latest version of feisty meow +# revamp_cakelampvm # enacts any configuration changes needed,
# plus fixes web folder and other permissions.
These two commands can be run at any time to patch up your VM to the latest.
The first command ("rpuffer ...") is also useful on its own for getting - the latest version of the feisty meow code. If there are bug fixes - you need for the scripts or you want updated cakelampvm documentation, - that is the command to use.
+ the latest version of the feisty meow code. Run it again if there + are bug fixes you need for any of the scripts or if you would like the + most up-to-date cakelampvm documentation.Here are some first steps that will make the vm your own:
The site avenger scripts are documented separately within the feisty meow + codebase. Consult the feisty +meow + readme file first, as it provides some valuable information on + configuring the codebase initially. The site avenger script commands + are documented in the feisty + meow command reference file.
+(The feisty meow codebase is already configured for the developer account + on the cakelampvm virtual machine.)
+[incomplete section]
+If a feature called "X forwarding" is enabled in your ssh client, then + you can start graphical applications on the VM and display them on your + local machine. This works right away on most Linux hosts, but can + also work on PCs with X window system installed. This section + describes how to set up Cygwin to run X server, which enables X11 + forwarding to your local display.
+...{insert that info}...
The cakelampvm has been set up to provide a DNS server which will answer name lookup requests on any of the sites that the cakelampvm is hosting @@ -239,8 +251,9 @@ meow wrong, and means something needs to be fixed.
If these pings succeed (which hopefully they will!), then try accessing the websites of each domain:
-(browse to) http://cakelampvm.com-
(browse to) http://mapsdemo.cakelampvm.com+
(browse to) http://cakelampvm.com+
(browse to) http://mapsdemo.cakelampvm.com
These should show local sites on the VM rather than sites on the internet. If you instead get failures to find the domains, or if the "real internet" site comes up for cakelampvm.com (the page covered with @@ -304,13 +317,10 @@ meow developer's home folder also ("/home/developer").
If you run into any permission problems that prevent file access, either remotely or within the VM itself, then try running this command to fix - them:
+ them (repeated from the section above about updating the cakelampvm):# revamp_cakelampvm
Afterwards, the www folder and others should allow the developer user to create new folders at will.
-The revamp command above is also used to deliver new configuration to the - VM from the feisty meow script environment; running it after any update of - the feisty meow codebase is a good idea.
If you want to share a folder from the host to the guest, perhaps for driver updates or other conveniences, then make the share with these @@ -331,7 +341,7 @@ meow
Note: these instructions, even the quick approaches below, pale in comparison to the ease of use of the "standup" command in feisty meow's site avenger scripts. The standup command is detailed in the feisty + target="_blank" title="useful commands" href="https://feistymeow.org/feisty_meow/documentation/feisty_meow_command_reference.txt">feisty meow command reference document. These instructions are for situations when the domain or site is idiosyncratic in some way that standup doesn't support.
@@ -437,9 +447,10 @@ meow it means the DNS is working. If there are no responses or it's some other IP address talking back, check the instructions in the above DNS sections. -Once the DNS is working, try browsing to the site at - "http://excalibur.tv". That should at least bring up the configured - site storage path, even if nothing is being served from that folder yet.
+Once the DNS is working, try browsing to the site at "http://excalibur.tv". That should + at least bring up the configured site storage path, even if nothing is + being served from that folder yet.
If the new site is not showing up properly, try examining the apache logs for any error messages that can be corrected. The log files are stored in "/var/log/apache2" and are named after the website (if @@ -447,8 +458,8 @@ meow
A Cheat sheet for the Vim editor (there are many of these available): https://vim.rtorr.com/
-A git branching model that seems to work well: https://vim.rtorr.com/
+A git branching model that seems to work well: http://nvie.com/posts/a-successful-git-branching-model/
Run this command: ifconfig
-- 2.34.1