SlackwareThis 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.
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.
I think that this is the command that brings up that lilo configure screen so make a file and install it onto the MBR. but when I type it in this is what I get. Nothing!
Code:
bash-4.2# /sbin/liloconfig
bash-4.2#
It is there, I am running a tri boot system and I changed the settings in all of them. because I screwed it up the first time I had to instal Slackware onto a different partition to get my first install back again by changing the kernel out, and setting the lilo from that install to boot all three installs of linux.
I am wiping that install out by installing a different Linux into it, Vector Linux, and my Slackware I want it to be the command of all three of them. Insuring that in fact that it is this install that has full command of lilo before I go installing another distro onto my box, and while depending on the lilo off of the Slackware install only for it to fail.
I've read I need to have the package installed so I tried to install it.
Code:
slackpkg install lilo-24.0-x86_64-4.txz
Code:
bash-4.2# slackpkg install lilo-24.0-x86_64-4.txz
The package list is missing.
Before you install|upgrade|reinstall anything you need to run:
# slackpkg update
so I updated it then did this
Code:
bash-4.2# slackpkg reinstall lilo
Looking for lilo in package list. Please wait... DONE
lilo-24.0-x86_64-4.txz
Total package(s): 1
Do you wish to reinstall selected packages (Y/n)? y
Package: lilo-24.0-x86_64-4.txz
--2015-07-15 09:35:28-- ftp://carroll.aset.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/a/lilo-24.0-x86_64-4.txz
=> ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz’
Resolving carroll.aset.psu.edu (carroll.aset.psu.edu)... 128.118.2.96, 2610:8:4000:20:128:118:2:96
Connecting to carroll.aset.psu.edu (carroll.aset.psu.edu)|128.118.2.96|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1/slackware64/a ... done.
==> SIZE lilo-24.0-x86_64-4.txz ... 426728
==> PASV ... done. ==> RETR lilo-24.0-x86_64-4.txz ... done.
Length: 426728 (417K) (unauthoritative)
100%[======================================>] 426,728 705KB/s in 0.6s
2015-07-15 09:35:29 (705 KB/s) - ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz’ saved [426728]
--2015-07-15 09:35:29-- ftp://carroll.aset.psu.edu/pub/linux/distributions/slackware/slackware64-14.1/slackware64/a/lilo-24.0-x86_64-4.txz.asc
=> ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz.asc’
Resolving carroll.aset.psu.edu (carroll.aset.psu.edu)... 128.118.2.96, 2610:8:4000:20:128:118:2:96
Connecting to carroll.aset.psu.edu (carroll.aset.psu.edu)|128.118.2.96|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD (1) /pub/linux/distributions/slackware/slackware64-14.1/slackware64/a ... done.
==> SIZE lilo-24.0-x86_64-4.txz.asc ... 198
==> PASV ... done. ==> RETR lilo-24.0-x86_64-4.txz.asc ... done.
Length: 198 (unauthoritative)
100%[======================================>] 198 --.-K/s in 0.007s
2015-07-15 09:35:30 (25.8 KB/s) - ‘/var/cache/packages/./slackware64/a/lilo-24.0-x86_64-4.txz.asc’ saved [198]
Package lilo-24.0-x86_64-4.txz is already in cache - not downloading
Installing lilo-24.0-x86_64-4...
Verifying package lilo-24.0-x86_64-4.txz.
Installing package lilo-24.0-x86_64-4.txz:
PACKAGE DESCRIPTION:
# lilo (Linux Loader)
#
# Generic Boot Loader for Linux ('LInux LOader') by Werner Almesberger.
# LILO boots Linux from your hard drive. It can also boot other
# operating systems such as MS-DOS and OS/2, and can even boot DOS from
# the second hard drive. LILO comes with utilities and documentation
# that make it easier to install, such as 'liloconfig' and 'QuickStart'.
# NOTE: Installing boot loaders is inherently dangerous. Be sure to have
# some means to boot your system from a different media if you install
# LILO on your hard disk.
#
Package lilo-24.0-x86_64-4.txz installed.
Searching for NEW configuration files
No .new files found.
bash-4.2# liloconfig
bash-4.2#
/sbin/liloconfig is just a shell script. you can do: cat /sbin/liloconfig it is just a text file. You can also manually edit /etc/lilo.conf and add your other boot partitions. Then type /sbin/lilo to install them into your MBR. When you reboot you will have all your boot choices displayed just the way you entered them in the /etc/lilo.conf file.
Were you logged in as root when you tried the script? To my knowledge, any files in sbin only have root permission(for good reason: system binaries).
I don't remember I am not in Slack right now I am in Void Linux so I cannot check to see if I did a oops. as I bounch in and out of root log in so sometimes when in user I even forget that I am not root. Having already gotten my brain into su mode, it just takes it for granted that I do not need to type su or sudo when trying to get somethings done.
The real question now is what is the name of that command line program that is in Slack that brings up the promt inside of the terminal eluminator to create a new lilo file, with the selection of expert mode etc andf install it called?
The real question now is what is the name of that command line program that is in Slack that brings up the promt inside of the terminal eluminator to create a new lilo file, with the selection of expert mode etc andf install it called?
I already answered in post #6.
To elaborate: /sbin/liloconfig is a shell script that can be executed either running "sh /sbin/liloconfig" (works even if the file is not executable), "/sbin/liloconfig" (works because the file has a shebang in the first line, that is "#!/bin/sh", but only if the file is executable) or simply "liloconfig" (only if $PATH includes /sbin, hence my question. Please note that $PATH is not the same for root or regular users).
But nothing will work if the user is not "root" so you do need to type "su" before attempting to run this script.
By the way this is standard for all Linux systems, so maybe your time would be better invested learning the basics (for instance see http://docs.slackware.com for a starter) than running several distributions. But that's only my humble opinion, of course.
Last edited by Didier Spaier; 07-17-2015 at 09:22 AM.
To elaborate: /sbin/liloconfig is a shell script that can be executed either running "sh /sbin/liloconfig" (works even if the file is not executable), "/sbin/liloconfig" (works because the file has a shebang in the first line, that is "#!/bin/sh", but only if the file is executable) or simply "liloconfig" (only if $PATH includes /sbin, hence my question. Please note that $PATH is not the same for root or regular users).
But nothing will work if the user is not "root" so you do need to type "su" before attempting to run this script.
By the way this is standard for all Linux systems, so maybe your time would be better invested learning the basics (for instance see http://docs.slackware.com for a starter) than running several distributions. But that's only my humble opinion, of course.
O' Tay thank you.. that is prob what really happened just a brain fart I prob was in user login thinking I was in root login. I'm not in Slack right now, Void so I can't validate my theory
peace
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.