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 Tue 16 Oct 2018, 21:33
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Create Debian 9 (Stretch) minimal ISO similar to DebianDog
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 63 of 93 [1385 Posts]   Goto page: Previous 1, 2, 3, ..., 61, 62, 63, 64, 65, ..., 91, 92, 93 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Tue 02 Jan 2018, 21:59    Post subject:  

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

------------------------
snappie.png
 Description   
 Filesize   11.88 KB
 Viewed   3398 Time(s)

snappie.png

simple-python-http-server_1.1.deb.gz
Description 
gz

 Download 
Filename  simple-python-http-server_1.1.deb.gz 
Filesize  8.92 KB 
Downloaded  141 Time(s) 

Last edited by rcrsn51 on Sat 26 May 2018, 08:24; edited 11 times in total
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3464
Location: holland

PostPosted: Wed 03 Jan 2018, 12:24    Post subject:  

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:
apt-get update
apt-get install googledrivegui2

See more info, pet packages and portable appimage here:
http://murga-linux.com/puppy/viewtopic.php?p=979148#979148

Fred

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


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Thu 04 Jan 2018, 17:07    Post subject:  

F3-flash-check v6.1 posted above.

If you have enough RAM, f3probe may be able to test non-destructively.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Fri 05 Jan 2018, 08:00    Post subject:  

Touchpad updated to v1.4-1 here.

The instructions for Tesseract OCR are updated here.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sun 07 Jan 2018, 07:27    Post subject:  

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.

There are 32bit and 64bit versions.

---------------------------
img2pdf-old_0.1.6.deb.gz
Description 
gz

 Download 
Filename  img2pdf-old_0.1.6.deb.gz 
Filesize  223.73 KB 
Downloaded  129 Time(s) 
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sun 07 Jan 2018, 08:48    Post subject:  

The Samba4 Basic Server is posted here.

@Fred: This needs testing and feedback before going into your repo.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sun 07 Jan 2018, 09:31    Post subject:  

BT4Stretch is a Bluetooth package for Stretch Live. It handles several functions:

- connecting Bluetooth mice and keyboards
- streaming audio to portable Bluetooth speakers
- playing audio from a Bluetooth-enabled tablet or phone through your system speakers
- downloading photos from a phone via obex

This system uses Bluez5 and its bluetoothctl tool for basic pairing/connection operations. But it avoids the need for PulseAudio by using bluez-alsa.

The main screen has several Help buttons. There is a learning curve to using bt4stretch.

Update: Version 1.2 is a major upgrade. It now produces a standard ALSA device called "bluetooth" that will be recognized by most media players. Set it as the default ALSA output in your .asoundrc by UNcommenting the bottom two lines. You can even play Youtube audio through Pale Moon to a BT speaker!

Be aware that Mplayer does not work properly with BT in a 64bit setup. But VLC, Deadbeef, Audacious, etc. work fine.

Note: If you have a .asoundrc file from a previous version, you must delete it first.

Note: If the "bluetooth" ALSA device is properly configured and set as default, you can control its volume from your tray Volume applet. If the applet is not working, there is a problem with your BT4Stretch setup. Either the BT speaker has not paired/connected properly or your .asoundrc is wrong.

Hints: Learn the blink and beep codes of your BT device. For example, the device may blink like it's connected when it's not. Do a disconnect, wait until the blink changes, and connect.

If the Quick Connect button doesn't work, use Control so you can see what's happening.

In my experience, switching between OS's can cause flaky behaviour with your BT hardware. If necessary, do a BT Reset, cold reboot and re-pair the device.

Update: Read here for some trouble-shooting help.

---------------------
snappie.png
 Description   Updated 2018-07-16
 Filesize   48.36 KB
 Viewed   648 Time(s)

snappie.png

bt4stretch_1.2_i386.deb.gz
Description 
gz

 Download 
Filename  bt4stretch_1.2_i386.deb.gz 
Filesize  116.43 KB 
Downloaded  39 Time(s) 
bt4stretch_1.2_amd64.deb.gz
Description 
gz

 Download 
Filename  bt4stretch_1.2_amd64.deb.gz 
Filesize  116.83 KB 
Downloaded  32 Time(s) 

Last edited by rcrsn51 on Thu 02 Aug 2018, 08:02; edited 22 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Mon 08 Jan 2018, 16:28    Post subject:  

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

This tool can also install onto USB devices. The preferred USB destination is an unjournaled ext4 partition. Read the "strategy" below.

1. Download and extract the script attached below. It is NOT a fake .gz file!
2. This is a clickable script. 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 newer hardware has a problem on USB devices with this method and the stock 4.9.0 kernel. You will get a "file not found" error. Here are some solutions:

1. Use the alternate install procedure under the new Live-boot tab. Be aware that this method does NOT permit a save file/folder.

2. Change the initrd1.xz in the "live" folder of your USB install. This should allow a Porteus boot with persistence.
a. Download initrd1.xz-usb.tar.gz
b. Extract the package. It contains 32/64 bit versions of a patched initrd1.xz
c. Select your version, rename it as initrd1.xz and drop it into your live folder.

3. Do a kernel switch, using the same technique as in Puppy. Read here.

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

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

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, devx files and application SFS packages. If this is 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.

------------------------
stretch-live-frugal-install.tar.gz
Description  Updated 2018-08-20
New ISO builder tool
gz

 Download 
Filename  stretch-live-frugal-install.tar.gz 
Filesize  3.87 KB 
Downloaded  282 Time(s) 
snappie.png
 Description   
 Filesize   20.08 KB
 Viewed   565 Time(s)

snappie.png


Last edited by rcrsn51 on Mon 20 Aug 2018, 12:29; edited 54 times in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Thu 11 Jan 2018, 23:13    Post subject:  

Here is the p910nd-print-server. It has two functions - it can share your attached printer across the network and it provides a control panel to manage your printers. The instructions are here. The dependency is arp-scan.

------------------
p910nd-print-server_0.97.3-3_i386.deb.gz
Description  Update 2018-08-02
Improved scanning of slow networks
gz

 Download 
Filename  p910nd-print-server_0.97.3-3_i386.deb.gz 
Filesize  12.98 KB 
Downloaded  19 Time(s) 
p910nd-print-server_0.97.3-3_amd64.deb.gz
Description 
gz

 Download 
Filename  p910nd-print-server_0.97.3-3_amd64.deb.gz 
Filesize  14.31 KB 
Downloaded  24 Time(s) 
snappie.png
 Description   
 Filesize   23.47 KB
 Viewed   2795 Time(s)

snappie.png


Last edited by rcrsn51 on Thu 02 Aug 2018, 07:27; edited 8 times in total
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3464
Location: holland

PostPosted: Fri 12 Jan 2018, 14:39    Post subject: Kernel security update
Subject description: upgrade to 4.9.0-5
 

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:
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.php?p=979902#979902

Fred

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


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Fri 12 Jan 2018, 19:00    Post subject:  

Hi Fred: Can you explain this?

I updated my mklive script to the "-5" kernel and generated a new ISO. That worked fine.

I then tried to update a machine that has nvidia graphics. I wanted to keep the current "changes" folder and drop in the new "live" folder.

I had previously installed the Debian nvidia-legacy-340xx-driver so I knew this was going to be a problem - it would be a mismatch with the new kernel.

When I rebooted, X refused to start. I tried to manually blacklist nvidia and un-blacklist nouveau, but that failed.

So I apt-got the new linux-headers-$(uname -r), ran nvidia-detect, removed the current driver and installed it again.

I expected the installation to take the usual several minutes, but it was done immediately.

But when I rebooted, it worked!

What happened here? Was this the correct way to update nvidia with a new kernel?

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


Joined: 11 Dec 2013
Posts: 3464
Location: holland

PostPosted: Sat 13 Jan 2018, 07:03    Post subject:  

Hi Bill, sorry, I have very little experience with nvidia, I guess you did as you described here:
http://murga-linux.com/puppy/viewtopic.php?p=969796#969796
and wonder why the driver install went so fast, right?

Maybe someone else can shine a light on this ?

EDIT: @ALL, It may come in handy to quickly load the DEVX in case compiling.
Here's DEVX containing most important build tools and latest linux-headers (4.9.0-5)
https://github.com/fredx181/StretchDog/releases/tag/v2.1
For i386 (pae) or amd64: 61-DEVX-Stretch-20180113-k4.9.0-5-....

Fred

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


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sat 13 Jan 2018, 08:02    Post subject:  

I tried this on another nvidia machine and it worked the same way. Apparently only a small part of the nvidia install package is actually kernel-related.

If you remove the driver and re-install it, it's smart enough to just build the new kernel module.

Is there a better way in apt-get to remove-install in one step?

BTW, I have used the same procedure when I forgot to install the kernel headers at the beginning of the install and the operation failed.

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

Regarding UUID in the frugal-installer. I started using this when working with "split installs". If you just use "from=/", Porteus triggers a search. Under certain conditions, it can find the wrong "live" folder.

By using UUID, you can specify the unique path to your install.

Bill

Last edited by rcrsn51 on Sun 14 Jan 2018, 12:15; edited 1 time in total
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3464
Location: holland

PostPosted: Sat 13 Jan 2018, 08:15    Post subject:  

rcrsn51 wrote:
Regarding UUID in the frugal-installer. I started using this when working with "split installs". If you just use "from=/", Porteus triggers a search. Under certain conditions, it can find the wrong "live" folder.


Yes, the UUID option is nice, for info, another way to prevent finding the wrong "live" folder you can place "live" in folder "unique_name" and use "from=/unique_name"
EDIT: I see now that your installer does that already, so you are right that the chance is zero when using UUID that it finds the wrong "live"

Fred

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


Joined: 05 Sep 2006
Posts: 12324
Location: Stratford, Ontario

PostPosted: Sat 13 Jan 2018, 08:30    Post subject:  

I would love to try this on one of those problematic machines where Puppy cannot find its main SFS file on a flash drive.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 63 of 93 [1385 Posts]   Goto page: Previous 1, 2, 3, ..., 61, 62, 63, 64, 65, ..., 91, 92, 93 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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.1496s ][ Queries: 13 (0.0429s) ][ GZIP on ]