Author Topic: Installing and configuring NFS by command line  (Read 574 times)

Offline jibe74

  • Jr. Member
  • **
  • Posts: 37
Installing and configuring NFS by command line
« on: December 28, 2012, 03:42:58 AM »
Hi,

I need to install a NFS share (server) on PCLinuxOS, but I have no direct access to the computer, I can do it only through SSH.

I found this nice tuto about NFS, but I need the method using only the command line !

Could somebody tell me how to do, or at least what are the needed packages that I'll install with apt-get ?

Thanks.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10666
  • MLUs Forever!
Re: Installing and configuring NFS by command line
« Reply #1 on: December 28, 2012, 04:30:11 AM »
I never tried ....  so this might be a very stupid suggestion .....  can you run PCC from a command line and do it through that?
MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online 7272andy

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1627
  • UK MLU
Re: Installing and configuring NFS by command line
« Reply #2 on: December 28, 2012, 04:40:41 AM »
It's probably already installed, on the cli enter drakxservices

use the tab and arrow keys to navigate down the list to nfs-server and use the space bar to select it

select OK and then enter reboot on the cli. wait for the system to reboot and the server should be active.

I've never used it so I'm not sure what help I can be beyond this point.

Regards


Bare Metal 1         Bare Metal 2
Intel Celeron 420M   Intel i5 540M
2GB Ram              4GB Ram
Intel 943GM          Radeon HD 5650 PCI Express
RT2573               RT2790
32bit KDE            32&64bit KDE

Offline jibe74

  • Jr. Member
  • **
  • Posts: 37
Re: Installing and configuring NFS by command line
« Reply #3 on: December 28, 2012, 07:30:17 AM »
Thanks, 7272andy ! This is the right way to do !

I added a short tuto to the one existing, as it is well known by google.
« Last Edit: December 28, 2012, 09:40:29 AM by jibe74 »

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10666
  • MLUs Forever!
Re: Installing and configuring NFS by command line
« Reply #4 on: December 28, 2012, 09:28:44 AM »
Drakservices will enable at boot the services if they are already installed.

Use  draknfs  to set up the shares ....  and it *should* check and install any missing packages.

As I said above, I have not done it ....  but it is how it should work IIRC.

BTW .....  pcc   gives access to ALL the usual set up functions available through PCLinuxOS COntrol Centre.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline jibe74

  • Jr. Member
  • **
  • Posts: 37
Re: Installing and configuring NFS by command line
« Reply #5 on: December 28, 2012, 09:54:51 AM »
BTW .....  pcc   gives access to ALL the usual set up functions available through PCLinuxOS COntrol Centre.
Yes, and it's very nice and usefull... when you can have a GUI ! But my problem is that I cannot have in this case...

Use  draknfs  to set up the shares ....  and it *should* check and install any missing packages.
Surely usefull also, but can it be used with only the command line ?

It's not difficult to configure the shares with a simple text editor, and sometimes it's the only way...

Thanks anyway for your suggestions !

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10666
  • MLUs Forever!
Re: Installing and configuring NFS by command line
« Reply #6 on: December 28, 2012, 10:17:38 AM »
BTW .....  pcc   gives access to ALL the usual set up functions available through PCLinuxOS COntrol Centre.
Yes, and it's very nice and usefull... when you can have a GUI ! But my problem is that I cannot have in this case...

Use  draknfs  to set up the shares ....  and it *should* check and install any missing packages.
Surely usefull also, but can it be used with only the command line ?

It's not difficult to configure the shares with a simple text editor, and sometimes it's the only way...

Thanks anyway for your suggestions !


That is up to you to check  ;)

pcc definitely gives an ncurses(?) interface .....



MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline jibe74

  • Jr. Member
  • **
  • Posts: 37
Re: Installing and configuring NFS by command line
« Reply #7 on: December 28, 2012, 02:49:23 PM »
Sorry if I'm wrong saying that you need a GUI to use pcc or draknfs, but as you said that you did not try, I prefered to do a secure way that I understand. This computer is 90km far from me, and I should not like to have to take my car to go quickly repair it !

As I have no PCLinuxOS box here, I'll not try (yes, I know : I could install one on some VM...). But if it's actually possible to configure nfs with those tools using a simple SSH connexion, maybe you could complete the tuto that I did ;)

Anyway, I think that it is also one strength of Linux to be configurable with a simple text editor, and for those who are not afraid by the command line, it seems more understandable and secure. For peeling potatoes, you can use a sophisticated machine : you'll be fast and efficient ! But for only one small potatoe, I prefer to use a knife. Isn't it my right ?  ;) ;D

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5335
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Installing and configuring NFS by command line
« Reply #8 on: December 28, 2012, 05:29:35 PM »
Thanks, 7272andy ! This is the right way to do !

I added a short tuto to the one existing, as it is well known by google.



How about adding your information to the existing HowTo in the knowledge base. here   http://www.pclinuxoshelp.com/index.php/Network_File_System_%28NSF%29




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!