The time now is Sat 14 Dec 2019, 07:49
All times are UTC - 4 |
Author |
Message |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9099 Location: Perth, Western Australia
|
Posted: Thu 07 Dec 2017, 19:42 Post subject:
|
|
don570 wrote: | I tried to get the samba server to be recognized by a second computer and
it still fails to connect. Has anybody succeeded ?
__________________________________________________ |
It is about time that I actually used samba myself!
I am going to install Open Media Vault, have downloaded the iso. This is a NAS operating system, based on Debian Stable.
Planning to install on my midi-tower PC, which has two ethernet sockets, 100MB/s and 1000MB/s. Then configure it as a Samba server.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
ally

Joined: 19 May 2012 Posts: 1935 Location: lincoln, uk
|
Posted: Thu 07 Dec 2017, 20:27 Post subject:
|
|
openmediavault is awesome
my raspberry pi runs 7 drives quite comfortably
an observation though, when samba (yassm) is running the cpu load is high even when not transferring data, this happens whichever puppy I'm using (tahrpup,xenial,fatdog etc.)
|
Back to top
|
|
 |
scsijon
Joined: 23 May 2007 Posts: 1538 Location: the australian mallee
|
Posted: Thu 07 Dec 2017, 22:48 Post subject:
devx fails? |
|
devx (devx-0.6-pyro64.pet) is failing to install, seems to copy/expand itself into /root first then fails with an error>
Error package devx-0.6-pyro64.pet failed to install.
xerrs.log shows>
stat: cannot stat '/root/devx-0.6-pyro64.pet': No such file or directory
expr:syntax error
expr:syntax error
/usr/local/petget/installpkg.sh: line175: [: -gt: unary operator expected
/usr/local/petget/installpkg.sh: line201: [: -gt: unary operator expected
I've tried d/l from 3 sites with the same result so i don't think it's me as other pets install ok
md5# is f06ba3a6ed3fa17c1945d78c57f755e1 if that helps
regards
EDIT: wierd, downloading from other puppies won't install,but downloading with PKGGet in pyro 0.6 works and injstalls.
Last edited by scsijon on Wed 13 Dec 2017, 03:16; edited 1 time in total
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4872 Location: Blue Springs, MO
|
Posted: Thu 07 Dec 2017, 23:19 Post subject:
|
|
BarryK wrote: | don570 wrote: | I tried to get the samba server to be recognized by a second computer and
it still fails to connect. Has anybody succeeded ?
__________________________________________________ |
It is about time that I actually used samba myself!
I am going to install Open Media Vault, have downloaded the iso. This is a NAS operating system, based on Debian Stable.
Planning to install on my midi-tower PC, which has two ethernet sockets, 100MB/s and 1000MB/s. Then configure it as a Samba server. |
If the kernel is configured with CIFS support, local "samba" shares can be mounted as follows:
Code: | mount -t cifs -o username=USERNAME,password=PASSWD,uid=$USER,gid=$USER //192.168.1.88/shares ~/mnt/share |
(substituting correct local IP address and directories)
Now if you've gone all out and want to resolve host names instead of using IP addresses directly, you'll also need "/sbin/request-key" (from keyutils IIRC) to resolve the IP for the kernel to use
To share files from Linux to Windows you'd still need the samba package for the server daemon, but for simple access to local Windows shares from Linux (probably ~90% of use cases), nothing else should be needed. Fortunately most routers and NAS devices will list the devices that are attached to it and the corresponding IP address on their UI (usually at 192.168.0.1/ for routers)
Extra info for developers. The kernel has a builtin keyring mechanism that it uses to store cached DNS resolutions (amongst other things) but no internal mechanism to resolve a hostname to an IP address; thus the need for /sbin/request-key (I don't get the reasoning behind using userspace tools from the kernel, but that's how it is) When you mount a remote SMB or CIFS share using the kernel's builitin filesystem, it will check to see if it is in //*.*.*.*/* format (not sure about IPv6 formatted addresses) and use IP addresses directly or make a call to dns_query to lookup the hostname. If it is already stored in the keyring, it uses the stored IP address to connect; otherwise it calls another builtin kernel function that calls /sbin/request-key. This is not unusual, /sbin/hotplug is used by the kernel to handle hot-plugging (though now most people use the netlink alternative these days) FWIW I experimented with my own DNS caching utility here, but it would need to be patched into the libc to really be helpful and Rich Felker didn't want to add it to musl since it is non-standard.
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5395 Location: Ontario
|
Posted: Sat 09 Dec 2017, 16:44 Post subject:
probedisk -m doesn't work in some distros |
|
probedisk -m doesn't work in some distros
BarryK has a script to install pyro64 to a drive i.e. a USB stick
pyro-0.5/4install-quirky-to-drive-mbr
it uses probedisk command
Code: | echo "These are all of the drives found in your PC:"
INFODRIVES="$(probedisk -m | sed -e 's%/dev/%%')"
|
The script doesn't work in some distros because of probedisk -m
Here are some examples when I checked
(precise 571 and xerus worked) ...
Code: |
_____________________________________________________
echo "These are all of the drives found in your PC:"
INFODRIVES="$(probedisk -m | sed -e 's%/dev/%%')"
____________________________________________
xerus64 russian
# probedisk -m
/dev/sda|drive|ATA SAMSUNG HD103SJ
/dev/sdb|drive|ATA Hitachi HUA72101
/dev/sdc|usbdrv|KingstonDataTraveler 2.0
/dev/sr0|optical|SAMSUNG DVD-ROM SD-616E
# probedisk
/dev/sda|drive|ATA SAMSUNG HD103SJ
/dev/sdb|drive|ATA Hitachi HUA72101
/dev/sdc|usbdrv|KingstonDataTraveler 2.0
/dev/sr0|optical|SAMSUNG DVD-ROM SD-616E
_____________________________________________
precise 571
probedisk -m
/dev/sda|drive|ATA SAMSUNG HD103SJ
/dev/sdb|usbdrv|KingstonDataTraveler 2.0
/dev/sr0|optical|SAMSUNG DVD-ROM SD-616E
# probedisk
/dev/sda|drive|ATA SAMSUNG HD103SJ
/dev/sdb|usbdrv|KingstonDataTraveler 2.0
/dev/sr0|optical|SAMSUNG DVD-ROM SD-616E
___________________________________________
xenialpup 64 7.5
root# probedisk -m
* probedisk -m: unknown option. type 'probedisk -help'
root# probedisk
/dev/sda|drive|ATA SAMSUNG HD103SJ
/dev/sdb|usbdrv|Kingston DataTraveler 2.0
/dev/sr0|optical|SAMSUNG DVD-ROM SD-616E
______________________________________________
slacko64 700
# probedisk -m
-m: invalid device
# probedisk
/dev/sda|drive|ATA SAMSUNG HD103SJ
/dev/sdb|usbdrv|Kingston DataTraveler 2.0
/dev/sr0|optical|SAMSUNG DVD-ROM SD-616E
#
_____________________________________________
Dpup stretch 700a2
# probedisk -m
* probedisk -m: unknown option. type 'probedisk -help'
# probedisk
/dev/sda|drive|ATA SAMSUNG HD103SJ
/dev/sdb|usbdrv|Kingston DataTraveler 2.0
/dev/sr0|optical|SAMSUNG DVD-ROM SD-616E
___________________________________
|
Also see report
http://murga-linux.com/puppy/viewtopic.php?p=976803#976803
______________________________________________
Last edited by don570 on Mon 11 Dec 2017, 18:56; edited 1 time in total
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9099 Location: Perth, Western Australia
|
Posted: Sun 10 Dec 2017, 20:50 Post subject:
|
|
BarryK wrote: | don570 wrote: | I tried to get the samba server to be recognized by a second computer and
it still fails to connect. Has anybody succeeded ?
__________________________________________________ |
It is about time that I actually used samba myself!
I am going to install Open Media Vault, have downloaded the iso. This is a NAS operating system, based on Debian Stable.
Planning to install on my midi-tower PC, which has two ethernet sockets, 100MB/s and 1000MB/s. Then configure it as a Samba server. |
Never got around to using OpenMediaVault, nor FreeNAS.
But, have got Samba going:
http://bkhome.org/news/201712/toto-link-wifiethernet-routerrepeater.html
Only on Quirky Xerus64 though, which is built with Ubunu 16.04 DEBs.
I will fire up Pyro64 soon, and get Samba going on that.
There is one thing that puzzles me. I can access "puppyshare" from my Win10 machine, but was unable to do the reverse.
I installed network_roxapp_samba 0.9 PET, and clicked on /root/network, which scans for shared folders and creates local folders. It found the local puppyshare, but for the Win10 machine, found it's shared folder but asked for a username and password -- I just entered "root" and "woofwoof" but that didn't work.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9099 Location: Perth, Western Australia
|
Posted: Mon 11 Dec 2017, 06:27 Post subject:
|
|
Ah, found cause of samba troubles...
For the Pyro64 build anyway. 'mount.cifs' and 'umount.cifs' is missing. They are in Quirky Xerus64.
Reason is, Quirky Xerus64 is build with 'cifs-utils' DEB. This has those utilities. They used to be in samba, but got split out to a separate package, 'cifs-utils'.
I need to compile cifs-utils for Pyro64.
I discovered this when I attempted to get one PC running Easy Pyro64, another running Quirky Pyro64, to talk to each other via samba.
Progress, hope to upload Easy Pyro64 0.6.x very soon.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
foxpup

Joined: 29 Jul 2016 Posts: 964 Location: europa near northsea
|
Posted: Mon 11 Dec 2017, 15:19 Post subject:
feedback on pyro32-0.6.1 |
|
Barry
I installed pyro32-0.6.1 frugally on a 64bit efi computer ssd. It boots fine!
Trick is to go from refind to grub2 to the 32bit distro. Not all grub binaries can boot a 32bit distro on a 64bit uefi that way, but the grub from puppy/fatdog can but only after refind!
To my big surprise, after previous bad experiences on 64bit pyro/easy, I get automatic wifi connection on startup!! Everything works right! Connection takes about 50 seconds and the tray icon gets a red cross once or twice before turning green and finally blue again, but all works out well
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5395 Location: Ontario
|
Posted: Mon 11 Dec 2017, 18:41 Post subject:
|
|
The best source of information about setting up a Samba server that I have come across is ...
https://www.theurbanpenguin.com/setting-up-a-samba-server-on-raspberry-pi/
and the youtube video
https://www.youtube.com/watch?v=D1eD60_jhKI&nohtml5=1
It is meant for raspberry pi user but it's useful for linux user as well.
_______________________________________________________
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5395 Location: Ontario
|
Posted: Mon 11 Dec 2017, 20:57 Post subject:
|
|
don570 wrote: |
probedisk -m doesn't work in some distros
BarryK has a script to install pyro64 to a drive i.e. a USB stick
pyro-0.5/4install-quirky-to-drive-mbr
|
Mavrothal has suggestion
Quote: | @don570 I think that is probably BK's relic code as Pyro's (and older versions of) probedisk does not accept any cli arguments. -m, -a, -b, or anything else gives the same result as nothing.
In contrast the probedisk in recent (6+) puppies does have several option and exits if an unknown option is provided.
Delete "-m" from the script code and it should be fine |
|
Back to top
|
|
 |
scsijon
Joined: 23 May 2007 Posts: 1538 Location: the australian mallee
|
Posted: Sat 16 Dec 2017, 02:05 Post subject:
Printing with Cups and Samba |
|
Maybe what you also want is to allow other subnets to print, in your cups config add --remote-any to your cupsctl statement. It's one of those settings that's sometimes there in help and sometimes not otherwise you can only use the local subnet, other subnets connected will fail to print on your printer.
and as for the Samba print servert bit, just read
https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server
I think that will sort it out. Make sure your Samba wasn't built with --disable-cups, or is configured with this switch somewhere, else it will never work.
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9099 Location: Perth, Western Australia
|
Posted: Mon 18 Dec 2017, 09:34 Post subject:
|
|
I have released Easy Pyro64 0.6.4, with QuickSamba, if anyone wants to give that is spin:
http://murga-linux.com/puppy/viewtopic.php?p=977657#977657
I am thinking of upgrading my wireless/ethernet router/repeater, as mine is older technology (slow). Was thinking of this:
https://www.aliexpress.com/item/TOTOLINK-A3002RU-AC1200-Wireless-Dual-Band-Gigabit-Router/32701126467.html
...but, what do they mean by "US plug with box" and "US plug without box"? It is probably obvious... does the meaning jump out at anyone?
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
Sage
Joined: 04 Oct 2005 Posts: 5503 Location: GB
|
Posted: Mon 18 Dec 2017, 11:03 Post subject:
|
|
Quote: | what do they mean by "US plug with box" and "US plug without box" |
It's the mains plug. Either they'll fit one for you or you can DIY. In the UK, they're supposed to supply moulded-on plugs. Not sure what your Law says, but either way, cut it off and fit your own. If you're arrested, show the Court your qualifications and ask them if they'd like a lecture on connecting electrical and electronic equipment. Indicate that your 'usual rates' apply. That usually silences some of the know-it-all pen-pushers with degrees in ancient Greek, no offences to the Greeks.
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 5395 Location: Ontario
|
Posted: Mon 18 Dec 2017, 12:48 Post subject:
|
|
I wonder if they are talking about adaptors. Here's Mele's adaptor.
https://www.aliexpress.com/store/product/Fanless-Windows-10-Mini-PC-Desktop-MeLE-PCG35-Apo-4GB-32GB-Intel-Apollo-Lake-Celeron-J3455/715968_32822268228.html
'With box' would mean that it is adaptable to regions like in picture.
'Without a box' would mean it is all moulded tightly together.
______________________________________________
Description |
|
Filesize |
111.93 KB |
Viewed |
207 Time(s) |

|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9099 Location: Perth, Western Australia
|
Posted: Mon 18 Dec 2017, 17:39 Post subject:
|
|
Got up this morning, and suddenly realised what it means. That link is the manufacturer's sales outlet, so they are optionally selling it without the fancy box that these things normally come in. Saves them a couple of dollars.
That's my reasoning anyway.
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
|
|
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 You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|