LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-26-2018, 11:28 PM   #1
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 269

Rep: Reputation: 26
Question Slackware64 14.2 - How change something of boot


Hi there, 2 days ago, i had installed Slackware64 14.2, yes a fresh install. i install grub instead of "LILO" because i am using the "huge.s" / "Huge Kernel" i had the follow dunnos :

1. How i can set grub2 generates the configuration file using "UUID" instead of "/dev/sdX#"

2. How to set resolution to 1024x768x32 starting from grub and 1024x600x32 (For netbook)

3. Because i installed the huge kernel, why i can see the image of tux on the superior part of screen ? is possibly activated that using Huge Kernel

i mean when the configuracion file is generated.

how i can set by default in the kernel line instead:
Code:
linux	/vmlinuz-huge-4.4.111 root=/dev/sda3 ro
Generate something like :
Code:
linux	/vmlinuz-huge-4.4.111 root=UUID=1c07b419-4a08-4326-b4c4-fd9ac9cce46e ro
4. Someone knows a method to install "Plymouth" and work fine ?

Thanks for anybody can help me to solve my dunnos.

Last edited by inukaze; 01-26-2018 at 11:30 PM.
 
Old 01-27-2018, 01:10 AM   #2
worsel
Member
 
Registered: Feb 2008
Location: Washington State, USA
Distribution: Slackware 14.2, Slackware-from-Scratch
Posts: 241

Rep: Reputation: 45
Quote:
1. How i can set grub2 generates the configuration file using "UUID" instead of "/dev/sdX#"
https://www.gnu.org/software/grub/ma...l#SEC_Contents
 
Old 01-27-2018, 02:19 AM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
1.
I believe you have to set this somewhere:
Code:
GRUB_DISABLE_LINUX_UUID=false
2.
Use the vga= parameter:
https://www.linuxquestions.org/quest...a-mode-425695/

3.
Is that the "tux logo" whilst booting? That's normal, slackware has the linux logo setting enabled in its kernel.

4.
Plymouth wouldn't work with the huge kernel. You'd need to generate an initrd and boot from the generic kernel using that initrd in your bootloader config.

You can generate an initrd quite easily:
Code:
# `/usr/share/mkinitrd/mkinitrd_command_generator.sh | tail -n1`
But plymouth needs some parts to reside inside initrd.gz for it to work correctly, modifying that script to add plymouth support could be rather tricky (i'm not sure how it works to be honest).

Last edited by coralfang; 01-27-2018 at 02:27 AM.
 
1 members found this post helpful.
Old 01-27-2018, 12:33 PM   #4
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,213

Rep: Reputation: 297Reputation: 297Reputation: 297
I have also grub on my slackware and usually is just a matter of running "grub-mkconfig -o /boot/grub/grub.cfg" after updating the kernel.
 
Old 01-27-2018, 03:48 PM   #5
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 269

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by worsel View Post
Thanks for the link, but i don't find anything i need
 
Old 01-27-2018, 04:01 PM   #6
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 269

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by coralfang View Post
1.
I believe you have to set this somewhere:
Code:
GRUB_DISABLE_LINUX_UUID=false
Is the same. don't have any effect is set to false

2.
Use the vga= parameter:
https://www.linuxquestions.org/quest...a-mode-425695/
the vga parameter is deprecated. with grub2 i must edit the file /etc/default/grub this is mine :

Code:
  # If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=15
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset video=uvesafb:mode_option=1024x768-24,mtrr=3,scroll=ywrap"
GRUB_CMDLINE_LINUX="splash quiet"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
  GRUB_GFXMODE=1024x768x24
  GRUB_GFXPAYLOAD_LINUX=keep
  GRUB_BACKGROUND="/boot/grub/background/SlackFreedom_8Bits.png"

# Font used on the graphical terminal:
 GRUB_FONT=/usr/share/grub/dejavusansmono.pf2 # Which this type of fonts are free and not open?

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
 GRUB_DISABLE_LINUX_UUID=false

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
The background image must be in 8 Bits (256 Colours) and not indexed. in the resolution set for grub, in my case 1024x768 i use ImageMagick tool "convert" for convert from 24 bpp to 8 bpp

Code:
convert -colors 256 input24bpp.png output8bpp.png
3.
Is that the "tux logo" whilst booting? That's normal, slackware has the linux logo setting enabled in its kernel.

This appear with huge kernel, when i set my resolution in the /etc/default/grub

4.
Plymouth wouldn't work with the huge kernel. You'd need to generate an initrd and boot from the generic kernel using that initrd in your bootloader config.

You can generate an initrd quite easily:
Code:
# `/usr/share/mkinitrd/mkinitrd_command_generator.sh | tail -n1`
But plymouth needs some parts to reside inside initrd.gz for it to work correctly, modifying that script to add plymouth support could be rather tricky (i'm not sure how it works to be honest).
¿ You know some alternative for huge kernel ?

Because i installed the same distro in a Netbook for a client and the generic kernel can't boot with it, i try the installation various times, but with generic kernel ever the same result, impossible to boot the netbook.

i am prefer watch an animation instead of verbose output of booting of huge kernel

That client don't know too much about computers, and well i will try to explain it but is possible feels fear of that output when watch it.

i am thinking to make my own script for change "root=/dev/sdX#" by "root=UUID=<DEVICE_ID>"

i need make the replace with sed or another thing, came with the system. i am trying :
Code:
blkid | grep sda3 | awk '{print $3}'
UUID="1c07b419-4a08-4326-b4c4-fd9ac9cce46e"

blkid | grep sda3 | awk '{print $3}' | sed 's/[=UID]*.//' | sed 's/["].*//'
1c07b419-4a08-4326-b4c4-fd9ac9cce46e

#My problem is the replacement with sed
sed -i "s|${root=/dev/sda3}|${blkid | grep sda3 | awk '{print $3}' | sed 's/[=UID]*.//' | sed 's/["].*//'}|g" grub.cfg

bash: s|${root=/dev/sda3}|${blkid | grep sda3 | awk '{print $3}' | sed 's/[=UID]*.//' | sed 's/["].*//'}|g: sustitución errónea
someone knows how i can replace with sed
"root=/dev/sda3"

by

"root=UUID=$(blkid | grep sda3 | awk '{print $3}' | sed 's/[=UID]*.//' | sed 's/["].*//')

yes the output of command.

Last edited by inukaze; 01-27-2018 at 04:05 PM.
 
Old 01-27-2018, 04:06 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
set your grub to display a rez during boot
Code:
userx [ ~ ]$ cat  /hd/etc/default/grub
# If you change this file, run grub-mkconfig -o /boot/grub/grub.cfg
# afterwards to update /boot/grub/grub.cfg.

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=$( sed 's/Slackware /Slackware-/' /etc/slackware-version )
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
                                     [16:55 x86_64 4.14.13-NuTyX-lts userx@nutyx]
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
GRUB_GFXMODE=1600x900x32,1024x768x32,auto
GRUB_GFXPAYLOAD_LINUX=keep

# Font used on the graphical terminal:
#GRUB_FONT=/usr/share/grub/dejavusansmono.pf2

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
that is my grub in my Slack.
with the grub update I just took the commands and put them into a script and put that into /usr/local/bin/update-grub
Code:
userx [ ~ ]$ cat /hd/usr/local/bin/update-grub
grub-mkconfig -o /boot/grub/grub.cfg
saves having to remember it. chmod +x on the file.

UUID to fstab, blkid and get your UUID's and just comment out the orginal and add them

Code:
UUID=xxxxx // then copy what is already there from the orginal

Last edited by BW-userx; 01-27-2018 at 04:11 PM.
 
Old 01-27-2018, 05:28 PM   #8
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 269

Original Poster
Rep: Reputation: 26
Or someone know a Distribution without Systemd

with GRUB2 using UUID by default
can install DockBarX
can install PlyMouth

better if a Slackware derative. well any distro without SystemD for me is a good choise. except Devuan. Devuan can't install on Netbook (Canamita MG101A3)
 
Old 01-27-2018, 06:52 PM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by inukaze View Post
Or someone know a Distribution without Systemd

with GRUB2 using UUID by default
can install DockBarX
can install PlyMouth

better if a Slackware derative. well any distro without SystemD for me is a good choise. except Devuan. Devuan can't install on Netbook (Canamita MG101A3)
UUID is simple replacement. do it manually.
Code:
userx [ ~ ]$ sudo blkid
/dev/sda1: LABEL="System Reserved" UUID="7E88DA2288D9D8AB" TYPE="ntfs" PARTUUID="0f3f3740-01"
/dev/sda2: UUID="01D285E8BED961F0" TYPE="ntfs" PARTUUID="0f3f3740-02"
/dev/sda3: UUID="FC9AF6529AF608C2" TYPE="ntfs" PARTUUID="0f3f3740-03"
/dev/sda5: UUID="d8d528f3-7b38-4942-b5fd-e6ab48233240" TYPE="ext4" PARTUUID="0f3f3740-05"
/dev/sda6: UUID="0fc6f764-70a5-4890-8194-286d83e49680" TYPE="ext4" PARTUUID="0f3f3740-06"
/dev/sda7: UUID="b27bf034-8100-4341-90ef-7a9f11cf7e85" TYPE="ext4" PARTUUID="0f3f3740-07"
/dev/sdb1: UUID="724c18dd-e3b7-42b0-ae97-16bed9a39793" UUID_SUB="a9cc300e-26b4-428d-86ea-c9cd8ace1693" TYPE="btrfs" PARTU
just take the UUID copy it remove the " " quote marks, open a editor un root sudo nano, sudo geany etc.. then open fstab

Code:
userx [ ~ ]$ sudo nano  /hd/etc/fstab


/dev/mmcblk0p1   swap             swap        defaults         0   0

#comment out the orginal paths
#/dev/sda5        /                ext4        defaults         1   1
#/dev/sda7        /home            ext4        defaults         1   2
#add the UUIDs 
UUID=d8d528f3-7b38-4942-b5fd-e6ab48233240 / ext4 defaults      1    1
UUID=b27bf034-8100-4341-90ef-7a9f11cf7e85 /home ext4 defaults   1   2

#then save file after you've added all of your changes.
#Just comment out the originals for save keeping
leave you GRUB file comment to not use UUIDs commented out.

Last edited by BW-userx; 01-27-2018 at 06:56 PM.
 
Old 01-28-2018, 12:31 AM   #10
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 269

Original Poster
Rep: Reputation: 26
The point is not if UUID is a simple replacement, my dunno is why is not the default in Slackware 14.2?

i am take in consideration the migration because with Slackware 14.2 after literal a year i don't find a way to

1 - Folder Chooser of Xfce4 works, when i want set Backgrounds directory, ever is blocked (This have a dump workaround, but the point is that should be work)

2 - Install , Configure, Activate/Use :

* plymouth # bootsplash with animation support
* mdm # Display Manager / GDM2 Fork
* mugshot # Tool for edit user profile information
* menulibre # Tool for edit menus
* dockbarx # Taskbar / Panel
* gnote or tomboy # Tool for takes quick notes, i don't like the xfce4-notes
* Trinity Desktop Environment # Desktop Environment / KDE3 Fork

at the moment i know in Slackware 14.2 some software like:
* dockmanager # dockmanager plugins
* zeitgeist # recently used file list
* cardapio-bzr # standalone dock

i use its not possible to install yet. i hope when exist Slackware 17. i can use this softwares without problems.
 
Old 01-28-2018, 04:09 AM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by inukaze View Post
The point is not if UUID is a simple replacement, my dunno is why is not the default in Slackware 14.2?
Because this would need a change in the installer that nobody had the time to make so far, I assume. Bear in mind that the Slackware team is not a big one.

Quote:
Originally Posted by inukaze View Post
i am take in consideration the migration because with Slackware 14.2 after literal a year i don't find a way to

1 - Folder Chooser of Xfce4 works, when i want set Backgrounds directory, ever is blocked (This have a dump workaround, but the point is that should be work)

2 - Install , Configure, Activate/Use :

* plymouth # bootsplash with animation support
* mdm # Display Manager / GDM2 Fork
* mugshot # Tool for edit user profile information
* menulibre # Tool for edit menus
* dockbarx # Taskbar / Panel
* gnote or tomboy # Tool for takes quick notes, i don't like the xfce4-notes
* Trinity Desktop Environment # Desktop Environment / KDE3 Fork

at the moment i know in Slackware 14.2 some software like:
* dockmanager # dockmanager plugins
* zeitgeist # recently used file list
* cardapio-bzr # standalone dock

i use its not possible to install yet. i hope when exist Slackware 17. i can use this softwares without problems.
I don't think that Slackware will ever have packages' repositories as complete as Debian or derivatives (including the non official ones). So if that is very important for you, better use Debian, Ubuntu or Mint.

Also, bear in mind that not only the packages you listed would need to be provided but also all their dependencies, upgraded as need be at least for security fixes. Let me give just one example.

Out of curiosity (in Slint we already ship gdm2, lxdm and lightdm) I downloaded a source archive for mdm-2.0.19 from this repo: https://github.com/linuxmint/mdm/releases
I quickly came across this running ./configure:
Code:
configure: error: Package requirements (gtk+-2.0 >= 2.24.0 webkit-1.0 >= 1.3.10) were not met:

No package 'webkit-1.0' found
Game over as far as I am in concern: I could package webkit, but certainly not upgrade this package very often, which would be necessary to bring the needed security fixes as noted in this article.

Last edited by Didier Spaier; 01-28-2018 at 04:11 AM.
 
Old 01-28-2018, 08:10 AM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Yep start trying to get your hands dirty and create package you want in slack, or any distro that is out there with all of their respective dependenies. If you want to make it work the way you want it to. Then open the source code and modify it to do what you want it to do.

All of that from the source not a distro repo. Then make it conform to the repo of whichever distro you're creating it for. From scratch, and you will have to do that all by yourself.


You'll get a better insight of what all goes into just one package, then think bigger and bigger. An entire operating system and everything else that everyone else wants it to have installed on it. Every configuration script that needs to be written for every single one of the dependenies and the core software to be installed and in the exact order it has to be installed in. Then make it an automatic process.


It’s not as easy as frying an egg.

3Rd party apps that do not fully work, xfce4 and the desktop background is not Slackware`s issue. It’s xfce4 btw.

Last edited by BW-userx; 01-28-2018 at 08:25 AM.
 
Old 01-28-2018, 03:33 PM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by inukaze View Post
The point is not if UUID is a simple replacement, my dunno is why is not the default in Slackware 14.2?

i am take in consideration the migration because with Slackware 14.2 after literal a year i don't find a way to

1 - Folder Chooser of Xfce4 works, when i want set Backgrounds directory, ever is blocked (This have a dump workaround, but the point is that should be work)

2 - Install , Configure, Activate/Use :

* plymouth # bootsplash with animation support
* mdm # Display Manager / GDM2 Fork
* mugshot # Tool for edit user profile information
* menulibre # Tool for edit menus
* dockbarx # Taskbar / Panel
* gnote or tomboy # Tool for takes quick notes, i don't like the xfce4-notes
* Trinity Desktop Environment # Desktop Environment / KDE3 Fork

at the moment i know in Slackware 14.2 some software like:
* dockmanager # dockmanager plugins
* zeitgeist # recently used file list
* cardapio-bzr # standalone dock

i use its not possible to install yet. i hope when exist Slackware 17. i can use this softwares without problems.
Unless you change your mind set, I think Slackware is not for you.
 
Old 01-28-2018, 11:22 PM   #14
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 269

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by Alien Bob View Post
Unless you change your mind set, I think Slackware is not for you.
i had a year using Slackware and i think is for me (i had write a spanish guide, the unique part of my guide i must complete its the minimal installation and minimal installation + minimal graphical environment), just i like have a method to install and use that software without too many complications like analyse and re-write mayor part of source code of each applications i mention in that list.

because things like : mugshot and menulibre should be part of the official installation when the user select xfce4 like default environtment.
 
Old 01-29-2018, 01:24 AM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by inukaze View Post
because things like : mugshot and menulibre should be part of the official installation when the user select xfce4 like default environment.
Everyone can think that something should be part of the official installation, but it's just not possible to include every package on earth, can't you understand that Slackware has a not enough big team for that?

But maybe you could contribute SlackBuilds to http://slackbuilds.org. So far you have got a lot of help from the community, maybe it's time to give something back instead of always asking?
 
  


Reply



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] Slackware64 14.1 won't boot after I did this... irgunII Slackware 16 06-30-2014 11:07 AM
Change Default Mount Option for Automount in Slackware64 14.1 ack_iix Slackware 7 03-18-2014 04:36 PM
Slackware64 14.1 won't boot... irgunII Slackware 21 02-06-2014 11:40 AM
Users unable to change password using SWAT on Slackware64 14.0 stureedy Slackware 1 10-07-2013 01:29 PM
[SOLVED] Slackware64 won't boot? JamesGT Slackware 1 02-20-2011 10:09 AM

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

All times are GMT -5. The time now is 06:59 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
Open Source Consulting | Domain Registration