Jump to content

Ubuntu Server NAS Help

Flyguygamer
Go to solution Solved by Mojo-Jojo,

I am not sure what is to be done in that. I know that 

 sudo nano /etc/network/interfaces

is a terminal command but have no idea what to do next.

Aaah yes ok. Like @ionbasa said, nano is a text editor. You're going to edit the file "/etc/network/interfaces" and add these contents:

iface eth0 inet staticaddress 192.168.1.100network 192.168.1.0netmask 255.255.255.0broadcast 192.168.1.255gateway 192.168.1.1dns-nameservers 192.168.1.1 8.8.8.8
I am trying to create a nas with ubuntu server. I am following a guide but not quite sure what to do.

 

Set Static IP Address

sudo nano /etc/network/interfaces

iface eth0 inet static

address 192.168.1.100

network 192.168.1.0

netmask 255.255.255.0

broadcast 192.168.1.255

gateway 192.168.1.1

dns-nameservers 192.168.1.1 8.8.8.8

 

Adjust the IP addresses for your network.

8.8.8.8 is Google DNS Server, I find this a lot better than my ISP’s DNS Server.

 

Add NAS IP Address to your Local DNS Lookup

This is on any Linux computer that you would like to access the NAS from.

sudo echo "192.168.1.100 nas.local" >> /etc/hosts

 

The NAS can be accessed via SSH with the following terminal command:

ssh user@nas.local

 

Install MDADM RAID Controller (Optional if using RAID)

sudo apt-get --no-install-recommends install mdadm

Link to comment
Share on other sites

Link to post
Share on other sites

Sorry to be rude but this is a bit confusing - what exactly is your question?

I understand that you don't know what to do, but where are you stuck exactly?

Link to comment
Share on other sites

Link to post
Share on other sites

Sorry to be rude but this is a bit confusing - what exactly is your question?

I understand that you don't know what to do, but where are you stuck exactly?

I am not sure what is to be done in that. I know that 

 sudo nano /etc/network/interfaces

is a terminal command but have no idea what to do next.

Link to comment
Share on other sites

Link to post
Share on other sites

I am not sure what is to be done in that. I know that 

 sudo nano /etc/network/interfaces

is a terminal command but have no idea what to do next.

nano is text editor. Just edit your interfaces file, just as if you were using any text processor, like Notepad for example. After you are done editing, press the keystroke ctrl+o to write the changes and to quit nano use ctrl+x.

 

See: http://www.howtogeek.com/howto/42980/the-beginners-guide-to-nano-the-linux-command-line-text-editor/

▶ Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning. - Einstein◀

Please remember to mark a thread as solved if your issue has been fixed, it helps other who may stumble across the thread at a later point in time.

Link to comment
Share on other sites

Link to post
Share on other sites

I am not sure what is to be done in that. I know that 

 sudo nano /etc/network/interfaces

is a terminal command but have no idea what to do next.

Aaah yes ok. Like @ionbasa said, nano is a text editor. You're going to edit the file "/etc/network/interfaces" and add these contents:

iface eth0 inet staticaddress 192.168.1.100network 192.168.1.0netmask 255.255.255.0broadcast 192.168.1.255gateway 192.168.1.1dns-nameservers 192.168.1.1 8.8.8.8
Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×