• Problem with filesharing from Ubuntu 22.04 on a Raspi4 in a local netwo

    From Jesper Kaas@21:1/5 to All on Sat May 14 23:00:58 2022
    Hi

    I am running a musicserver, Logitech Media Server (LMS), on a
    Raspberry Pi 3b+ with the program PiCorePlayer. PiCoreplayer comes as
    an image you can copy to a SD-card, and then run on a Pi. Picoreplayer
    runs as a program with GUID over Tiny Core Linux. All control goes via
    the GUID, where you can mount a SSD, and also install and set up
    Samba. Samba is installed with a click on a button and configured via
    a few simple text-boxes. All works fine and I can access files and
    copy new music files via local net to the Raspi-SSD from my Windows
    PC.

    With that working so fine and missing the Raspi 3B+, now running as
    music server, I have bought a Raspi 4 8MB, installed Ubuntu Desktop
    22.04, hoping that it could serve as an extra PC, and also be used for tinkering with small electronic projects.
    But sharing files is a problem. I can access windows shares in Ubuntu,
    using Files->Other Locations and enter the address of the windows
    folder. But the other way, right clicking on a folder in Ubuntu and
    selecting "Local Network Share" will not work. I have installed Samba
    via instructions I googled, and got errormessages underways. Please
    see the listing at the end of this message.
    I think filesharing is set up correctly in windows, since the samba
    share from the music-server works fine. But shares made in Ubuntu
    22.04 ends with and errormessage concerning missing permission at the
    last step. Tried a few different approaches, it starts well, but all
    ends with the message about missing permissions.

    As a novice to Linux I have googled a lot and tried a lot, and just
    read an article about some issues with Ubuntu 22.04. So maybe it is
    best to just test with an other Linux distribution? recommandations
    please?

    Here is a listing of error messages after one of the attempts to start
    WSDD. All steps installing samba before this one were successful.
    Also tried another guys guiding, but after working some steps in
    Terminal, he started a graphic version of Samba, and that it not to be
    found in Ubuntu 22.04 Desktop.

    Listing:

    jyttejesper@jkrp4:/tmp$ sudo systemctl start wsdd

    job for wsd.service failed because of unavailable resources or another
    system error.
    See "systemctl status wsdd.service" and "journalctl -xeu wsdd.service"
    for details.

    wsdd.service - Web Services Dynamic Discovery host daemon
    Loaded: loaded (/etc/systemd/system/wsdd.service; disabled;
    vendor preset:>
    Active: inactive (dead)
    Docs: man:wsdd(8)
    lines 1-4/4

    yttejesper@jkrp4:~$ journalctl -xeu wsdd.service
    ?? Subject: A start job for unit wsdd.service has failed
    ?? Defined-By: systemd
    ?? Support: http://www.ubuntu.com/support
    ??
    ?? A start job for unit wsdd.service has finished with a failure.
    ??
    ?? The job identifier is 2376 and the job result is failed.
    mai 13 21:21:30 jkrp4 systemd[1]: wsdd.service: Failed to load
    environment file>
    mai 13 21:21:30 jkrp4 systemd[1]: wsdd.service: Failed to run 'start'
    task: No >
    mai 13 21:21:30 jkrp4 systemd[1]: wsdd.service: Failed with result
    'resources'.
    ?? Subject: Unit failed
    ?? Defined-By: systemd
    ?? Support: http://www.ubuntu.com/support
    ??
    ?? The unit wsdd.service has entered the 'failed' state with result 'resources'.
    mai 13 21:21:30 jkrp4 systemd[1]: Failed to start Web Services Dynamic Discover>
    ?? Subject: A start job for unit wsdd.service has failed
    ?? Defined-By: systemd
    ?? Support: http://www.ubuntu.com/support
    ??
    ?? A start job for unit wsdd.service has finished with a failure.
    ??
    ?? The job identifier is 2540 and the job result is failed.


    And here follows the instructions I followed to get wsdd up and
    running:

    Change to /tmp directory.

    cd /tmp

    Download and unzip the archive.

    wget https://github.com/christgau/wsdd/archive/master.zip

    unzip master.zip

    Rename wsdd.py to wsdd.

    sudo mv wsdd-master/src/wsdd.py wsdd-master/src/wsdd

    Copy to /usr/bin.

    sudo cp wsdd-master/src/wsdd /usr/bin

    Copy wsdd to /etc/systemd/system.

    sudo cp wsdd-master/etc/systemd/wsdd.service /etc/systemd/system

    Open wsdd.service in nano and comment out User=nobody and Group=nobody
    with a ; semicolon.

    sudo nano /etc/systemd/system/wsdd.service

    /etc/systemd/system/wsdd.service

    [Unit]
    Description=Web Services Dynamic Discovery host daemon
    ; Start after the network has been configured
    After=network-online.target
    Wants=network-online.target
    ; It makes sense to have Samba running when wsdd starts, but is not
    required
    ;Wants=smb.service

    [Service]
    Type=simple
    ExecStart=/usr/bin/wsdd --shortlog
    ; Replace those with an unprivledged user/group that matches your
    environment,
    ; like nobody/nogroup or daemon:daemon or a dedicated user for wsdd
    ; User=nobody
    ; Group=nobody
    ; The following lines can be used for a chroot execution of wsdd.
    ; Also append '--chroot /run/wsdd/chroot' to ExecStart to enable
    chrooting
    ;AmbientCapabilities=CAP_SYS_CHROOT
    ;ExecStartPre=/usr/bin/install -d -o nobody -g nobody -m 0700
    /run/wsdd/chroot
    ;ExecStopPost=rmdir /run/wsdd/chroot

    [Install]
    WantedBy=multi-user.target

    Save and exit (press CTRL + X, press Y and then press ENTER)

    Reload daemon.

    sudo systemctl daemon-reload

    Start and enable wsdd.

    sudo systemctl start wsdd
    --
    Jesper Kaas - jesperk@neindanke.online.no

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)