Author Topic: (need perl scripter) draklive install and low-ram machines.  (Read 5481 times)

ongoto

  • Guest
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #15 on: March 15, 2011, 09:10:13 PM »
Bi-sexual installer

!!BE WARNED!!
Don't play with this in your installed system.
If you go past the second step you'll bork your system.  
While writing and testing this I zeroed out my MBR.
!!You have been warned!!

This is a drop-in replacement for /usr/sbin/draklive-install.
(For personal backup remasters only.  Needs modification for distribution isos)

Two ways to do it:
1) Create an iso (time consuming and changes are permanent)
Install draklive-install from the repo.  
Copy & rename PCLOSlive-install to /usr/sbin/draklive-install.
Remaster and test.

2) Modify an existing iso (quick and temporary change in ram)
Run a live CD and login as normal.
Open a virtual terminal
$ cp /media/<path to>/PCLOSlive-install /union/usr/sbin/draklive-install

--------------- Testing
Setup a spare testing partition to install to.

Check gui mode;
If your live cd has a launcher on the desktop, it should work.
Else from a virtual terminal do:
$ /usr/sbin/draklive-install (gui mode)

Check console mode (virtual terminal)
$ /usr/sbin/draklive-install -t (force console mode)

Check console mode (tty)
Cntrl+Alt F2 (tty2)
Login as user
$ /usr/sbin/draklive-install (console mode)

NOTE: Navigate using [tab] and [up/down] arrows.  Cntrl+C to abort.

Download
PCLOSlive-installer
Last update: Sun 07/10/11
« Last Edit: July 10, 2011, 09:27:07 PM by ongoto »

Offline gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3801
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #16 on: March 15, 2011, 10:27:09 PM »
I don't have time to test right now, but this is great! As soon as possible, I'll give it a go.

Galen

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #17 on: March 16, 2011, 06:36:54 PM »
ongoto,

Great news, thanks for this - it will be the weekend before I get to try this out.

I am also hoping to get an iso out at the weekend too

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #18 on: March 17, 2011, 12:22:32 PM »
will it work if you name it other that draklive-install? lets say PCLOSlive-installer?
can there be both? text installer and gui installer too?



Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12802
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #19 on: March 17, 2011, 05:33:38 PM »
will it work if you name it other that draklive-install? lets say PCLOSlive-installer?
can there be both? text installer and gui installer too?

Good question... Possibly yes!

Andy

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #20 on: March 17, 2011, 05:36:52 PM »
will it work if you name it other that draklive-install? lets say PCLOSlive-installer?
can there be both? text installer and gui installer too?

So long as they don't conflict, I'd think so.

ongoto

  • Guest
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #21 on: March 18, 2011, 12:14:13 AM »
will it work if you name it other that draklive-install? lets say PCLOSlive-installer?
can there be both? text installer and gui installer too?

You can rename it.
It would not be hard to separate this into two standalone installers.
Would you want it so the user makes the choice between them at run time? or only the person making the distribution iso? or both?
« Last Edit: March 18, 2011, 01:59:25 AM by ongoto »

ongoto

  • Guest
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #22 on: March 18, 2011, 02:13:38 PM »
Amended my original post to reflect some changes.

Added option -t to force text-mode: $ draklive-install -t (text-mode)
You no longer need to unset DISPLAY or init 3 in a tty.
Download new version. The link hasn't changed.

Offline slax

  • Sr. Member
  • ****
  • Posts: 391
    • PCLinuxOS Gnome Edition
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #23 on: March 18, 2011, 02:16:56 PM »
maybe this can go to standard package?

draklive-install is GUI installer, and another (name of the script) is a text installer...

Quote
Would you want it so the user makes the choice between them at run time? or only the person making the distribution iso? or both?
I don't like this, neither is possible. If X is not running, you cant choose draklive-install, so it's better to go with 2 separated commands (scripts).

Btw, great work :)

UPDATE
Quote
Amended my original post to reflect some changes.

Added option -t to force text-mode: $ draklive-install -t (text-mode)
You no longer need to unset DISPLAY or init 3 in a tty.
Download new version. The link hasn't changed.

there's the best solution. thanks



Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #24 on: March 19, 2011, 06:53:53 PM »
ongoto,

I have just started to try this out with one of my PCLinuxOS-Light iso's in RunLevel 3 (I swapped out the usual draklive-install script)

Pentiuum 2 Thinkpad 600 witha  233mhz processor  128Megs

I would say you have created a a thing of beauty!

It did state that I needed to have xdm and offered to install it ( I dont think there is an issue with he script - but with my iso)

at this point it froxe up,, I am gonna look at my iso as I think it only has GDM so ....

Will post back  

I will also use this as the draklive install on my next test iso

Jase
« Last Edit: March 19, 2011, 06:55:51 PM by Hootiegibbon »


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

ongoto

  • Guest
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #25 on: March 19, 2011, 10:12:52 PM »
Hootiegibbon

Thanks for the compliments.  My compliments to you on your work with WMII.

The xdm thing would be coming from one of the draktools other than draklive-install.  Mandriva uses urpmi instead of synaptic, so the offer to install xdm is going to crash.

I hope you are using the latest version which I uploaded yesterday (Fri 03/18)
My experimenting has been done with Zen-mini and I haven't seen the xdm issue.  I tried the substitution in wmii and it worked ok here.  I guess a distribution iso would be the true test.  I can't wait to try it on my old P3 Armada 700 laptop with 256 MB.

I might suggest putting /usr/sbin in the guest users path or creating an 'install' alias with the full path to launch /usr/sbin/draklive-install.

I'm here to help if I can.  Good luck.
« Last Edit: March 19, 2011, 10:45:05 PM by ongoto »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #26 on: March 20, 2011, 12:53:17 AM »
Jase,
xdm is not very large. I think it wouldn't hurt to install it.

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #27 on: March 20, 2011, 05:58:48 AM »
Jase,
xdm is not very large. I think it wouldn't hurt to install it.



Neal,

Already redid the iso, trying the gzip format as although the iso is larger it should be lighter, I am currently installling if all goes well I will upload this iso to dropbox for testing,just waiting for the bootloader to install

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #28 on: March 20, 2011, 06:27:35 AM »

ongoto, Neal

I report  resounding sucess, I used the following machine (detail from 'infobash -v3')


Quote
Host/Kernel/OS  "Hootie-ibm600" running Linux 2.6.37.3-pclos1.bfs i386 [ PCLinuxOS-Light [Iced Latte] Edition :) for i686 and later ]
CPU Info        Pentium II (Deschutes) 512 KB cache flags( - ) clocked at [ 265.267 MHz ]
Videocard       Neomagic NM2160 [MagicGraph 128XD]  tty resolution ( 80x24 )
Network cards   Atheros Atheros AR5001X+ Wireless Network Adapter
Processes 99 | Uptime 21min | Memory 71.2/120.3MB | HDD ATA FUJITSU MHT2040A Size 40GB (4%used) | Runlevel 5 | Client Shell | Infobash v3.05



I will upload the iso a little later today
due to the compression used it is iro 400megs (xz would be a LOT smaller)  

I will also be on IRC later today, for now it seems I have to feed my family, sheesh.... LOL

EDIT :


free image host

Jase
« Last Edit: March 20, 2011, 06:38:52 AM by Hootiegibbon »


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: (need perl scripter) draklive install and low-ram machines.
« Reply #29 on: March 20, 2011, 06:52:38 AM »
Feed your family, Jase. :D Testing can be done later.