<?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>port &#8211; Sandy Scott&#039;s Web Spot</title>
	<atom:link href="https://www.sandyscott.net/tag/port/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.sandyscott.net</link>
	<description>My little corner of the web</description>
	<lastBuildDate>Fri, 05 Jun 2020 11:29:12 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>Server Setup 7: Install WordPress</title>
		<link>https://www.sandyscott.net/2020/05/server-setup-7-install-wordpress/</link>
					<comments>https://www.sandyscott.net/2020/05/server-setup-7-install-wordpress/#respond</comments>
		
		<dc:creator><![CDATA[Sandy]]></dc:creator>
		<pubDate>Thu, 21 May 2020 15:24:12 +0000</pubDate>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.sandyscott.net/?p=539</guid>

					<description><![CDATA[After this post you&#8217;ll have a working WordPress installation to play with! Make website unavailable from public internet A word of warning &#8211; the first thing that will happen once we&#8217;ve installed wordpress is you&#8217;ll create an admin user. You don&#8217;t want a hacker to swoop in a beat you...<p> <a class="continue-reading-link" href="https://www.sandyscott.net/2020/05/server-setup-7-install-wordpress/"><span>Continue reading</span><i class="crycon-right-dir"></i></a> </p>]]></description>
										<content:encoded><![CDATA[
<p><em>If this is your first time looking at a post from this series, have a look at this summary: <a href="https://www.sandyscott.net/2020/06/04/server-setup-0-contents/" data-type="666">Server Setup 0: Contents</a></em></p>



<p>After this post you&#8217;ll have a working WordPress installation to play with!</p>



<h2 class="wp-block-heading">Make website unavailable from public internet</h2>



<p>A word of warning &#8211; the first thing that will happen once we&#8217;ve installed wordpress is you&#8217;ll create an admin user. You don&#8217;t want a hacker to swoop in a beat you to it.</p>



<p>Reverse the steps you took to open the ports in your router.</p>



<h2 class="wp-block-heading">Download and unpack</h2>



<p>Go to the directory above your wordpress folder &#8211; mine was /var/www/wordpress, so we&#8217;ll go to /var/www</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">cd /var/www</pre></div>



<p>Delete your wordpress directory &#8211; we&#8217;re about to recreate it:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;sudo Shell&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">sudo rm -R wordpress</pre></div>



<p>Download wordpress</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">sudo wget https://wordpress.org/latest.tar.gz</pre></div>



<p>Unpack &#8211; the tar.gz file is like a zip file, so we&#8217;re just unpacking it.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">sudo tar xvfz latest.tar.gz</pre></div>



<p>Optional step &#8211; if the folder you set up for the website wasn&#8217;t called &#8220;wordpress&#8221;, move the new folder to what it used to be called:</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">sudo mv wordpress other_wp_folder	</pre></div>



<p>Now wordpress needs to be able to modify the files inside it&#8217;s directory, so to do that we change the owner of the directory and everything in it to www-data. www-data is the user that apache runs as.</p>



<div class="wp-block-codemirror-blocks-code-block code-block"><pre class="CodeMirror" data-setting="{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}">sudo chown -R www-data /var/www/wordpress/</pre></div>



<p>And we&#8217;re done with the install!</p>



<h2 class="wp-block-heading">Configure</h2>



<p>Now go to your site on the client machine e.g www.example.org</p>



<p>If all has gone according to plan, you&#8217;ll this page  (asking for a language) or the next one. </p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-26.png"><img fetchpriority="high" decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-26.png" alt="" class="wp-image-547" width="181" height="338" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-26.png 362w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-26-161x300.png 161w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-26-80x150.png 80w" sizes="(max-width: 181px) 100vw, 181px" /></a><figcaption>WordPress language selection</figcaption></figure>



<p>This is the intro to the configuration:</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-23.png"><img decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-23.png" alt="" class="wp-image-544" width="382" height="291" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-23.png 764w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-23-300x228.png 300w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-23-150x114.png 150w" sizes="(max-width: 382px) 100vw, 382px" /></a><figcaption>WordPress configuration introduction</figcaption></figure>



<p>Now fill in the database details from the <a href="https://www.sandyscott.net/2020/05/21/server-setup-4-wordpress-pre-requisites/">last post</a> in here.</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-24.png"><img decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-24.png" alt="" class="wp-image-545" width="380" height="270" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-24.png 759w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-24-300x213.png 300w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-24-150x107.png 150w" sizes="(max-width: 380px) 100vw, 380px" /></a></figure>



<p>This page sets the site title (it&#8217;s doesn&#8217;t need to be the URL &#8211; it can be anything you like) and your admin account.</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-28.png"><img loading="lazy" decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-28.png" alt="" class="wp-image-550" width="378" height="428" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-28.png 755w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-28-265x300.png 265w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-28-132x150.png 132w" sizes="(max-width: 378px) 100vw, 378px" /></a></figure>



<p>And that&#8217;s done!</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-29.png"><img loading="lazy" decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-29.png" alt="" class="wp-image-551" width="377" height="217" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-29.png 754w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-29-300x173.png 300w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-29-150x86.png 150w" sizes="(max-width: 377px) 100vw, 377px" /></a></figure>



<p>This is the admin console</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-33.png"><img loading="lazy" decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-33.png" alt="" class="wp-image-556" width="365" height="259" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-33.png 1458w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-33-300x213.png 300w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-33-1024x727.png 1024w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-33-768x545.png 768w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-33-150x106.png 150w" sizes="(max-width: 365px) 100vw, 365px" /></a></figure>



<p>And the view of the site when you&#8217;re logged in.</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-31.png"><img loading="lazy" decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-31.png" alt="" class="wp-image-553" width="365" height="259" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-31.png 1458w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-31-300x213.png 300w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-31-1024x727.png 1024w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-31-768x545.png 768w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-31-150x106.png 150w" sizes="(max-width: 365px) 100vw, 365px" /></a></figure>



<p>And what it looks like for ordinary visitors.</p>



<figure class="wp-block-image size-full is-resized"><a href="https://www.sandyscott.net/wp-content/uploads/2020/05/image-32.png"><img loading="lazy" decoding="async" src="https://www.sandyscott.net/wp-content/uploads/2020/05/image-32.png" alt="" class="wp-image-554" width="365" height="259" srcset="https://www.sandyscott.net/wp-content/uploads/2020/05/image-32.png 1458w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-32-300x213.png 300w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-32-1024x727.png 1024w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-32-768x545.png 768w, https://www.sandyscott.net/wp-content/uploads/2020/05/image-32-150x106.png 150w" sizes="(max-width: 365px) 100vw, 365px" /></a></figure>



<h2 class="wp-block-heading">Re-enable public access</h2>



<p>Now you can re-enable public access by configuring port forwarding on your router.</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sandyscott.net/2020/05/server-setup-7-install-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ruby Serial Port</title>
		<link>https://www.sandyscott.net/2013/05/ruby-serial-port/</link>
					<comments>https://www.sandyscott.net/2013/05/ruby-serial-port/#respond</comments>
		
		<dc:creator><![CDATA[Sandy]]></dc:creator>
		<pubDate>Tue, 14 May 2013 09:06:52 +0000</pubDate>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[com]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://www.sandyscott.net/?p=18</guid>

					<description><![CDATA[Ever wanted to get Ruby talking to a serial Device? The key step is getting the Development Kit set up, which will allow you to install the serialport gem from source Download &#038; Install Ruby. If you&#8217;re on windows, the RubyInstaller is great Download &#038; Install the DevKit. Find the...<p> <a class="continue-reading-link" href="https://www.sandyscott.net/2013/05/ruby-serial-port/"><span>Continue reading</span><i class="crycon-right-dir"></i></a> </p>]]></description>
										<content:encoded><![CDATA[<p>Ever wanted to get Ruby talking to a serial Device?</p>
<hr />
<p>The key step is getting the Development Kit set up, which will allow you to install the serialport gem from source</p>
<ol>
<li>Download &#038; Install Ruby.  If you&#8217;re on windows, the <a href="http://rubyinstaller.org/downloads/">RubyInstaller</a> is great</li>
<li>Download &#038; Install the DevKit.  Find the installer on the page above, use these <a href="https://github.com/oneclick/rubyinstaller/wiki/Development-Kit">installation instructions</a></li>
<li>Install the serialport gem as normal:<br />
<code>gem install serialport</code></li>
</ol>
<p>And you should be good to go!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.sandyscott.net/2013/05/ruby-serial-port/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
