<?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>Cedrics Blog &#187; COM</title>
	<atom:link href="http://blog.bariteau.ca/tag/com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bariteau.ca</link>
	<description>Personal Blog</description>
	<lastBuildDate>Wed, 27 Apr 2011 01:26:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Home Fedora Server Setup</title>
		<link>http://blog.bariteau.ca/2009/07/home-fedora-server-setup/</link>
		<comments>http://blog.bariteau.ca/2009/07/home-fedora-server-setup/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 17:00:00 +0000</pubDate>
		<dc:creator>Cedric</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[added security]]></category>
		<category><![CDATA[administrative commands]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[cross platform]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux distribution]]></category>
		<category><![CDATA[public networks]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[ssh login]]></category>
		<category><![CDATA[sysconfig]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.talkcomputer.net/?p=97</guid>
		<description><![CDATA[Did you ever wonder if you could remotely download, upload or control your Fedora (or any other Linux distribution) machine remotely? If the answer is yes, keep on reading because we will do just that!<p class="read-more"><a href="http://blog.bariteau.ca/2009/07/home-fedora-server-setup/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.bariteau.ca/2009/07/home-fedora-server-setup/" title="Home Fedora Server Setup"></a><p>Did you ever wonder if you could remotely download, upload or control your Fedora (or any other Linux distribution) machine remotely? If the answer is yes, keep on reading because we will do just that!</p>
<p>In this article, we will use a user called <em>User</em> on a machine called <em>machine</em>, simple enough?</p>
<h3>Adding User to sudoers</h3>
<p>For added security, we will avoid working with the root user. Therefore, we need a user capable of executing administrative commands. To do that, we&#8217;ll just add <em>User</em> to the sudoers</p>
<pre>[User@machine ~]$ su -
[Root@machine ~]# visudo</pre>
<p>Add the following line at the end of the file</p>
<pre>User ALL=(ALL) ALL<strong> </strong></pre>
<p>or to sudo without password prompt (not recommended)</p>
<pre>User ALL=(ALL) NOPASSWD: ALL</pre>
<p>That&#8217;s it, we can now use <em>sudo</em> to execute administrative commands!</p>
<h3>VNC Server</h3>
<p>For remote desktop access, we will use the VNC server for it&#8217;s cross platform abilities. Note: VNC connections are not encrypted so don&#8217;t use it on public networks.</p>
<pre>[User@machine ~]$ sudo yum install vnc-server vnc
[User@machine ~]$ sudo vi /etc/sysconfig/vncservers</pre>
<p>Edit the file so it contains:</p>
<pre>VNCSERVERS="1:User"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16"</pre>
<p>Set the vnc password for the user (this should be different than the password for the local/ssh login):</p>
<pre>[User@machine ~]$ vncpasswd</pre>
<p>Set the services:</p>
<pre>[User@machine ~]$ sudo service vncserver restart
[User@machine ~]$ sudo chkconfig vncserver on</pre>
<h3>FTP Server</h3>
<p>If you want to access your files remotely and transfer them to other machines, you&#8217;ll need to install an FTP server</p>
<pre><strong> </strong>[User@machine ~]$ sudo yum install vsftpd
[User@machine ~]$ sudo chkconfig vsftpd on
[User@machine ~]$ sudo vi /etc/vsftpd/vsftpd.conf</pre>
<p>change from</p>
<pre>anonymous_enable=YES</pre>
<p>to</p>
<pre>anonymous_enable=NO</pre>
<p>uncomment both lines bellow</p>
<pre>write_enable=YES
local_enable=YES</pre>
<p>Set the services:</p>
<pre>[User@machine ~]$ sudo service vsftpd restart</pre>
<h3>SSH</h3>
<p>Finally, to administer your server through the console remotely, you need ssh</p>
<pre>[User@machine ~]$ sudo yum install ssh-server
[User@machine ~]$ sudo service sshd start
[User@machine ~]$ sudo chkconfig sshd on</pre>
<p><strong> </strong></p>
<p>Lets secure the server:</p>
<pre>[User@machine ~]$ sudo vi /etc/ssh/sshd_config</pre>
<p><strong> </strong></p>
<p>Add the following lines at the end of the file:</p>
<pre>LoginGraceTime 30</pre>
<p>(or if you&#8217;re paranoid, use 15. This is the amount of time you have to login)</p>
<p><strong> </strong></p>
<pre>PermitRootLogin no
AllowUsers User</pre>
<p>Now restart the service and you are done</p>
<pre>[User@machine ~]$ sudo service sshd restart</pre>
<h3>End note</h3>
<p>Obviously, you&#8217;ll need to set up your server to let those services through. Keep in mind that VNC runs on port 590x where x is the number in the</p>
<pre>VNCSERVERS="1:User"</pre>
<p>line. Also, here&#8217;s a little bonus; how to encrypt your VNC sessions: just run (in the terminal):</p>
<pre>ssh -f -L 25901:127.0.0.1:5901 User@ip -p 22 sleep 10; vncviewer 127.0.0.1:25901:1</pre>
<p>Hope you liked the tutorial! Questions, as usual in the comments and I will do my best to answer them. Stay tuned, I have more tutorials coming in the next few weeks!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bariteau.ca/2009/07/home-fedora-server-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Serial port monitoring</title>
		<link>http://blog.bariteau.ca/2009/05/serial-port-monitoring/</link>
		<comments>http://blog.bariteau.ca/2009/05/serial-port-monitoring/#comments</comments>
		<pubDate>Thu, 28 May 2009 00:00:09 +0000</pubDate>
		<dc:creator>Cedric</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[baud rate]]></category>
		<category><![CDATA[COM]]></category>
		<category><![CDATA[com port]]></category>
		<category><![CDATA[commercial software]]></category>
		<category><![CDATA[data exchange]]></category>
		<category><![CDATA[Eltima]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[port reading]]></category>
		<category><![CDATA[reading data]]></category>
		<category><![CDATA[serial port monitoring]]></category>
		<category><![CDATA[serial ports]]></category>
		<category><![CDATA[tool]]></category>

		<guid isPermaLink="false">http://www.talkcomputer.net/?p=48</guid>
		<description><![CDATA[<a href="http://blog.bariteau.ca/2009/05/serial-port-monitoring/" title="Serial port monitoring"></a>In engineering, when working with embedded devices, it is often required to be able to read data from the serial ports. In most cases, to simplify the coding process, whatever device that is throwing data is usually just dumping data &#8230;<p class="read-more"><a href="http://blog.bariteau.ca/2009/05/serial-port-monitoring/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://blog.bariteau.ca/2009/05/serial-port-monitoring/" title="Serial port monitoring"></a><p>In engineering, when working with embedded devices, it is often required to be able to read data from the serial ports. In most cases, to simplify the coding process, whatever device that is throwing data is usually just dumping data without any form of hand shake. This leads to your computer not knowing there is data coming from a certain COM port unless you specifically tell it to read from that port.</p>
<p>Reading data can quickly become an issue. You could write your own little tool to read data off a certain port but there is a tool out there that make&#8217;s it much easier. Needing a tool that does exactly that for work, I spent a while on the internet looking for free (as in beer) software without any luck, so I moved to trial based commercial software and found one very good application.</p>
<p>It&#8217;s made by Eltima Software and is called Serial port monitor 4.0 (how original). The application let&#8217;s you do much more than what I needed but the features I used are:<br />
Monitoring specific COM port and specifying it&#8217;s parameter (baud rate, databits, etc.)<br />
Seeing the data results in a table format<br />
Seeing the control data exchange</p>
<p>The tool performed very well in my environment and for the type of work I was doing. For my buying the software would not be an option since I only needed it for a few days but for it&#8217;s price, it might be a good buy if you need to do a lot of data monitoring.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bariteau.ca/2009/05/serial-port-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

