Create Debian 9 (Stretch) minimal ISO similar to DebianDog

A home for all kinds of Puppy related projects
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#921 Post by fredx181 »

Hi Bill,

Probably that is because the -04 version requires different aufs and squashfs kernel modules. (downloaded from github and copied to the chroot).
So the problem is in your older mklive script, if you want, I can help maybe if you attach it and make some adjustments for supporting -04 kernel version (probably only needs a few changes for wget and cp commands).
EDIT: See also here: http://murga-linux.com/puppy/viewtopic. ... 017#975017
(download, extract and copy of "dog-boot-stretch-20171123.tar.gz" (rather than "dog-boot-stretch.tar.gz") is required for -04)
EDIT2: Not sure, but I think you use older (customized) mklive because you like the simplicity of setting the packages list on top of script, just wanna say it's still possible with newest version, just change the standard as desired on top of script, run:

Code: Select all

./mklive-stretch -cli
Then skip the choice of DE config by typing 0 and the packages set on top of script will be installed.
Or:

Code: Select all

./mklive-stretch' -conf
Will create standard stretchlive.conf which you can modify
Then:

Code: Select all

./mklive-stretch -cli stretchlive.conf
Fred

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

#922 Post by rcrsn51 »

Excellent!

I updated my script by changing "dog-boot-stretch" to "dog-boot-stretch-20171123" and it worked perfectly.

I am now omitting Firefox from the build and replacing it with apulse. Then I just need to extract my own Firefox tarball into /opt and I have the latest browser.

Thanks.

Bill

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

#923 Post by dancytron »

rcrsn51 wrote:Excellent!

I updated my script by changing "dog-boot-stretch" to "dog-boot-stretch-20171123" and it worked perfectly.

I am now omitting Firefox from the build and replacing it with apulse. Then I just need to extract my own Firefox tarball into /opt and I have the latest browser.

Thanks.

Bill
Just a note, but just by editing the firefox-apulse.desktop file, you can put firefox and its profile anywhere (and get it out of the save-folder/remaster).

Built in update still works too.

Code: Select all

[Desktop Entry]
Name=Firefox-apulse
Comment=Audio in Youtube
GenericName=Web Browser
Exec=apulse /live/image/StretchLinked/firefox/firefox -profile "/live/image/StretchLinked/firefox/profile"
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/updater.png
Categories=Network;WebBrowser;

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

#924 Post by fredx181 »

dancytron wrote:Just a note, but just by editing the firefox-apulse.desktop file, you can put firefox and its profile anywhere (and get it out of the save-folder/remaster).
Yes, nice !
Here's a similar setup, should be completely portable with apulse included:
http://murga-linux.com/puppy/viewtopic. ... 010#978010

Fred

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

#925 Post by rcrsn51 »

Here is the HPLIP v3.17.9 print/scan driver in 32bit and 64bit versions.

The dependencies are cups, sane-utils and peasyscan.

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

#926 Post by fredx181 »

rcrsn51 wrote:Here is the HPLIP v3.17.9 print/scan driver in 32bit and 64bit versions.

The dependencies are cups, sane-utils and peasyscan.
Thanks Bill !
Added to repos, I cannot test atm, but sure can be useful for many people, install from Synaptic "hplip-print-scan" or from terminal:

Code: Select all

apt-get update
apt-get install hplip-print-scan
Fred

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

#927 Post by rcrsn51 »

Hi Fred: I have built some WiFi drivers for the new "-4" kernel. They include the Broadcom vendor "wl" driver and my package of alternate Realtek drivers.

However, they need testing and feedback before going into your repo. If anyone asks, I will post download links.

Also, I have posted a new version of ISObooter-Stretch here.

And there is an update to PeasyMount here.

And PeasyPort is updated here.

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

#928 Post by fredx181 »

Thanks Bill !
Added new peasymount and peasyport to repo now.

And I wish everyone a GREAT 2018 !! :)

Fred

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

#929 Post by backi »

Hi Fred and everyone !

Also a happy new Year !

Thank you and all the other guys for keeping the "Dogs" alive and kicking .....they are getting better and better :D :D :D

Cheers ! :)

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

#930 Post by rcrsn51 »

F3-flash-check uses the f3 tools to test the health of your flash media. It writes large dummy files to the device, then reads them back.

1. Mount the flash drive.
2. Run f3-flash-check from the System menu.
3. Select the flash drive partition.
4. Click the "Write to" button. When done, close the terminal window.
5. Repeat with "Read back".
6. Click "Quit". The temporary files are deleted.

If you just want to measure the write speed of a drive, run F3 for a minute and terminate it with Ctrl/C.

F3 can also be used as a non-destructive "bleaching" tool for flash drives because it writes random data over all the empty space on the drive.

Update: The documentation suggests the following strategy for some particularly deceitful flash devices.

1. Run the Write To phase .
2. Leave the program running.
3. Unmount, unplug, replug, remount the drive.
4. Run the Read Back phase.
5. Quit

-----------------------

The Advanced section runs the f3probe tool. It tests whether your flash device is genuine, and is faster than the full write/read procedure. There are some caveats:

1. It operates at the device level, not on mounted partitions.
2. It will DESTROY the contents of the drive!
3. You MUST reformat or repair the drive filesystem when done.
4. If you have lots of RAM (4 GB) you may be able to test the drive without destroying its contents.

---------------------

The dependency is f3. Remove the fake .gz extension.

--------------------
Attachments
snappie.png
(58.47 KiB) Downloaded 309 times
f3-flash-check_6.1.deb.gz
Updated 2018-01-04
Optional non-destructive testing
(3.56 KiB) Downloaded 172 times
f3-flash-check_6.0.deb.gz
(3.42 KiB) Downloaded 165 times
Last edited by rcrsn51 on Thu 04 Jan 2018, 21:05, edited 4 times in total.

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

#931 Post by rcrsn51 »

Here is a simple file-sharing system for your home LAN. It uses Python to run a basic HTTP server.

1. Install the simple-python-http-server package attached below. The dependency is Python2. It adds a menu entry under Internet.

2. Set up a folder anywhere on your system and add the files you want to share. Subfolders will work too.

3. Run Simple Python HTTP Server. Note the IP address and port. Select the share folder. Click Start Server.

4. Go to a client machine and open a web browser.

5. Type in the server's URL and port

Code: Select all

http://aaa.bbb.cc.dd:8000
If a client doesn't know the server IP in advance, run PeasyPort and scan for Port 8000.

------------------

Read here, here and here for additional tools to use with the Python HTTP Server.

--------------------------

Setting MIME-type associations for audio files

Suppose that you have set up the server to stream audio files like MP3s. The client computer is also running a version of Stretch-Live with PeasyMP3 as the audio player and Firefox as the browser. In order that Firefox can recognize PeasyMP3 as a "helper" application, the client needs some configuring.

1. Make sure that PeasyMP3 works with locally installed MP3 files and is set as the default application. You can confirm this by looking in the file ~/.config/mimeapps.list.

2. Open /etc/mime.types and search for "mp3". The associated mime type is "audio/mpeg".

3. Open /etc/mailcap. Under "User Section Begins", add the line "audio/mpeg; peasymp3 %s"

4. Reboot.

5. Browse to the remote Python server and click on an MP3 file.

6. Select PeasyMP3 as the application.

------------------------
Attachments
snappie.png
(11.88 KiB) Downloaded 5505 times
simple-python-http-server_1.1.deb.gz
(8.92 KiB) Downloaded 391 times
Last edited by rcrsn51 on Sat 26 May 2018, 12:24, edited 11 times in total.

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

#932 Post by fredx181 »

rcrsn51 wrote:F3-flash-check uses the f3 tools to test the health of your flash media. It writes large dummy files to the device, then reads them back.


Nice utility, thanks !
I tested with several usb-stcks and sd-cards, what a difference e.g. in write speed !! , some had only 2-3MB/s others 16-20MB/s (and inbetween) (on usb-2.0)
Added to repos (also your simple-python-http-server package).

@all
New version of "Google-drive Filemanager" v2, it's a complete rewrite, added to repos "googledrivegui2" (previous package name was just "googledrivegui")
Install with Synaptic or from terminal with apt-get:

Code: Select all

apt-get update
apt-get install googledrivegui2
See more info, pet packages and portable appimage here:
http://murga-linux.com/puppy/viewtopic. ... 148#979148

Fred

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

#933 Post by rcrsn51 »

F3-flash-check v6.1 posted above.

If you have enough RAM, f3probe may be able to test non-destructively.

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

#934 Post by rcrsn51 »

Touchpad updated to v1.4-1 here.

The instructions for Tesseract OCR are updated here.

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

#935 Post by rcrsn51 »

Attached below is the img2pdf tool used by PeasyPDF. It converts a folder of JPEG images into a single PDF file. The dependency is python.

Remove the fake .gz extension.

-------------------------

Here is the Timidity MIDI to WAV converter. The package contains a soundfont file and is ready to use in PeasyMP3.

TImidity is now in Fred's repo.
---------------------------
Attachments
img2pdf-old_0.1.6.deb.gz
(223.73 KiB) Downloaded 423 times
Last edited by rcrsn51 on Wed 16 Jan 2019, 08:50, edited 1 time in total.

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

#936 Post by rcrsn51 »

The Samba4 Basic Server is posted here.

@Fred: This needs testing and feedback before going into your repo.

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

#937 Post by rcrsn51 »

Removed due to lack of feedback.

Anyone who still wants this Bluetooth app should post a request.
Last edited by rcrsn51 on Tue 21 Jan 2020, 10:37, edited 72 times in total.

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

#938 Post by rcrsn51 »

Here is a stand-alone script for doing frugal installs of Stretch-Live ISOs. You can run it from Stretch or from various Puppies.

Ubuntu/Mint/etc. users: Your distro probably doesn't have tools like gtkdialog to run this installer script. So here are some procedures for making a Starter Kit bootable flash drive.
a. BIOS machines: read here. Use the Starter Kit ISO file instead of a Puppy ISO.
b. UEFI machines: read here starting at Step 5.

This tool can also install onto USB devices. The preferred USB destination is an unjournaled ext4 partition.

1. Download and extract the script attached below. It is NOT a fake .gz file!
2. This is a clickable script that you can run anywhere. Save it somewhere like /root.
3. Make an EMPTY folder on an ext partition to hold the frugal install. It can also be a subfolder.
4. Run the script. Select the ISO, the target partition and the install folder. Click Install.
5. The "live" folder from the ISO will be copied into the install folder.
6. A window will pop-up showing the new Grub4Dos menu entry.
7. Copy and paste the entry into your menu.lst file. Hint: Use Ctrl-A, Ctrl-C, Ctrl-V. Keep the long "kernel" line as a SINGLE line.
8. A backup copy of the GRUB entry is saved in the frugal install folder.
9. Reboot.

--------------------------

The Bootloader section does a basic Grub4Dos setup to make a hard/flash drive bootable. Read the warning about Windows.

The new Puppy section does a standard frugal install of a Puppy ISO.

----------------------

Update: The regular Basic Install uses the Porteus boot method. But some hardware has trouble on USB or eMMC drives with this method. You will get a "cheatcode is incorrect" error. Here are some work-arounds:

1. Use the alternate install procedure under the Live-boot tab. This method does a frugal install like Porteus but creates a "persistence" save file instead of the Porteus "changes" folder.

2. Use an alternate version of the file initrd1.xz in your Porteus "live" folder. Get it here and rename the file.

3. Switch to Buster with the k5.6.0 kernel. This setup has the best hardware support.

Update: Read here for help with installing on UEFI systems.

Update: Read here for a discussion about GPT-formatted hard drives.

---------------------

Here is a strategy for building a system from scratch that can run a variety of Stretch-Live and Puppy versions.

1. Boot the machine from a system disc or flash drive.

2. Run Gparted and make the following partitions:
a. an ext3 "boot" partition. It will contain the Grub4Dos boot files. It can also store your original ISO files or other packages. If this is a UEFI system, the first partition must be FAT32.
b. an ext4 partition to hold the frugal installs.
c. an ext4 partition to hold common data like a music collection.

3. Copy the stretch-live-frugal-install script onto partition sda1. Copy over some ISOs.

4. Run the script, select Bootloader and install Grub4Dos to drive sda.

5. For each ISO:
a. make a matching folder on sda2.
b. Do a Basic install or Puppy install. In each case, the target partition is /dev/sda2.
c. Copy/paste the GRUB menu entry into your menu.lst file on sda1.
d. Make at least one CleanMode entry to act as a "back-door" into your system for maintenance purposes.

6. Reboot.

------------------------
Attachments
stretch-live-frugal-install.tar.gz
Extract this - it is NOT a fake .gz.
Updated 2020-03-25
(3.66 KiB) Downloaded 231 times
Last edited by rcrsn51 on Thu 09 Jul 2020, 10:28, edited 85 times in total.

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

#939 Post by rcrsn51 »

Here is the P910nd Print Server. It converts an attached USB printer into a networked printer using the socket:// protocol.

The instructions are here.

1. The server machine does NOT need CUPS.
2. The client machine must provide the model-specific printer driver.
3. These printers are NOT auto-detected by the CUPS client.
4. If you assign the server machine a static IP address, clients will always be able to find it. (PeasyWiFi can do this.)
5. The client control panel that was previously part of this project has moved to the separate app IP4CUPS here.

------------------
Attachments
snappie.png
(8.25 KiB) Downloaded 269 times
p910nd-print-server_0.97.3-5_amd64.deb.gz
(12.83 KiB) Downloaded 77 times
p910nd-print-server_0.97.3-5_i386.deb.gz
(11.49 KiB) Downloaded 77 times
Last edited by rcrsn51 on Thu 23 Apr 2020, 11:09, edited 16 times in total.

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

Kernel security update

#940 Post by fredx181 »

Hi All,

Recommended to upgrade the kernel to the latest security release, at this time it's 4.9.0-5 (package version: 4.9.65-3+deb9u2 (2018-01-04))
See info here (Meltdown patch, not sure if/when Spectre will be addressed):
https://www.debian.org/security/2018/dsa-4078
Therefore install latest upgrade-kernel (v1.0.5) from Synaptic or with apt-get,

Code: Select all

apt-get update
apt-get install upgrade-kernel
and run "Upgrade kernel" from Menu > System and it will upgrade to 4.9.0-5 (on a frugal install)

Also updated mklive-stretch script
Change is that latest kernel 4.9.0-5 will be installed (previously was 4.9.0-4).
And (at github) the archive name containing basic boot scripts, configs, aufs and squashfs modules (for 4.9.0-5) is now:
dog-boot-stretch-20180112.tar.gz
(used in the script now to extract and copy files to the chroot)
rcrsn51 wrote:Here is a stand-alone script for doing hard drive frugal installs of Stretch-Live ISOs. It is intended for Puppy-like systems booted by Grub4Dos.
Nice ! never tried before from=UUID and changes=UUID, works well.
Added to first post a link to your post and added to "Norepo" packages:
https://fredx181.github.io/StretchDog/NoRepo/
Also added your latest packages to repos.

EDIT: @all, googledrivegui2 update, install from synaptic or with apt-get, more info here:
http://murga-linux.com/puppy/viewtopic. ... 902#979902

Fred

Post Reply