Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Gentoo Samba not working for Android VLC, files not
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Mon Jan 02, 2023 9:30 pm    Post subject: [Solved] Gentoo Samba not working for Android VLC, files not Reply with quote

Hi.

I'm trying to connect from my android tv to my gentoo samba share.
The share is seen, and i can see all the sub directories and browse them.
but i can see no files.

If i put some .mp4 files, .avi, .jpg
nothing seen.

VLC version on my android-tv: 3.5.3

This is my smb.conf:
Code:

[global]
   workgroup = MYGROUP
   server string = Samba Server
   server role = standalone server
   hosts allow = 192.168.1. 192.168.0. 127.
   log file = /var/log/samba/log.%m
   max log size = 50
   min protocol = SMB2
   dns proxy = no
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes
[public]
   path = /home2/samba
   public = yes
   writable = no
   printable = no


Last edited by heikkikk on Tue Jan 03, 2023 7:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Jan 03, 2023 10:48 am    Post subject: Reply with quote

Try
Code:

rc-service samba stop
chmod 777 /home2/samba

Then edit smb.conf
Code:

[global]
.
.
map to guest = Bad User
[public]
.
.
guest ok = yes     
create mode = 0777   
directory mode = 0777   

_________________
:)
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Tue Jan 03, 2023 11:21 am    Post subject: Reply with quote

Still nothing, i did everything you said except that i have systemd and i did

systemctl restart smb
systemctl restart nmbd

i can browse all the directories but there seems to be no files... even tho there are files. I triple checked from my Gentoo machine.

EDIT:
I even tried: chmod -R a+rwX /home2/samba/
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Tue Jan 03, 2023 3:13 pm    Post subject: Reply with quote

If you browse this share using some other SMB client, such as smbclient, are the files present? We need to determine whether Samba is telling all clients that there are no files, or if Samba is telling VLC about files and VLC is declining to show them, perhaps because its filtering rules lead it to hide these as a misguided courtesy.
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Tue Jan 03, 2023 7:42 pm    Post subject: Reply with quote

My mistake.
I was telling vlc to browse audio files, and there were only videos and images :D

Sorry guys!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum