NAS server install won’t work

December 27, 2022, 20:31

getsakd

it just gave me back a another line

getsakd

pi@raspberrypi:~ $ sudo systemctl restart smbd.service pi@raspberrypi:~ $

lupine3rd

try browsing your network from your other computer now

getsakd

nothing shows up

getsakd


getsakd

See

getsakd

<@175426704297295873>

lupine3rd

Your ability to provide a photographic representation of a non-error message is...incredible.

getsakd

oh lol

lupine3rd

that illuminating evidence aside...

getsakd


getsakd

sorry if i am doing dumb things

lupine3rd

If the samba service is running, but you can't see anything on the network from your other computer...the next thing I'd look at is whether or not there is a network socket listening on the Pi

getsakd

what is network socket?

lupine3rd

a network socket is something that is more specific than just an IP address for locating a service/resource on a network. It's generally, a port+protocol.

lupine3rd

In this case...Samba is the protocol that normally listens/uses ports 139 & 445

getsakd

ok

lupine3rd

so is port 139/TCP or 445/TCP listening on your Pi right now? ((will probably expect to be 445 - https://www.varonis.com/blog/smb-port))

getsakd

wait how do i determine that

getsakd

i am a little lost

lupine3rd

sudo netstat -tulpn | grep LISTEN
per https ://www.cyberciti.biz/faq/unix-linux-check-if-port-is-in-use-command/

lupine3rd

Read these links I'm sending you.

getsakd

yup doing that right now

getsakd

ok my pi for samba is listening to port 139

lupine3rd

at what address?

getsakd


lupine3rd

ok

lupine3rd

so samba is listening on every address on your pi

lupine3rd

next question - what is the IP address of your Pi?

getsakd

192.162.254.56

lupine3rd

What is the IP address of the other computer on your network trying to access the Pi?

getsakd

192.162.254.50

lupine3rd

That's the computer you're SSHing into the Pi from?

getsakd

yes

lupine3rd

Well, when everything appears to be good on the Pi's end re: Samba listening and properly configured AND you know you can talk on the network between the 2, the only other things to check are going to be on the client-side, which would be Explorer not being configured correctly or something in Windows prohibiting discovery of file shares on that network (due to Windows thinking it's a public network, ergo not allowing for promiscuous network discovery)

getsakd

i have it looking for public network?

getsakd


getsakd

ok let me read this

getsakd

<@175426704297295873>

getsakd

got progress

getsakd

but nothing still

getsakd


getsakd


getsakd

dont know what to do now

lupine3rd

the fact that it's showing up as 'other device' and not as the name of your Pi under the 'Computer' section tells me that your computer is unable to understand the name of the Pi on your network.

getsakd

oh

getsakd

so i tried connecting to it on my phone

getsakd


getsakd

and i am able to acces

getsakd

why does it not show up on my pc

lupine3rd

Your phone is smarter than Windows...no surprise there. ;p

getsakd

lol

getsakd

got it

lupine3rd

probably related to netbios naming

getsakd

oh

getsakd

so what am i supposed to do now

lupine3rd

what is the hostname of your Pi, on your network, and how does Windows know that?

lupine3rd

you should also be able to access it directly via //192.162.254.56

getsakd

raspberrypi

getsakd

or pi

lupine3rd

from a command prompt on Windows

lupine3rd

ping raspberrypi

getsakd

oh

getsakd


getsakd


lupine3rd

typing that by itself does nothing

getsakd

Oh

lupine3rd

you really should read up on some basics of computering

lupine3rd

or get some sleep

lupine3rd

understand the difference between a command and a switch/option/value

lupine3rd

and the proper shell/context which will understand them

getsakd

Oh lots to learn

getsakd

Some I know most I dont

getsakd

So what am I supposed to do right now

lupine3rd

You know samba is running correctly on your Pi, because you can access it on your phone

lupine3rd

so figure out why you can't access it via Windows

getsakd

Yea but even on my phone I can only acces threw guest

getsakd


getsakd

When I go threw guest it works

getsakd

I am going to take a break when I am back I will ping you

getsakd

Thanks for the help so far

getsakd

How to make it that I can put files into it

getsakd


lupine3rd

You've exceeded the scope of Raspberry Pi file sharing related questions

lupine3rd

and I'm very sensitive to scope creep

lupine3rd

Samba is running on your pi - now you need to figure out how to properly access a samba file share on your network from the client of your choice

lupine3rd

If I had to guess...the issue now is related to the config of the samba server and file/folder permissions

lupine3rd

I don't recommend this long-term, but you can create a tempFolder in ~/Share/Server (assuming that's where you specified in your smb.conf) and then
$ sudo chown -R nobody:nogroup tempFolder
and then you should be able to read/write to that over the network via Samba, anonymously

lupine3rd

the big thing is making sure that the files/folders you create in linux for the file share match the permissions allowed to read/write to it when connecting to the file share over the network (eg. if you're connecting with the 'pi' account, then the folders shared by samba need to be owned/writeable by the 'pi' account)