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

#741 Post by dancytron »

Went to do an upgrade today and one of the packages was youtube-viewer.

I got this error in synaptic:
W: Failed to fetch https://fredx181.github.io/StretchDog/a ... ch_all.deb
Writing more data than expected (412172 > 409702)
Hashes of expected file:
- SHA512:26e772bcb6fe022c3b698ff185ec1096c263233eadc56bbd8041fa77231a8f2ae22ab591381e0e2cd524218fd7da615792fbdbf36b56f7c9a08b9bb7fddf9e74
- SHA256:1e182e64fe229590f930d61c295b3c23eaf67dd42fa7a96f63575b145268680d
- SHA1:eefa4220626fa8c65820bf326d2241f26bce17e5 [weak]
- MD5Sum:7f16bde97c0c7da260beca5c033eaa02 [weak]
- Filesize:409702 [weak]

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

#742 Post by fredx181 »

dancytron wrote:Went to do an upgrade today and one of the packages was youtube-viewer.

I got this error in synaptic:
W: Failed to fetch https://fredx181.github.io/StretchDog/a ... ch_all.deb
Writing more data than expected (412172 > 409702)
Hashes of expected file:
- SHA512:26e772bcb6fe022c3b698ff185ec1096c263233eadc56bbd8041fa77231a8f2ae22ab591381e0e2cd524218fd7da615792fbdbf36b56f7c9a08b9bb7fddf9e74
- SHA256:1e182e64fe229590f930d61c295b3c23eaf67dd42fa7a96f63575b145268680d
- SHA1:eefa4220626fa8c65820bf326d2241f26bce17e5 [weak]
- MD5Sum:7f16bde97c0c7da260beca5c033eaa02 [weak]
- Filesize:409702 [weak]
Probably because I was just making changes at that point of time, should be OK now, can you confirm ?

@all
Upgradable packages in custom repos:
- unzipper (thanks rcrsn51!)
- youtube-viewer (latest gtk-youtube-viewer version 3.3.1) for full experience, install mpv (doesn't work with mplayer anymore) and youtube-get2 (has youtube-dl included)
- mpv (has menu entry now for pseudo-gui to drop audio/video files, see pic)

Fred
Attachments
mpv-pseudo-gui.png
drag and drop files in mpv-mediaplayer window
(9.98 KiB) Downloaded 1227 times

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

#743 Post by dancytron »

Yes, works just fine now.

Thanks,

Dan

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

#744 Post by rcrsn51 »

Sound Card Selector lets you set the default card from a number of installed audio devices and can lock in a specific order at boot time.

SCS installs into the System menu.

For example, PeasyMP3 supplies this version of ~/.asoundrc:

Code: Select all

### these three lines enable the regular sound card ###

defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

##################

ctl.equal {
 type equal;
}

pcm.plugequal {
  type equal;
  slave.pcm "plughw:0,0";
}

pcm.equal{
  type plug;
  slave.pcm plugequal;
}

### these two lines enable the equalizer ###

#pcm.!default pcm.equal
#ctl.!default ctl.equal
To use the sound card in "regular" mode, you would modify the top three lines with the card/device numbers selected from SCS.

To use the equalizer, you would:
a. comment out the top three lines.
b. uncomment the bottom two lines.
c. insert the card/device numbers at line 15.

In a setup with multiple sound cards, you can lock in a default card using the kernel module technique. This is useful if the cards randomly switch order at bootup.

SCS has two procedures.
1. If the cards use different kernel modules, pick the first method. Click Help and Edit.
2. If the cards run off the same kernel module, like snd_hda_intel, use the second.

Note: HDMI audio is usually on Device 3 and sometimes on 5 or 7. Try them all.
You must UNmute the S/PDIF controls in Alsamixer (use the M key).

------------------------
Attachments
sound-card-selector_1.6_all.deb.gz
Updated 2020-01-17
Some changes to the UI
(4.05 KiB) Downloaded 72 times
snappie.png
(22.02 KiB) Downloaded 202 times
Last edited by rcrsn51 on Fri 24 Jan 2020, 21:05, edited 31 times in total.

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

#745 Post by jd7654 »

rcrsn51 wrote:Sound Card Selector lets you set the default card from a number of installed audio devices and can lock in a specific order at boot time.

SCS installs into the System menu.

As with all hardware-related projects, it requires testing and feedback.
On one of my laptops, always have to fiddle with it to get sound working. In Puppy there are many little gui tools like the multiple sound selector.(also have to manually edit text config for touchpad clicks) But no such gui tool in Dog. I always have to manually edit .asoundrc file.

So tried your package:
It correctly identified the cards, so I could select the right one, copied/pasted the text file output into the config file dialog. Then restarted X and audio icon apppeared in tray and sound was working.

Code: Select all

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
For future function:
- have it auto paste into file. In DebLive-Stretch there is no .asoundrc, but in Stretchdog release version the file exists so it would have to be edited with new values
- I'm using the ChromeDog build, so the .asoundrc has to be put in both /root for normal playing, and also in /home/puppy for chrome audio to work

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

#746 Post by rcrsn51 »

Thanks for testing.
jd7654 wrote:For future function:- have it auto paste into file.
That's exactly what I DON'T want the program to do. Because there are so many variations of the .asoundrc file, letting the code guess where to insert the lines will inevitably break something.

The point of the Edit button is that you get to select the appropriate place yourself.

For example, if you set up your .asoundrc file to use the ALSA equalizer, your three lines will actually be commented out and the card/device numbers will be elsewhere.

Bill

-----------------
Last edited by rcrsn51 on Fri 27 Oct 2017, 13:51, edited 1 time in total.

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

#747 Post by rcrsn51 »

Optical Character Recognition with Tesseract

Installing Tesseract from the Stretch repo will get you LOTS of stuff. Here is a slightly older version that does an acceptable job.

1. Download and unpack the tesseract-combo-stretch package from here. Use unzipper as the extraction tool.

2. Install the core package tesseract_3.00_i386.deb or tesseract_3.00_amd64.deb.

3. Install the English language data package tesseract-lang-eng_3.00.deb.

4. For non-English languages, do the following:
a. Go here and locate the file xxx.traineddata.gz where xxx is your 3-letter language code - deu, fra, ita, kor, rus, spa, ukr, etc.
b. Download the file and extract it.
c. Copy the file xxx.traineddata to /usr/share/tessdata
d. For other languages, you will need an upgrade to Tesseract v3.04.

5. Install pic2txt_1.3.deb. The dependency is peasyscale.

6. Look for pic2txt in the Graphics menu. It accepts JPEG, PNG and TIFF images as inputs.

Update: Pic2txt v1.4 is attached below. It has an optional batch mode. Instead of selecting a single file, choose a folder of images (Copy path > Paste). The preferred format is TIFF, which is now one of the output choices in PeasyScan.

----------------------------
Attachments
pic2txt_1.4_all.deb.gz
Remove the fake .gz extension.
(2.62 KiB) Downloaded 44 times
Last edited by rcrsn51 on Thu 28 May 2020, 09:08, edited 5 times in total.

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

#748 Post by fredx181 »

rcrsn51 wrote:Sound Card Selector lets you set the default card from a number of installed audio devices and can lock in a specific order at boot time.
Seems to work OK, but my test probably doesn't have much value because I have only one soundcard. Added to repos, thanks!

About Alsa-equalizer, I have trouble understanding how things work, maybe you have ideas.

I've always used this (found on the net) as ~/.asoundrc for equalizer:

Code: Select all

ctl.equal {
  type equal;
}

pcm.plugequal {
  type equal;
  # Modify the line below if you don't
  # want to use sound card 0.
  slave.pcm "plughw:0,0";
  # or if you want to use with multiple applications output to dmix
  # slave.pcm "plug:dmix"
}

#pcm.equal {
  # Or if you want the equalizer to be your
  # default soundcard uncomment the following
  # line and comment the above line.
 pcm.!default {
  type plug;
  slave.pcm plugequal;
}
And have menu entry executing "alsamixergui -D equal" and separate menu entry "alsamixergui" for regular volume adjust (or alsamixer run from terminal).

Then the included ~/.asoundrc in your peasymp3 package:

Code: Select all

### these three lines enable the regular sound card ###

defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0

##################

ctl.equal {
 type equal;
}

pcm.plugequal {
  type equal;
  slave.pcm "plughw:0,0";
}

pcm.equal{
  type plug;
  slave.pcm plugequal;
}

### these two lines enable the equalizer ###

#pcm.!default pcm.equal
#ctl.!default ctl.equal
So to make equalizer work, I uncommented last two lines, but then my menu entry for alsamixer or alsamixergui (meant for volume adjusting) has changed to equalizer view, which is not what I want.

So in fact my question is: Do you have any recommendations and specially, can the output of Sound Card Selector be combined with the equalizer ?
In other words, say a user has to select the soundcard, like jd7654 posted above, can it be combined with one of the above equalizer setups ?

Fred

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

#749 Post by rcrsn51 »

Here's how I think that it would work for you, but I have not tested this yet.

Insert the three lines at the top that define the selected card x:y as the main default:

Code: Select all

defaults.pcm.card x
defaults.pcm.device y
defaults.ctl.card x
Leave your equalizer lines so they define the equalizer device but don't make it a default - ie. these lines should stay commented:

Code: Select all

#pcm.!default pcm.equal
#ctl.!default ctl.equal
Then set your line in the middle as

Code: Select all

slave.pcm "plughw:x:y"
So now both "alsamixergui -D equal" and "alsamixergui" should work with the selected card.

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

#750 Post by dancytron »

Somewhat related, but I have the following in my .asound.conf.
pcm.!default {
type plug
slave.pcm "softvol"
}

pcm.softvol {
type softvol
slave {
pcm "dmix"
}
control {
name "Pre-Amp"
card 0
}
min_dB -5.0
max_dB 20.0
resolution 6
}
This creates a new entry for a "preamp" that lets me get the volume up to something reasonably loud.

See https://alien.slackbook.org/blog/adding ... nd-levels/
Last edited by dancytron on Fri 27 Oct 2017, 22:10, edited 1 time in total.

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

#751 Post by fredx181 »

rcrsn51 wrote:Leave your equalizer lines so they define the equalizer device but don't make it a default - ie. these lines should stay commented:

Code: Select all

#pcm.!default pcm.equal
#ctl.!default ctl.equal
That doesn't work for me, i.e. equalizer shows as expected, but adjusting the sliders make no sound change, only uncommenting the first line works OK though:

Code: Select all

pcm.!default pcm.equal
#ctl.!default ctl.equal
And having now separate working menu entries for equalizer and sound adjust, so all fine for me with "plughw:0,0"
I still wonder how it works for anyone using "defaults.pcm.card 1"

@jd7654, can you test if your soundcard + equalizer with this ~/.asoundrc works for you according to your earlier post and rcrsn51's recommendation ?:

Code: Select all

### these three lines enable the regular sound card ###

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1

##################

ctl.equal {
 type equal;
}

pcm.plugequal {
  type equal;
  slave.pcm "plughw:1,0";
}

pcm.equal{
  type plug;
  slave.pcm plugequal;
}

### these two lines enable the equalizer ###
# fredx181 test, only uncomment first

pcm.!default pcm.equal
#ctl.!default ctl.equal
@dancytron Thanks, would be nice if a combination of your code and equalizer code works, didn't experiment yet.

Fred

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

#752 Post by rcrsn51 »

@Fred: Here is what finally worked for me using the PeasyMP3 .asoundrc:

At the top, I have

Code: Select all

#defaults.pcm.card x
#defaults.pcm.device y
defaults.ctl.card x
At the bottom, I have

Code: Select all

pcm.!default pcm.equal
#ctl.!default ctl.equal
In the middle, I have

Code: Select all

slave.pcm "plughw:x,y"; 
This makes the equalizer the default pcm device, so you can change its levels on-the-fly using "alsamixer -D equal".

However, the default control is still the "main" device so you can change the volume with "alsamixer" or the tray applet.

Regarding the tray applet's slider: it appears to only use the card 0 device as seen at bootup. So if you want to set another card as default, you must use the kernel module technique. Then everything goes back to 0:0.

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

#753 Post by fredx181 »

New package from rcrsn51: "broadcom-wifi" providing the broadcom wl driver, install from Synaptic or from terminal:

Code: Select all

apt-get update
apt-get install broadcom-wifi
This replaces the package broadcom-wl-driver-k4.9.0-3-.... which was earlier included in custom repos.

Fred

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

#754 Post by fredx181 »

rcrsn51 wrote:At the top, I have
Code:
#defaults.pcm.card x
#defaults.pcm.device y
defaults.ctl.card x

At the bottom, I have
Code:
pcm.!default pcm.equal
#ctl.!default ctl.equal

In the middle, I have
Code:
slave.pcm "plughw:x,y";
Yes, can confirm commented first two lines works OK for me also, I'm a bit wiser now about how these things should be, thanks!

Fred

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

#755 Post by jd7654 »

fredx181 wrote:@jd7654, can you test if your soundcard + equalizer with this ~/.asoundrc works for you according to your earlier post and rcrsn51's recommendation ?:

Code: Select all

### these three lines enable the regular sound card ###

defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1

##################

ctl.equal {
 type equal;
}

pcm.plugequal {
  type equal;
  slave.pcm "plughw:1,0";
}

pcm.equal{
  type plug;
  slave.pcm plugequal;
}

### these two lines enable the equalizer ###
# fredx181 test, only uncomment first

pcm.!default pcm.equal
#ctl.!default ctl.equal
Wasn't using the equalizer before. Tried the above and it does work for sound w/EQ on my hardware.(HP dm1, ATI audio)

BUT, strange problem uncovered while trying it on my ChromeDog, had to go back and forth on a bunch of DebLive spins to verify:
EQ enabled causes intermittent problem with Chrome/Chromium video fails to start in Youtube. Firefox works fine, as does root user video/audio play.. But Chrome/Chromium as user puppy has same problem with video starts, and additionally the equalizer does not work.

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

#756 Post by fredx181 »

Thanks for testing JD !

Didn't test with Chrome. Pity it doesn't work, also I found that the equalizer doesn't work when using apulse.

On another subject: Workaround or alternative for installing abiword:
http://murga-linux.com/puppy/viewtopic. ... 532#972532

Fred

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

#757 Post by rcrsn51 »

CPUtemp is a front-end for lm-sensors and cpufrequtils. It provides information about your processor and lets you change the CPU frequency scaling governor.

The Info section produces a basic hardware report.

CPUtemp uses a tray applet for quick access. The icon does NOT show the current temperature.

Remove the fake .gz extension.

------------------------
Attachments
cputemp_3.2_i386.deb.gz
Updated 2019-12-04
(6.03 KiB) Downloaded 57 times
cputemp_3.2_amd64.deb.gz
Updated 2019-12-04
(6.17 KiB) Downloaded 74 times
snappie.png
(8.51 KiB) Downloaded 969 times
Last edited by rcrsn51 on Sun 21 Jun 2020, 11:44, edited 14 times in total.

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

#758 Post by dancytron »

rcrsn51 wrote:CPUtemp is a front-end for lm-sensors and cpufrequtils. It provides information about your processor and lets you change the CPU frequency scaling governor.

CPUtemp uses a tray applet for quick access. The icon does NOT show the current temperature.
I installed this. Seems to work fine (didn't try to change my governor, just look at temperature then double it and add 30).

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

#759 Post by rcrsn51 »

Thanks for reporting. Are you talking about converting Celsius to Fahrenheit?

Open /usr/local/bin/CPUtemp. Change line 81 to

Code: Select all

sensors -A -f ....

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

#760 Post by dancytron »

rcrsn51 wrote:Thanks for reporting. Are you talking about converting Celsius to Fahrenheit?

Open /usr/local/bin/CPUtemp. Change line 81 to

Code: Select all

sensors -A -f ....
That worked great, thanks.

Post Reply