Make sure you can run a graphical application as root (please refer to the previous post) or you logged in as root on a graphical session.
Run gnome-disks:
> gnome-disks --gapplication-service
Select the partition and click on the Settings button.
Right-click and select: "Edit Mount Options..."
Configure at will. Remember to choose a "Display Name".
Reference
Thursday, October 10, 2019
Running a Graphical Application as root on Fedora
If you, as a regular user, want to run a graphical application with root privileges, you can do the following from your account:
First check you belong to the wheel group (you can invoke sudo).
Create a file with the following script in a file named, for example, wsudo:
#!/bin/bash
# -*- ENCODING: UTF-8 -*-
#small script to enable root access to x-windows system
xhost +SI:localuser:root
notify-send "ALERT: Enable root user on xhost"
beesu $1
#disable root access after application terminates
xhost -SI:localuser:root
#print access status
notify-send "Disable root user on xhost"
Export the display:
> export DISPLAY=:0.0
then run the graphical application like this:
> ~/bin/wsudo appname
You will be prompted for your password and you're done!
First check you belong to the wheel group (you can invoke sudo).
Create a file with the following script in a file named, for example, wsudo:
#!/bin/bash
# -*- ENCODING: UTF-8 -*-
#small script to enable root access to x-windows system
xhost +SI:localuser:root
notify-send "ALERT: Enable root user on xhost"
beesu $1
#disable root access after application terminates
xhost -SI:localuser:root
#print access status
notify-send "Disable root user on xhost"
> export DISPLAY=:0.0
then run the graphical application like this:
> ~/bin/wsudo appname
You will be prompted for your password and you're done!
Friday, July 12, 2019
Windows 10: You Don't Have Permission to Access
You mount an external drive while sitting at your home desk and now you don't have access to some directories anymore.
What I did to solve this is:
What I did to solve this is:
- Select the drive and open the Properties -> Security tab.
- Go to Advanced.
- Change ownership to "Everyone"
- Absolutely remember to check: "Replace all child object permissions entries with inheritable permission entries from this object."
Monday, December 31, 2018
Thunderbird Displaying Weird Characters Instead of UTF
If you see something like "fᅵr" instead of "für" in Thunderbird, then try this:
Go to Options -> Advanced -> Config Editor (Accept Risk!).
Then search for "mail.strictly_mine" and double click on it to change from false to true.
That worked for me on newly received messages. The old ones still do not display correctly.
Go to Options -> Advanced -> Config Editor (Accept Risk!).
Then search for "mail.strictly_mine" and double click on it to change from false to true.
That worked for me on newly received messages. The old ones still do not display correctly.
Saturday, September 01, 2018
Disable Automatic Adaptative Brightness Control on Windows 10
The only thing that worked on my Dell Latitude to disable this quite annoying "feature" was going to Settings -> Power and Sleep Settings -> Additional Power Settings and choose the Balanced plan.
You should also check that in the Advanced Power Settings -> Display -> Enable Adaptative Brightness is disabled.
Choosing a Power Plan kept this option enabled even with Enable Adaptative Brightness disabled.
Update. Sometimes this doesn't work. I found an additional setting to try:
Run regedit and go to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Intel\Display\igfxcui\profiles\Media\Brighten Movie and Darken Movie.
Then set ProcAmpBrithness to 0 (mine was respectively 30.00 and -30.00).
I'll let you know if it works...
You should also check that in the Advanced Power Settings -> Display -> Enable Adaptative Brightness is disabled.
Choosing a Power Plan kept this option enabled even with Enable Adaptative Brightness disabled.
Update. Sometimes this doesn't work. I found an additional setting to try:
Run regedit and go to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Intel\Display\igfxcui\profiles\Media\Brighten Movie and Darken Movie.
Then set ProcAmpBrithness to 0 (mine was respectively 30.00 and -30.00).
I'll let you know if it works...
Tuesday, June 12, 2018
Eclipse XML file Syntax colors
If you have an XML files that opens with unreadable colors but the XML colors are different, the reason could be that the file is not associated to the XML editor but some other (default) editor, like Ivy.
Either open the file with (Open with...) the XML editor or change the color scheme for the default editor.
Either open the file with (Open with...) the XML editor or change the color scheme for the default editor.
Tuesday, April 17, 2018
Reopen Last Closed Window in Firefox
If you accidentally or voluntarily closed a window and now you want it back, once there was the history menu item...
With the latest versions, you can use: cltr-shift-n. This will reopen the last closed window.
Tested with Firefox 59.
Thanks to NB_FF.
With the latest versions, you can use: cltr-shift-n. This will reopen the last closed window.
Tested with Firefox 59.
Thanks to NB_FF.
Friday, October 06, 2017
Skype Status in the Windows 10 App
There are only 2 explicitly available statuses in the Skype App for Windows 10 that
can be manually set and they are accessible if you click on your
profile picture/user profile on top.
- Do not disturb
- Do not share my presence (Invisible)
Friday, September 15, 2017
Fedora 26: Configure Middle Button Emulation
I have a 3-button Logitech USB-PS/2 Optical Mouse but the middle button doesn't work. My main use is automatic copy and paste.
What you can do to do that is enable the emulation mode (press at once the left and right buttons).
Check your device ID with:
> xinput list
Virtual core pointer id=2 [master pointer (3)][...]
Logitech USB-PS/2 Optical Mouse id=12 [slave pointer (2)]
then use to list its properties:
> xinput list-props 12
[...]
libinput Scroll Method Enabled (293): 0, 0, 0
then enable it:
> xinput set-prop 12 297 1
or better (change-proof):
>xinput set-prop "Logitech USB-PS/2 Optical Mouse" "libinput Middle Emulation Enabled" 1
If you want to make this permanent, add it to your .bashrc or similar or to the configuration in /etc/X11/xorg.conf.d.
References
Updated from: https://ask.fedoraproject.org/en/question/47238/configure-auto-copy-paste/
What you can do to do that is enable the emulation mode (press at once the left and right buttons).
Check your device ID with:
> xinput list
Virtual core pointer id=2 [master pointer (3)][...]
Logitech USB-PS/2 Optical Mouse id=12 [slave pointer (2)]
then use to list its properties:
> xinput list-props 12
[...]
libinput Scroll Method Enabled (293): 0, 0, 0
then enable it:
> xinput set-prop 12 297 1
or better (change-proof):
>xinput set-prop "Logitech USB-PS/2 Optical Mouse" "libinput Middle Emulation Enabled" 1
If you want to make this permanent, add it to your .bashrc or similar or to the configuration in /etc/X11/xorg.conf.d.
References
Updated from: https://ask.fedoraproject.org/en/question/47238/configure-auto-copy-paste/
Monday, October 17, 2016
java.net.SocketException: Connection reset
This exception can have many causes and tracking them down is not easy but the one I experienced was that I was trying to connect to an HTTPS port with a HTTP connection (HttpURLConnection).
Wednesday, June 01, 2016
Access Denied on Windows File on External Drive
Windows 10.
This is no recipe but you can try this:
This is no recipe but you can try this:
- Open: Properties -> Security -> Advanced
- Change Owner to Everyone. How to do that depends on the type of user you are.
- Now in the security tab, select Everyone on Group or User Names.
- The Edit button on change permissions should be enabled.
- Select Full Control and save.
Friday, May 13, 2016
Using Google as the Default Search Engine for Thunderbird
Since v13, Thunderbird uses Bing as its default search engine and Google is not even a choice.
If you want to use Google you can do it installing an add-on:
If you want to use Google you can do it installing an add-on:
- Open "Add-ons" from the "tools" menu;
- Search for "google"
- Install "Google Search for Thunderbird"and restart.
- Google should have been automatically selected as the default search engine now!
Thunderbird 45 Create New Message: default style is Paragraph instead of Body Text
For some unknown reason we got this change in v45.
If you want to go back to "Body Text":
Open the Options window, go to Composition -> General and uncheck: "When using paragraph format, the Enter key creates a new paragraph".
Which is kind of obscure since no one told Thunderbird to start using paragraph format in the first place.
But that does it, so...
If you want to go back to "Body Text":
Open the Options window, go to Composition -> General and uncheck: "When using paragraph format, the Enter key creates a new paragraph".
Which is kind of obscure since no one told Thunderbird to start using paragraph format in the first place.
But that does it, so...
Tuesday, May 10, 2016
Persist Custom putty Settings
- Change your settings.
- Click once on "Default Settings" under "Load, save or delete a stored session" (in the "Session" category) to select it.
- Click "Save."
Thanks to Chad P
Tuesday, May 03, 2016
putty: Access Denied
IP/host name, username and password are correct but you get Access Denied when tyring to log in.
Try disabling this setting:
Putty has GSSAPI enabled by default.

Turn it off if you are not using Kerberos (and chances are, you are not in your environment).
Explanation:
I dealt with a few weeks back with when a new administrator could not login to any ssh host with putty - even the one that I know should be working for him. It seems that with GSSAPI Auth enabled, Putty will attempt to login with non-existent kerberos credentials, which resulted in an immediate Access Denied message.
[...]
Source: http://serverfault.com/questions/317781/putty-access-denied
Try disabling this setting:
Putty has GSSAPI enabled by default.
Turn it off if you are not using Kerberos (and chances are, you are not in your environment).
Explanation:
I dealt with a few weeks back with when a new administrator could not login to any ssh host with putty - even the one that I know should be working for him. It seems that with GSSAPI Auth enabled, Putty will attempt to login with non-existent kerberos credentials, which resulted in an immediate Access Denied message.
[...]
Source: http://serverfault.com/questions/317781/putty-access-denied
Monday, February 15, 2016
Removing $Windows.~BT & $Windows.~WS Folders
$Windows.~BT & $Windows.~WS folders are created after an update to Windows 10 and are temporary directories taking a lot of space. They can safely be deleted.
Thanks to TheWindowsClub.
- Run a DOS (cmd) console as administrator.
- Execute:
- takeown /F C:\$Windows.~BT\* /R /A
- icacls C:\$Windows.~BT\*.* /T /grant administrators:F
- rmdir /S /Q C:\$Windows.~BT\
Thanks to TheWindowsClub.
Monday, November 23, 2015
Mercurial Tips
- Trashcan - [from the docs] The shelve tool is very conservative with your source and patch files. Before it modifies any file it makes a backup under .hg/Trashcan. This trashcan can be emptied by running the purge dialog from the Workbench Repository –> Purge menu option.
Monday, October 19, 2015
You don't currently have permission to access this folder
So you mount an external disk, try to go to the directory where you need to go and Windows tells you that you don't have the permission to do that.
I never understood the philosophy of Windows security, probably because I'm used to Linux. I don't want to understand it anyway unless it gets in my way.
What I tried successfully is:
I never understood the philosophy of Windows security, probably because I'm used to Linux. I don't want to understand it anyway unless it gets in my way.
What I tried successfully is:
- Open the folder's Properties.
- Go to Security and click Advanced.
- Change Owner: Enter the object name to select and do Check Names.
- Check Replace owner on subcontainer and objects.
- Ignore the Windows security warning.
- You're done!
Monday, October 05, 2015
Restoring Audio Service in Windows 10
Today I couldn't listen to anything or change the volume or do anything related to audio.
Someone suggested to:
> net stop audiosrv
> net stop AudioEndpointBuilder
> net start audiosrv
> net start AudioEndpointBuilder
After 5 minutes I'm still trying to see if the first command will ever end.
I'll never find out. I finally had to reboot. I tried the put-it-to-sleep solution but it went into eternal sleep.
That's always been Windows' solution: "reboot without saving your changes"!
Someone suggested to:
> net stop audiosrv
> net stop AudioEndpointBuilder
> net start audiosrv
> net start AudioEndpointBuilder
After 5 minutes I'm still trying to see if the first command will ever end.
I'll never find out. I finally had to reboot. I tried the put-it-to-sleep solution but it went into eternal sleep.
That's always been Windows' solution: "reboot without saving your changes"!
Tuesday, June 02, 2015
DokuWiki Hrun Alerts About Update even When Done
"Hotfix release available" alerts keep being displayed even after you do the update.
Apparently there is a bug.
In some places they explain you can manually remove the file: data/cache/messages.txt.
For me this doesn't work since the file is recreated right away.
What I did was to empty the file and leave it there and that worked.
... for a while. Now it's there again.
More info here if you want to try something.
Apparently there is a bug.
In some places they explain you can manually remove the file: data/cache/messages.txt.
For me this doesn't work since the file is recreated right away.
What I did was to empty the file and leave it there and that worked.
... for a while. Now it's there again.
More info here if you want to try something.
Subscribe to:
Posts (Atom)

