Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Jan 2018, 00:16
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How Create DebianLive from netinstall including porteus-boot
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 2688
Location: holland

PostPosted: Thu 30 Mar 2017, 09:42    Post subject:  How Create DebianLive from netinstall including porteus-boot
Subject description: Make Debian netinstall and transform in DebianDog-alike livesystem
 

*** How Create your own DebianLive from netinstall and also include porteus-boot style ***

This guide is also on Github Here

Further below are the detailed steps, it may look complicated but in fact it isn't, so here's first the short version:
1) Create a partition dedicated for installing Debian (if you don't have already)
2) Install Debian from netinstall ISO
3) Boot the just installed system, configure as you like
4) Run (in just installed system), the attached script 'mklive' (it will do everything required, end result is a live ISO)

Note: Although DebianDog is similar livesystem (when it's about boot-methods), this guide is not for how to create DebianDog (such as made by saintless or fredx181), that would require much more steps, e.g. further tweaking, make small as possible, configure, adopt some Puppy programs etc...
Therefore explained here how to install LXDE from a Debian netboot install ISO and transform into a live-system, including 'live-boot' (standard DebianLive) and 'porteus-boot'. (ISO size for LXDE Desktop + Firefox + Gnome-mplayer + Deluge + Synaptic and some more: around 475MB (xz compressed filesystem.squashfs))
Assumed is that you have already bootloader grub4dos installed to MBR
(therefore the install instruction at 2): "Continue without bootloader")

There are different ways to accomplish, but I recommend to follow below steps exactly (to avoid confusion).

1) Create a dedicated partition with Gparted on your harddisk by using e.g. a live system, from Puppy, DebianDog or any other.
(I used sda3, but can be sda1, sda2 etc..., Note that the screenshots and the grub4dos example are for sda3, so you need to adjust for the partition you did choose)

2) Install Debian (not all the steps are described detailled here, just some 'tricky' points)
- Download netinstall ISO and burn to CD (or to USB, guides can be found on the net howto do it)
32 bit:
http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-8.7.1-i386-netinst.iso
64 bit:
http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.7.1-amd64-netinst.iso
- Boot from it and choose "Graphical Install"
- Choose as desired: language, keymap, hostname (domain-name can be empty)
- Enter password for 'root' twice, choose name for normal user and enter password twice.
- When it comes to partitioning, choose "Manual"

- Then choose the partition you earlier chose/created in 1) and double click on it

- Then important are:
-- "Use as: ext4 journaling filesystem"
-- "Format the partition Yes format it"
-- "Mount Point /"
So if finally looks like this, select "Done setting up the partition" and continue , confirmation will follow and if you agree select 'yes'

- And more confirmations:


- Choose mirror nearby your country, proxy you can leave blank, popularity test yes/no
- Software Selection, untick all (software: none), we're going to install software later, see 3)

- Next, installing most basic software...
- Grub install, your choice, but recommended (for following the 'grub4dos' part of the guide (example)) is to skip it (I'm using grub4dos myself, already installed to MBR)
- Click "Go Back" on this screen:

- Then select "Continue without bootloader" (confirmation follows)

- Set system-clock to UTC ? yes/no, and installation finished, reboot.
Here's menu.lst example for sda3, change accordingly if you used e.g. sda2
Code:
title Debian-Jessie-netinstall on sda3
 root (hd0,2)
 kernel /vmlinuz root=/dev/sda3 ro
 initrd /initrd.img


3) After reboot, login as root from console, then install LXDE Desktop:
Code:
apt-get install lxde

- When done (install space used will be around 940MB) activate lightdm login-manager:
(also a reboot will activate it, btw)
Code:
service lightdm start

- And login as root again from lightdm
Now you should be in LXDE:-)
- First thing you may want to install is Synaptic Package Manager, open terminal:
Code:
apt-get install synaptic --no-install-recommends


Next, configure the system as desired, e.g. install, uninstall, configure the Desktop, etc.. before creating your personal 'live' system from it (as that is what this guide is for,after all)
(See below in the "Tips and Aternatives" section for an alternative way, to install a very basic OpenBox)

4) Create the 'live' system, with 2 boot-methods: live-boot and porteus-boot
This would be so many steps (command lines), that I decided to make a script for it. (attached 'mklive' script)
Note: You need to have a working network connection, otherwise it will fail.
What it does is:
- Download some archives (.tar.gz), extract them to (created) /WORK directory
- Copy some files (needed for porteus-boot) to the system
- Install some packages required (xorriso isolinux live-boot xz-utils squashfs-tools dialog)
- Install yad and gtkdialog
- Set the default shell to bash (by default on Debian it's dash), this makes gtkdialog based programs work properly.
- CreateSave entry in Menu > Other
- Create 'live-boot' and 'porteus-boot' initrd (initrd.img and initrd1.xz)
- Make a remaster of the system (01-filesystem.squashfs)
- Make ISO from all above prepared files

Download attached script 'mklive'
Remove fake .tar from file name and make executable:
Code:
chmod +x mklive

Then (in the new full install) run in terminal from where mklive is located:
Code:
./mklive

Adviced is to download the 'mklive' script first, put it in some place, e.g. USB-stick or other partition. (That way you can access it easily after you did the full netinstall, without needing a browser)

*** Tips and Alternatives ***

a) Instead of doing step 3) you may want a much smaller system, for example with Openbox.
After login as root from console, type:
Code:
apt-get install openbox obconf xterm xinit xserver-xorg menu-xdg --no-install-recommends

When finished, type:
Code:
startx

And you should be in a basic openbox environment
Then maybe install e.g. synaptic, some icon-theme, a file-manager, browser of your choice etc..

Note well that the disadvantage of it is that you need to tweak much more to get things as desired.

b) Debian is rather conservative including so called 'non-free' software.
You may want to add non-free repository in /etc/apt/sources.list, so looks like (add 'contrib non-free'):

Code:
deb http://ftp.de.debian.org/debian/ jessie main contrib non-free
# deb-src http://ftp.de.debian.org/debian/ jessie main contrib non-free 
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
# deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
# deb-src http://security.debian.org/ jessie/updates main contrib non-free


After the edit do:
Code:
apt-get update

Then there's more choice in e.g. firmware (for WIFI) and for example flashplayer is in the repo.

c) To install always without 'install-recommends' create (if not exist) file /etc/apt/apt.conf and paste in this:
Code:
APT::Install-Recommends "false"; APT::Install-Suggests "false";

d) You may want to install some applications from DebianDog, e.g. sfsload quick-remaster apt2sfs etc...
To install from DD repo add to /etc/apt/sources.list:
32 bit:
Code:
 deb https://debiandog.github.io/Jessie/i386/Packages/ ./

64 bit:
Code:
deb http://smokey01.com/saintless/64-bit-DebianDog/Packages/ ./

But no guarantee that all will work properly!
No LZ4 support, btw, on this new created livesystem (latest DebianDog has it, but has been tweaked that way)
e) See here for boot-methods 'live-boot' and 'porteus-boot' using grub4dos:
https://github.com/DebianDog/Jessie/wiki/Boot-methods
Note: The 'live-boot-2' method does not work with this setup, only live-boot-3 and porteus-boot

Fred

mklive running...

mklive finished!
mklive.tar
Description  mklive script (remove fake .tar and make executable
tar

 Download 
Filename  mklive.tar 
Filesize  11.25 KB 
Downloaded  71 Time(s) 

_________________
Dog Linux website

Last edited by fredx181 on Fri 31 Mar 2017, 04:57; edited 5 times in total
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2688
Location: holland

PostPosted: Thu 30 Mar 2017, 09:50    Post subject:  

*** reserved for possible additions ***
_________________
Dog Linux website
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2688
Location: holland

PostPosted: Thu 30 Mar 2017, 09:51    Post subject:  

*** reserved for possible additions ***
_________________
Dog Linux website
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 12752
Location: Arizona USA

PostPosted: Thu 30 Mar 2017, 10:20    Post subject:  

Does DebianLive have anything to do with Puppy Linux?
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2688
Location: holland

PostPosted: Thu 30 Mar 2017, 10:44    Post subject:  

Flash wrote:
Does DebianLive have anything to do with Puppy Linux?


No, but it has anything to do with DebianDog.
Latest DebianDogs are build similar as the guide describes
Then next question could be:
Does DebianDog have anything to do with Puppy Linux?
Well, yes and no...

If you mean to say that this guide doesn't belong in this section, it's ok for me if it will be moved to maybe "Puppy Projects" , that's where other "Dogs" are also discussed. (maybe I should have posted there in the first place)

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
belham2

Joined: 15 Aug 2016
Posts: 1414

PostPosted: Thu 30 Mar 2017, 10:57    Post subject:  

Fred,

Don't worry 'bout Flash....he's still (he!!, we all are) trying to recover from the fundamentally held belief that "intelligence" and being "POTUS" are no longer related to one another. In fact, they are inversely related now Sad

Anyways, good work on the write up....more info enlightens everyone here in Puppy Land..
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 979

PostPosted: Thu 30 Mar 2017, 11:20    Post subject:  

Thank you Fred. I am glad this valuable information has been preserved for posterity.

Dan

edit: I went through it and created a LXDE 64 bit (469 meg). I frugally installed it and I am posting from it now.

it works beautifully.

The only issue I found. In the live folder it creates both a jessie-amd64.sgn file and a jessie-i486.sgn file. However, it seems to be looking for a jessie-x86-64.sgn file. I copied the jessie-x86-64.sgn file from my regular install of DD 64 and it booted fine after that.

Great work and thank you again for this.

Dan
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 2688
Location: holland

PostPosted: Fri 31 Mar 2017, 04:50    Post subject:  

Hi Dan, thanks for testing!

I was gonna say that I tested only with 32 bit (but forgot) , now you did test 64 bit!
Quote:
The only issue I found. In the live folder it creates both a jessie-amd64.sgn file and a jessie-i486.sgn file. However, it seems to be looking for a jessie-x86-64.sgn file. I copied the jessie-x86-64.sgn file from my regular install of DD 64 and it booted fine after that.


Quote:
Never mind. I read the instructions again. They aren't confusing, I was just being dense.


Why dense?
If you mean about the jessie-x86-64.sgn file, it was my mistake, fixed it now (part of prepared isodata skeleton)
https://github.com/DebianDog/MakeLive/blob/gh-pages/isodata/live/jessie-x86_64.sgn
So in case you would run 'mklive' again it should be ok.
Btw, just for info in case you don't realize:
You can run mklive at anytime again and again, e.g. if you made changes in the full install, it will create new ISO (previous one will be deleted in /WORK)

Fred

_________________
Dog Linux website
Back to top
View user's profile Send private message 
backi

Joined: 27 Feb 2011
Posts: 1391
Location: GERMANY

PostPosted: Fri 31 Mar 2017, 06:55    Post subject:  

Hi fred !

If i find the Time and Leisure will give it a try ........
Good to have these instructions......good Job ....! Smile Smile

Thank`s fred ! Very Happy
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 979

PostPosted: Fri 31 Mar 2017, 11:26    Post subject:  

No, I deleted the second message. It was about installing without Grub (I missed where you said to use Go Back and instead tried to choose no and go forward.)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0618s ][ Queries: 12 (0.0084s) ][ GZIP on ]