<?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>Talk Computer &#187; geometry</title>
	<atom:link href="http://www.talkcomputer.net/tag/geometry/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.talkcomputer.net</link>
	<description>Tutorials, reviews, information, eveything for your technology needs!</description>
	<lastBuildDate>Thu, 02 Jul 2009 21:38:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Home Fedora Server Setup</title>
		<link>http://www.talkcomputer.net/2009/07/home-fedora-server-setup/</link>
		<comments>http://www.talkcomputer.net/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[Slider]]></category>
		<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!]]></description>
			<content:encoded><![CDATA[<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://www.talkcomputer.net/2009/07/home-fedora-server-setup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
