Lubuntu

Lubuntu For BananaPi v2.0 - map windows share in Lubunto?

10 8629
Post Last Edited by Hinglish at 2014-6-4 10:40

Hi,
How do I map a windows share and netgear NAS in the lubunto os ?
Windows : \\PC\Media  - shared
Nas path in Windows Network - \\NAS\media\viewthis

A step by step guide would be appreciated.

Thanks,
PC

Hi I am following the instructions in the link you sent. I cannot do this command:
#sudo gedit /etc/exports      as the export file does not exist.

Should I create one or should I be using a different file to add
/home/ waveshare *(subtree_check,rw,no_root_squash,async)        ?

I created a exports file in /etc but had to give 754 permissions to write file.
When I run this command # sudo /etc/init.d/portmap restart
I get an error. The error is 'unable to stat /etc/sudoers' permission denied. no valid soudoers sources found.

Did you try change to root using "su"? And run the command again?

I haven't used "su". I'm new to linux. I login as linaro/linaro, how do I login as "su"?
I don't know the password "su", does it have a default one?

I haven't used "su". I'm new to linux. I login as linaro/linaro, how do I login as "su"?
I don't kno ...
Hinglish Posted at 2014-6-6 07:27



open console

sudo passwd root
give your pass (linaro) and enter the new root password twice

su

you are root

Post Last Edited by Hinglish at 2014-6-7 04:56

I opened up LXterminal
cd /
typed - sudo passwd root   
Error:
linaro@Bananapi:~$ dir
Desktop    Downloads  Pictures        Scratch    Videos
Documents  Music      Public        Templates  squeak
linaro@Bananapi:~$ cd /
linaro@Bananapi:/$ dir
bin   dev  home  lost+found  mnt  proc        run   selinux  sys  usr
boot  etc  lib         media             opt  root        sbin  srv      tmp  var
linaro@Bananapi:/$ sudo passwd root
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
linaro@Bananapi:/$

Also tried :
linaro@Bananapi:/$ sudo linaro root
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

If I just type in sudo, I get:
linaro@Bananapi:/$ sudo
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
linaro@Bananapi:/$


Any ideas?
Cheers,

...The problem you encounter is so strange. I guess some configuration file in your OS has damaged.

Post Last Edited by Hinglish at 2014-6-8 08:28

I have reinstalled lubuntu onto another SD and have got a little further.
I modified the exports to include :
  /home/waveshare *(subtree_check,rw,no_root_squash,async)
  Ran # sudo /etc/init.d/portmap restart
  # sudo /etc/init.d/nfs-kernel-server restart
  $ apt-get install nfs-common
  $ mkdir /mnt/nfs
All the above ran ok.

Next I tried to run this command, as one line and separate lines as in instructions, but nothing happened. I also tried the mount with no luck:
    $ showmount -e 192.168.1.2
    Export list for 192.168.1.2
    /home/waveshare *

If command is on one line I get an error :
root@Bananapi:/# showmount -e 192.168.1.2 Export list for 192.168.1.2 /home/waveshare *
showmount: only one hostname is allowed
root@Bananapi:/#

If I do just this root@Bananapi:/# showmount -e 192.168.1.2      cursor hangs

Mount it manually:
    $ mount -t nfs4 192.168.1.2:/home/waveshare  /mnt/nfs
the cursor just hangs:
    root@Bananapi:/# mount -t nfs4 192.168.1.2:/home/waveshare  /mnt/nfs

I can ping this 192.168.1.2 with no issues, I do get a response back.

I want to permanently map to PC drive and NAS.
What am I doing wrong to mount?
Thanks

You have to log in before you can reply Login | Sign Up

Points Rules