Raspberrypi 5 running updated bookworm.
Moving files between Windows and Pi'es was easy with VNC, but VNC
server is gone in Bookworm. Moving files between Windows and Pi *can*
be done with SCP, but everytime I have to check how to write the
command corretly. Bad memory.
Just to make it clear: My windows shares work fine between a Win11 PC,
Win10 laptop and Android phone. Also when I was running Ubuntu, the
Windows shares could be reached from Ubuntus filemanager.
So how to either make shares in Pi visible in Windows, or opposite (or
both ways)?
I have googled til I am blue in the face and tried umpteen recipies,
but nothing works. Samba is installed on Pi, and smb.conf edited in a
number of ways.
Off topic: The Pi 5 replaced a Pi 4 this friday, both 8 Gb. Just
plugged the boot USB from the 4 to the 5. Big difference when
web-browsing. With the Pi 4 you had to be a bit patient. The 5 feels
almost like a PC.
So how to either make shares in Pi visible in Windows,
Moving files between Windows and Pi'es was easy with VNC
[root]
comment = root
path = /
writeable = yes
only guest = no
directory mask = 0777
create mask = 0777
force user = root
force group = root
public = no
follow symlinks = yes
wide links = yes
On Mon, 05 Feb 2024 12:40:43 +0000 (GMT)
Bob Latham <bob@sick-of-spam.invalid> wrote:
[root]
comment = root
path = /
writeable = yes
only guest = no
directory mask = 0777
create mask = 0777
force user = root
force group = root
public = no
follow symlinks = yes
wide links = yes
So anyone with the pi password can mount the share, after which
anyone with access to the machine has root access to the filesystem on the pi. That's a little open for my tastes.
On 05/02/2024 12:11, Jesper Kaas wrote:Tried to follow a recipe om phoenixNAP, but could not make it work.
Raspberrypi 5 running updated bookworm.
Moving files between Windows and Pi'es was easy with VNC, but VNC
server is gone in Bookworm. Moving files between Windows and Pi *can*
be done with SCP, but everytime I have to check how to write the
command corretly. Bad memory.
Just to make it clear: My windows shares work fine between a Win11 PC,
Win10 laptop and Android phone. Also when I was running Ubuntu, the
Windows shares could be reached from Ubuntus filemanager.
So how to either make shares in Pi visible in Windows, or opposite (or
both ways)?
Samba. sshfs.
I have googled til I am blue in the face and tried umpteen recipies,Well it always used to work. Maybe windows latest has made it harder to
but nothing works. Samba is installed on Pi, and smb.conf edited in a
number of ways.
do. Remember to reload samba after configuration changes
--Off topic: The Pi 5 replaced a Pi 4 this friday, both 8 Gb. Just
plugged the boot USB from the 4 to the 5. Big difference when
web-browsing. With the Pi 4 you had to be a bit patient. The 5 feels
almost like a PC.
On Mon, 5 Feb 2024 12:43:36 +0000, The Natural Philosopher <tnp@invalid.invalid> wrote:
On 05/02/2024 12:11, Jesper Kaas wrote:Tried to follow a recipe om phoenixNAP, but could not make it work.
Raspberrypi 5 running updated bookworm.
Moving files between Windows and Pi'es was easy with VNC, but VNC
server is gone in Bookworm. Moving files between Windows and Pi *can*
be done with SCP, but everytime I have to check how to write the
command corretly. Bad memory.
Just to make it clear: My windows shares work fine between a Win11 PC,
Win10 laptop and Android phone. Also when I was running Ubuntu, the
Windows shares could be reached from Ubuntus filemanager.
So how to either make shares in Pi visible in Windows, or opposite (or
both ways)?
Samba. sshfs.
I will try Bob Lathams list.
On 05/02/2024 12:11, Jesper Kaas wrote:
So how to either make shares in Pi visible in Windows, or opposite
(or both ways)?
Samba. sshfs.
Samba is installed on Pi, and smb.conf edited in a number
of ways.
Make sure smb and nmb daemons are running
Comment out using # anything in [homes] even [homes] itself to prevent unwanted 'pi' share. eg.
Raspberrypi 5 running updated bookworm.
Moving files between Windows and Pi'es was easy with VNC, but VNC
server is gone in Bookworm. Moving files between Windows and Pi *can*
be done with SCP, but everytime I have to check how to write the
command corretly. Bad memory.
DO suggest manually adding 'winbind' and 'cifs-utils' to the install.
On Mon, 05 Feb 2024 12:40:43 +0000 (GMT), Bob Latham wrote:
Comment out using # anything in [homes] even [homes] itself to
prevent unwanted 'pi' share. eg.
If you are doing a lot of testing with enabling and disabling
individual shares, an easy way to disable a share without having
to comment the whole thing out is to add the setting available =
no.
Also I hear, once a Windows client has felt the hot breath of Active Directory on its network stack, it can never go back to NT4 domains.
HAVE run into distros where the lack of winbind screws SAMBA.
On Tue, 6 Feb 2024 00:10:46 -0500, 68g.1499 wrote:
DO suggest manually adding 'winbind' and 'cifs-utils' to the install.
windbind is if you want your Linux logins to be controlled by a Windows server. Probably not recommended. cifs-utils is, again, another client-
side thing, letting your Linux system mount volumes from a Windows server. Maybe useful for testing against your Samba server, otherwise unnecessary (see smbclient).
On 06.02.2024 06:10, 68g.1499 wrote:
On 2/5/24 7:11 AM, Jesper Kaas wrote:
Raspberrypi 5 running updated bookworm.
Moving files between Windows and Pi'es was easy with VNC, but VNC
server is gone in Bookworm. Moving files between Windows and Pi *can*
be done with SCP, but everytime I have to check how to write the
command corretly. Bad memory.
"Worm" is not really an 'upgrade' IMHO. More like some crap
contaminated by the Canonical philosophy. Deb should FIRE
those dinks. They made Worm the moral equiv of Vista.
However, there are several VNC servers you can install,
one is there kinda by default if you just use the rPI
config utility.
Unforunately only the RealVNC Viewer can be activated. Not the server.
Anyway, after following Bob Lathams guide I can see the raspi shares in windows, so by now there is no reason to hunt for a better VNC server.
Put perhaps restrict the access to all files on the raspberrypi.
I prefer tightvncserver. Note that
Tiger will subtly alter some deeply-obscure config
files under /etc which tends to keep OTHER VNC servers
from working right. After long searching I found what
needed to be changed back to default. SOME VNC servers
allow for cut-n-paste, some don't, some claim to but
don't always.
Also, for traditional file sharing, there's SAMBA server.
DO suggest manually adding 'winbind' and 'cifs-utils' to
the install. Plenty of docs on samba.conf and how to set
up shares/users - SOME of which are semi-comprehensible.
Copy examples, tweak to suit later. That's quickest.
The Samba config file is where you make shares 'visible'
or not. It sometimes works without winbind, sometimes
not, so DO co-install winbind.
Well I started reading about winbind, and it looks way more complicated > to install (and use) than I can manage.
Anyway, Samba is THE best way to share files to/from
a Pi or any other Linux system. NFS may be traditional
but it's WEIRD, funky to set up, potentially less
secure, NO faster really anymore and generally less
flexible than Samba. Note that the BSDs have an
older-spec Samba which may not easily employ the
more modern security features. Not a big deal on
an intranet, but a possible PROBLEM for sharing
over the internet.
And for cheap file "sharing" there's always 'scp'.
DO change your SSH port to something non-standard
however. My firewalls doc infinite attempts on
the standard port, but nada elsewhere. The perps
are not movie-style hackers, just stupid bots
that don't waste time. There ARE some easy params
to tweak in the sshd config file to limit how
many attempts/sessions an outside agent might
attempt. Fail2Ban is also useful.
Did all this crap, often, for a mid-sized concern.
Nobody ever broke the system - not even a company
hired to find security weaknesses, even after offered
'special access' through the firewalls.
Thanks for your thorough comments
Best regards
Um ... have TightVNCServer running on four PIs at my
home right now - three Bullseye and one Worm.
Never activate the default VNC server ... go to Synaptic
or something and install Tight. It will ask if you want
to uninstall the other, say yes.
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 14 |
Nodes: | 6 (0 / 6) |
Uptime: | 231:40:00 |
Calls: | 55 |
Calls today: | 1 |
Files: | 50,127 |
D/L today: |
33 files (4,307K bytes) |
Messages: | 275,362 |