Raspberry pi and linux mint

Linux Mint Forums

Solved: Connecting to Raspberry Pi on Mint 20

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

whuyckjr Level 2
Posts: 90 Joined: Tue Oct 27, 2020 11:28 pm Location: West Terre Haute, Indiana USA

Solved: Connecting to Raspberry Pi on Mint 20

Post by whuyckjr » Mon Nov 16, 2020 2:46 pm

I am new to Mint 20, on week three.

I have three raspberry Pi’s setup with Samba to share folders. I can access these Pi’s on my windows PC pretty easy so I know the samba folders are shared over my wired network.

On My windows 7 PC I just goto networking in the File explorer that sign into the Pi’s

I have not been able to figure out how to connect to them on Linux Mint 20.

Thanks in advance for your advice.

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

senjoz Level 5
Posts: 769 Joined: Tue Jun 09, 2020 3:55 am Location: Kamnik

Re: Connecting to Raspberry Pi on Mint 20

Post by senjoz » Mon Nov 16, 2020 2:58 pm

Try next. In the Nemo (file manager) location bar at the top enter smb://rpi_ip/share_name (rpi_ip is IP address of Raspberry Pi, share_name is the name of share on the Raspberry Pi).

whuyckjr Level 2
Posts: 90 Joined: Tue Oct 27, 2020 11:28 pm Location: West Terre Haute, Indiana USA

Re: Connecting to Raspberry Pi on Mint 20

Post by whuyckjr » Mon Nov 16, 2020 6:15 pm

senjoz wrote: ⤴ Mon Nov 16, 2020 2:58 pm Try next. In the Nemo (file manager) location bar at the top enter smb://rpi_ip/share_name (rpi_ip is IP address of Raspberry Pi, share_name is the name of share on the Raspberry Pi).

It says no such file or directory

That is the same ip address used on the Windows machine. So something is missing.

Читайте также:  Команда sed в линукс

Is there a way to see all available networks connections like on Windows 7 under networking? Maybe that will reveal something.

Re: Connecting to Raspberry Pi on Mint 20

Post by altair4 » Mon Nov 16, 2020 6:27 pm

It says no such file or directory

Perhaps just a coincidence but you will get that error message if you ran smb://192.168.254.48/sharedpi4b1 in a terminal instead of in the location bar of nemo.

Run this in a terminal instead:

nemo smb://192.168.254.48/sharedpi4b1

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

whuyckjr Level 2
Posts: 90 Joined: Tue Oct 27, 2020 11:28 pm Location: West Terre Haute, Indiana USA

Re: Connecting to Raspberry Pi on Mint 20

Post by whuyckjr » Mon Nov 16, 2020 8:09 pm

It says no such file or directory

Perhaps just a coincidence but you will get that error message if you ran smb://192.168.254.48/sharedpi4b1 in a terminal instead of in the location bar of nemo.

Run this in a terminal instead:

nemo smb://192.168.254.48/sharedpi4b1

I did enter it in the Nemo Address bar. The Command in the terminal gives the same error after a window opens asking for the user and password which I entered in.

No access through the command bar either.

Re: Connecting to Raspberry Pi on Mint 20

Post by MartyMint » Mon Nov 16, 2020 8:23 pm

They should be in the same homegroup.
There’s a Samba GUI app if that’s something you’d want to look into.
It’s called smb4k. Also gadmin-samba.

whuyckjr Level 2
Posts: 90 Joined: Tue Oct 27, 2020 11:28 pm Location: West Terre Haute, Indiana USA

Re: Connecting to Raspberry Pi on Mint 20

Post by whuyckjr » Mon Nov 16, 2020 10:11 pm

MartyMint wrote: ⤴ Mon Nov 16, 2020 8:23 pm They should be in the same homegroup.
There’s a Samba GUI app if that’s something you’d want to look into.
It’s called smb4k. Also gadmin-samba.

I tried installing first SMB4K. It poped up and then disappeared and I could not see it or open it again.

I then installed Gadmin-Samba and it changed my samba config file and my network connection between my Linux Mint PC and my Windows 7 Machine stopped working. So I did a timeshift back to this morning to get the connection back. I’m transferring all my files off the Windows 7 PC to this Linux machine.

So these apps did not help me.

I know this Linux PC can see the networks because the connection works between the Window 7 and Linux Mint PC’s I am transferring files.

The Raspberry Pi’s are on the same network. The windows 7 PC can access them. I just need to get this Linux Mint PC to see them and establish access with them.

Thanks for your suggestions and valuable time. I need to wait for those directions that will help me get this working.

Читайте также:  Internet explorer with linux

Re: Connecting to Raspberry Pi on Mint 20

Post by altair4 » Tue Nov 17, 2020 8:51 am

Don’t ever use gadmin-samba. It was written for version 2 of samba. We are at version 4.

Reinstalling samba will not fix this. Luckily there is a way to restore the factory settings in 4 easy steps:

[1] Rename the smb.conf that gadmin-samba discombobulated:

sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo cp -a /usr/share/samba/smb.conf /etc/samba/
sudo service smbd restart

[4] Don’t ever use gadmin-samba again.

THis isn’t going to fix all of the issues you seem to be having in this thread. All it will do is reset your samba configuration to the factory fresh settings that you had when you first installed samba.

Side question: What operating system are you using on the Pi’s. And what version.

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

whuyckjr Level 2
Posts: 90 Joined: Tue Oct 27, 2020 11:28 pm Location: West Terre Haute, Indiana USA

Re: Connecting to Raspberry Pi on Mint 20

Post by whuyckjr » Tue Nov 17, 2020 9:18 am

altair4 wrote: ⤴ Tue Nov 17, 2020 8:51 am Don’t ever use gadmin-samba. It was written for version 2 of samba. We are at version 4.

Reinstalling samba will not fix this. Luckily there is a way to restore the factory settings in 4 easy steps:

[1] Rename the smb.conf that gadmin-samba discombobulated:

sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
sudo cp -a /usr/share/samba/smb.conf /etc/samba/
sudo service smbd restart

[4] Don’t ever use gadmin-samba again.

THis isn’t going to fix all of the issues you seem to be having in this thread. All it will do is reset your samba configuration to the factory fresh settings that you had when you first installed samba.

Side question: What operating system are you using on the Pi’s. And what version.

Thank you This is important to know.

I have a PI4B running Buster it is — Rasbian GNU/Linux10 (buster)

I have two Pi3B’s they are — Rasbian GNU/Linux 9 (stretch)

Re: Connecting to Raspberry Pi on Mint 20

Post by altair4 » Tue Nov 17, 2020 9:43 am

I have to leave for a bit but are the two debians the server editions?

And do they have avahi enabled:

sudo service avahi-daemon status

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

whuyckjr Level 2
Posts: 90 Joined: Tue Oct 27, 2020 11:28 pm Location: West Terre Haute, Indiana USA

Re: Connecting to Raspberry Pi on Mint 20

Post by whuyckjr » Tue Nov 17, 2020 11:06 am

altair4 wrote: ⤴ Tue Nov 17, 2020 9:43 am I have to leave for a bit but are the two debians the server editions?

Читайте также:  Монтировать устройства в linux

And do they have avahi enabled:

sudo service avahi-daemon status

Here is the result on the Pi4B

pi@raspberrypi4b1:~ $ testparm -s
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section «[homes]»
Processing section «[printers]»
Processing section «[print$]»
Processing section «[Pi4B_TS2000]»
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
server role = standalone server
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb

[homes]
browseable = No
comment = Home Directories
create mask = 0700
directory mask = 0700
valid users = %S

[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[Pi4B_TS2000]
create mask = 0777
directory mask = 0777
path = /home/pi/sharedpi4b1
read only = No
pi@raspberrypi4b1:~ $

Re: Connecting to Raspberry Pi on Mint 20

Post by altair4 » Tue Nov 17, 2020 11:36 am

You aren’t going to like this but I can’t reproduce your symptoms.

[1] In installed raspberry Pi as a VirtualBox install.

[3] I created the same /home/pi/sharedpi4b1 folder and created the same [Pi4B_TS2000] share definition.

From Mint 20 I can discover the share from «Network:

I can even specify the ip address and get the same response.

Maybe I used the wrong Pi iso — I found their website confusing. I used: 2020-02-12-rpd-x86-buster.iso

Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

whuyckjr Level 2
Posts: 90 Joined: Tue Oct 27, 2020 11:28 pm Location: West Terre Haute, Indiana USA

Re: Connecting to Raspberry Pi on Mint 20

Post by whuyckjr » Tue Nov 17, 2020 12:25 pm

altair4 wrote: ⤴ Tue Nov 17, 2020 11:36 am You aren’t going to like this but I can’t reproduce your symptoms.

[1] In installed raspberry Pi as a VirtualBox install.

[3] I created the same /home/pi/sharedpi4b1 folder and created the same [Pi4B_TS2000] share definition.

From Mint 20 I can discover the share from «Network:
Mint20-rasp.png
It shows up twice — once as a NetBIOS discovery:
Mint20-rasp2.png
And once as an Avahi discovery:
Mint20-rasp3.png
I can even specify the ip address and get the same response.

Maybe I used the wrong Pi iso — I found their website confusing. I used: 2020-02-12-rpd-x86-buster.iso

How do I open the Network. I try to do this by going to Setting/Network

All I see there is Wired and Network Proxy. in the list.

Is that where you are looking on your system?

Источник

Оцените статью
Adblock
detector