LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
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.
Uncategorized Entries with no category
Old

Apparent bug with KDE/plasma file associations

Posted 03-27-2016 at 01:22 PM by the dsc (linux-related notes)
Updated 03-29-2016 at 05:40 PM by the dsc

At least in Ubuntu wily, it doesn't seem to allow you to chose the default application to open a file type. You try to do it, but it "magically" restores the previous default association before your eyes. Even if you chanced the config file, somehow. (I'm assuming it's mimeapps.lst, but I'm not sure. It seems that it's cool nowadays to have cryptic, hidden config files, avoiding to mention them unless strictly necessary, pretending it's all magic and config files don't exist)
...
Member
Posted in Uncategorized
Views 115 Comments 0 the dsc is offline
Old

Silly volume control scripts for openbox that probably won't work for everyone

Posted 03-20-2016 at 10:03 PM by the dsc (linux-related notes)
Updated 03-20-2016 at 10:22 PM by the dsc

Code:
#!/bin/bash

# volume changer+notifier, using notify-send, and tested only with xfce4-notifyd
# the syntax is the same of the "end" of what you'd use in plain amixer, see "$1"
# Ex.: 5%-, 5%+, 30, 60%

com=(`amixer set "Master" $1`)

vol1=${com[20]} 

# and here's why it won't work for everybody. The output of amixer includes
# things like soundcard features, which are array elements I'm just
...
Member
Posted in Uncategorized
Views 227 Comments 0 the dsc is offline
Old

kwrite "vi input mode" enabled accidentaly is quite annoying

Posted 03-15-2016 at 12:43 PM by the dsc (linux-related notes)
Updated 03-16-2016 at 06:23 AM by the dsc

First of all, you may be used to sometimes pasting stuff with shift+control+V instead of just control+V. Perhaps that's the way it's done in nano and/or some terminal emulators. The problem is that it's now also the default shortcut to enable "vi edit mode" in kwrite.

For people who like myself, don't really get "vi", using nano or something like that when forced to use cli editors, if you're in kwrite (perhaps also kate) and all of a sudden it seems to behave...
Member
Posted in Uncategorized
Views 179 Comments 0 the dsc is offline
Old

Parsing script arguments in bash, without getopt(s)

Posted 03-12-2016 at 05:15 PM by the dsc (linux-related notes)
Tags arguments, bash

Nifty. Just found that on stackoverflow:

http://stackoverflow.com/questions/1...uments-in-bash

Quote:
Originally Posted by Bruno Bronosky, cwd, et al.
Preferred Method: Using straight bash without getopt[s]

I originally answered the question as the OP asked. This Q/A is getting a lot of attention, so I should also offer the non-magic way to do this. I'm going to expand upon guneysus's answer to fix the nasty sed and include Tobias Kienzler's suggestion.

Two
...
Member
Posted in Uncategorized
Views 320 Comments 2 the dsc is offline
Old

Fix for "unconfigurable" samba/CIFs/etc on Debian

Posted 03-10-2016 at 03:05 PM by the dsc (linux-related notes)

Quote:
>On Tue, Mar 08, 2016 at 03:33:21PM +0100, Francesco Potort́ wrote:
>> I identified the problem source: this version of Samba does not accept
>> "security = share" any more and the /etc/init.d/nmbd script fails.
The
>> reason is that:
>>
>> # samba-tool testparm --parameter-name="server role"
>> WARNING: Ignoring invalid value 'share' for parameter 'security'
>> ERROR: Unable to load
...
Member
Posted in Uncategorized
Views 211 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 02:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration