<?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>archGFX &#187; SSH</title>
	<atom:link href="http://archgfx.net/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://archgfx.net</link>
	<description>Austin web designer - Adam Freetly</description>
	<lastBuildDate>Thu, 19 Apr 2012 18:01:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>SF.net PT 2: Setting up a demo site</title>
		<link>http://archgfx.net/blog/2007/geek/blogging/sfnet-pt-2-setting-up-a-demo-site</link>
		<comments>http://archgfx.net/blog/2007/geek/blogging/sfnet-pt-2-setting-up-a-demo-site#comments</comments>
		<pubDate>Mon, 05 Mar 2007 03:17:01 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sourceforge]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://archgfx.net/blog/2007/asides/sfnet-pt-2-setting-up-a-demo-site</guid>
		<description><![CDATA[Part 1 was easy. it's all GUI stuff, that you can figure out by poking around. Part 2 is the reason I started writing this down. The only way to maintain your sourceforge.net website, is via SSH (and by extension, sFTP). Programs you will need: Putty (download) PuttyGen (same as above) WinSCP (download) Putty and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sunburntkamel.archgfx.net/2007/03/02/hosting-a-theme-on-sourceforge-pt-1/">Part 1 was easy</a>.  it's all GUI stuff, that you can figure out by poking around.  Part 2 is the reason I started writing this down.  The only way to maintain your sourceforge.net website, is via <acronym title='Secure SHell'><span class='caps'>SSH</span></acronym> (and by extension, sFTP).  Programs you will need:</p>
<ul>
<li>Putty (<a href="http://www.putty.nl/download.html">download</a>)</li>
<li>PuttyGen (same as above)</li>
<li>WinSCP (<a href="http://winscp.net/eng/download.php">download</a>)</li>
</ul>
<p><span id="more-1016"></span></p>
<p>Putty and PuttyGen are just executable programs, they don't install.  After you've installed winSCP and rebooted, go to your SF.net Admin Menu and choose <strong>Shell/DB/web</strong>.  On this page, they list the location of your web files. The important one is <em>Path to htdocs directory:</em> (<code>/home/groups/P/PR/PROJECTNAME/htdocs</code>).  That's just reference right now.</p>
<h3>PHPMyAdmin</h3>
<p>First set up our MySQL database.  Halfway down the page, there's a link to "Manage Project Databases", which takes you to a page where you will set your passwords.  I use the same password for all 3.  not the most secure, theoretically, but i can't think why i would be sharing any of the passwords with anyone.  After you set your password, use the link on that page to log into PHPMyAdmin with your admin account.  first thing you'll do is create a database:</p>
<p><img src="http://sunburntkamel.files.wordpress.com/2007/03/phpmyadmin.jpg" alt="create!" /></p>
<p>i just put wp or wordpress on the end of it, but you should leave the project number as a prefix.</p>
<h3>PuttyGen</h3>
<p>To log in to your site, you need to set up an <acronym title='Secure SHell'><span class='caps'>SSH</span></acronym> key pair. Open up PuttyGen.exe.  we're going to follow <a href="http://sourceforge.net/docs/F02/en/#keygen_putty">these instructions</a>.  When you click 'generate key', you'll see this:</p>
<p><img src="http://sunburntkamel.files.wordpress.com/2007/03/randomness.jpg" alt="do like the man says, move your mouse around." /></p>
<p>so be ready to shake your <strike>tail feathers</strike> pointer finger, it only takes a few seconds.  Once it's generated (i didn't bother entering a passphrase, but you might want to) edit the 'Key comment' field like so (the key automatically updates):</p>
<p><img src="/files/2007/03/sshkey.jpg" alt="<acronym title='Secure SHell'><span class='caps'>SSH</span></acronym> key generated" /></p>
<p>Copy everything in the Public Key field, and click over to your <a href="https://sourceforge.net/account/">Account maintenance page</a>.  Near the bottom, click the [Edit <acronym title='Secure SHell'><span class='caps'>SSH</span></acronym> Keys for Shell/CVS] link.  Paste your key into that field.  Make sure you click the "Save Private Key" button, and then close PuttyGen.</p>
<h3>WinSCP</h3>
<p>Open winSCP.  on the configuration screen, click New:</p>
<p><img src="http://sunburntkamel.files.wordpress.com/2007/03/winscp.jpg" alt="new account" /></p>
<p>the private key file is the one you saved from PuttyGen a minute ago.  You'll also want to go to the directory page, and set the remote directory to your htdocs directory.  Save your settings, and click Login.  winSCP will warn you about the accepting the key fingerprint, click yes.</p>
<p>You can either unzip wordpress locally, and upload the whole thing, which takes a while, or you can just upload the *.tar.gz file and unzip it on the server.  <a href="http://techtites.com/2007/03/03/upgrading-wordpress-via-shell/">Techtite</a> just posted an explanation of this, although there are a few differences I'll explain in a minute.</p>
<h3>Putty</h3>
<p>When you open Putty.exe, you'll need to configure it much the same way you did winSCP:<br />
<img src="http://sunburntkamel.files.wordpress.com/2007/03/puttyhost.jpg" alt="host info" /></p>
<p><img src="http://sunburntkamel.files.wordpress.com/2007/03/puttykey2.jpg" alt="key location" /></p>
<p>Save your settings, and login.  You'll be prompted for your username, and then you'll want to type <code>cd /home/groups/P/PR/PROJECTNAME/htdocs</code>.  Following Ajay's instructions, the wget command doesn't work, because your shell account doesn't have access to anything that's not on SF.net. so here are the commands i used:<br />
<code><br />
tar xzvf wordpress-2.1.2.tar.gz<br />
cp -rf wordpress/* ./<br />
cp wp-config-sample.php wp-config.php<br />
vi wp-config.php<br />
</code><br />
vi is a text editor.  Once it opens, the first thing you should do, is type 'i'.  That puts you into insert mode (the default is view).  enter the information from the "Manage Project Databases" page, like so:<br />
<img src="http://sunburntkamel.files.wordpress.com/2007/03/wp-config2.jpg" alt="editing in vi" /></p>
<p>You can paste into Putty by placing the cursor where you want, and right-clicking on the window. And yes, we're changing that '99% chance you won't need to change this' line.  You'll need to use the admin username and password.  after you're done editting, press '<code>ESC</code>' to switch back to view mode, and then '<code>:wq</code>' to write the file and quit.</p>
<p>now you're ready to run install.php! while you're setting up all your favorite options, you'll note that</p>
<ul>
<li>you can't set up akismet.  not sure what to do about that just yet.</li>
<li>you can't upload files.  or add custom headers.  not sure what to do about that either.</li>
<li>when you edit your permalink structure, it won't save.  you'll have to fire up vi to do that as well.</li>
</ul>
<h3>Adding your Theme</h3>
<p>you can keep an up to date copy of your theme installed via SVN. Just:<br />
<code><br />
cd wp-content/themes/<br />
svn co http://PROJECTNAME.svn.sourceforge.net/svnroot/PROJECTNAME/trunk/ PROJECTNAME<br />
</code><br />
don't forget the /trunk.  since you're doing this via command line, you'll need to make sure your capitalization matches.  and that last PROJECTNAME is whatever you want to call your theme folder.</p>
<p>The last thing you'll need to do is add your sourceforge code.  The code is on that Shell/DB/web page, about halfway down.</p>
]]></content:encoded>
			<wfw:commentRss>http://archgfx.net/blog/2007/geek/blogging/sfnet-pt-2-setting-up-a-demo-site/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

