Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#481 Post by dancytron »

Doglover wrote:Very nice Fred.. kudos

Anyway, tried all the desktops and could not get kodi to run. Seg fault every time. Can't figure it out. any ideas?

Thanks for an excellent script.
Did you install libgl1-mesa-dri? If not, try that, restart x, and see if it makes it work.

There is an off chance that your hardware will require one the xserver-xorg-video-* driver files after you install mesa-dri. If it does, tell us what graphics chip you have and we should be able to figure it out.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#482 Post by fredx181 »

@festus
How does a person set programs to run @ startup, and choose the default applications?
You can add scripts in ~/Startup to run at startup, or, in case using openbox, edit ~/.config/openbox/autostart by adding the application.
For default applications to open with in pcmanfm, right-click Open with > Choose application and check the "set selected application as default" checkbox.

@doglover
As dancytron says, installing libgl1-mesa-dri should make kodi work, did just test it.

Fred

backi
Posts: 1922
Joined: Sun 27 Feb 2011, 22:00
Location: GERMANY

#483 Post by backi »

Hi Fred and everybody !

I ran the mklive-stretch -gui included openbox
Did also include E17 Desktop which works fine......also combination JWM+E17 Desktop works fine .Can choose between those Desktops either configuring .xsession-openbox or .xsession-jwm .....or using slim .
Some problems with E17 which did occur when using earlier Scripts are gone .
Can`t figure out which was the reason.
Nevertheless does not matter .The Scripts getting better and better with each update .

Thanks for this amazing and interesting Tool !

jd7654
Posts: 296
Joined: Mon 06 Apr 2015, 16:10

#484 Post by jd7654 »

fredx181 wrote:Maybe someday, someone makes a full featured "CrystalDog" , who knows...
Yeah, I was also curious to see someone create a full Dog too. Never tried Crystal yet though.

But I just tried to see what would happen if I dumped everything from StretchDog64 and paste into the script and see if it choked. Over 700 packages compared to less than 500 in base build. It only choked on one package, listed at the end:

Code: Select all

dpkg -l | tail -n +6 | cut -d' ' -f3 | sed 's/:amd64//g' | tr '\n' ' ' | sed 's/greybird-theme-dd-jessie //'
Removed that, and then script ran to completion.

ISO was only 266MB. Looks to be running fine, with all the familiar Dog packages. Probably needs some extra configs, but nice to see how "idiot proof" the script is, being able to take all those duplicate packages and everything and produce a working DD ISO.
Attachments
build_setup-sd64-dump.conf.gz
fake gz extension
(11.2 KiB) Downloaded 122 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#485 Post by fredx181 »

jd7654 wrote:But I just tried to see what would happen if I dumped everything from StretchDog64 and paste into the script and see if it choked. Over 700 packages compared to less than 500 in base build. It only choked on one package, listed at the end:
Code:
dpkg -l | tail -n +6 | cut -d' ' -f3 | sed 's/:amd64//g' | tr '\n' ' ' | sed 's/greybird-theme-dd-jessie //'

Removed that, and then script ran to completion.
Hey !! nice test, thanks, it's good check if everything is correct in the custom repository.
The greybird-theme-dd-jessie package I renamed to greybird-theme-dd-stretch, so that explains it
I tried similar as you did with the Stretchdog32 package list and also on one package it choked, "edit-sfs-thunar", fixed that now (was problem with file same as in edit-sfs-pcmanfm)
There are some apps such as e.g. makeswap or resize-save that are not made into deb packages, so these are missing (compared to Stretchdog) (and probably some icons missing)

Fred

User avatar
festus
Posts: 235
Joined: Wed 14 Jan 2015, 19:10

#486 Post by festus »

fredx181 wrote:@festus
How does a person set programs to run @ startup, and choose the default applications?
...in case using openbox, edit ~/.config/openbox/autostart by adding the application.
For default applications to open with in pcmanfm, right-click Open with > Choose application and check the "set selected application as default" checkbox.

Fred
These worked, Fred.

Thank you,

festus :)

User avatar
festus
Posts: 235
Joined: Wed 14 Jan 2015, 19:10

compiler errors

#487 Post by festus »

Hey, all

I booted, openbox_lx, with "061-DEVX-squeeze.squashfs' in the live modules folder, then tried to compile claws-mail-3.15.1 and got these errors:

Code: Select all

/claws-mail-3.15.1# ./configure --prefix=/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gtk-update-icon-cache... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/mnt/sda4/aaa_lxpuptahr-14.12.1_directory/linux/lxpup/software/compile_puppy_programs/claws-mail-3.15.1/claws-mail-3.15.1.tar.gz.extracted/claws-mail-3.15.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
.........................
configure:4333: error: C compiler cannot create executables
Am I using the correct devx for openbox_lx, a debian-9_Stretch build?

I got pretty much the same error when trying to compile some other pkg that I forget what it was, the other day.

Any thought on this?

Thanks,
festus

belham2
Posts: 1715
Joined: Mon 15 Aug 2016, 22:47

Re: compiler errors

#488 Post by belham2 »

festus wrote:Hey, all

I booted, openbox_lx, with "061-DEVX-squeeze.squashfs' in the live modules folder, then tried to compile claws-mail-3.15.1 and got these errors:

Code: Select all

/claws-mail-3.15.1# ./configure --prefix=/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gtk-update-icon-cache... yes
checking for pkg-config... /usr/bin/pkg-config
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/mnt/sda4/aaa_lxpuptahr-14.12.1_directory/linux/lxpup/software/compile_puppy_programs/claws-mail-3.15.1/claws-mail-3.15.1.tar.gz.extracted/claws-mail-3.15.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
.........................
configure:4333: error: C compiler cannot create executables
Am I using the correct devx for openbox_lx, a debian-9_Stretch build?

I got pretty much the same error when trying to compile some other pkg that I forget what it was, the other day.

Any thought on this?

Thanks,
festus

Hi Festus,

Two things come to mind, and mind you, I'm no expert in compiling with Debian as it always gives me fits. First thing, in your ISO build that is installed however now, did you open Synaptic and install the Debian "build-essentials" that is necessary for compiling? Second, I am assuming that this ISO you built was built inside Wheezey, and not Stretch, correct? I'm fairly certain you already know better than me we, as far as I understand things, cannot use--- say a "wheezy" devx---- inside a Jessie and/or Stretch ISO build. Maybe Toni and/or Fred will chime in here, as I've got a few things I want to try to compile in these several builds I have but am unsure of everything I might need to install in them first. Sorry I couldn't help more. :(

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#489 Post by fredx181 »

festus wrote:Am I using the correct devx for openbox_lx, a debian-9_Stretch build?
No, it should correspond with the Debian version, Debian squeeze is from long time ago, you need Stretch version, try this one:
https://github.com/DebianDog/trinitydog ... 8.squashfs

I didn't test much though, it's in fact made for Trinitydog-Stretch, but good chance it works for you on Stretch-Live, tell me if not.

Fred

belham2
Posts: 1715
Joined: Mon 15 Aug 2016, 22:47

#490 Post by belham2 »

Hi Fred & all,

I did an XFCE-64 bit Stretch build the other night, chose Chromium as the browser (and the awesome "silent-launch" feature of it in Startup), along with all your scripts, redshift, rsrcn51's stuff, VLC and Dogradio.....built great and fairly quick on an old laptop (~15 mins), booted up nicely, made all my changes to Chromium and other things, and the changes were saved in the "Live" folder.

I wanted to see how big it totally is. Upon booting into another pup, I checked it's install complete folder size, and it was 433MB. Only 433MB!! This after all my personal settings and changes made to programs. :shock: It's almost unbelievable....even rg66's X-Slacko-XFCE, which I think is one of the great pups, comes in at 545MB (with basically the same stuff installed & same changes, save for the Debian vs Slacko thing). And when I do my own Debian-Live-Minimal install of XFCE from a cli, I can never get it below ~750-800MB trying to get it to work like these builds do.

Using your build script is just flatout fun 8)
Attachments
Stretch-64bit-Chromium-VLC-build.png
(183.46 KiB) Downloaded 649 times

Doglover

#491 Post by Doglover »

dancytron wrote:
Doglover wrote:Very nice Fred.. kudos

Anyway, tried all the desktops and could not get kodi to run. Seg fault every time. Can't figure it out. any ideas?

Thanks for an excellent script.
Did you install libgl1-mesa-dri? If not, try that, restart x, and see if it makes it work.

There is an off chance that your hardware will require one the xserver-xorg-video-* driver files after you install mesa-dri. If it does, tell us what graphics chip you have and we should be able to figure it out.
Installed libgl1-mesa-dri and also the dev but it still segfaults. Here's my chip info.

VGA controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8400] (prog-if 00 [VGA controller])
Subsystem: Hewlett-Packard Company Device 216f
Flags: fast device select
Interrupt Request (IRQ): 44
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0800000 (64-bit, prefetchable) [size=8M]
I/O ports at 4000
Memory at f0300000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at f0360000 [disabled] [size=128K]
--
Video Card OEM: AMD ATOMBIOS
Card Vendor: (C) 1988-2010, Advanced Micro Devices, Inc.
Product: KALINDI 01.00
VESA BIOS Extensions: VESA 3.0 detected.
Memory: 16384kb

=> DISPLAY/MONITOR:

Screen Dimensions: 1368x768 pixels (351x191 millimeters)
Depth of Root Window: 24 bits (planes)
Display ID: 039f
EISA: LGD039f
Serial: 00000000
Manufacture: 0 2012
Input: composite sync, digital signal.
Screensize: 35 19
Gamma: 2.200000
Dpms: RGB, no active off, no suspend, no standby
Dtiming: 1366x768@59
Dtiming: 1366x768@39
--
Direct Rendering: Yes
OpenGL Vendor: VMware, Inc.
OpenGL Renderer: Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits)
OpenGL Version: 2.1 Mesa 10.1.3

=> X-SERVER SCREEN INFORMATION:

Name of display: :0
Version number: 11.0
Vendor string: The X.Org Foundation
Vendor release number: 11501000
X.Org version: 1.15.1
Number of extensions: 29
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
DRI2
DRI3
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
Present
RANDR
RECORD
RENDER
SECURITY
SGI-GLX
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XFree86-DGA
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
Default screen number: 0
Number of screens: 1

Screen #0:
dimensions: 1368x768 pixels (351x191 millimeters)
resolution: 99x102 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x16d
depth of root window: 24 planes

dancytron
Posts: 1519
Joined: Wed 18 Jul 2012, 19:20

#492 Post by dancytron »

Doglover,

Install mesa-utils.

Reboot.

From terminal run glxgears and tell us if you get an error or the spinning gears.

If you get an error, then see https://wiki.debian.org/AtiHowTo#Identification to try to figure out what else to install. If you get the gears, then I don't know what else to try.

edit: A quick googling seems to indicate that you might need to install firmware-amd-graphics. see https://packages.debian.org/stretch/fir ... d-graphics

Doglover

#493 Post by Doglover »

Kodi now works. I already had mesa-utils installed and glxgears worked fine, but I needed mesa-utils-extra. :)

Thank you.

User avatar
festus
Posts: 235
Joined: Wed 14 Jan 2015, 19:10

#494 Post by festus »

@belham2
You are right, I did need the build-essential pkg to build stuff.
Thank you

@Fred
You are right, too, I was using the wrong devx. :oops:
Thank you

bliss,
festus

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#495 Post by rcrsn51 »

Here is a simple extraction tool for some common archive formats. Unzipper installs into the System menu. Use it with a right-click-open-with procedure.

The dependent packages are: gzip, bzip2, xz-utils, unzip, p7zip

Update: Unzipper v1.3 lets you pick a destination folder to unzip the archive instead of automatically using the current location of the archive file.

If you want to extract into the current location, use the destination ".".

Update: Some archives just contain a bunch of loose files, so you may need a folder to hold them. Select a path and add the new subfolder's name, using a / separator. Click Make. Click OK to extract.

Support has been added for .rar/.cbr archives and single .gz compressed files .

Hint: If you want to inspect an archive package before extracting it, unzip it into /tmp.

Update: Unzipper v1.5-2 now supports the .tar.zst archive format. However zstd has NOT been added to the dependency list, so you must install the package separately via apt.

------------------------
Attachments
unzipper_1.5-2_all.deb.gz
Updated 2020-01-16
Handles .tar.zst
(3.77 KiB) Downloaded 62 times
unzipper_1.5.deb.gz
Updated 2017-11-20
Recognizes .txz archives
(3.74 KiB) Downloaded 129 times
snappie.png
(7.89 KiB) Downloaded 295 times
Last edited by rcrsn51 on Thu 16 Jan 2020, 19:49, edited 21 times in total.

User avatar
festus
Posts: 235
Joined: Wed 14 Jan 2015, 19:10

suspend_hibernate using laptop

#496 Post by festus »

Hey, all

I feel like this is a dumb question, so here goes anyway:

I'm running the openbox_lx spin of deb 9 stretch and I can not get the laptop to suspend when closing the laptop lid, like it does in all my pups.

Is there something that needs to be installed or activated to be able to suspend?

Thanks to all,

festus :)

jd7654
Posts: 296
Joined: Mon 06 Apr 2015, 16:10

Re: suspend_hibernate using laptop

#497 Post by jd7654 »

festus wrote:I'm running the openbox_lx spin of deb 9 stretch and I can not get the laptop to suspend when closing the laptop lid, like it does in all my pups.

Is there something that needs to be installed or activated to be able to suspend?
Mine works on the base build: close lid suspend.

...but on my laptop I did have to do a workaround. Don't know if this even applies to you, so I'm not saying this will fix your situation. What laptop do you have?

Ran into this before in other Linux: The Linux/kernel version detects my hardware incorrectly and falsely believes my laptop is docked when it is not. So I had to adjust the config to tell it to suspend while docked.

In /etc/systemd/logind.conf had to uncomment and change ignore to suspend for middle line item below:

Code: Select all

...
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
...

zagreb999
Posts: 567
Joined: Fri 11 Apr 2014, 06:39
Location: Yugoslavija

#498 Post by zagreb999 »

regards

new iso 32bit is made on lenovo- 244mb.

wifi can not work.
------------
quickremaster can not work.
of 10 kb of customization

it produce 1oo mb more(plus)
in quick remaster and can not
work.
--------------------
is it possible to create
squashfs with xorg and desktop,
without kernel?

thanks.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#499 Post by fredx181 »

zagreb999 wrote:is it possible to create
squashfs with xorg and desktop,
without kernel?
Yes, just before creating 01-filesystem.squashfs (when script is paused) you can go into the chroot again and uninstall the kernel

Open new terminal in directory stretch, and do:

Code: Select all

mount --bind /proc chroot/proc
mount --bind /dev chroot/dev
mount --bind /sys chroot/sys
mount -t devpts devpts chroot/dev/pts
Chroot in chroot

Code: Select all

chroot chroot
Uninstall kernel (32 bit):

Code: Select all

apt-get purge linux-image-4.9.0-3-686-pae
# and do some more if you want
When that's done type:

Code: Select all

exit
Unmount proc dev sys dev/pts (very important !):

Code: Select all

umount chroot/proc
umount chroot/dev/pts
umount chroot/dev
umount chroot/sys
And continue the script with creating 01-filesystem.squashfs and ISO

Fred

User avatar
festus
Posts: 235
Joined: Wed 14 Jan 2015, 19:10

Re: suspend_hibernate using laptop

#500 Post by festus »

jd7654 wrote:Mine works on the base build: close lid suspend.

...but on my laptop I did have to do a workaround. Don't know if this even applies to you, so I'm not saying this will fix your situation. What laptop do you have?

Ran into this before in other Linux: The Linux/kernel version detects my hardware incorrectly and falsely believes my laptop is docked when it is not. So I had to adjust the config to tell it to suspend while docked.

In /etc/systemd/logind.conf had to uncomment and change ignore to suspend for middle line item below:

Code: Select all

...
#HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
...
Edit: I uncommented the top line too, although don't know if it matters, then rebooted and it now suspends when lid is closed.

HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend

Thank you, jd7654
------------------------------------------------------------------
Thanks for the reply/info, jd7654.

Here is the specs on my laptop:

Code: Select all

# inxi -bw
Machine:   Device: portable System: Dell product: Inspiron N5050 serial: xxxxxxx
           Mobo: Dell model: 01HXXJ v: A05 serial: .xxxxxxxxxxxxxxxxxxxxxxxx
           BIOS: Dell v: A05 date: 08/03/2012
Battery    BAT0: charge: 39.4 Wh 97.5% condition: 40.4/44.0 Wh (92%)
CPU:       Dual core Intel Core i3-2350M (-HT-MCP-) speed/max: 799/2300 MHz
Graphics:  Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           Display Server: X.org 1.14.3 drivers: intel (unloaded: fbdev,vesa)
           tty size: 80x24 Advanced Data: N/A for root
Network:   Card-1: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           driver: r8169
           Card-2: Broadcom BCM4313 802.11b/g/n Wireless LAN Controller
           driver: bcma-pci-bridge
Drives:    HDD Total Size: 500.1GB (31.8% used)
Weather:   Conditions: 57 F (14 C) - Clear Time: September 2, 7:17 AM EDT
Info:      Processes: 194 Uptime: 10 min Memory: 277.2/3950.3MB
           
Thanks,
festus

Post Reply