Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-09-2013, 09:47 PM
|
#1
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,361
Rep: 
|
All owner:group set to 4015:4015 on Slackware trees from 13.37 through current??
For slint I maintain local mirrors of 13.37, 14.0 and current in 32 and 64 bit versions. I just ran following script and now have all files' owner:group set to 4015:4015 in all trees.
What can have happened, locally or remotely?
Code:
bash-4.2# cat maj.sh
#!/bin/bash
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware-13.37 /media/versions
echo "maj 13.37 terminée."
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware64-13.37 /media/versions
echo "maj 64-13.37 terminée."
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware-14.0 /media/versions
echo "maj 14.0 terminée."
rsync -avzPH --del rsync://slackware.mirrors.tds.net/slackware/slackware64-14.0 /media/versions
echo "maj 64-14.0 terminée."
rsync -avzPH --del rsync://ftp.slackware.com/slackware/slackware-current /media/versions
echo "maj current terminée."
rsync -avzPH --del rsync://ftp.slackware.com/slackware/slackware64-current /media/versions
echo "maj 64-current terminée."
bash-4.2#
And the mirror list is empty on http://mirrors.slackware.com/mirrorlist/
Last edited by Didier Spaier; 10-10-2013 at 03:52 AM.
Reason: s/user/owner/g
|
|
|
10-09-2013, 09:53 PM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,868
|
the mirror list is empty since it was recently rebuilt from scratch due to hard drive failure and i guess Robby is still working on other thing, but it will be fixed soon 
|
|
|
10-09-2013, 09:57 PM
|
#3
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,361
Original Poster
Rep: 
|
Quote:
Originally Posted by willysr
the mirror list is empty since it was recently rebuilt from scratch due to hard drive failure and i guess Robby is still working on other thing, but it will be fixed soon 
|
Thanks for the info, Willy.
|
|
|
10-09-2013, 11:12 PM
|
#4
|
Member
Registered: Sep 2011
Posts: 925
|
Quote:
Originally Posted by Didier Spaier
For slint I maintain local mirrors of 13.37, 14.0 and current in 32 and 64 bit versions. I just ran following script and now have all files' user:group set to 4015:4015 in all trees.
|
Use -rlpt instead of -a. Also instead of calling rsync multiple times (increasing server load) you can use multiple sources with one rsync call:
Code:
#!/bin/sh
MIRROR=slackware.mirrors.tds.net
SOURCES=${MIRROR}
TARGET=/media/versions
for VERSION in 12.1 12.2
do
SOURCES="${SOURCES}::slackware/slackware-${VERSION} "
done
for VERSION in 13.0 13.1 13.37 14.0
do
SOURCES="${SOURCES}::slackware/slackware-${VERSION} "
SOURCES="${SOURCES}::slackware/slackware64-${VERSION} "
done
rsync -rlpt --delete -P ${SOURCES} ${TARGET}
|
|
2 members found this post helpful.
|
10-10-2013, 03:51 AM
|
#5
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,361
Original Poster
Rep: 
|
It worked, thanks jtsn.
I just kept the -H option to preserve hard links.
Last edited by Didier Spaier; 10-10-2013 at 03:53 AM.
|
|
|
10-10-2013, 04:04 AM
|
#6
|
LQ Veteran
Registered: May 2008
Posts: 7,150
|
I run my rsync as a non-root user specifically created for the purpose, so everything ends up being owned by my local user rather than some arbitrary foreign UID:GID
|
|
1 members found this post helpful.
|
10-10-2013, 04:52 AM
|
#7
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,361
Original Poster
Rep: 
|
Quote:
Originally Posted by GazL
I run my rsync as a non-root user specifically created for the purpose, so everything ends up being owned by my local user rather than some arbitrary foreign UID:GID
|
Yes, omitting -og will allow that.
|
|
|
10-10-2013, 12:24 PM
|
#8
|
Member
Registered: Sep 2011
Posts: 925
|
Quote:
Originally Posted by Didier Spaier
I just kept the -H option to preserve hard links.
|
Are there hard links on the mirrors?
|
|
|
10-10-2013, 12:42 PM
|
#9
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,361
Original Poster
Rep: 
|
Quote:
Originally Posted by jtsn
Are there hard links on the mirrors?
|
Yes, here is an example (mirrored from USOSL):
Code:
bash-4.2$ ls -l /media/versions/slackware{,64}-current/usb-and-pxe-installers/
/media/versions/slackware-current/usb-and-pxe-installers/:
total 50096
-rw-r--r-- 2 didier users 31203 mars 21 2011 README_PXE.TXT
-rw-r--r-- 2 didier users 9197 sept. 25 06:33 README_USB.TXT
drwxr-xr-x 2 didier users 4096 juin 26 2007 etherboot
-rw-r--r-- 1 didier users 882 mars 27 2013 pxelinux.cfg_default
-rw-r--r-- 1 didier users 51225600 oct. 2 04:36 usbboot.img
-rw-r--r-- 2 didier users 15697 sept. 25 07:14 usbimg2disk.sh
/media/versions/slackware64-current/usb-and-pxe-installers/:
total 37068
-rw-r--r-- 2 didier users 31203 mars 21 2011 README_PXE.TXT
-rw-r--r-- 2 didier users 9197 sept. 25 06:33 README_USB.TXT
-rw-r--r-- 1 didier users 574 mars 27 2013 pxelinux.cfg_default
-rw-r--r-- 1 didier users 37889024 oct. 2 03:02 usbboot.img
-rw-r--r-- 2 didier users 15697 sept. 25 07:14 usbimg2disk.sh
bash-4.2$
EDIT and there was a hard link in slackware64-current between /isolinux/initrd.img and /EFI/BOOT/initrd.img before the "grubification" of /EFI/BOOT.
Last edited by Didier Spaier; 10-10-2013 at 01:26 PM.
Reason: EDIT added
|
|
|
10-10-2013, 01:03 PM
|
#10
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Only a "ls -i" will show whether there are hard links: The two files' inode numbers will have to be identical.
Eric
|
|
|
10-10-2013, 01:08 PM
|
#11
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,361
Original Poster
Rep: 
|
Code:
bash-4.2$ ls -li /media/versions/slackware{,64}-current/usb-and-pxe-installers/
/media/versions/slackware-current/usb-and-pxe-installers/:
total 50096
33822333 -rw-r--r-- 2 didier users 31203 mars 21 2011 README_PXE.TXT
33823360 -rw-r--r-- 2 didier users 9197 sept. 25 06:33 README_USB.TXT
33822315 drwxr-xr-x 2 didier users 4096 juin 26 2007 etherboot
33822336 -rw-r--r-- 1 didier users 882 mars 27 2013 pxelinux.cfg_default
33822756 -rw-r--r-- 1 didier users 51225600 oct. 2 04:36 usbboot.img
33823417 -rw-r--r-- 2 didier users 15697 sept. 25 07:14 usbimg2disk.sh
/media/versions/slackware64-current/usb-and-pxe-installers/:
total 37068
33822333 -rw-r--r-- 2 didier users 31203 mars 21 2011 README_PXE.TXT
33823360 -rw-r--r-- 2 didier users 9197 sept. 25 06:33 README_USB.TXT
17439012 -rw-r--r-- 1 didier users 574 mars 27 2013 pxelinux.cfg_default
17432645 -rw-r--r-- 1 didier users 37889024 oct. 2 03:02 usbboot.img
33823417 -rw-r--r-- 2 didier users 15697 sept. 25 07:14 usbimg2disk.sh
bash-4.2$
The '2' before the owner shows that it's a hard link too (PV told me, so that _should_be_true_ :-)
PS Eric, though that was not intentional, stuff in that example are mostly your work. Thanks 
Last edited by Didier Spaier; 10-10-2013 at 01:20 PM.
Reason: PS added.
|
|
|
10-10-2013, 02:35 PM
|
#12
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Ah, indeed.
|
|
|
All times are GMT -5. The time now is 03:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|