LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-22-2020, 04:38 PM   #16
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162

Quote:
It's always good to have a color scheme reminding you when you are running something as root during your user session, I know several people who do this as well.
That is a good idea and what I do.
 
Old 04-22-2020, 05:31 PM   #17
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware, Debian
Posts: 7,351

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
Quote:
Originally Posted by rkelsen View Post
Don't log into the GUI as root. Problem solved.
What he said!!! ^^^^^
 
1 members found this post helpful.
Old 04-22-2020, 09:39 PM   #18
fulalas
Member
 
Registered: Jun 2017
Posts: 151

Original Poster
Rep: Reputation: 34
@IlyaK, the content of ~/.config/xfce4 is the same for both root and guest user, so that's not the cause of the issue.
@rkelsen, the problem is that many times I log as guest and want to run a root instance of a given program (thunar or terminal, for instance).
@deNiro and @dugan, it's a bit fatter if you open both images in their original sizes. Both guest and root accounts have the same font configuration -- I double checked on xfce settings -> appearance -> fonts
@upnort, thanks for your tip. I tried but it doesn't fix this issue, even adapting '<dir>/usr/local/share/fonts</dir>' to '<dir>/usr/share/fonts</dir>', which is where the fonts are actually located here. I used your original config file content and then adapted to this:

Code:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<dir>/usr/share/fonts</dir>
	<match target="font">
		<edit mode="assign" name="rgba">
			<const>rgb</const>
		</edit>
		<edit mode="assign" name="hinting">
			<bool>true</bool>
		</edit>
		<edit mode="assign" name="hintstyle">
			<const>hintfull</const>
		</edit>
		<edit mode="assign" name="antialias">
			<bool>true</bool>
		</edit>
		<edit mode="assign" name="autohint">
			<bool>false</bool>
		</edit>
	</match>
</fontconfig>
I also tried to replicate the content above in the following files:

Code:
/etc/fonts/conf.avail/50-user.conf
/etc/fonts/conf.avail/51-local.conf
/etc/fonts/conf.avail/99-user.conf
/etc/fonts/conf.avail/local.conf
/home/guest/.fonts.conf
/home/guest/.fonts.conf.d
/root/.fonts.conf
/root/.fonts.conf.d
But it doesn't work. I'm not sure if this is really the way to fix it because if I open xfce settings -> appearance -> fonts the settings are the same for both guest and root.

Maybe I wasn't clear in my first post. The problem is booting as guest and then opening a given program as root.

Thanks, guys. I accept more ideas

Last edited by fulalas; 04-23-2020 at 12:30 AM.
 
Old 04-23-2020, 12:04 AM   #19
IlyaK
Member
 
Registered: Jun 2017
Location: The Netherlands
Distribution: Debian
Posts: 118

Rep: Reputation: 72
hm.. I really can't understand what happens.

Lets check how fontconfig resolves font pattern used by your app.
For example I use ``xterm`` and have ``fontFace`` set to ``mono``. So, I do:

Code:
$ fc-match --verbose mono
Output includes hinting, hintstyle, font name, and other stuff.
You may do the same for font your app uses and see if output is the same.


>Maybe I wasn't clear in my first post. The problem is booting as guest and then opening a given problem as root.
So, you simply open terminal and type something like ``sudo`` ?
 
Old 04-23-2020, 12:28 AM   #20
fulalas
Member
 
Registered: Jun 2017
Posts: 151

Original Poster
Rep: Reputation: 34
@IlyaK, here's the output (it seems they're the same): http://www.mediafire.com/convkey/c77...86jvf2syzg.jpg

And, yes, I open the terminal (as guest) and type:
Code:
sudo xfce4-terminal
So now I have a root instance of the terminal and check the fat font. I can do the same for thunar or whatever. And, as I said, this also applies to other DEs, like LXDE and LXQt, for instance.
 
Old 04-23-2020, 04:18 PM   #21
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by fulalas View Post
And, yes, I open the terminal (as guest) and type:
Code:
sudo xfce4-terminal
So now I have a root instance of the terminal and check the fat font. I can do the same for thunar or whatever. And, as I said, this also applies to other DEs, like LXDE and LXQt, for instance.
Just for future reference. You should never open a root app with just using sudo. It can change the owner of your user's files to root and can break things. You should use kdesu if you have a full Slackware install or gksu from SBo. This ensures that root won't screw up the user's file permissions.

And it's very possible that using kdesu or gksu might not have the problem you're seeing with fonts, so definitely give it a try.

You may also want to check and see if there's any root owned files in your user's directory. As your regular user, run the following:

Code:
find ~ -user root
 
Old 04-23-2020, 05:12 PM   #22
fulalas
Member
 
Registered: Jun 2017
Posts: 151

Original Poster
Rep: Reputation: 34
Thumbs up

@bassmadrigal, thanks for the tip. Actually I'm one of Porteus devs I access root instances of thunar, terminal, etc through other ways (shortcuts that call scripts that call gksu). I was just trying to simplify things here. And, no, it doesn't make any difference calling them using sudo or gksu regarding the font issue.

Thanks!
 
Old 04-23-2020, 10:43 PM   #23
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,004

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
If you are using GTK 3, you can run

Code:
gtk-query-settings
to compare the settings of your user and root accounts.
Ed
 
Old 04-23-2020, 11:06 PM   #24
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,257

Rep: Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338
Well, if I were actually curious about this (and I wouldn't be; just don't ignore the advice to not run as root!), I would start by comparing the graphical font rendering settings in Xfce, between the root and user accounts. Then I would look in /etc/skel to see if it adds anything to the user accounts that could be relevant.
 
Old 04-24-2020, 08:40 AM   #25
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,004

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Font settings propagate from the desktop environment to X11, GTK, and Freetype. Each presents new opportunities to get the settings wrong. I suspect the discrepancy is in the GTK layer.
Ed
 
Old 04-24-2020, 12:21 PM   #26
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,257

Rep: Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338Reputation: 5338
There are also Freetype environment variables to look at:

https://www.linuxquestions.org/quest...ng-4175644838/
 
Old 04-24-2020, 12:41 PM   #27
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware, Debian
Posts: 7,351

Rep: Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750Reputation: 3750
In my opinion it's a really bad idea to run your desktop as the root user.
 
2 members found this post helpful.
Old 04-24-2020, 08:51 PM   #28
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by hitest View Post
In my opinion it's a really bad idea to run your desktop as the root user.

Care to give reasons?
 
Old 04-24-2020, 10:40 PM   #29
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
May I throw my hat into the ring? Although Slackware is a multi-user OS I am the only user. It is my computer and I am the only one that is even interested in using it. The only other person in this house is my wife and she has her own Windows computer and also has a MAC.
Run as root user? In my case, no problemo
 
Old 04-25-2020, 02:09 AM   #30
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,474
Blog Entries: 7

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Quote:
Originally Posted by enorbet View Post
Care to give reasons?
I feel like you're trolling. A user as experienced as yourself should know the answer to that. This has been discussed to death over the years. You can easily find lots of discussion about this topic on the internet, and it is generally inexperienced users asking the question.

If you need root access while in the GUI, open a terminal and use su or sudo to do whatever you need to do. In >20 years, I've not had many problems which couldn't be fixed this way. I can't recall any right now, but there were probably some.

Anyhow, each to their own, and with home routers being tightly locked down by default these days it probably doesn't matter as much. But there is still an element of risk. Some people don't like being protected from themselves. I don't mind it.

I'd probably cop the same flak for saying that I don't run anti-virus software... Haven't needed it since I started using Linux. My system, my risk.

Last edited by rkelsen; 04-25-2020 at 02:10 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
df shows full root mount, du shows barely used ss1100 Linux - Newbie 16 12-07-2017 05:14 PM
Default font does not display in applications, e.g. vlc. Shell, e.g. bash shows font jkharris SUSE / openSUSE 0 09-10-2012 10:18 AM
snmp staus shows it running but on trying MRTG, it shows public@ipaddr not giving res swati220781 Linux - Networking 3 07-08-2004 05:32 PM
i want to compile fat file system module and get fat.o working ramya272 Linux - Newbie 9 02-26-2004 11:41 AM
Linux supports fat or fat 32? dark_light Linux - General 3 04-25-2002 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:50 PM.

Main Menu
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