LinuxQuestions.org
Review your favorite Linux distribution.
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 03-07-2016, 02:20 AM   #31
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392

The error has been here from the beginning for trim.sh.

Indeed I must first go into the directory where script is located before running it. As per the MLED installation guide:
Code:
# cd microlinux/desktop-14.1-$ARCH/tools/ 
# ./trim.sh
and
Code:
# cd microlinux/desktop-14.1-$ARCH/tools/ 
# ./cleanmenu.sh
I will fix it tonight.
 
Old 03-07-2016, 08:25 AM   #32
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Hey, at least we found it and can now fix it. I have a clean install waiting for the updated script. I actually watched the whole installation process and seen those errors. I normally just run the script and then go watch Netflix.

P.S

Do you think you can add the server option like you did with the extras?
Can you make the option screen appear for MLED packages, so one can deselect packages.

Quote:
# Install MLED packages
echo -e $BLUE"\n\nInstall the MLED packages:"$RESET
slackpkg -batch=on -default_answer=y install microlinux-desktop
echo -e $GREEN"\nMLED packages have been installed"$RESET

Last edited by PROBLEMCHYLD; 12-28-2016 at 05:40 PM.
 
Old 03-07-2016, 01:37 PM   #33
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Herewith the updated mledauto.sh script. It hopefully fixes the errors with the trim.sh and cleanmenu.sh scripts. It also shows the user dialog for selecting/deselecting MLED packages.

Detailed diff vs. previous version:
Code:
$ diff mledauto.txt.old mledauto.txt
< CWD=$(pwd)
220c219,220
< $CWD/microlinux/desktop-$VERSION-$ARCH/tools/trim.sh
---
> cd $HOME/microlinux/desktop-$VERSION-$ARCH/tools/
> ./trim.sh
245c245,247
< slackpkg -batch=on -default_answer=y install microlinux-desktop
---
> #slackpkg -batch=on -default_answer=y install microlinux-desktop
> # Show dialog to allow for user selection/deselection of MLED packages
> slackpkg install microlinux-desktop
256c258,259
< $CWD/microlinux/desktop-$VERSION-$ARCH/tools/cleanmenu.sh
---
> cd $HOME/microlinux/desktop-$VERSION-$ARCH/tools/
> ./cleanmenu.sh
The second "cd" command may not be needed but it doesn't hurt to repeat it.

Quote:
Do you think you can add the server option like you did with the extras?
I don't use MLES (server version of MLED), but AFAIK, MLES is not designed to be installed in parallel with MLED. There are for example different versions of the same software (ex: ffmpeg 2.6.4 in MLED 14.1 and ffmpeg 2.1 in MLES 14.1 at time of writing). I guess that a knowledgeable user could manage those cases but it doesn't look trivial to me.
Also, to make MLES packages "visible" to the MLED installation script, we would have to change the /etc/slackpkg/slackpkgplus.conf file to add the "server" repository. So if you're interested in MLES, I would rather create a separate installation script for MLES in which package slackpkg+ comes with the appropriate list of repositories.

Again thanks for taking time to test the MLED installation script.
Attached Files
File Type: txt mledauto.txt (8.2 KB, 34 views)
 
Old 03-07-2016, 04:31 PM   #34
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
The whole script ran with no errors. Thank you very, very much.
 
Old 03-10-2016, 08:26 AM   #35
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
Mixing MLES and MLED packages is a very bad idea.
 
Old 03-10-2016, 08:33 AM   #36
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Maybe when you have time kikinovak, you can test the script yourself. It is a timesaver.
 
Old 03-10-2016, 09:04 AM   #37
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
First of all, thanks everybody for putting so much effort into this. I'm currently busy rewriting the documentation. As soon as I have some time, I'll test this and report back.

Cheers,

Niki
 
1 members found this post helpful.
Old 03-11-2016, 03:42 PM   #38
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Herewith an update of the installation script.

Main change is that, on 64bit machine, the user is asked whether multilib packages should be installed (default answer=y).
Other changes are mainly cosmetic ones (ex: options in menu for selection of mirror are numbered instead of a, b, c, d) and code clean-up.

I hope I didn't break anything.
Attached Files
File Type: txt mledauto.txt (8.6 KB, 30 views)
 
Old 03-12-2016, 12:06 AM   #39
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Thanks for the update, I don't have 64bit, but if I come across one I'm good to go.

What kernel version are you using?
 
Old 03-12-2016, 06:23 AM   #40
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
I'm using the 3.10.17 generic kernel that comes with Slackware64 14.1

You've mentioned that you were having issue with installing the generic kernel.

Here are some guides:

From slackware: README.initrd

From MLED: Switch to the GENERIC kernel
 
Old 03-12-2016, 12:40 PM   #41
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
I'm using the 3.10.17 generic kernel that comes with Slackware64 14.1

You've mentioned that you were having issue with installing the generic kernel.

Here are some guides:

From slackware: README.initrd

From MLED: Switch to the GENERIC kernel
A word on that. Editing /etc/mkinitrd.conf and mkinitrd -F is much easier and less error-prone than going through the hassle of calling all options manually.

Niki
 
Old 03-12-2016, 02:22 PM   #42
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Quote:
Originally Posted by gegechris99 View Post
I'm using the 3.10.17 generic kernel that comes with Slackware64 14.1

You've mentioned that you were having issue with installing the generic kernel.

Here are some guides:

From slackware: README.initrd

From MLED: Switch to the GENERIC kernel
I followed those same instructions and get 99 99 etc...... I skip that section altogether because I don't know how to recover from it. I'm playing with Slackware more and Windows less. I do understand some of the commands in your script. Once I have enough hours under my belt, I'll become as fluent as you guys. gegechris99, I have done about 10+ installs with your script. It does help me until I become more familiar with linux overall.

Last edited by PROBLEMCHYLD; 03-12-2016 at 02:25 PM.
 
Old 03-12-2016, 04:08 PM   #43
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by PROBLEMCHYLD View Post
I followed those same instructions and get 99 99 etc......
To check if something isn't correctly set, can you post the results of the following commands?

Code:
cat /etc/fstab
Code:
ls -l /boot
Code:
cat /etc/lilo.conf
 
Old 03-19-2016, 08:55 AM   #44
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,161

Original Poster
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Just an update of the mledauto.sh script.

Changes vs. previous version are:

- code cleaning for welcome message (don't make it too complex)
- use lftp to retrieve slackpkg+ package instead of wget. Unitary tests are OK here.

Regarding the use of lftp vs. wget, I just find the log trace of lftp nicer looking on the screen than the one from wget. Also code is easier to read in the script (at least for me). Anyway, both lftp and wget do the job.

Code:
$ diff mledauto.sh.txt.old mledauto.sh.txt     
30,42d29
< # Welcome message
< WELCOME=("\nWelcome to the MLED installation script\n"
<   "\nMLED (Microlinux Enterprise Desktop) is a full-blown production desktop"
<   "\nbased on Slackware Linux and the Xfce desktop environment."
<   "\nThis script will automate many of the steps of the MLED installation."
<   "\nThe MLED installation guide is available at:"
<   "\nhttp://www.microlinux.eu/installation_guide.php"
<   "\nor"
<   "\nhttp://www.microlinux.eu/downloads/mled-14.1-documentation-english.pdf")
< # Important note
< NOTE=("\nIMPORTANT NOTE: the script should be executed on a machine"
<   "\nrunning Slackware Linux version 14.1\n")
< 
115,117c102,115
< echo -e ${WELCOME[@]}
< echo -e $BLUE${NOTE[@]}$RESET
<   
---
> echo ""
> echo "Welcome to the MLED installation script"
> echo ""
> echo "MLED (Microlinux Enterprise Desktop) is a full-blown production desktop"
> echo "based on Slackware Linux and the Xfce desktop environment."
> echo "This script will automate many of the steps of the MLED installation."
> echo "The MLED installation guide is available at:"
> echo "http://www.microlinux.eu/installation_guide.php"
> echo "or"
> echo "http://www.microlinux.eu/downloads/mled-14.1-documentation-english.pdf"
> 
> echo -e $BLUE$"\nIMPORTANT NOTE: the script should be executed on a machine" \
>   "\nrunning Slackware Linux version 14.1\n"$RESET
> 
227,229c225,227
< wget -r -l1 -np -nH --cut-dirs=3 -A "slackpkg+*_microlinux.txz" \
<   http://www.microlinux.fr/microlinux/desktop-$VERSION-$ARCH/$SLACKDIR/
< installpkg slackpkg+*_microlinux.txz  
---
> lftp -c 'open -e "mget slackpkg+*.txz" \
>   http://www.microlinux.fr/microlinux/desktop-'$VERSION'-'$ARCH'/'$SLACKDIR
> installpkg slackpkg+*.txz
Attached Files
File Type: txt mledauto.sh.txt (8.5 KB, 26 views)
 
Old 03-19-2016, 08:21 PM   #45
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I will be testing the script tomorrow and will report back.
 
  


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:54 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