LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

[openbox] Some environment variables to fix irregular QT5 styles

Posted 08-11-2015 at 08:11 AM by the dsc (linux-related notes)
Updated 08-19-2015 at 03:39 PM by the dsc
Tags openbox, qt3, qt4, qt5

Code:
export QT_STYLE_OVERRIDE=qtcurve
export QT_QPA_PLATFORMTHEME=kde
Some QT5 applications (systemsettings"5" -- why not call it systemsetting5, so the 5 is both the S amd the 5????!!!111 If you're going to change the binary name at least make it kooler) would use some default QT5 style, even when other QT5 (I guess) applications were already using the correct theming. Ops, nope, now I recall, I had it enforced by ksysgyard -style or exporting the style override at the...
Member
Posted in Uncategorized
Views 795 Comments 0 the dsc is offline
Old

[solved] HTML5 Youtube with no video on Firefox/Iceweasel, in Debian testing/Stretch

Posted 08-10-2015 at 12:04 AM by the dsc (linux-related notes)
Updated 08-10-2015 at 12:05 AM by the dsc

Googling a little bit about, some solutions to the same symptoms pointed to needing to install something like gstreamer-ffmpeg. But not only that's unavailable in the latest Debian testing (Stretch), but it seems it's the other way around: for me it started to work again when I deactivated something related to gstreamer on about:config.

Doing so doesn't seem to have affected anything else (namely flash videos). But I feel that now HTML5 on youtube is somewhat heavier, buy maybe it...
Member
Posted in Uncategorized
Views 2232 Comments 1 the dsc is offline
Old

Make bash scripts wait in line until other instances have finished their job

Posted 08-06-2015 at 03:04 PM by the dsc (linux-related notes)
Updated 08-06-2015 at 06:34 PM by the dsc

Code:
#!/bin/bash
# It seems to work, but who knows. May have some terrible flaw and ruin your life. Your entire life.
#
# "${0##*/}" is the script name ("$0") stripped of any parameters ("##*/"), by the way.
#

if ls /dev/shm/${0##*/}-ticket* 2> /dev/null ; then
n=0
	while [[ -e "/dev/shm/${0##*/}-ticket$n" ]]; do
		n=$(( $n + 1 ))
done
touch /dev/shm/${0##*/}-ticket$n
...
Member
Posted in Uncategorized
Views 639 Comments 0 the dsc is offline
Old

Use any widget theme with Krita, outside KDE with a tiny cheat

Posted 06-23-2015 at 01:12 AM by the dsc (linux-related notes)
Updated 10-18-2017 at 12:54 PM by the dsc (update)

export KDE_FULL_SESSION=true && krita

It may have other collateral effects I haven't figured yet, not only on krita, but perhaps even elsewhere. Possibly DANGEROUS.

Be warned that other widget themes besides plastique and oxygen are known to be often broken outside KDE, that's the reason for such theme-enforcing policy. If your preferred theme doesn't work on Krita, don't complain about that to them, they've manifestly done that in order to avoid trying to make...
Member
Posted in Uncategorized
Views 1161 Comments 0 the dsc is offline
Old

Ugly wrap-around to avoid high CPU and I/O on update-apt-xapian-index

Posted 06-16-2015 at 02:54 AM by the dsc (linux-related notes)
Updated 06-16-2015 at 03:01 AM by the dsc

I've read somewhere that someone else was also annoyed by this.

Here's what I did:

Code:
#!/bin/sh
cpulimit -l 5 -e updatep-apt-xapian-index.py & 

ionice -c 3 /usr/sbin/update-apt-xapian-index.py $@
That's my "/usr/sbin/update-apt-xapian-index", which is called by synaptic and whatever else. The ".py" file is the original script.

It still makes the CPU fan audibly accelerate, but it's no longer...
Member
Posted in Uncategorized
Views 1065 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration