Icon for network drive?
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    Is there a way to create a drive icon for a network drive accessed via Samba?
  • »03.03.04 - 19:58
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    Hmm, depends on what you mean...
    If you mount drive with smbs as drive, you could just copy suitable disk.info there...

    Or alternatively, if you would like to have default icon for every opened network drive...

    For example mass storage devices are mounted usually as "UMSD:" (iirc) there should be similar "device name" for network drives I guess...

    Just copy suitable icon to "ENVARC:sys/def_UMSDdisk.info" (that would create default icon for mass storage devices, just replace UMSD)
  • »03.03.04 - 20:04
    Profile Visit Website
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    Just copy disk.info to network drive and off you go.
    www.mikseri.net/hooligan <- Free music
  • »03.03.04 - 20:43
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    hooligan: I think I tried that and it didnt work.. I'll try again tonight.
  • »03.03.04 - 20:52
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    marcik
    Posts: 268 from 2003/4/12
    From: Kielce/Krakow,...
    It works for 100% - I'm using smbfs. I dropped disk.info to this drive, and after reset I got nice icon :)
  • »03.03.04 - 21:31
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    catohagen
    Posts: 297 from 2003/5/20
    I didnt like the idea of copying info files around to the network, so i made an arexx script
    that scans all available samba shares and
    creates def_ icons for them, so mounted disks
    get icon without copying disk.info around.

    Works for me..
  • »03.03.04 - 22:24
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Toto
    Posts: 268 from 2003/4/20
    I put a disk.info on the shared drives of my w*****s box and it works fine with smbfs.
  • »03.03.04 - 22:25
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    whats weird.. I have my command to start samba in s:user-startup, yet when I reboot, SMBFS: is not mounted, as if it never ran. I will copy disk.info and check it out. thanks for all the replies fellow Morphians. LOL.
  • »03.03.04 - 22:31
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    ok, I tried it.. I created... def_SMBFSdisk.info and just for the heck
    of it, def_SMBFS.info ...after I mount the network drive I see no icon
    for the samba drive on the Ambient desktop.. it does have disk.info in
    it also.

    In ENVARC: I do see the def_* files I created, and yes I rebooted
    also.
  • »04.03.04 - 05:22
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    magnetic
    Posts: 2129 from 2003/3/1
    From: Los Angeles
    Hey Could one of you please please do a nice tutorial on getting MOS setup with SAMBA and PCs? This would be very valuable to the community..

    magnetic
    Pegasos 2 Rev 2B3 w/ Freescale 7447 "G4" @ 1ghz / 1gb Nanya Ram
    Quad Boot: MorphOS 2.7 | Amiga OS4.1 U4 | Ubuntu PPC GNU/Linux | OS X 10.4
  • »04.03.04 - 06:06
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Bladerunner
    Posts: 418 from 2004/2/19
    TheMagicM:
    I am afraid just Samba isn`t enough.
    You need another tool which actually "mounts" your Win share
    for your Ambient Desktop, samba itself seems to provide just basic shell
    based sharing tools.
    There are severel tools, to do this Job, smb-handler, Tango or smbfs.
    On my Miggy I use smb-handler, which unfortunatelly does not work correctly, same goes
    (at least for me) with Tango.
    The only tool which works corect is smbfs, you will find the latest Version 1.60
    On Aminet.

    Magnetic:
    It is not necessary to invent the wheel a second time ;-)
    There is allready a good place which describes how to "network"
    using Samba on Amiga: Amigasamba HP
    It also has a cute Samba Install script, which makes life much easier.

    One little note perhaps, If you want to share just in one direction (As I do)
    meaning you just want your win drive be accesable under Ambient, (But then invissible under Windows)
    All the messing with Samba isn`t necessary, You just need smbfs.

    The doc for smbfs explains very well how to set it up.
    You can use it either via shell or through an Icon with Tooltypes set.

    Here a little Example, Lets assume you have a Network, calles MYNET, Your PC has the Name DOSE,
    Your login Name is PEGASOS, your Password PWD and the drive to share is named PC0. The Name under
    Ambient should be Dose.

    So you have to set 5 Tooltypes:

    Workgroup
    User
    Password
    Volume
    Service

    For our example you will set:

    Workgroup=MYNET
    User=PEGASOS
    Password=PWD
    Volume=DOSE
    Service=//DOSE/PC0

    (please have a look on the tooltypes "Volume" and "Service" in the manual)

    I hope this is usefull and please ignore my bad English :-)
  • »04.03.04 - 12:49
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    I do use smbfs... run >NIL: SMBFS workgroup= etc etc..
  • »04.03.04 - 13:16
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Bladerunner
    Posts: 418 from 2004/2/19
    Also the "Volume" Option? (afair it is necessary for having an Icon under Workbench/Ambient)
  • »04.03.04 - 13:20
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    TheMagicM
    Posts: 1218 from 2003/6/17
    that did it! I had no volume name.. Thanks for the help! :)
  • »04.03.04 - 13:32
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Spidey
    Posts: 568 from 2003/2/24
    From: Netherlands
    Hello guys and girls,

    I just read the part about having these def-icons for the shares.

    I just copied a disk.info to Env:SYS/ as def_SMBFS.info

    Opened a share with the smbfs-tool.

    I don't see the newly created def-icon?

    What am I doing wrong here?

    Thanks,

    Spidey
  • »04.03.04 - 20:31
    Profile Visit Website
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    @Spidey

    repeating myself:

    Just copy disk.info to network drive and off you go.
    www.mikseri.net/hooligan <- Free music
  • »04.03.04 - 20:52
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    takemehomegrandma
    Posts: 2720 from 2003/2/24
    @ Bladerunner

    Yeah, smbfs rules! :-)
    MorphOS is Amiga done right! :-)
    MorphOS NG will be AROS done right! :-)
  • »04.03.04 - 21:14
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Spidey
    Posts: 568 from 2003/2/24
    From: Netherlands
    Hi hooligan,

    Sorry, I wasn't clear with my post.

    I know with just a copied disk.info on the share it works in Ambient.
    I'm more curious about the option of having a def_icon in ENV:Sys and all mounted shares get it as icon picture in Ambient.

    Bye,

    Spidey

    Edit:

    Just got it working. I didn't read Jupp3's notation correctly :-)
    With def_SMBFS0disk.info in ENV:SYS, mounted shares with smbfs are displayed correctly :-)
  • »04.03.04 - 21:46
    Profile Visit Website
  • Moderator
    Golem
    Posts: 766 from 2003/2/28
    From: Denmark
    Use def_DEVICEdisk.info where DEVICE is the device/volume(?) you use for your mounted shares, you can use SnoopDos to check which def icons Ambient tries to open.
  • »04.03.04 - 21:58
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Spidey
    Posts: 568 from 2003/2/24
    From: Netherlands
    Hello Bladerunner,

    Until now I have to fill in the the hostnames in DataBase->Hosts of all shared computers. Otherwise I get an error with swat.

    This part is not stated in the manual (or I need other glasses :-D)

    Bye,

    Spidey
  • »04.03.04 - 22:00
    Profile Visit Website
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    BTW anyone else that couldn't live without smbfs..? rocks! :)
    www.mikseri.net/hooligan <- Free music
  • »04.03.04 - 22:02
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Jupp3
    Posts: 1193 from 2003/2/24
    From: Helsinki, Finland
    Quote:

    BTW anyone else that couldn't live without smbfs..?

    I sure can live without Samba... Got everything on my Pegasos :-)
  • »05.03.04 - 07:53
    Profile Visit Website
  • Butterfly
    Butterfly
    Posts: 65 from 2003/2/10
    From: France (Agen 47)
    Ok, After reading this thread I thought I had to tell you something that will make your life easier ;-)

    Rafo is developping a very interesting tool that uses samba and smbfs. The aim is to vanish any shell usage and any configuration for the user. You only have to launch the tool and it will show you computers on the networks then the list of shared folders and the choosen computer... et voila ;-)

    This tool already work, but he is reworking it to use MUI.

    I'm using it and it is really great !!
    N'cha, LorD
    http://www.lordfpx.com/
  • »05.03.04 - 10:12
    Profile Visit Website
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    Quote:

    . You only have to laugh the tool and it will show you computers on the networks then the lsit os shares folders and the choosen computer


    He has implemented voice recognition? COOL! :-D
    www.mikseri.net/hooligan <- Free music
  • »05.03.04 - 12:07
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    catohagen
    Posts: 297 from 2003/5/20
    This is the most utterly coolest thing i've heard of lately.
    One small problem would be if anyone tell jokes around you or people laughing or you watch
    a movie in mplayer and someone laughs. Samba icon attack all over desktop :-)

    Abit annoying, but if the voice recognition is advanced enough, it should pinpoint your voice
    and ignore the rest.
  • »05.03.04 - 12:15
    Profile