• No results found

NAS 109 Using NAS with Linux

N/A
N/A
Protected

Academic year: 2021

Share "NAS 109 Using NAS with Linux"

Copied!
13
0
0

Loading.... (view fulltext now)

Full text

(1)

NAS 109

Using NAS with Linux

Access the files on your

NAS using Linux

A S U S T O R C O L L E G E

(2)

A S U S T O R C O L L E G E / 2

NAS 109: Using NAS with Linux

COURSE OBJECTIVES

Upon completion of this course you should be able to:

1. Use Linux to access files on your NAS via CIFS/SAMBA, FTP, NFS, WebDAV and SSH

PREQUISITES

Course Prerequisites:

None

Students are expected to have a working knowledge of:

Linux

OUTLINE

1.

Configuring your NAS

1.1 Enabling CIFS/SAMBA service 1.2 Enabling FTP server

1.3 Enabling NFS service 1.4 Enabling WebDAV service 1.5 Enabling SSH service

2.

Configuring Linux

2.1 Connecting via SAMBA 2.2 Connecting via FTP 2.3 Connecting via NFS 2.4 Connecting via WebDAV

2.5 Connecting via SSH

(3)

A S U S T O R C O L L E G E / 3

NAS 109: Using NAS with Linux

1. Configuring your NAS

1.1 Enabling CIFS/SAMBA service

STEP 1

 Log in to ADM using your Web browser.

 Select [Services] [Windows].

 Select the [Enable Windows file service (CIFS/SAMBA)] checkbox and click [Apply].

1.2 Enabling FTP server

STEP 1

 Select [Services] [FTP Server].

 Select the [Enable FTP server] checkbox and click [Apply].

(4)

A S U S T O R C O L L E G E / 4

NAS 109: Using NAS with Linux

1.3 Enabling NFS service

STEP 1

 Select [Services] [NFS].

 Select the [Enable NFS service] checkbox and click [Apply].

 Click on the provided link to configure NFS privileges.

STEP 2

The Shared Folders section should now be visible. Select a folder (in our example, “Public”) and then click on the [Access Rights] button. Then click on the [NFS Privileges] tab.

(5)

A S U S T O R C O L L E G E / 5

NAS 109: Using NAS with Linux

STEP 3

Click the [Add] button in order to add IP addresses that you wish to allow access via NFS. Once you are finished, click [OK].

1.4 Enabling WebDAV service

STEP 1

 Select [Services] [WebDAV].

 Select the [Enable WebDAV service] or the [Enable secured WebDAV service (SSL)] checkbox and the click [Apply].

(6)

A S U S T O R C O L L E G E / 6

NAS 109: Using NAS with Linux

1.5 Enabling SSH service

STEP 1

 Select [Services] [Terminal].

 Select the [Enable SSH service] and [Enable SFTP service] checkboxes and click [Apply].

(7)

A S U S T O R C O L L E G E / 7

NAS 109: Using NAS with Linux

2. Configuring Linux

(We will be using Ubuntu 12.04 Desktop as an example)

2.1 Connecting via SAMBA

STEP 1

Open the Home Folder and then select [Go]  [Location…].

STEP 2

In the [Go To:] field, enter your NAS’s SAMBA location (for example: smb://192.168.1.103) and then press [Enter] on your keyboard.

(8)

A S U S T O R C O L L E G E / 8

NAS 109: Using NAS with Linux

STEP 3

This is what the screen will look like once you have successfully connected. We will now click on [Public] as an example.

STEP 4

After clicking on [Public] you should be able to see the contents of the folder and that it has been mounted in the left hand panel.

(9)

A S U S T O R C O L L E G E / 9

NAS 109: Using NAS with Linux

2.2 Connecting via FTP

STEP 1

Open the Home Folder and then select [Go]  [Location…].

STEP 2

In the [Go To:] field, enter your NAS’s FTP location (for example: ftp://192.168.1.103) and then press [Enter] on your keyboard.

(10)

A S U S T O R C O L L E G E / 10

NAS 109: Using NAS with Linux

STEP 3

Enter your FTP username and password and then click [Connect].

STEP 4

Another way to connect is by selecting [File]  [Connect to Server…].

STEP 5

Fill out the required fields and then click on [Connect].

(11)

A S U S T O R C O L L E G E / 11

NAS 109: Using NAS with Linux

STEP 6

This is what the screen should look like once you have connected successfully. You should be able to see [FTP as admin on 192.168.1.103 (your NAS’s location)] in the upper panel and under [Network] in the left hand panel.

2.3 Connecting via NFS

STEP 1

In the Linux command prompt, enter the following command:

mount -t nfs <ASUSTOR NAS IP>:/<Network Share Name> <Directory to Mount>

For example, if your NAS’s IP address is 192.168.1.104, you must mount the “Public” network drive to Linux’s /mnt/pub directory, then enter the following command:

mount -t nfs 192.168.1.104:/volume1/Public /mnt/pub

Note: You must be logged in using the root account in order to mount a network drive.

(12)

A S U S T O R C O L L E G E / 12

NAS 109: Using NAS with Linux

2.4 Connecting via WebDAV

STEP 1

Select [File]  [Connect to Server…].

STEP 2

The Connect to Server dialog box will now appear. Fill out the required fields and then click on [Connect]. For the [Type] field make sure you select [WebDAV (HTTP)].

STEP 3

This is what the screen should look like once you have connected successfully. You should see that the [Web] folder has been mounted at positions A and B.

Note: If you wish to unmount the folder you can click on the icon.

(13)

A S U S T O R C O L L E G E / 13

NAS 109: Using NAS with Linux

2.5 Connecting via SSH

STEP 1

Select [File]  [Connect to Server…].

STEP 2

The Connect to Server dialog box will now appear. Fill out the required fields and then click on [Connect]. For the [Type] field make sure you select [SSH].

STEP 3

This is what the screen should look like once you have connected successfully. You will see that the folder has been mounted at positions C and D.

References

Related documents

If you select FTP, click the Configure Proxy Settings link, select the Enable FTP Proxy check box, and type the relevant information in the fields for the address of the proxy

You can set the system language after the device is started. Click Apply to save the language settings.. Check the checkbox to enable Setup Wizard when device starts. Click Next

On the Security tab, click on enable Encryption by clicking on the checkbox “Encrypt data between Microsoft Office Outlook and Microsoft Exchange Server”.. Click on OK

Select the [Enable WebDAV service] checkbox and click [Apply]... Connecting

Alternatively, you may deselect the Apply Update to Database checkbox, select the Create DDL File checkbox, and follow the instructions in the Database Schema Upgrade section of

Select the Screen 1 icon on the Display Control Panel, and Check the “Extend my Windows desktop onto this monitor” checkbox and click Apply.. The extended screen is now displayed

In this page, click the FAST Search Server Name (Admin) checkbox; a pop-up window appears, prompting you to select the FAST Search Connector Service Application along with it. Click

Select the volume group that is the current archive volume group, click the pencil icon ( ), deselect the checkbox, and then click Save3. Add the new volume group, and select