LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64 14.2 - How change something of boot (https://www.linuxquestions.org/questions/slackware-14/slackware64-14-2-how-change-something-of-boot-4175622509/)

inukaze 01-26-2018 11:28 PM

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.

worsel 01-27-2018 01:10 AM

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

coralfang 01-27-2018 02:19 AM

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

saxa 01-27-2018 12:33 PM

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.

inukaze 01-27-2018 03:48 PM

Quote:

Originally Posted by worsel (Post 5812057)

Thanks for the link, but i don't find anything i need

inukaze 01-27-2018 04:01 PM

Quote:

Originally Posted by coralfang (Post 5812069)
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.

BW-userx 01-27-2018 04:06 PM

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

inukaze 01-27-2018 05:28 PM

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)

BW-userx 01-27-2018 06:52 PM

Quote:

Originally Posted by inukaze (Post 5812331)
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.

inukaze 01-28-2018 12:31 AM

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.

Didier Spaier 01-28-2018 04:09 AM

Quote:

Originally Posted by inukaze (Post 5812456)
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 (Post 5812456)
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.

BW-userx 01-28-2018 08:10 AM

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.

Alien Bob 01-28-2018 03:33 PM

Quote:

Originally Posted by inukaze (Post 5812456)
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.

inukaze 01-28-2018 11:22 PM

Quote:

Originally Posted by Alien Bob (Post 5812673)
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.

Didier Spaier 01-29-2018 01:24 AM

Quote:

Originally Posted by inukaze (Post 5812760)
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?


All times are GMT -5. The time now is 03:50 AM.