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 Mon 20 May 2019, 15:36
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 50 of 97 [1452 Posts]   Goto page: Previous 1, 2, 3, ..., 48, 49, 50, 51, 52, ..., 95, 96, 97 Next
Author Message
backi

Joined: 27 Feb 2011
Posts: 1714
Location: GERMANY

PostPosted: Mon 23 Oct 2017, 13:55    Post subject:  

Quote:
That critter backi leading me astray again.

Something's going to have to be done 'bout that E.U. critter.

.........copy2ram my butt...... Laughing


For everybody clearly to see ......just a helpless trial to keep an obvious dangerous maniac Evil or Very Mad Twisted Evil to cool down. Rolling Eyes Rolling Eyes Laughing Laughing Laughing
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1274

PostPosted: Tue 24 Oct 2017, 00:44    Post subject: changing cursor themes  

I am running DD based on the Chrome choice in mklive-stretch.

I wanted to add a slightly larger and bright colored cursor theme so I could see the cursor easier when using a remote control. I chose redglass and attempted to install it via the lxappearance (Customize Look and Feel in Dog Control) application.

It didn't really work. I occasionally got the new cursor, but usually didn't. So, after much messing around, I followed the instructions here https://wiki.archlinux.org/index.php/Cursor_themes and manually changed the cursor in every place suggested for both lxappearance and XGD specification. These were (hopefully this is a complete list):

.config/gtk3.0/settings.ini in both puppy and root
.icons/default/index.theme in both puppy and root
/usr/share/icons/default/index.theme

The redglass folder with my new cursors in it was already in /root/.icons (I assume lxappearance put it there). For good measure, I also copied it to /puppy/.icons and /usr/share/icons. (I think that's right. Anyway, they were in one of those 3 places, so I manually put them in the other 2.). Embarassed

Also, somewhere along the line, I ran "update-alternatives --config x-cursor-theme" and chose my cursor theme, but I am not sure that did anything.

Anyway, new cursor theme works correctly everywhere now, so if lxappearance doesn't work for anybody, this will give them a place to start.
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3918
Location: holland

PostPosted: Tue 24 Oct 2017, 05:41    Post subject:  

Thanks Dan, added link to your post to the "Links to useful info" list at first post.
Pity it doesn't work out of the box by using lxappearance, I guess It's the consequence of having a minimal DE setup (openbox with some LX components added) rather than a full Desktop environment.
(and having a mixture of gtk2 and gtk3 applications makes it extra complicated)

EDIT: Btw, I installed xcursor-themes with Synaptic (redglass is part of it) selected it in lxappearance and further made it work by doing as you described. (needed X restart after config changes)

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
rufwoof

Joined: 24 Feb 2014
Posts: 3103

PostPosted: Tue 24 Oct 2017, 11:03    Post subject:  

Under etc and usr are default copies of files/folders such as icon themes. Those might be changed such as via system updates. Each user might install copies (or additional versions) of those ... which are stored under the users home directory. The system running usually has code/rules to load whichever it finds in a set order of checks i.e. if under home folder use those otherwise use the system default (etc or usr) versions.
Quote:
.config/gtk3.0/settings.ini in both puppy and root
.icons/default/index.theme in both puppy and root
/usr/share/icons/default/index.theme

i.e. I suspect that If both root and puppy have .icons/default/index.theme then the /usr/share/icons/default/index.theme wont be referenced. Or if neither root nor puppy had .icons/default/index.theme then the /usr/share/icons/default/index.theme would be used.

If another userid is added then they'd pick up the /usr/share/icons/default/index.theme version.

So yes to install something like a icon theme for all users you have to add it under etc or usr so it becomes available to all user, as well as adding it to each user that already had copied the prior original versions (into their home folder .icons/....).

Themes under Linux is a pain if you want consistency as you have to consider providing/installing versions for each of gtk2, gtk3, qt4, qt5 ... etc. Personally I opted for Adwaita general window theme as qt5, qt4 have that available, its the default (hard coded) in gtk3, and its available in gtk2. You may also have to set the wm theme to look the same ... such as jwm

EDIT : see http://murga-linux.com/puppy/viewtopic.php?t=111282 ... and the PDF file link within that.
Screenshot from 2017-10-24 15-55-56.png
 Description   
 Filesize   52.21 KB
 Viewed   1054 Time(s)

Screenshot from 2017-10-24 15-55-56.png

Screenshot from 2017-10-24 15-56-20.png
 Description   qt4 kcheckers
 Filesize   56.98 KB
 Viewed   1060 Time(s)

Screenshot from 2017-10-24 15-56-20.png

Screenshot from 2017-10-24 15-55-33.png
 Description   jwm menu
 Filesize   108.77 KB
 Viewed   1058 Time(s)

Screenshot from 2017-10-24 15-55-33.png

Screenshot from 2017-10-24 15-54-59.png
 Description   gtk2 (pcmanfm)
 Filesize   85.41 KB
 Viewed   1064 Time(s)

Screenshot from 2017-10-24 15-54-59.png

Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Tue 24 Oct 2017, 16:37    Post subject:  

Unzipper v1.4 is posted here.
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1274

PostPosted: Wed 25 Oct 2017, 14:35    Post subject:  

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

I got this error in synaptic:

Quote:
W: Failed to fetch https://fredx181.github.io/StretchDog/amd64/Packages/./Extra/youtube-viewer_3.3.1-stretch_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]
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3918
Location: holland

PostPosted: Wed 25 Oct 2017, 15:50    Post subject:  

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

I got this error in synaptic:

Quote:
W: Failed to fetch https://fredx181.github.io/StretchDog/amd64/Packages/./Extra/youtube-viewer_3.3.1-stretch_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
mpv-pseudo-gui.png
 Description   drag and drop files in mpv-mediaplayer window
 Filesize   9.98 KB
 Viewed   845 Time(s)

mpv-pseudo-gui.png


_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1274

PostPosted: Wed 25 Oct 2017, 16:11    Post subject:  

Yes, works just fine now.

Thanks,

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


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

PostPosted: Wed 25 Oct 2017, 18:14    Post subject:  

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

However, if you locked in a default card using the kernel module technique, you could leave everything as 0:0.

Update: Suppose that you have two audio devices that run off the same kernel module, like snd_hda_intel.

At boot time, they randomly switch between Card 0 and Card 1. The kernel module method can lock in the card order, but it only works if the cards use different modules. Here is a solution:

1. Run the command: lspci -nnk

2. You should see two Audio devices. They are probably Card 0 and Card 1. Note the [vendor:product] ID codes, like [1002:4383] and [10de:0e0f]. You want to switch them.

3. In SCS, edit the file /etc/modprobe.d/snd_cards_priorites.conf. Or use the Make button.
Code:
options snd_hda_intel vid=1002,10de pid=4383,0e0f index=1,0

The "vid" argument lists the two vendor IDs, "pid" lists the two product IDs, and "index" lists the desired order.

4. Reboot.

------------------------
snappie.png
 Description   
 Filesize   22.29 KB
 Viewed   207 Time(s)

snappie.png

sound-card-selector_1.4.deb.gz
Description  Updated 2018-08-18
gz

 Download 
Filename  sound-card-selector_1.4.deb.gz 
Filesize  4.25 KB 
Downloaded  49 Time(s) 

Last edited by rcrsn51 on Sat 18 Aug 2018, 08:06; edited 19 times in total
Back to top
View user's profile Send private message 
jd7654

Joined: 06 Apr 2015
Posts: 297

PostPosted: Wed 25 Oct 2017, 22:25    Post subject:  

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:
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
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Wed 25 Oct 2017, 22:52    Post subject:  

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, 09:51; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


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

PostPosted: Thu 26 Oct 2017, 11:06    Post subject:  

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. Its dependencies are netpbm and peasyscale.

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

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

Last edited by rcrsn51 on Wed 10 Jan 2018, 11:24; edited 3 times in total
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 3918
Location: holland

PostPosted: Fri 27 Oct 2017, 13:31    Post subject:  

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

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


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

PostPosted: Fri 27 Oct 2017, 13:56    Post subject:  

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:
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:
#pcm.!default pcm.equal
#ctl.!default ctl.equal

Then set your line in the middle as
Code:
slave.pcm "plughw:x:y"

So now both "alsamixergui -D equal" and "alsamixergui" should work with the selected card.
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1274

PostPosted: Fri 27 Oct 2017, 14:08    Post subject:  

Somewhat related, but I have the following in my .asound.conf.

Quote:
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-an-alsa-software-pre-amp-to-fix-low-sound-levels/

Last edited by dancytron on Fri 27 Oct 2017, 18:10; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 50 of 97 [1452 Posts]   Goto page: Previous 1, 2, 3, ..., 48, 49, 50, 51, 52, ..., 95, 96, 97 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.1453s ][ Queries: 13 (0.0167s) ][ GZIP on ]