LinuxQuestions.org
Review your favorite Linux distribution.
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 04-17-2021, 03:02 PM   #1
pocker
Member
 
Registered: Jan 2019
Distribution: Slackware64 15.0
Posts: 63

Rep: Reputation: Disabled
Returning to Slackware after a few years, but I have a few questions


Hi.

I did a fresh install in my laptop of -current but the last time I used Slackware was around 2009~10. A few things I just don't know (or can't remember) and I will appreciate any help.

1) slackpg

I edited /etc/slackpkg/blacklist
and uncommented lines

kernel-generic.*
kernel-huge.*
kernel-modules.*
kernel-source

Also, I selected a mirror and then:

slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system

With this, as far as I could remember, I will remain with the kernel shipped with the .iso (5.10.30)

Is this right?

2) If I comment those lines of kernel-* to allow slackpkg to update kernel too, do I need to run

eliloconfig ?

Will the previous installed kernel be completely removed?

3) with lilo there is a file called /etc/lilo.conf with an option called timeout ...

is there something similar with elilo?

4) suppose that I want to uninstall a package, e.g., fftw, and compile it by my own (without SBo in this case), what is the best approach to remove the package?

5) I've used debian/mint since 2009~10 and all local libs are, usually, installed in /usr/local/lib
I realized that slackware has /usr/local/lib and /usr/local/lib64
dumb question: any library compiled by me should go to lib64, i.e., which one is in the "default path" that any "./configure" will look for?

6) KDE is not saving my wifi password and I have to type it in every log in . How can I save the password in order to KDE connect to my wifi automatically?

Kind regards
Leonardo
 
Old 04-17-2021, 03:45 PM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
1. Yes
2. Yes and yes
3. Dunno
4. Remove pkg, add to blacklist, install yours
5. On a 64 bits system, default is usually lib64
6. Do you use networkmanager ?

Welcome back !
 
Old 04-17-2021, 03:48 PM   #3
pocker
Member
 
Registered: Jan 2019
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
Thanks

Quote:
Originally Posted by Tonus View Post
6. Do you use networkmanager ?
yes, I'm using networkmanager
 
Old 04-17-2021, 04:22 PM   #4
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Quote:
Originally Posted by pocker View Post

6) KDE is not saving my wifi password and I have to type it in every log in . How can I save the password in order to KDE connect to my wifi automatically?
Had the same thing. Or you use kdewallet and store wifi passwords per user or you need to save the password in the settings for all users.
If you right-click the NM icon (WIFI icon) -> Configure network connections -> access_point_name -> WIFI-Security and you select "Store password for all users (not encrypted)". That is how I did it.
 
2 members found this post helpful.
Old 04-17-2021, 05:10 PM   #5
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
1) yes

[Automated upgrade of kernel packages aren't a good idea (and you need to
run "lilo" after upgrade). If you think the same, uncomment the lines
below ]


I updated from 14.2 to current , but current about 9 months ago. If kernels change you can go to :

https://mirrors.slackware.com/slackw...slackware64/a/ the kernels and firmware are available as txz packages. You install them manually using installpkg kernelpkg.txz not upgrade, which would wipe your old kernel.

Theres a nice article about the process of upgrading at : https://docs.slackware.com/howtos:sl...:systemupgrade

2) Alien Bobs mentions at the beginning not a good idea to auto update kernels using slackpkg

3) i'm using grub2 looked in /etc didn't see any lilo.config , actually because my motherboard is uefi i wasd using elilo anyway before grub

Last edited by captain_sensible; 04-17-2021 at 05:11 PM. Reason: clarified using word kernel
 
Old 04-17-2021, 06:49 PM   #6
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by pocker View Post
...3) with lilo there is a file called /etc/lilo.conf with an option called timeout ...

is there something similar with elilo? ...
Yep, it's /boot/efi/EFI/Slackware/elilo.conf
Code:
prompt
timeout=50
default=Gen5.10.31
image=vmlinuz-generic-5.10.30
  label=Gen5.10.30
  initrd=initrd-5.10.30.gz
  read-only #5.10.30
  append="root=/dev/mapper/drive1-root resume=/dev/mapper/drive1-swap" #5.10.30
image=vmlinuz-generic-5.10.31
  label=Gen5.10.31
  initrd=initrd-5.10.31.gz
  read-only #5.10.31
  append="root=/dev/mapper/drive1-root resume=/dev/mapper/drive1-swap" #5.10.31
The line you're looking for is "timeout".
 
Old 04-18-2021, 09:32 AM   #7
pocker
Member
 
Registered: Jan 2019
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
alias not working? .bash_aliases?

This should be very easy to solve, but how can I define a global alias?

It seems that .bash_aliases is not working.

Kind regards,
Leonardo
 
Old 04-18-2021, 09:33 AM   #8
pocker
Member
 
Registered: Jan 2019
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Chuck56 View Post
Yep, it's /boot/efi/EFI/Slackware/elilo.conf
Code:
prompt
timeout=50
default=Gen5.10.31
image=vmlinuz-generic-5.10.30
  label=Gen5.10.30
  initrd=initrd-5.10.30.gz
  read-only #5.10.30
  append="root=/dev/mapper/drive1-root resume=/dev/mapper/drive1-swap" #5.10.30
image=vmlinuz-generic-5.10.31
  label=Gen5.10.31
  initrd=initrd-5.10.31.gz
  read-only #5.10.31
  append="root=/dev/mapper/drive1-root resume=/dev/mapper/drive1-swap" #5.10.31
The line you're looking for is "timeout".


Thanks!
 
Old 04-18-2021, 09:51 AM   #9
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware, Debian
Posts: 7,351

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
I run LILO on my legacy machines, it works very well. I have used ELILO, but, I prefer GRUB on my UEFI machine. Each to his/her own. The following is a good tutorial on how to install GRUB on a UEFI Slackware unit.

Install Slackware using GRUB on UEFI
 
2 members found this post helpful.
Old 04-18-2021, 11:08 AM   #10
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by pocker View Post
This should be very easy to solve, but how can I define a global alias? ...
For global alias, modify /etc/profile OR create /etc/bashrc OR create a file in the /etc/profile.d directory.

Lots of options all searchable on this site or the search engine of your choice.
 
Old 04-18-2021, 11:28 AM   #11
pocker
Member
 
Registered: Jan 2019
Distribution: Slackware64 15.0
Posts: 63

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Chuck56 View Post
For global alias, modify /etc/profile OR create /etc/bashrc OR create a file in the /etc/profile.d directory.

Lots of options all searchable on this site or the search engine of your choice.
Yeah. I've created .bashrc.

Thanks
 
Old 04-18-2021, 10:21 PM   #12
notzed
Member
 
Registered: Dec 2020
Location: South Australia
Distribution: slackware64-current
Posts: 95

Rep: Reputation: Disabled
Only run 'eliloconfig' if you're strictly using the distribution supplied kernel and not customising elilo.conf in any way because it unconditionally overwrites the latter each time you run it! It sets timeout & delay to 1 (0.1s), the kernel boot args to 'root=/xx vga=normal ro', deletes all other entries, and doesn't back up the original.

If you don't run it you just need to copy the kernel (and initrd) to the efi system partition (/boot/efi/EFI/Slackware by default) and ensure there's an entry for it in the config file (existing or new). Since they are the images used to boot you can retain previous kernels there as you wish separately from the files in /boot.

elilo is simple and reliable, i much prefer it to grub. It works more like grub-1 did with a basic config file that is read at boot time and needs no installation steps when modified.
 
Old 04-19-2021, 09:57 AM   #13
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by notzed View Post
Only run 'eliloconfig' if you're strictly using the distribution supplied kernel and not customising elilo.conf in any way because it unconditionally overwrites the latter each time you run it! It sets timeout & delay to 1 (0.1s), the kernel boot args to 'root=/xx vga=normal ro', deletes all other entries, and doesn't back up the original.

If you don't run it you just need to copy the kernel (and initrd) to the efi system partition (/boot/efi/EFI/Slackware by default) and ensure there's an entry for it in the config file (existing or new). Since they are the images used to boot you can retain previous kernels there as you wish separately from the files in /boot.

elilo is simple and reliable, i much prefer it to grub. It works more like grub-1 did with a basic config file that is read at boot time and needs no installation steps when modified.
Good advice! It should be noted that one can get the best of both worlds, elilo and grub2, with rEFInd which will seek elilo.conf, numerous foo.efi files as well as kernels IF you want it to and it does not overwrite itself when it detects an existing refind.conf. It is also simple text controlled requiring no extra binary steps to update.

BTW does anyone know the reasoning behind the seemingly redundant /efi/EFI policy?

Also BTW early BIOS/UEFI implementations are often problematic with both EFI booting and NVME drives. It seems a good idea to upgrade or read very thoroughly. I've got a 2014 machine giving me fits with both basic HDD UEFI as well as NVME, complicated by the operating system being aware of things the BIOS/UEFI is not. PITA! My new box is flawless and relatively easy even with combined UEFI and Legacy boot devices.
 
1 members found this post helpful.
Old 04-19-2021, 01:18 PM   #14
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by enorbet View Post
BTW does anyone know the reasoning behind the seemingly redundant /efi/EFI policy?.
The efi/ is the mount point for the EFI partition.

The EFI/ is required by the UEFI spec as the EFI partition is required to contain an EFI/ folder at the base (see 13.3.1.3 of the UEFI spec (pdf link)) and then individual folders beyond that for various OSes and distros. There is no requirement for the EFI partition to be mounted to /boot/efi/, however, that seems to be the standard location in Linux distros.

Technically, you could have the EFI partition mount wherever you'd like, but /boot/efi/ seems to be a decent location.

Last edited by bassmadrigal; 04-19-2021 at 01:19 PM.
 
4 members found this post helpful.
Old 04-19-2021, 02:22 PM   #15
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Thank you yet again, bassmadrigal. As usual your response is clear and concise and very helpful.
 
  


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
I have been dual booted with XP/ubuntu 12.04 but on returning from holiday last September, have lost the contact page for ubuntu.The dual e BluenoteDave Linux - Newbie 8 05-20-2017 07:31 PM
Return To Linux (Questions) After a few Years arturoui LinuxQuestions.org Member Intro 4 04-02-2012 01:55 AM
Nellis returning to linux after 10 years drogue LinuxQuestions.org Member Intro 2 12-02-2009 11:36 PM
Returning to Slack after a few years ... Need updates ... karthikrr Slackware 12 04-15-2009 10:26 PM
Returning Member, Last login 3 years ago... IzzieDee LinuxQuestions.org Member Intro 2 10-03-2006 02:57 PM

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

All times are GMT -5. The time now is 10:04 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