Register a domain and help support LQ
Go Back > Blogs > linux-related notes
User Name


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.
Uncategorized Entries with no category

Handy 1-liner script to copy link addresses in Firefox just by hovering and pressing a key

Posted 09-06-2016 at 11:58 AM by the dsc (linux-related notes)
Updated 09-06-2016 at 12:56 PM by the dsc (grammerz und orthographicz ure wrongzes)

Let's say, there is a page with several interesting podcasts, you want to download several of them, not all. Don't bother with dozens of right-click-copy-url-then-go-and-paste-somewhere-somehow. Just hover the link and press a custom key that runs this script line:

xdotool click 3 && xdotool mousemove_relative 5 5 && xdotool key a && echo "$(xclip -o)" >> /dev/shm/ffclipboard
Evidently, it requires xdotool and xclip, not...
Posted in Uncategorized
Views 155 Comments 0 the dsc is offline

Bash variables storing the output of commands run them at each variable statement, not just at some eventual invocation

Posted 08-10-2016 at 04:30 PM by the dsc (linux-related notes)
Updated 08-10-2016 at 04:33 PM by the dsc
Tags bash

Meaning that a script line such as:

nowstatus=`mpc | grep '#' | cut -d '/' -f1`

Is running mpc, grep and cut at its very statement, not only from an eventual "echo $nowstatus".

Therefore, in scripts that parse differently the same output of a given command, it may be preferable to first store this output in a temporary file, and then parse this file rather than running the same command several times. Such as in the lines added below their equivalent...
Posted in Uncategorized
Views 178 Comments 0 the dsc is offline

Tiny optimizations that you might forget every time you (re)install linux

Posted 06-18-2016 at 03:29 PM by the dsc (linux-related notes)

I don't (re)install that often, so I completely forgot there were some types video-acceleration options that could be set in a tiny xorg.conf to speed things up a little. Fortunately it's a paralell install to one I'm sort of abandoning, so I still have it:

Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
        Option "AccelMethod" "sna"
#	   Option      "TearFree"
Posted in Uncategorized
Views 365 Comments 0 the dsc is offline

Chromium/chrome adobe flash player. That was confusing

Posted 06-18-2016 at 02:47 PM by the dsc (linux-related notes)

I was trying to install flashplayer on chromium by symlinking with chrome's flashplayer, then I found out that you actually need to point out as flags something like "flashplayerpath=path" and also a version flag for some reason. Somewhere it was suggested that you could add it to a /etc/chromium-browser/default file that exists, and by deafult does nothing, but has a "CHROMIUMFLAGS" variable "set as empty".

Then I came up with a grep/sed line to get...
Posted in Uncategorized
Views 327 Comments 0 the dsc is offline

KDE5 manual bug fixes for Dolphin5 and ark service menus

Posted 06-02-2016 at 02:15 PM by the dsc (linux-related notes)
Updated 06-02-2016 at 02:22 PM by the dsc

As posted on this is a practical fix for the problem:
sudo ln -s /usr/share/kde4/servicetypes/konqpopupmenuplugin.desktop /usr/share/kservicetypes5/

And manually added service menu files must be loaded with the command [/b]kbuildsycoca5[/b].

Makes me wonder how that "KDE trinity", "Mate for KDE3" thing is going on.
Posted in Uncategorized
Views 247 Comments 0 the dsc is offline


All times are GMT -5. The time now is 07:56 PM.

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