Choose style:

Author Topic: Sharing folders over a network - Peppermint 5  (Read 9178 times)

0 Members and 1 Guest are viewing this topic.

Offline get2business

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Sharing folders over a network - Peppermint 5
« Reply #15 on: February 19, 2017, 03:25:09 pm »
SAMBA should work just fine as long as the disk is mounted .. or do you mean that you want to know how to automount the second disk at bootup ?

Is it an internal or external disk ?

thanks for reply.

i use external hdd and another internal disk
i have already found a tutorial  to make it work

but as you say, upon reboot i cant access disks, unless i start file manager and browse to said disks

need help for that

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25933
  • Karma: 2835
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sharing folders over a network - Peppermint 5
« Reply #16 on: February 19, 2017, 07:58:39 pm »
Are the external disks always going to be attached, or do they get plugged in and removed (or turned on and off ?

Can you also remind me which file manager Peppermint 5 used ?
« Last Edit: February 19, 2017, 08:00:10 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline get2business

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Sharing folders over a network - Peppermint 5
« Reply #17 on: February 20, 2017, 02:48:35 am »


yes, disks are permanent,

i use pepermint 7 (based on ubuntu 16.04)

command ~ $ lsb_release -a

gives:
"No LSB modules are available.
Distributor ID:   Peppermint
Description:   Peppermint 7 Seven
Release:   7
Codename:   xenial"

i use nemo file manager

i will probably need to create a bash scrypt, to automount said drives at startup?





Offline get2business

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Sharing folders over a network - Peppermint 5
« Reply #18 on: February 20, 2017, 08:42:36 am »
only  now i see this is a peppermint 5 thread
sorry

but i have found yet another way, which negates my previous findings:

1. create an empty folder anywhere in your file system, best place is in /home/user. lets say folders name is "x"

so this would be path to my folder: /home/user/x

using sudo blkid command line in terminal determine if your external or internal disks are ntfs or fat32 or ext4

if  your disk  is ntfs
then edit your fstab with this line
/dev/sdxx /home/user/x ntfs defaults,umask=007,gid=46 0 0

if fat32:
/dev/sdxx /home/user/x vfat umask=0000,uid=1000,gid=1000,auto,rw,users 0 0

if ext3:
/dev/sdxx /home/user/x ext3 defaults,noatime 0 2

for antoher drive create another empty folder, say "y"
again, edit fstab accordingly.

open samba gui
find your x folder and create network share for it
with these caracteristics: writable, visible and accessable to everyone
save

go to smb.conf and find your x network share you just created, which is at the bottom of the file content:
Quote
[ x ]
   path = /home/user/x
   writeable = yes
;   browseable = yes
   guest ok = yes

and add this line:
 force user = [your username], so it will look like this:

Quote
[ x ]
   path = /home/user/x
   writeable = yes
;   browseable = yes
   guest ok = yes
     force user = [your username]

save

restart samba

your external or internal drives will be accessable on boot


although it works perfectly, i dont like this solution because it is quite complicated

sources:
https://forums.linuxmint.com/viewtopic.php?f=42&t=22093
http://travelinlibrarian.info/2013/05/how-to-share-an-external-usb-hard-drive-from-ubuntu-to-a-windows-network/
https://help.ubuntu.com/community/MountingWindowsPartitions
« Last Edit: February 20, 2017, 08:44:22 am by get2business »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25933
  • Karma: 2835
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sharing folders over a network - Peppermint 5
« Reply #19 on: February 20, 2017, 11:26:26 am »
I can give you a GUI configurable USB/CD/DVD automounter for Peppermint 7 (64bit) if you want ?

WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline get2business

  • nOOb
  • *
  • Posts: 6
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Sharing folders over a network - Peppermint 5
« Reply #20 on: February 20, 2017, 11:36:50 am »
I can give you a GUI configurable USB/CD/DVD automounter for Peppermint 7 (64bit) if you want ?

yes, would be great.
would like to try it




Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25933
  • Karma: 2835
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Sharing folders over a network - Peppermint 5
« Reply #21 on: February 20, 2017, 12:57:48 pm »
Still a bit of a hacked together solution ATM (thunar volman made to work with nemo), but it works.....

Peppermint Volume Manager (Peppermint 7 64bit ONLY):
https://dl.dropboxusercontent.com/u/31525164/peppermint-volman_0.0.1_amd64.deb

Just download, double-click to install, then log off/on (or reboot).

Inserting a USB stick should now automount it and open it in nemo

CD's and DVD's should autostart VLC at /dev/sr0

If you want to change any of the setting, go to
menu > Preferences > Peppermint Volume Manager Settings



Currently this package will stop you installing thunar (so also the Xfce desktop) because it symlinks thunar --> nemo .. but if you don't plan on ever installing thunar (which is rubbish anyway compared to nemo) it'll work just fine.
(at some point I'll get around to editing the source so it compiles/works with different filenames)
« Last Edit: February 20, 2017, 01:05:18 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec