Microlinux / MLEDThis forum is for the discussion of MLED (Microlinux Enterprise Desktop).
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 suspect that the issue is related to /etc/slackpkg/slackpkgplus.conf being in an "unstable" state after a script failure. When you relaunch the script and reinstall package slackpkg+, in fact, file /etc/slackpkg/slackpkgplus.conf is not overwritten by the version in the package. The version in the package is copied into /etc/slackpkg/slackpkgplus.conf.new. So we're stuck with the inproperly configured file.
In short, the mledoffline.sh script needs some hardening to handle cases when it's relaunched after a failure. I'll try to work on that this week.
In the short term, I would suggest that you delete the following files before relaunching the script:
/etc/slackpkg/slackpkgplus.conf
/etc/slackpkg/slackpkgplus.conf.new
/etc/slackpkg/slackpkgplus.conf.offbkp
Additionally, please edit /etc/slackpkg/mirrors and delete the last lines of the file that look like:
Code:
# MLED ....
/run/media/root/....
Going further down the line and assuming the offline installation of MLED completes successfully, the script will ask you to select an online mirror for Slackware packages. This is done because I assume that, after the offline installation, the machine will connect to the internet to be maintained (i.e. in the future, packages will need to be upgraded from the online repositories). So the script wants to configure the system so that it's ready for online updates.
So please post the following files after the successful offline installation of MLED:
/etc/slackpkg/mirrors
/etc/slackpkg/slackpkgplus.conf
You can even check that the system is correctly configured by connecting the machine to the internet and run as root:
In order to go at least one step further, I've hardened a bit the script.
- You are now expected to enter the mount point with the trailing /. If you forget to add it, the script will automatically add it
- Before installing the slackpkg+ package, the script will delete any existing /etc/slackpkg/slackpkgplus.conf and /etc/slackpkg/slackpkgplus.conf.offbkp files
- If the script still fails during the "slackpkg update" phase, the script should exit and no longer go further
I attached the updated script to be tested.
Should you still have the same error, please add the 3 files mentioned in previous post.
1. Mounted USB
2. Set a mirror because the script needs one set or you get error stating you need to set one mirror in /etc/slackpkg/mirrors.
3. Install slackpkg+
4. Ran slackpkg update gpg && slackpkg update
5. Ran mledoffline.sh
The error message is the same as the ones above. With or without the trailing, message is the same.
Last edited by PROBLEMCHYLD; 12-13-2016 at 05:00 PM.
Main changes:
- Corrected syntax for local repositories in /etc/slackpkg/mirrors and /etc/slackpkg/slackpkgplus.conf
- Deactivate (i.e. put line as a comment) any active repository in /etc/slackpkg/mirrors before inserting the local repository
Reminder: after the installation of MLED packages, the script will ask you to select an online package repository for Slackware so that the system is ready for future online updates for both Slackware and MLED packages (for MLED, the script will just copy back the slackpkgplus.conf that comes with the slackpkg+ package eventually adjusted for multilib).
It is advised that, post-installation, you connect the machine to the internet and run this command to check that online repositories are correctly configured:
The script ran and installed everything as it should. I will do some thorough testing tomorrow and report back. Thanks for the offline script, I can save on time when doing clean installs. I tested from an USB and will test from a DVD tomorrow.
It is advised that, post-installation, you connect the machine to the internet and run this command to check that online repositories are correctly configured:
Code:
slackpkg update gpg && slackpkg update
Happy testing.
That's an impressive piece of work you got here. Sorry if I couldn't come around to test it yet, but it looks like my urgent TODO list won't get smaller.
I had the opportunity to perform an offline installation of MLED 14.2 32bit using this script.
Everything went OK except the last part where the script reconfigures the repositories to use online ones. For some reason the script exited just after I selected from an ncurse menu an online Slackware repository from a local list of mirrors (hardcoded in the script). If I ran this part of the script at the beginning of the script it worked. But it didn't work if the part was put after slackpkg+ had run.
To make it work as designed, I had to add an echo command in line 161 (i.e. at the end of function mirror_menu). I don't know why this make it work but it did.
Please test this version and check that the online repositories are correctly configured at the end of the script in files:
/etc/slackpkg/mirrors (Slackware online repository should be added at the end of the file with the other lines commented out)
/etc/slackpkg/slackpkgplus.conf (MLED repositories as included in slackpkg+ package)
I can't run the DVD because the scripts trim.sh/cleanup menu.sh etc... gives the error permission denied. I'm assuming the scripts are read-only and can't be changed once burned on DVD. I can run everything if copy the disc to hard drive or run it from USB flash drive. Other than that, thanks for the offline script. I don't mind copying the disc, it's still saves time.
I got only one error, but everything still installed.
Last edited by PROBLEMCHYLD; 12-28-2016 at 05:40 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.