LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Microlinux / MLED
User Name
Password
Microlinux / MLED This forum is for the discussion of MLED (Microlinux Enterprise Desktop).

Notices


Reply
  Search this Thread
Old 12-12-2016, 07:16 PM   #121
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled

Here is my error log

Last edited by PROBLEMCHYLD; 12-28-2016 at 05:40 PM.
 
Old 12-13-2016, 02:06 AM   #122
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162

Original Poster
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Thanks for the error log.

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:
Code:
slackpkg update gpg && slackpkg update
 
Old 12-13-2016, 09:16 AM   #123
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Error message

Last edited by PROBLEMCHYLD; 12-28-2016 at 05:40 PM.
 
Old 12-13-2016, 12:48 PM   #124
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162

Original Poster
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
We're still stuck at the same place.

Please post the following files after making sure, you cleaned them up before launching the script (refer to my previous post)

/etc/slackpkg/mirrors
/etc/slackpkg/slackpkgplus.conf
/etc/slackpkg/slackpkgplus.conf.offbkp

Thanks for testing.
 
Old 12-13-2016, 01:36 PM   #125
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
There you go.

Last edited by PROBLEMCHYLD; 12-28-2016 at 05:40 PM.
 
Old 12-13-2016, 03:20 PM   #126
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162

Original Poster
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Updated mledoffline.sh script

I'm still not sure why the error occurred.

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.

Good luck
Attached Files
File Type: txt mledoffline.sh.txt (13.4 KB, 13 views)
 
Old 12-13-2016, 04:49 PM   #127
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I just did a clean install.

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.
 
Old 12-14-2016, 01:52 AM   #128
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162

Original Poster
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Stupid me !!!

Local repositories should be configured differently from online repositories in both /etc/slackpkg/mirrors and /etc/slackpkg/slackpkgplus.conf.

I will try to provide a corrected script by end of this week.

Sorry for letting you do useless testings (I should have found out the issue the first time you reported the error).

By the way, steps 2, 3 and 4 in your sequence of actions are not needed. The expected sequence (when the script works) should be as simple as:

1. Install Slackware using a DVD/USB Key (offline installation)
2. Mount DVD/USB Key
3. Run mledoffline.sh
 
Old 12-14-2016, 06:33 AM   #129
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Nothing is ever useless if we gain something positive from it, and we have. Looking forward to testing. Thanks
 
Old 12-15-2016, 02:00 PM   #130
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162

Original Poster
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Updated mledoffline.sh script

Herewith the updated mledoffline.sh script.

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:
Code:
slackpkg update gpg && slackpkg update
Happy testing.
Attached Files
File Type: txt mledoffline.sh.txt (13.8 KB, 16 views)
 
Old 12-15-2016, 09:30 PM   #131
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
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.
 
Old 12-18-2016, 01:25 PM   #132
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by gegechris99 View Post
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.

Cheers,

Niki
 
Old 12-23-2016, 05:24 PM   #133
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I will be testing after the Holidays, the offline script, had to update/upgrade a few machines.
 
Old 12-25-2016, 10:46 AM   #134
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,162

Original Poster
Blog Entries: 5

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
Herewith an update of mledoffline.sh.

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)
Attached Files
File Type: txt mledoffline.sh.txt (13.8 KB, 19 views)
 
Old 12-28-2016, 03:23 PM   #135
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
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.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming a proof of concept ramzi.kahil Linux - Kernel 2 04-14-2014 11:04 AM
[SOLVED] Proof of concept required business_kid Linux - Software 19 12-26-2012 01:30 PM
Md5 spoof - Proof of concept with sample files! peter1234 General 10 09-25-2010 07:39 AM
New Cross-Platform Virus Proof of Concept win32sux Linux - Security 19 04-18-2006 11:24 PM
LDAP + Proof Of Concept damicatz Linux - Networking 5 11-27-2004 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Microlinux / MLED

All times are GMT -5. The time now is 04:34 AM.

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