<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rob [ON] code &#187; Getting Started</title>
	<atom:link href="http://www.roboncode.com/articles/category/general/getting-started/feed" rel="self" type="application/rss+xml" />
	<link>http://www.roboncode.com</link>
	<description>A blog on today's popular programming languages.</description>
	<lastBuildDate>Wed, 21 Oct 2009 21:29:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Remote Connection through SSH</title>
		<link>http://www.roboncode.com/articles/173</link>
		<comments>http://www.roboncode.com/articles/173#comments</comments>
		<pubDate>Fri, 13 Feb 2009 15:12:34 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.roboncode.com/?p=173</guid>
		<description><![CDATA[Part 2 &#8211; &#8220;Creating a Virtual Development Environment&#8221; In the previous article to this series, we got our Ubuntu server appliance up and running. We can also access it directly through our VMWare client. In this article, we will look at how to connect to our VM through SSH in order to run commands from [...]]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignleft size-full wp-image-134" title="vmware_logo_128" src="http://www.roboncode.com/wp-content/uploads/2009/02/vmware_logo_128.png" alt="vmware_logo_128" width="144" height="144" />Part 2 &#8211; &#8220;Creating a Virtual Development Environment&#8221;</strong></p>
<p>In the <a href="http://www.roboncode.com/articles/131" >previous article</a> to this series, we got our Ubuntu server appliance up and running. We can also access it directly through our VMWare client. In this article, we will look at how to connect to our VM through SSH in order to run commands from a Telnet client, as well as FTP into our server.<span id="more-173"></span></p>
<p> </p>
<p><strong>Using a Telnet Client</strong></p>
<p>Macs come with a built in Telnet client. Windows machines do not. I use PuTTY as my Telnet Client.</p>
<p>You can download it here:<br />
<a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?www.chiark.greenend.org.uk%2F%7Esgtatham%2Fputty%2Fdownload.html"  target="_blank">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a>.</p>
<p>There are many applications offered as PuTTY, but you only need the &#8220;PuTTY (the Telnet and SSH client itself)&#8221;.</p>
<p>Because putty.exe is just an executable, I manually setup a directory and store it in C:\Program Files\Putty\putty.exe, along with all my other applications and then create a shortcut to it that I store elsewhere.</p>
<p>Run your virtual appliance. When the server first ran we saw this window</p>
<p><img class="aligncenter size-full wp-image-133" title="vm_ubuntu" src="http://www.roboncode.com/wp-content/uploads/2009/02/vm_ubuntu.png" alt="vm_ubuntu" width="600" height="342" /></p>
<p> </p>
<p>In my case, it told me my IP address for the virtual appliance is: 192.168.91.128. Your address might be different. If you are no longer at this window, you can either type &#8220;exit&#8221; or type &#8220;ifconfig&#8221; to obtain the IP address as seen below:</p>
<p> </p>
<p><img class="aligncenter size-full wp-image-175" title="vm_umbuntu_ip" src="http://www.roboncode.com/wp-content/uploads/2009/02/vm_umbuntu_ip.png" alt="vm_umbuntu_ip" width="385" height="219" /></p>
<p>Open Putty and in field &#8220;Host Name&#8221;, type the appliance&#8217;s IP address, and then click Open. If you are going to access this address often, you can save it as a session. We now have a telnet into the appliance. You can either enter as your username/password, u:sysadmin / p:sysadmin or u:root / p:pass. You will be able to navigate as you do when accessing the appliance through VMWare along with all the same privileges as the user you logged in as.</p>
<p><strong>Using an FTP Client through SSH</strong></p>
<p>Most FTP Clients have the ability to connect through SSH tunneling. I use WinSCP (<a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?winscp.net%2Feng%2Fdownload.php"  target="_blank">http://winscp.net/eng/download.php</a>) to FTP because it integrates with Putty and offers the ability to execute commands through a simple dialog as well as through Putty integration. To be thorough I will go over how to use WinSCP to connect to the appliance.</p>
<p>After you have downloaded and installed WinSCP, launch the application. There are really only 3 fields you need to fill out:</p>
<p>Host name: IP Address of your appliance<br />
User name: root<br />
Password: pass (or the password you assigned to root)</p>
<p><img class="aligncenter size-full wp-image-176" title="winscp_setup" src="http://www.roboncode.com/wp-content/uploads/2009/02/winscp_setup.png" alt="winscp_setup" width="529" height="362" /></p>
<p>Then save the session. Now select the session and login. You now have the ability to navigate the appliance directory like you can any other system. I like WinSCP because it supports drag n&#8217; drop from anywhere on your local machine into the interface. I sometimes use WinSCP for file creation and modification, permissions on files and directories and other common tasks versus using telnet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roboncode.com/articles/173/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up a Virtual Machine</title>
		<link>http://www.roboncode.com/articles/131</link>
		<comments>http://www.roboncode.com/articles/131#comments</comments>
		<pubDate>Mon, 09 Feb 2009 15:29:31 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Getting Started]]></category>

		<guid isPermaLink="false">http://www.roboncode.com/?p=131</guid>
		<description><![CDATA[Part 1 of &#8220;Creating a Virtual Development Environment&#8221; In this small series, I am going to show you how to setup a virtual machine. We are going to setup an Ubuntu LTS Server that runs your typical LAMP (Linux, Apache, MySQL, PHP) configuration. I will also discuss additional tools I use for development. I will [...]]]></description>
			<content:encoded><![CDATA[<p><strong><img class="alignleft size-full wp-image-134" title="vmware_logo_128" src="http://www.roboncode.com/wp-content/uploads/2009/02/vmware_logo_128.png" alt="vmware_logo_128" width="144" height="144" />Part 1 of &#8220;Creating a Virtual Development Environment&#8221;</strong></p>
<p>In this small series, I am going to show you how to setup a virtual machine. We are going to setup an Ubuntu LTS Server that runs your typical LAMP (Linux, Apache, MySQL, PHP) configuration. I will also discuss additional tools I use for development. I will finish by setting up a Virtual Host that you can access through the desktop. This article will focus on setting up Ubuntu as a virtual machine.<span id="more-131"></span></p>
<p> </p>
<p><strong>What is a Virtual Machine?</strong></p>
<p>A virtual machine (VM) is nothing more than a software implementation of a machine that represents the environment of a real machine.  You use virtual machines when you don&#8217;t want to setup an entire machine dedicated to one operating system. VMs are nice for testing out new operating systems and software, but our primary use is to run code that will be delivered by the server itself from the Internet.</p>
<p><strong>Getting Started with VMWare</strong></p>
<p>To run our VM, we are going to use software from VMWare (vmware.com). The environments that you run in VMs are called &#8216;appliances&#8217;. VMWare offers two environments to run appliances: VMWare Player (free version) and VMWare Workstation (commercial version). Some additional features that VMWare Workstation provides are running multiple appliances, creating snapshots, and creating images of your configuration.</p>
<p>Though I will be using VMWare Workstation, I would recommend installing VMWare Player to get started. You can always upgrade to Workstation later. Once you have downloaded either environment, just go through the installation with all the default settings.</p>
<p>To download VMWare Player : <a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?vmware.com%2Fproducts%2Fplayer%2F"  target="_blank">http://www.vmware.com/products/player/</a><br />
To download VMWare Workstation: <a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?vmware.com%2Fproducts%2Fws%2F"  target="_blank">http://www.vmware.com/products/ws/</a></p>
<p><strong>Download the Appliance &#8211; Ubuntu 8.04 LTS Server</strong></p>
<p>There are hundreds of VMWare appliances provided by the community ready to download and use. You can search through the entire library here: <a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?vmware.com%2Fappliances%2F"  target="_blank">http://www.vmware.com/appliances/</a></p>
<p>We are going to download the Ubuntu LTS Server appliance. The version I am using for this article is Ubuntu 8.04 LTS Server. You should be able to follow the steps below regardless of the version you choose.</p>
<p>Reference to the appliance I downloaded:<br />
<a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?vmware.com%2Fappliances%2Fdirectory%2F53499"  target="_blank">http://www.vmware.com/appliances/directory/53499</a></p>
<p>Direct link to the appliance I downloaded<br />
<a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?linhost.info%2F%3Fdownload%3DUbuntu%25208.04%2520Server"  target="_blank">http://linhost.info/?download=Ubuntu%208.04%20Server</a></p>
<p>Most of the appliances are compressed using common formats 7-Zip (7-zip.org) or Torrent. Extract the files into a location. I store mine a C:applicances. The entire package extracted to C:appliancesUbuntu804Server-VM_1.4Ubuntu804Server-VM_1.4 once completed.</p>
<p><strong>Running the Appliance as a Virtual Machine</strong></p>
<p>Running an appliance is actually pretty simple. You can either go into the directory where there files are locate and find the VMWare workstation file with the extension (*.vmx) and double-click on it, or through VMWare Player select open and browse to the file. In VMWare Player, the appliance will run automatically. If you are using VMWare workstation, you will select &#8216;Power on this virtual machine&#8217; to initialize. The player may ask you if the files have been moved or copied. Select the default &#8216;copied&#8217; and continue. The VM will start and the server will go through some configuration settings. And you will then be left at the user/pass prompt. Congratulations! You are now running a virtual instance of Ubuntu. You can follow the instructions for logging in &#8211; user: sysadmin, pass: sysadmin</p>
<p><img class="aligncenter size-full wp-image-133" title="vm_ubuntu" src="http://www.roboncode.com/wp-content/uploads/2009/02/vm_ubuntu.png" alt="vm_ubuntu" width="600" height="342" /></p>
<p> </p>
<p>I am only going to go over a few commands to just setup our environment for future articles. If you want to learn some more common commands, go here &#8211; <a href="https://help.ubuntu.com/community/UsingTheTerminal" onclick="javascript:pageTracker._trackPageview('/outbound/article/help.ubuntu.com');" target="_blank">https://help.ubuntu.com/community/UsingTheTerminal</a></p>
<p><strong>Changing the root password</strong></p>
<p>Once you login, let&#8217;s change the root password to something we can always remember. If you ever want to login as the root, knowing the password can be handy. To change the password of root, type:</p>
<pre>sudo passwd root</pre>
<p>Change the password to &#8220;pass&#8221;, in order to keep it simple for our purposes. SUDO stands for &#8220;Super User Do&#8221; allowing administrative privileges into the system. To read more about it go here: <a href="http://www.roboncode.com/wp-content/plugins/wp-noexternallinks/goto.php?en.wikipedia.org%2Fwiki%2FSudo"  target="_blank">http://en.wikipedia.org/wiki/Sudo</a>.</p>
<p><strong>Updating the Advanced Packaging Tool (APT)</strong></p>
<p>These appliances may not be up to date with some of their system caches. One of the applications we definitely want to update is the Advanced Packaging Tool (APT). This interface works with core libraries to handle installing software. If we don&#8217;t update it, it is likely that it will have problems installing the libraries from the Internet. To update APT, type:</p>
<pre>sudo apt-get update</pre>
<p>Once the update is complete, I would recommend reviewing some of the common commands used for navigating and listing files and directories; managing files (create, remove, copy, etc); and editing files using some of the common built-in editors such as &#8220;nano&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roboncode.com/articles/131/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

