<?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> &#187; mount</title>
	<atom:link href="http://www.oojahtech.com/tag/mount/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oojahtech.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 17:16:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Mount SFTP and FTP in Linux</title>
		<link>http://www.oojahtech.com/2010/01/15/mount-sftp-and-ftp-in-linux/</link>
		<comments>http://www.oojahtech.com/2010/01/15/mount-sftp-and-ftp-in-linux/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 07:11:45 +0000</pubDate>
		<dc:creator>fishbowl</dc:creator>
				<category><![CDATA[General Linux]]></category>
		<category><![CDATA[Tutorial & How-To's]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[SFTP]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.oojahtech.com/2010/01/15/mount-sftp-and-ftp-in-linux/</guid>
		<description><![CDATA[Here is a neat trick if you want to mount secured ftp mounted on your filesystem. SSH FTP, Secure FTP or SFTP, if I understand correctly, is FTP secured with SSH but is a little more complicated then I will go into right now. The bottom line is you can use SFTP like FTP but [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a neat trick if you want to mount secured ftp mounted on your filesystem. SSH FTP, Secure FTP or SFTP, if I understand correctly, is FTP secured with SSH but is a little more complicated then I will go into right now. The bottom line is you can use SFTP like FTP but with the added encryption of SSH. </p>
<p>make sure sshfs, gvfs-fuse, and fuse are installed</p>
<p>via Debian as root:</p>
<blockquote><p>aptitude install sshfs, gvfs-fuse, and fuse are installed</p></blockquote>
<p>now add your desired user to the fuse group as root:</p>
<blockquote><p>gpasswd -a username fuse</p></blockquote>
<p>(if that is your current user log out and back in for change to take effect)</p>
<p>to mount make the desired directory, change the owner with the chown command, and use the sshfs command:</p>
<p>sudo mkdir /mnt/sftp<br />
sudo chown username:fuse /mnt/sftp<br />
sshfs username@example.com:/path/to/mount /mnt/sftp</p>
<p>now you can change directory via comandline or your file manager and make changes. Be sure to unmount properly for those changes to take effect. </p>
<blockquote><p>fusermount -u /mnt/sftp</p></blockquote>
<p>to set this up to be available on boot edit /etc/fstab</p>
<blockquote><p>sshfs#usernames@example.com:/path/to/mount /mnt/sftp fuse rw,noauto,user,sync,noexec 0 0</p></blockquote>
<p><strong>NOTE:</strong> this will ask for a password each time, but you can set up ssh with a keyring to bypass the password. I currently do not have a tutorial on this, but you can do a search for &#8220;ssh passwordless&#8221; to learn how.</p>
<p>if you want it to mount automatically replace noauto with auto<br />
(not advices, unless you are dealing with a computer on your local network)</p>
<p>if you have a regular ftp account you would like to mount thisway install curlftpfs instead of or in addition to sshfs.</p>
<p>to mount:</p>
<blockquote><p>
curlftpfs username:password@ftp.example.com /mnt/ftp</p></blockquote>
<p>for availibilty upon boot your /etc/fstab should look something like this:</p>
<blockquote><p>
curlftpfs#usernames@example.com:/path/to/mount /mnt/ftp fuse rw,noauto,user,sync,noexec 0 0</p></blockquote>
<p>
This is handy if there is an ftp or sftp account you use regularly and you get tired of constantly login in via ssh or ftp.</p>
<p><strong><br />
NOTE:</strong> if you get the error &#8220;mount disagrees with fstab&#8221; try adding <strong><em>allow_other,uid=1000,gid=1000,fsname=sshfs#user@example.com:/path/to/mount</em></strong> to your fstab too look something like this (all one string):</p>
<blockquote><p>sshfs#user@example.com:/path/to/mount /media/sftp fuse rw,noauto,user,sync,noexec,allow_other,uid=1000,gid=1000,fsname=sshfs#user@example.com:/path/to/mount 0 0</p></blockquote>
<p>and uncomment <em>allow_other</em> in <em>/etc/fuse.conf</em></p>
<p>
<strong>ANOTHER NOTE:</strong>A handy gtk based gui for managing these kind of mounts is gigolo which require gvfs gvfs-backends gvs-fuse (in debian)</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.oojahtech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.oojahtech.com/2010/01/15/mount-sftp-and-ftp-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS (Network File Server) in Debian Lenny</title>
		<link>http://www.oojahtech.com/2009/09/25/nfs-network-file-server-in-debian-lenny/</link>
		<comments>http://www.oojahtech.com/2009/09/25/nfs-network-file-server-in-debian-lenny/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 06:16:15 +0000</pubDate>
		<dc:creator>fishbowl</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Tutorial & How-To's]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[stable]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Server apt-get install nfs-kernel-server nfs-common portmap Client apt-get install nfs-common portmap edit /etc/exports to identify the path to the directory you wish to share, and indicate the IP address(es) (use * as a wildcard) you wish to have access to you files. /home/user/myfiles 192.168.0.*(rw,root_squash) sudo exportfs -a Access from Windows XP Download the MS Unix [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Server</strong></p>
<blockquote><p>apt-get install nfs-kernel-server nfs-common portmap</p></blockquote>
<p><strong>Client</strong></p>
<blockquote><p>apt-get install nfs-common portmap</p></blockquote>
<p>
edit /etc/exports to identify the path to the directory you wish to share, and indicate the IP address(es) (use * as a wildcard) you wish to have access to you files.</p>
<blockquote><p>/home/user/myfiles 192.168.0.*(rw,root_squash)<br />
<br />sudo exportfs -a
</p></blockquote>
<p><strong>Access from Windows XP</strong></p>
<p>
Download the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=896C9688-601B-44F1-81A4-02878FF11778&amp;displaylang=en">MS Unix layer</a> and run self extractor and execute SfuSetup. click change the default behavior to case sensitive and enable set uid behavior select local username mapping server and password group files. copy /etc/passwd and /etc/group to your windows computer and specify path and reboot computer</p>
<p>
run services for Unix administrations and in the NFS client make all user groups and others read and writable. open Windows Explorer under network places you should see a NFS tree, and within it you should see your servers IP address. if everything worked you should have access to your NFS directories via windows.
</p>
<p><strong>Access in Linux</strong></p>
<p>To mount as root (create desired mount point first and replace IP with your servers IP):</p>
<p>mount 200.100.10.1:/home/nfs /mnt/nfs
</p>
<p>to mount on boot edit/etc/fstab the extra options control read and write access by blocks)</p>
<blockquote><p>200.100.10.1:/home/nfs    /pub   nfs    rsize=8192,wsize=8192,timeo=14,intr</p></blockquote>
<p><em><br />
it should be noted that vfat and ntfs filesytems have issues with the nfs protocol and can result in sporadic performance and data corruption.</em></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.oojahtech.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.oojahtech.com/2009/09/25/nfs-network-file-server-in-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
