LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Closed Thread
  Search this Thread
Old 06-07-2016, 11:10 PM   #1201
alex14641
Member
 
Registered: Feb 2016
Distribution: Slackware64_14.1, Slackware64_14.2, Slackware64_current
Posts: 182

Rep: Reputation: Disabled

kernel 4.4.13 is available: https://cdn.kernel.org/pub/linux/ker...-4.4.13.tar.xz
 
Old 06-07-2016, 11:17 PM   #1202
cwizardone
LQ Guru
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 5,028
Blog Entries: 1

Rep: Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523
How about a special request??

I find the sign-on/splash screen that Alien BOB uses for Slackware Live quite attractive. The largest font on the screen is, of course, "Slackware Linux," but what I really like is what it says in the bottom right-hand corner, "When you get serious."
I tried saving it and converting it into a bitmap file, but it doesn't work with -current. Would it be possible to included it in -current or, if that isn't possible, anyone know how to make it work* with -current?
Many thanks!



*Yes, I know you have to re-run lilo.

Last edited by cwizardone; 06-07-2016 at 11:22 PM.
 
Old 06-08-2016, 12:09 AM   #1203
ecd102
LQ Newbie
 
Registered: Sep 2011
Distribution: Slackware-current
Posts: 14

Rep: Reputation: Disabled
How about this patch for samba.Slackbuild ?
(I know the sbin comment is ugly, but works as expected.)

Code:
@@ -202,6 +202,16 @@
 cat $CWD/slack-desc > $PKG/install/slack-desc
 zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh

+# Migrate from /etc/samba/private to /var/lib/samba/private
+# The "#../sbin/" comment tells convertpkg-compat32 to delete the line.
+cat << EOF >> $PKG/install/doinst.sh
+if [ -d /etc/samba/private ]; then             #../sbin/
+  cp -a /etc/samba/private /var/lib/samba/     #../sbin/
+  rm -rf /etc/samba/private                    #../sbin/
+  chmod 700 /var/lib/samba/private             #../sbin/
+fi                                             #../sbin/
+EOF
+
 cat << EOF

 *** Be sure the package contains:
Quote:
Originally Posted by ivandi View Post
It would be nice to make samba's doinst.sh to move the contents of /etc/samba/private to the new location /var/lib/samba/private.

Just in case someone who upgrades from 14.1 and has a bunch of samba users didn't look at the ChangeLog.


Cheers
 
Old 06-08-2016, 04:30 AM   #1204
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,286
Blog Entries: 18

Rep: Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047
The 'sbin' bit is very ugly. You're also including absolute paths in the doinst.sh it generates, which is wrong.
 
1 members found this post helpful.
Old 06-08-2016, 04:56 AM   #1205
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,449
Blog Entries: 15

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Any directories and moves should be done prior to packaging, not post-install. The only thing you should be doing post-install in doinst.sh is renaming .new files, and creating symlinks.
 
Old 06-08-2016, 05:09 AM   #1206
GazL
LQ Guru
 
Registered: May 2008
Posts: 5,286
Blog Entries: 18

Rep: Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047Reputation: 3047
Reaper, I think you're missing the point of what he's trying to do: migrate data on an existing install from the old location to the new. You can't do that "prior to packaging".

Whether that is actually something that should be automated, or left to the admin to manage... is a different argument.

Anyway, seems like a moot issue anyway as Pat has already done it:
Code:
n/samba-4.4.4-x86_64-1.txz:  Upgraded.
  Migrate any .tdb files in /etc/samba/private to /var/lib/samba/private.
  Thanks to ivandi.

Last edited by GazL; 06-08-2016 at 05:16 AM.
 
1 members found this post helpful.
Old 06-08-2016, 06:29 AM   #1207
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Hi,

It was mentioned sometime before:
could UUID= be added for resume device in the initrd?

Also, could an option be added to remove /boot/initrd-tree after the initrd is created?
(That would be purely cosmetic, for purists).

--
Best regards,
Andrzej Telszewski
 
Old 06-08-2016, 08:57 AM   #1208
cwizardone
LQ Guru
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 5,028
Blog Entries: 1

Rep: Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523Reputation: 2523
libjpeg-turbo-1.5.0.

Quote:
Significant changes relative to 1.5 beta1:

Fixed an issue whereby a malformed motion-JPEG frame could cause the "fast path" of libjpeg-turbo's Huffman decoder to read from uninitialized memory.

Added libjpeg-turbo version and build information to the global string table of the libjpeg and TurboJPEG API libraries. This is a common practice in other infrastructure libraries, such as OpenSSL and libpng, because it makes it easy to examine an application binary and determine which version of the library the application was linked against.

Fixed a couple of issues in the PPM reader that would cause buffer overruns in cjpeg if one of the values in a binary PPM/PGM input file exceeded the maximum value defined in the file's header. libjpeg-turbo 1.4.2 already included a similar fix for ASCII PPM/PGM files. Note that these issues were not security bugs, since they were confined to the cjpeg program and did not affect any of the libjpeg-turbo libraries.

Fixed an issue whereby attempting to decompress a JPEG file with a corrupt header using the tjDecompressToYUV2() function would cause the function to abort without returning an error and, under certain circumstances, corrupt the stack. This only occurred if tjDecompressToYUV2() was called prior to
calling tjDecompressHeader3(), or if the return value from tjDecompressHeader3() was ignored (both cases represent incorrect usage of the TurboJPEG API.)

Fixed an issue in the ARM 32-bit SIMD-accelerated Huffman encoder that prevented the code from assembling properly with clang.

The jpeg_stdio_src(), jpeg_mem_src(), jpeg_stdio_dest(), and jpeg_mem_dest() functions in the libjpeg API will now throw an error if a source/destination manager has already been assigned to the compress or decompress object by a different function or by the calling program. This prevents these functions from attempting to reuse a source/destination manager structure that was allocated elsewhere, because there is no way to ensure that it would be big enough to accommodate the new source/destination manager....
https://github.com/libjpeg-turbo/lib...ases/tag/1.5.0
 
Old 06-08-2016, 10:14 AM   #1209
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,449
Blog Entries: 15

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
www.kernel.org

Linux-4.6.1 is now available. Testing it myself. No hiccups yet.

Quote:
Originally Posted by atelszewski View Post
Hi,

It was mentioned sometime before:
could UUID= be added for resume device in the initrd?

Also, could an option be added to remove /boot/initrd-tree after the initrd is created?
(That would be purely cosmetic, for purists).

--
Best regards,
Andrzej Telszewski
Generally, you add the resume=/path/to/swap_partition (such as resume=/dev/sda3) to the kernel command line of your bootloader and reinstall it to the disk. I'm not sure if using UUID is any different.

Last edited by ReaperX7; 06-08-2016 at 10:20 AM.
 
Old 06-08-2016, 10:51 AM   #1210
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by ReaperX7 View Post
Generally, you add the resume=/path/to/swap_partition (such as resume=/dev/sda3) to the kernel command line of your bootloader and reinstall it to the disk. I'm not sure if using UUID is any different.
Using UUID is different in that way, you use UUID instead of the path
To be clear, UUID (and I mean exactly the same format as for root device) for resume device is not supported as of now.

--
Best regards,
Andrzej Telszewski
 
Old 06-08-2016, 11:51 AM   #1211
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 912

Rep: Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806
Hello,

Quote:
Originally Posted by atelszewski View Post
Using UUID is different in that way, you use UUID instead of the path
To be clear, UUID (and I mean exactly the same format as for root device) for resume device is not supported as of now.

--
Best regards,
Andrzej Telszewski
resume=/dev/disk/by-uuid/<SWAP-PARTITION-UUID> works well here. The same for resume=/dev/disk/by-label/<SWAP-PARTITION-LABEL>

--
SeB

Last edited by phenixia2003; 06-08-2016 at 11:52 AM.
 
2 members found this post helpful.
Old 06-08-2016, 12:00 PM   #1212
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,483

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
Originally Posted by phenixia2003 View Post
Hello, ...<<snip>>...
resume=/dev/disk/by-uuid/<SWAP-PARTITION-UUID> works well here. The same for resume=/dev/disk/by-label/<SWAP-PARTITION-LABEL>
Useful info. That should work !

Thanks SeB !

-- kjh

Code:
#ls -la /dev/disk/by-uuid/

total 0
drwxr-xr-x 2 root root 220 Jun  8 08:16 .
drwxr-xr-x 7 root root 140 Jun  8 08:16 ..
lrwxrwxrwx 1 root root  10 Jun  8 02:27 5acd6282-c286-4d15-b06e-36420b030bc3 -> ../../sdd1
lrwxrwxrwx 1 root root  10 Jun  8 02:27 5eee1fe7-ad47-4da0-9a45-c38925455165 -> ../../sda2
lrwxrwxrwx 1 root root  10 Jun  8 02:27 5fe37a8b-5c03-4b12-937b-55adc8c744ad -> ../../sdb2
lrwxrwxrwx 1 root root  10 Jun  8 02:27 7b4dd804-8e8d-4862-a777-1744bf1ce4c4 -> ../../sda1
lrwxrwxrwx 1 root root  10 Jun  8 02:27 8A0CCE5C0CCE42C5 -> ../../sdc1
lrwxrwxrwx 1 root root  10 Jun  8 02:27 8AD0-411D -> ../../sdc2
lrwxrwxrwx 1 root root  10 Jun  8 02:27 962d12e7-519d-42a2-958e-c8d0d1cdc6c5 -> ../../sdb1
lrwxrwxrwx 1 root root  10 Jun  8 02:27 E61CD1121CD0DE9D -> ../../sdc4
lrwxrwxrwx 1 root root  10 Jun  8 02:27 e1781832-5e18-46a6-832f-17b7ca96c075 -> ../../sda3
Thanks !

-- kjh
 
Old 06-08-2016, 12:31 PM   #1213
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by phenixia2003 View Post
resume=/dev/disk/by-uuid/<SWAP-PARTITION-UUID> works well here. The same for resume=/dev/disk/by-label/<SWAP-PARTITION-LABEL>
My request is about EXACTLY the same format as used for root device.

--
Best regards,
Andrzej Telszewski
 
Old 06-08-2016, 01:45 PM   #1214
phenixia2003
Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 912

Rep: Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806Reputation: 806
Hello,

Quote:
Originally Posted by atelszewski View Post
Hi,


My request is about EXACTLY the same format as used for root device.
You can use /dev/disk/by-uuid for root partition too, like in the extlinux entry below :
Code:
LABEL Main
  MENU LABEL Slackware64 14.1 [ Kernel-3.10.30 ]
  KERNEL /boot/vmlinuz-generic-3.10.30
  INITRD /boot/initrd-generic-3.10.30-with-uuid.gz
  APPEND root=/dev/disk/by-uuid/ba72420c-622d-4f8c-a6ee-3551b59066c1 ro vt.default_utf8=1 vga=792 nomodeset resume=/dev/disk/by-uuid/f123c1c3-c201-4fe7-b22a-01c659caa3bc

--
SeB
 
1 members found this post helpful.
Old 06-08-2016, 01:52 PM   #1215
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 890

Rep: Reputation: Disabled
Hi,

OK, let me make myself clear:
I would like to have UUID= be supported by resume device.
And exactly that. I know some alternatives, but what I mean is UUID=

I know I could implement obtaining partition list and correct device over GSM network.

But what I mean is UUID= for resume device. Period.

--
Best regards,
Andrzej Telszewski
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to show the current time at the top in the current shell Always ? rohitchauhan Linux - General 5 04-09-2014 04:05 PM
Slackware ARM (current) epic mistake: the current Android kernels are kicked out! Darth Vader Slackware 16 08-25-2013 05:36 PM
[SOLVED] setup fails on most current Slackware-current March 26, 2012 AlleyTrotter Slackware 15 04-09-2012 07:05 AM
Observation of Feb -current vs March -current Hangaber Slackware 14 03-12-2010 09:26 AM
cvs diff the most current and second last current version powah Linux - Software 1 03-30-2006 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration