Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 10 Dec 2017, 20:46
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Quirky Pyro64 version 0.6 (alpha) -- and Pyro32 0.5
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 14 of 14 [200 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14
Author Message
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8343
Location: Perth, Western Australia

PostPosted: 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.

_________________
http://barryk.org/news/
Back to top
View user's profile Send private message Visit poster's website 
ally


Joined: 19 May 2012
Posts: 1636
Location: lincoln, uk

PostPosted: 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.)

Smile
Back to top
View user's profile Send private message Visit poster's website 
scsijon

Joined: 23 May 2007
Posts: 1260
Location: the australian mallee

PostPosted: 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
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4764
Location: Kingwood, TX

PostPosted: 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
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 4799
Location: Ontario

PostPosted: Yesterday, at 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) Laughing ...

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
___________________________________

 


______________________________________________
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 14 of 14 [200 Posts]   Goto page: Previous 1, 2, 3, ..., 12, 13, 14
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0587s ][ Queries: 15 (0.0044s) ][ GZIP on ]