<?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>thinkMoult &#187; ssh</title>
	<atom:link href="http://thinkmoult.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkmoult.com</link>
	<description>Seriously who ever reads this description.</description>
	<lastBuildDate>Sun, 08 Apr 2012 03:22:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Setting up FreeNX (nxserver-freenx) on Gentoo</title>
		<link>http://thinkmoult.com/2009/09/28/setting-up-freenx-nxserver-freenx-on-gentoo/</link>
		<comments>http://thinkmoult.com/2009/09/28/setting-up-freenx-nxserver-freenx-on-gentoo/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 02:48:34 +0000</pubDate>
		<dc:creator>Dion Moult</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[freeedition]]></category>
		<category><![CDATA[freenx]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[nxserver]]></category>
		<category><![CDATA[nxserver-freeedition]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://thinkmoult.com/?p=1041</guid>
		<description><![CDATA[NX is, in laymans&#8217; terms, some fancy technology that allows you to remote desktop control your computer. If you&#8217;ve used VNC before, where VNC simply works by sending screenshots over the internet, NX does cool stuff in between like compression that makes NX much faster and better. NX is a pain to set up. Maybe [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>NX is, in laymans&#8217; terms, some fancy technology that allows you to remote desktop control your computer. If you&#8217;ve used VNC before, where VNC simply works by sending screenshots over the internet, NX does cool stuff in between like compression that makes NX much faster and better.</p>
<p><strong>NX is a pain to set up.</strong> Maybe it&#8217;s just my bad luck that something goes wrong every time I try to set it up, or perhaps I&#8217;m just plain stupid but I find it a pain and it normally makes me feel like chewing my ethernet cable after a while. A long while back I managed to get nxserver-freeedition working fine, but recently it stopped and in the process I decided to switch over to using FreeNX &#8211; an open-source implementation of NX. Here is how I got it up finally, mainly for archival purposes.</p>
<p>Before starting, you may want to clean your system. <tt>unmerge nxclient nxnode nxserver-freeedition nxserver-freenx</tt>, etc, <tt>rm -r /usr/NX</tt> (if freeedition), <tt>rm -r /etc/nxserver</tt> (if FreeNX), remove the nx user and the nx group, <tt>rm -r ~/.nx/</tt> for all users.</p>
<ol>
<li><tt>emerge nxclient</tt></li>
<li><tt>emerge nxserver-freenx</tt></li>
<li><tt>nxsetup --install --setup-nomachine-key --clean --purge</tt> (the &#8211;setup-no-machine key option  means that you just need to use the default key that the nxclient comes with)</li>
<li> Try to connect via nxclient, <tt>tail -f /var/log/messages</tt>, if it complains about the user being locked, do <tt>usermod -p foo nx</tt>, where foo is a password you&#8217;ll use.</li>
<li> Start debugging why it doesn&#8217;t work.</li>
</ol>
<p>When debugging I normally:</p>
<ul>
<li>Make sure SSH works first. Refer to my <a href="http://thinkmoult.com/wp-content/uploads/2009/09/sshd_config.txt">sshd_config</a> (obviously this is specific to my setup, but notice that PasswordAuthentication is set to yes, as that&#8217;s how you&#8217;ll authenticate with NX with nxclient)</li>
<li>Make sure you own your own authorized_keys(2) file, after a while of mucking about you might&#8217;ve screwed the permissions (600).</li>
<li>Check that you&#8217;re pointing at the right authorized_keys(2) file, though I didn&#8217;t need to bother about this with FreeNX, I know that this is a common mistake with nxserver-freeedition</li>
<li>I like to run SSH on port 443, so change to port 443 in /etc/nxserver/node.conf for FreeNX, and if using freeedition in /usr/NX/etc/server.cfg, node.cfg, whatever is specific to your setup.</li>
</ul>
<p>As for my experience switching over to FreeNX from freeedition, honestly in terms of usability it&#8217;s no different at all, but personally in terms of installation procedure FreeNX wins by a mile. But for the moment I&#8217;m just happy <a href="http://thinkmoult.com/2009/05/21/setting-up-ssh-to-work-whilst-at-college/">I won&#8217;t be restricted</a> by my school&#8217;s web filtering system and glitchy, laggy, virus-filled OS. Perhaps when NeatX stabilises a little I might check it out.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://thinkmoult.com/2009/09/28/setting-up-freenx-nxserver-freenx-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Setting up SSH to work whilst at college.</title>
		<link>http://thinkmoult.com/2009/05/21/setting-up-ssh-to-work-whilst-at-college/</link>
		<comments>http://thinkmoult.com/2009/05/21/setting-up-ssh-to-work-whilst-at-college/#comments</comments>
		<pubDate>Thu, 21 May 2009 04:53:13 +0000</pubDate>
		<dc:creator>Dion Moult</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://thinkmoult.com/?p=646</guid>
		<description><![CDATA[Well, if you&#8217;re out and about quite a bit and you run a Linux computer at home, you should have a good relationship with SSH. If you&#8217;ve never felt the need to access your home computer remotely, this is what you should do. For those that don&#8217;t know what SSH is, it is basically a [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Well, if you&#8217;re out and about quite a bit and you run a Linux computer at home, you should have a good relationship with SSH.<strong> If you&#8217;ve never felt the need to access your home computer remotely, this is what you should do.</strong></p>
<p>For those that don&#8217;t know what SSH is, it is basically a network protocol (for example like FTP, SMTP, etc) that allows you to securely connect to another computer. For those that don&#8217;t speak jargon, it is some cool thing that allows me to use my computer remotely.</p>
<p>One of my well-visited locations is my college. I wonder why :P &#8230; and like most places, it runs Windows. Using a Windows computer leaves me feeling crippled and with a sense of repulsion at the most innocent of small creatures. Combined with my college&#8217;s restrictions, there is a lot of stuff I can&#8217;t do. For example, <em>I can&#8217;t download a .doc file</em>. Also, it is quite troublesome to constantly transfer files over with a memory stick, so I decided to set up SSH.</p>
<p>Little did I know how pathetically paranoid the IT technicians were.</p>
<h3>Problem 1: setting up SSH and connecting to my dynamic IP.</h3>
<p>The first step was to install (<code>emerge openssh</code>) and <a href="http://www.gentoo.org/proj/en/infrastructure/config-ssh.xml">set up SSH</a>. (I run Gentoo- the steps will be different for your distribution or if you are running Windows &#8211; say, you can set up SSH on Windows, can&#8217;t you?) This was simple. Now the problem here is that my IP keeps on changing. Especially because my ISP&#8217;s connection is quite volatile, my IP is dynamic and resets several times a day. The method to solve this was to set up a <em>dynamic dns</em>, available from <a href="http://dyndns.org">dyndns.org</a>. This is a free service, and allows me to connect to a sane domain name whilst a client running on my machine updates it regularly on the latest IP.</p>
<h3>Problem 2: port 22 is blocked.</h3>
<p>The next day I popped <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> on a thumb drive and tested it out &#8211; or at least tried to. I had a network connection refused error. Later that night I learned that most public networks blocked certain ports, for example port 22 which SSH normally uses.</p>
<p>The fix around this was to change the config in <code>/etc/ssh/sshd_config</code> to use Port 443. You see, whilst http:// defaults to port 80, https:// URLs default to port 443 &#8211; and are hence rarely blocked. Et Voila &#8211; you can now connect! However, I also run an Apache webserver. This clashes as it also tries to use port 443. As I don&#8217;t care to serve SSL webpages on my localhost, I decided it was a decent sacrifice, and I removed Apache&#8217;s HTTPS support by removing `<code>-D SSL -D SSL_DEFAULT_VHOST</code>` from <code>/etc/conf.d/apache2</code>. Tada. I can now access SSH at my college.</p>
<h3>Problem 3: What about SCP? Surely you&#8217;d want to copy files over.</h3>
<p>Well, transferring files over is another issue. It&#8217;s all good with your vast array of Command-Line-Interface applications for IRC, Vim text editing, file browsing, MSN, email, calendar and PIM, etc &#8211; but every so often you will have the need to transfer a file over. Sending yourself an email with a file doesn&#8217;t help, as my college blocks almost every single website out there aside from Google.com (note: Gmail is not Google.com &#8211; so it is blocked too). At the same time, it also blocks downloading every single file type aside from image files. The quick fix for this was to put the file on my Apache localhost, change the file extension to a .jpg or something then download it from there.</p>
<p>But no. Two problems occured. 1) My website was blocked &#8211; haha, and 2) the IT technicians filter it not by extension, but by actual file contents. To get past the website block, I run a proxy script on my webserver (there are plenty of free proxies out there too) to access my webserver. But then of course I&#8217;m stuck with the file filter. So looks as though it&#8217;s game over.</p>
<p>Not really, there&#8217;s always SCP. I couldn&#8217;t send files using my computer as I didn&#8217;t know the network information of my college network. So I decided to SCP using the college&#8217;s Windows computer. I hear there&#8217;s a program known as WinSCP which is pretty nifty, but at the time I only had PuTTY&#8217;s collection of tools and thus PSCP.EXE &#8211; which pretty much did the same thing &#8211; with one catch: it&#8217;s a CLI application. You see, they&#8217;ve also blocked the command prompt. OK &#8211; for understandable reasons.</p>
<p>To get myself a command prompt, I did the age old innocent command.com trick. This involves creating a plain text file (eg: .txt), putting the words `<code>command.com</code>` in it, and then saving it as cmd.bat. (Notice the changed file extension). This will give you a prompt to work with. Now &#8211; using that to run PSCP.EXE, I succesfully transferred my target file over &#8211; which was in this case a .doc file, which contained some homework.</p>
<h3>What about the ethics of this?</h3>
<p>Well. I personally feel as though these workarounds are anything but a way for me to do my work conveniently. The computer system is riddled enough with viruses as it is without my doing, and I doubt anybody will be motivated enough to have such a complicated setup unless they were either particularly vicious or needed a file really urgently (such as me at the time). But <em>seriously &#8211; a learning centre blocking .doc files</em>?</p>
<p>If you have more experience in networks than me and feel as though this article is innappropriate, feel free to contact me and I&#8217;ll willingly take it down.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://thinkmoult.com/2009/05/21/setting-up-ssh-to-work-whilst-at-college/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to Actually Use Your Computer: Part 3</title>
		<link>http://thinkmoult.com/2009/01/21/how-to-actually-use-your-computer-part-3/</link>
		<comments>http://thinkmoult.com/2009/01/21/how-to-actually-use-your-computer-part-3/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 13:36:27 +0000</pubDate>
		<dc:creator>Dion Moult</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[gtalk]]></category>
		<category><![CDATA[how to use your computer]]></category>
		<category><![CDATA[im]]></category>
		<category><![CDATA[irc]]></category>
		<category><![CDATA[jabber]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[part 3]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://thinkmoult.com/?p=402</guid>
		<description><![CDATA[Feeling in a rather procrastinatic (word?) nature, I&#8217;ve once again displayed my utter aptitude in presenting delayed articles. This is the third part in the series, so you might want to check out part 1 &#8211; a general overview on the types of computer users, and perhaps even part 2 &#8211; about web browsing, email [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Feeling in a rather procrastinatic (word?) nature, I&#8217;ve once again displayed my utter aptitude in presenting delayed articles. This is the third part in the series, so you might want to check out <a href="http://thinkmoult.com/2008/09/27/how-to-actually-use-your-computer-part-1/">part 1 &#8211; a general overview on the types of computer users</a>, and perhaps even <a href="http://thinkmoult.com/2008/10/25/how-to-actually-use-your-computer-part-2/">part 2 &#8211; about web browsing, email &amp; PIM, IMs, and document editing</a>.</p>
<p>Right now, being 00:18AM (and counting!) I&#8217;m going to continue this series to talk about a few hidden tricks and activities you could use your computer for that you might not be accustomed to normally.</p>
<h3>RSS Feeds</h3>
<p>It&#8217;s amazing how many people who don&#8217;t know what an RSS feed is. RSS stands for Really Simple Syndication (yeah, really) and is basically a format of a web feed. In technophobe terms, this means it&#8217;s a fancy new way you can access information. For example, you can access your emails through your email client, you can view web pages with your web browser, and now you can view RSS feeds with, well, an RSS aggregator (or reader). Ok, it&#8217;s more complex than that, but that&#8217;s all you really need to know.</p>
<p>Let&#8217;s use a practical example to explain the usefulness of an RSS feed. Let&#8217;s say you absolutely love the thinkMoult blog, and you want to keep up to date on it all the time without getting extra spam in your inbox notifying you of updates. Well, like most blogs, <a href="http://thinkmoult.com/?feed=rss2">we offer an RSS feed</a> (hint: that was a link to our feed URL) You can input that URL into your RSS aggregator (which is a program you can download), and you can now easily view each post just as it is: a snippet of information, instead of laid out in this bulky (though beautiful) webdesign. It allows you to quickly parse information from all around the web in bitesize pieces. Don&#8217;t read too many blogs? You can also use it perhaps for comics, such as Dilbert or XKCD. Now you don&#8217;t need to remind yourself to check those pages for updates every time you&#8217;re online.</p>
<h3>Multiple IM Protocols</h3>
<p>Now, that&#8217;s just a fancy and technical way of saying MSN Messenger isn&#8217;t the only thing that exists. You can use Skype! You can use Jabber (such as GTalk), Yahoo chat, and there are so many other popular IM services that people use, you might just need to sign in to those accounts to make sure you can contact all your clients or important whomevers you meet online. I personally use Skype, MSN, and GTalk all the time.</p>
<p>You might find it&#8217;s a hassle to manage the multiple accounts, but fear not! There are less handicapped programs than your Windows MSN Messenger that actually support multiple protocols! For example, I use Kopete on KDE, and I can sign into all my accounts (save for Skype) with just one client. It really makes life easier.</p>
<p>Also, I know it isn&#8217;t exactly IM, but you should also familiarise yourself with IRC. IRC stands for Internet Relay Chat, and it&#8217;s what the whole online community used before other things got invented. Right now it&#8217;s still a massively popular form of communication, though mostly populated by people of the more intelligent and technical sort. It&#8217;s basically a huge chatroom (think 800 people per channel) categorised by topic. There are many IRC servers, though the most common is arguably irc.freenode.net. What you&#8217;ll need is an IRC client (try HydraIRC on Windows or IRSSI on Linux), and connect to the irc.freenode.net server. Once in, you might want to try joining some channels related to what you&#8217;re interested in. For example, I can be found regularly in #gentoo, #gentoo-kde, #gentoo-chat, #blenderchat, #vim, and occasionally some others depending on what I&#8217;m doing.</p>
<h3>Set up a Personal Server</h3>
<p>Yes, you can easily set up your own web server, even on Windows. You don&#8217;t need to be a rocket scientist. There&#8217;s this nifty little prepackaged LAMP setup (that&#8217;s Linux Apache MySQL, and PHP) in the disguised form of XAMPP. The absense of the L means it probably works on Windows, eh? The extra P is probably for Python or Perl, but I haven&#8217;t poked too much in the package to find out personally.</p>
<p>What use is a personal server? You can dump your files in it, give others your IP, and then they can easily download files from you. If you&#8217;re on a network (even through your router), you can easily transfer files from one computer to another at speeds reaching up to 1gb per second (either that or the little notification window lied). If you&#8217;re into webdesign, or need an environment to run PHP scripts, that&#8217;s the perfect place to do it! Or even if you want to use PHPMyAdmin (oh, the extra P could be that too) to interface with your MySQL databases (if you use them, of course) a server is probably the most useful thing you could have.</p>
<h3>Set up some transfer protocols</h3>
<p>We&#8217;ve all known the popular protocols, FTP, SSH, SFTP, Telnet, etc. Why don&#8217;t you set it up on your own computer? Let people upload files to your computer. Let people connect to your computer and control it remotely! If you have an X server, let people do X tunneling through SSH so from anywhere you can access your GUI applications. Or if you&#8217;re braver, setup a VNC server too so that you can control it as though you were sitting right in front of it!</p>
<p>You&#8217;d probably have to do some research on how to set these up for your operating system (for Linux just check your package manager), but it&#8217;s worth it. The ability to remotely access and manipulate your data from anywhere in the world is priceless. It has plenty of uses too! You can access your files from anywhere (that&#8217;s the obvious one). You can debug applications or even your failing router. You can have two people connect to one computer and run tutorial sessions, or do Extreme Programming (a style which involves two programmers working at the same time).</p>
<p>A word of warning though, please learn how to secure these connections, you don&#8217;t want random people poking through your stuff.</p>
<p>Well, that&#8217;s it for this part of the series. I realise it&#8217;s turned ever so slightly more geeky, so I promise the next part will be a lot simpler. If you aren&#8217;t of the technologically savvy type and you are reading this, you have <em>a huge amount</em> of research to do before you can find out how to accomplish all these things. However, repeat after me: &#8220;<em>It&#8217;s worth it</em>.&#8221;</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://thinkmoult.com/2009/01/21/how-to-actually-use-your-computer-part-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

