<?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>Michele Manzotti &#187; filesystem</title>
	<atom:link href="http://www.manzotti.eu/tag/filesystem/feed" rel="self" type="application/rss+xml" />
	<link>http://www.manzotti.eu</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 09:56:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Montare samba sul file system</title>
		<link>http://www.manzotti.eu/montare-samba-sul-file-system</link>
		<comments>http://www.manzotti.eu/montare-samba-sul-file-system#comments</comments>
		<pubDate>Wed, 18 Mar 2009 21:44:46 +0000</pubDate>
		<dc:creator>manzotti.eu</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[montare]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://manzotti.eu/?p=350</guid>
		<description><![CDATA[Potrebbe essere necessario nelle varie configurazioni di dover montare sul proprio hd delle macchine remote con samba. Ad esempio personalmente ho avuto la necessità di farlo per poter utilizzare delle macchine remote con VMware. Quindi per caricare la macchina è necessario dargli il file vmx che appunto risiede nel file system remoto. Per far questo [...]]]></description>
			<content:encoded><![CDATA[<p>Potrebbe essere necessario nelle varie configurazioni di dover montare sul proprio hd delle macchine remote con <a href="http://it.wikipedia.org/wiki/Samba_(software)">samba</a>.<br />
Ad esempio personalmente ho avuto la necessità di farlo per poter utilizzare delle macchine remote con VMware. Quindi per caricare la macchina è necessario dargli il file vmx che appunto risiede nel file system remoto.</p>
<p>Per far questo ho dovuto quindi montarlo tramite il comando:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># mkdir /mnt/samba</span>
<span style="color: #666666; font-style: italic;"># mount -t smbfs -o username=xxxx,password=yyyy //z.z.z.z/directory_condivisa /mnt/samba/</span></pre></div></div>

<p>Per renderlo eseguibile ad ogni avvio della macchina, evitando così di scriverlo ogni volta, basta semplicemente aggiungere in /etc/fstab la seguente riga:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #339933;">//</span>z<span style="color: #339933;">.</span>z<span style="color: #339933;">.</span>z<span style="color: #339933;">.</span>z<span style="color: #339933;">/</span>mldonkey <span style="color: #339933;">/</span>mnt<span style="color: #339933;">/</span>samba smbfs username<span style="color: #339933;">=</span>xxxxx<span style="color: #339933;">,</span>password<span style="color: #339933;">=</span>yyyy <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span></pre></div></div>

<p>Inoltre non dimentichiamoci di aprire la 445 del nostro firewall.<br />
Se abbiamo pf basta semplicemente aggiungere la seguente regola:</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">pass in quick on <span style="color: #0000ff;">$int</span> inet proto tcp from <span style="color: #0000ff;">$my_net</span> to any port <span style="color: #0000ff;">$smb</span> flags S<span style="color: #339933;">/</span>SA keep state</pre></div></div>

<p>Dove $int è l&#8217;interfaccia di rete, fxp0 nel mio caso, $my_net è la mai rete dalla quale voglio che sia possibile passare mentre $smb è appunto la porta.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.manzotti.eu/montare-samba-sul-file-system/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

