Setting up NFS

(wikify slightly)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
{{Midgard article}}
 
-
 
-
 
== In Diablo==
== In Diablo==
-
This chapter shows an example of how to set up your N800/N810 as an NFS client.
+
This chapter shows an example of how to set up your [[Nokia N800|N800]]/[[Nokia N810|N810]] as an NFS client.
=== Pre-requisites ===
=== Pre-requisites ===
-
*You must be able to access the device as root: [[Root_access|See here]].
+
You must be able to [[root access|access the device as root]].
=== Installing ===
=== Installing ===
Line 18: Line 15:
*portmap contains the protocol port number conversion server that is needed for NFS.  
*portmap contains the protocol port number conversion server that is needed for NFS.  
-
# Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
+
<ol>
-
## Become root via your preferred method.
+
<li>\
-
# Add the required repository to sources.list.
+
Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
-
## <code>echo "''deb <nowiki>http://repository.maemo.org/</nowiki> diablo/tools free" >> /etc/apt/sources.list''</code> (the '''>>''' is ''important''!)
+
</li>
-
## <code>''apt-get update''</code>
+
<li>
-
# Run <code>''apt-get install kernel-diablo-modules-extra portmap nfs-common''</code>
+
Become root via your preferred method.
-
# For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written.
+
</li>
-
## <code>''cd /lib/modules/2.6.21-omap1/extra/''</code>
+
<li>
-
## <code>''insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko''</code>
+
Add the required repository to <code>/etc/apt/sources.list</code>
-
# Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
+
<pre>
-
## <code>''mkdir -p /media/<any name>''</code>
+
echo "deb http://repository.maemo.org/ diablo/tools free" >> /etc/apt/sources.list
-
## <code>''mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>''</code>
+
apt-get update
 +
</pre>
 +
(the "<code>>></code>" is important!)
 +
</li>
 +
<li>
 +
Run:
 +
<pre>
 +
apt-get install kernel-diablo-modules-extra portmap nfs-common
 +
</pre>
 +
</li>
 +
<li>
 +
For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written:
 +
<pre>
 +
cd /lib/modules/2.6.21-omap1/extra/
 +
insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko
 +
</pre>
 +
</li>
 +
<li>
 +
Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
 +
<pre>
 +
mkdir -p /media/<any name>'
 +
mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>
 +
</pre>
 +
</li>
 +
</ol>
Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.
Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.
Line 38: Line 59:
This chapter shows an example of how to set up your N800/N810 as an NFS client.
This chapter shows an example of how to set up your N800/N810 as an NFS client.
-
These instructions are valid for IT OS2008, which was released in November 2007. It is also known as chinook or 2.2007.51-3.
+
These instructions are valid for [[:Category:OS2008|IT OS2008]], which was released in November 2007. It is also known as ''chinook'' or 2.2007.51-3.
=== Pre-requisites ===
=== Pre-requisites ===
-
*You must be able to access the device as root: [[Root_access|See here]].
+
You must be able to [[root access|access the device as root]].
=== Installing ===
=== Installing ===
Line 53: Line 74:
*portmap contains the protocol port number conversion server that is needed for NFS.  
*portmap contains the protocol port number conversion server that is needed for NFS.  
-
# Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
+
<ol>
-
## Become root via your preferred method.
+
<li>
-
# Add the required repository to the apt sources.
+
Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
-
## <code>''echo "deb <nowiki>http://repository.maemo.org/</nowiki> chinook free" > /etc/apt/sources.list.d/sdk-repo.list''</code>
+
</li>
-
## <code>''apt-get update''</code>
+
<li>
-
# Run <code>''apt-get install rx-34-kernel-modules-extra portmap nfs-common''</code>
+
Become root via your preferred method.
-
# For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written.
+
</li>
-
## <code>''cd /lib/modules/2.6.21-omap1/extra/''</code>
+
<li>
-
## <code>''insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko''</code>
+
Add the required repository to the apt sources (<code>/etc/apt/sources.list</code>).
-
# Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
+
<pre>
-
## <code>''mkdir -p /media/<any name>''</code>
+
echo "deb http://repository.maemo.org/ chinook free" > /etc/apt/sources.list.d/sdk-repo.list
-
## <code>''mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>''</code>
+
apt-get update
 +
</pre>
 +
</li>
 +
<li>
 +
Run:
 +
<pre>
 +
apt-get install rx-34-kernel-modules-extra portmap nfs-common
 +
</pre>
 +
</li>
 +
<li>
 +
For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written.
 +
<pre>
 +
cd /lib/modules/2.6.21-omap1/extra/
 +
insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko
 +
</pre>
 +
</li>
 +
<li>
 +
Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
 +
<pre>
 +
mkdir -p /media/<any name>
 +
mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>
 +
</pre>
 +
</li>
 +
</ol>
Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.
Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.
Line 70: Line 114:
That should do it! For the mount to work, your NFS host needs to be configured correctly and that's out of the scope of this wiki page. Just be wary of the user id mappings etc. if you want to use the mountpoint as a non-root user.
That should do it! For the mount to work, your NFS host needs to be configured correctly and that's out of the scope of this wiki page. Just be wary of the user id mappings etc. if you want to use the mountpoint as a non-root user.
-
[[Category:Users]]
 
-
[[Category:Midgard wiki]]
 
[[Category:Connectivity]]
[[Category:Connectivity]]
-
 
+
[[Category:N8x0]]
 +
[[Category:OS2008]]
[[Category:Power users]]
[[Category:Power users]]
 +
[[Category:Diablo]]

Latest revision as of 11:34, 10 February 2011

Contents

[edit] In Diablo

This chapter shows an example of how to set up your N800/N810 as an NFS client.

[edit] Pre-requisites

You must be able to access the device as root.

[edit] Installing

During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.

The following packages will be needed; kernel-diablo-modules-extra, nfs-common and portmap.

  • kernel-diablo-modules-extra contains the necessary kernel modules
  • nfs-common contains other tools. It contains files that are both common to NFS servers & clients.
  • portmap contains the protocol port number conversion server that is needed for NFS.
  1. \ Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
  2. Become root via your preferred method.
  3. Add the required repository to /etc/apt/sources.list
    echo "deb http://repository.maemo.org/ diablo/tools free" >> /etc/apt/sources.list
    apt-get update
    

    (the ">>" is important!)

  4. Run:
    apt-get install kernel-diablo-modules-extra portmap nfs-common
    
  5. For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written:
    cd /lib/modules/2.6.21-omap1/extra/
    insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko
    
  6. Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
    mkdir -p /media/<any name>'
    mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>
    

Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.

That should do it! For the mount to work, your NFS host needs to be configured correctly and that's out of the scope of this wiki page. Just be wary of the user id mappings etc. if you want to use the mountpoint as a non-root user.

[edit] In OS2008

This chapter shows an example of how to set up your N800/N810 as an NFS client.

These instructions are valid for IT OS2008, which was released in November 2007. It is also known as chinook or 2.2007.51-3.

[edit] Pre-requisites

You must be able to access the device as root.

[edit] Installing

During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.

The following packages will be needed; rx-34-kernel-modules-extra, nfs-common and portmap.

  • rx-34-kernel-modules-extra contains the necessary kernel modules
  • nfs-common contains other tools. It contains files that are both common to NFS servers & clients.
  • portmap contains the protocol port number conversion server that is needed for NFS.
  1. Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
  2. Become root via your preferred method.
  3. Add the required repository to the apt sources (/etc/apt/sources.list).
    echo "deb http://repository.maemo.org/ chinook free" > /etc/apt/sources.list.d/sdk-repo.list
    apt-get update
    
  4. Run:
    apt-get install rx-34-kernel-modules-extra portmap nfs-common
    
  5. For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written.
    cd /lib/modules/2.6.21-omap1/extra/
    insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko
    
  6. Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
    mkdir -p /media/<any name>
    mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>
    

Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.

That should do it! For the mount to work, your NFS host needs to be configured correctly and that's out of the scope of this wiki page. Just be wary of the user id mappings etc. if you want to use the mountpoint as a non-root user.