wondering if there is a command ine command which could do the job.Might help.
On 9/13/20 3:46 AM, santo wrote:
wondering if there is a command ine command which could do the job.Might help.
https://www.commandlinux.com/man-page/man1/xrandr.1.html
On Sun, 13 Sep 2020 08:50:16 -0500, Wes Newell wrote:
On 9/13/20 3:46 AM, santo wrote:
wondering if there is a command ine command which could do the job.Might help.
https://www.commandlinux.com/man-page/man1/xrandr.1.html
Hmmm way above my level...surely I will make disaster if I try something
with this...
went on /etc/X11 directory and I noticed a xorg.conf.old file with this entry towards the beginning of the file:
Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
Option "PreferredMode" "1600x900"
and the actual xorg.conf with this at the same place:
Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
Maybe the missing entry regardng the "PreferredMode"
is what is causing the issue?
If you go into MCC to hardware and to Set up the graphical interface, you
get a choice of driver, monitor, and resolution. You can tinker with
that. Plug n Play and generic xx-inch flat panel generally work for most
Hi all,
I connect my flat screen Samsung to my TV tuner to watch TV normally
without any issues...
recently when I swith back to the computer the screen resolution is
changing from 1600-900 to 1.24-786...with pages stretching all over the screen ( including the initial Mageia window...with the max min option
almost hidden at the top of the right screen...)
I tried to change back to the old resolution via System Settings but
under Display the max resolutin I get is the 1024-786...
So I tried MCC Hardware Configure Server settings ( which under
resolution gives me 1600-900 but it is not on the screen...) ...I
select 1600-900 again and Test it...
I get the question 'is this the resolution ...?' and it is not so I
click No...and am back to square one...I keep doing the same thing and
once the resolution was the one requested...clicked yes and restarted
the computer...it was ok no changed again after watching TV and the resoluiton is back to 1024-786 and this time no matter how many times I
tried through both system Setting and MCC there is no way I could get
the 1600-900...
wondering if there is a command ine command which could do the job...I
did goole but on this issue I find only references to Ubuntu...so I
prefer not to even try...
Any help is welcomed...
Hi all,
I connect my flat screen Samsung to my TV tuner to watch TV normally
without any issues...
recently when I swith back to the computer the screen resolution is
changing from 1600-900 to 1.24-786...with pages stretching all over the screen ( including the initial Mageia window...with the max min option
almost hidden at the top of the right screen...)
I tried to change back to the old resolution via System Settings but
under Display the max resolutin I get is the 1024-786...
So I tried MCC Hardware Configure Server settings ( which under
resolution gives me 1600-900 but it is not on the screen...) ...I
select 1600-900 again and Test it...
I get the question 'is this the resolution ...?' and it is not so I
click No...and am back to square one...I keep doing the same thing and
once the resolution was the one requested...clicked yes and restarted
the computer...it was ok no changed again after watching TV and the resoluiton is back to 1024-786 and this time no matter how many times I
tried through both system Setting and MCC there is no way I could get
the 1600-900...
wondering if there is a command ine command which could do the job...I
did goole but on this issue I find only references to Ubuntu...so I
prefer not to even try...
Any help is welcomed...
Nothing works of what I can do...very disappointing that I cant get beck
the original screen resolution...especially considering that this Samsung flat screen gives as optimal resolution exactly 1600-900
:-(
On 16/9/20 9:07 pm, santo wrote:
Nothing works of what I can do...very disappointing that I cant get
beck the original screen resolution...especially considering that this
Samsung flat screen gives as optimal resolution exactly 1600-900
:-(
Have you dinked around with the xrandr command
Now I have to see if I can save them into a script to create a single
command and have the run at boot probably by saving it into my /Home/bin directory and adding it into the profile...but this will be the topic of another post in the near future
On Wed, 16 Sep 2020 21:28:09 +1000, faeychild wrote:
On 16/9/20 9:07 pm, santo wrote:
Nothing works of what I can do...very disappointing that I cant get
beck the original screen resolution...especially considering that this
Samsung flat screen gives as optimal resolution exactly 1600-900
:-(
Have you dinked around with the xrandr command
I was afraid to dink around with it as I found it a bit intimidating but then given that nothing was working I gave it a try...after a couple of horrible result i finally managed to understand it thanks to example
given in the Man page...
I scrolled the Xorg.conf file and found the line referring to the
1600x900 60 which is the resolution I wanted...then
[santo@localhost ~]$ xrandr --newmode "1600x900" 119.00 1600 1696
1864 2128 900 901 904 932 -HSync +Vsync
[santo@localhost ~]$ xrandr --addmode VGA-0 1600x900
[santo@localhost ~]$ xrandr --output VGA-0 --mode 1600x900
and gives me the resolution I wanted
:-)
...only I have to run those commands everytime I boot into Mageia...
Now I have to see if I can save them into a script to create a single command and have the run at boot probably by saving it into my /Home/bin directory and adding it into the profile...but this will be the topic of another post in the near future
:-)
Thank you for reminding me and to Wes for pointing to this command...
On 2020-09-20, santo <santo@auroville.org.in> wrote:
You should be able to put those details into /etc/X11/xorg.conf Not sure
what the format is however.
I have seen posts in the past to delete/remove/rename xorg.conf which
caused it to be regenerated upon next boot.
On Sun, 20 Sep 2020 14:37:03 -0400, Bit Twister<BitTwister@mouse-potato.com> wrote:
okI have seen posts in the past to delete/remove/rename xorg.conf which
caused it to be regenerated upon next boot.
I don't have one as it overrides the automatic detection by X11 which works
on my system. It is not regenerated on boot, but is recreated if you usedrakx11
to change any settings.
If you were to do a
ls -al /etc/X11/
you may see that there are a few drop in directories, one of which is xorg.conf.d
Since you only want only one resolution, you would create a drop in file
for the screen section with just what you want.
Your /etc/X11/xorg.conf calls out an Identifier "xxxx" and Device "xxx"
With that knowledge your drop in file,
/etc/X11/xorg.conf.d/xx__screen.conf would have something like
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24
Subsection "Display"
Depth 24 Modes "1600x900" 119.00 1600 1696 1864 2128 900 901 904
932 -HSync +Vsync EndSubsection
EndSection
On Sun, 20 Sep 2020 05:40:06 -0500, Bit Twister wrote:
If you were to do a
ls -al /etc/X11/
you may see that there are a few drop in directories, one of which is
xorg.conf.d
Since you only want only one resolution, you would create a drop in file
for the screen section with just what you want.
Your /etc/X11/xorg.conf calls out an Identifier "xxxx" and Device "xxx"
With that knowledge your drop in file,
/etc/X11/xorg.conf.d/xx__screen.conf would have something like
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24
Subsection "Display"
Depth 24 Modes "1600x900" 119.00 1600 1696 1864 2128 900 901 904
932 -HSync +Vsync EndSubsection
EndSection
I created the script and saved in my ~/bin directory so I can get the resolution I wanted but as you suggested otherwise I tried it...
I have tried the whole week to understand this drop in file business...I
may have understood the idea behind it ( maybe) but definetly I do not
seem to understand how to use it.
I am trying to create a res_screenc.conf file and save it into xorg.conf.d but if I use e.g. your example above then running startx gived me an
error message...
'119 is not a right keyword in this section'
and then I have to delete the file...probably the format of the file I am creating is not correct ...
I tried and experimented using entries in the Xorg.conf file but no success...either I get the 1024x786 resolution or the error message about
the entry after "1600X900" being an invalid keyword.
p.s.
...also in a crazy moment I saved the script into /etc/profile.d it did
not give me the resolution I wanted but somehow clicking on Konsole it
would automatically shift to the 1600X900 resolution wanted...
On Sun, 27 Sep 2020 10:46:42 +0000 (UTC), santo wrote:
You seem to be using Pan/0.145. Either it or the editor being used is changing the format of the post by wrapping reply lines lines.
This leads to problems in either what you saved and used or causes respondents to think your files are not in the correct format. :-(
It would be helpful if you were to keep that from happening.
If you still have problems
On Sun, 27 Sep 2020 10:46:42 +0000 (UTC), santo wrote:
You seem to be using Pan/0.145. Either it or the editor being used is changing the format of the post by wrapping reply lines lines.
This leads to problems in either what you saved and used or causes respondents to think your files are not in the correct format. :-(
It would be helpful if you were to keep that from happening.
On Sun, 27 Sep 2020 09:11:27 -0500, Bit Twister wrote:
If you still have problems
sigh!...
posting from my junk account
well...something went horribly wrong...
:-(
I was trying to fooling around with the res.screen.conf file without
success but everything was fine...then I decided to play a Go Game on Panda.net and run the script in my home/bin directory to get the 1600x900 resolution...finished the Game I wanted to power off the computer but I
miss clicked and cliked Logout instead of power off...ever since then I
can not boot into my normal ID ( Santo )
I get an error message
"...a timeout in .Xauthority ...change will be ignored...( try to
remember by memory the message...)
the message repeat itself a few times the the screen go black...
I can boot int root and junk obviously but not into santo...
Any help welcome...
First off, I see no information about your setup.
As to your problem. our new and improved gui login scripts will not let
you login if there is an error. :(
Having been in that ditch more than once, anytime I change startup/login files I will click up a terminal and run
su -l $USER
just to make sure I have not created an error.
Offhand, my guess is you script needed root priv, so script did a
su run some command exit
As a result there may be some fines in your account owned by root.
Easy test to verify all files in your account are owned by you is
find $HOME \( -not -user $USER -or -not -group $USER \) -exec ls -al
'{}' \;
since junk/root work go ahead and do a su -l santo and run the find command.
Since you cannot login at current runlevel (gui/runlevel5) you will need
to change $HOME to something like /home/santo
On Thu, 01 Oct 2020 10:36:24 -0500, Bit Twister wrote:
First off, I see no information about your setup.not sure what you need from me here...
[santo@localhost ~]$ find $HOME \( -not -user $USER -or -not -group $USER
\) -exec ls -al '{}' \;
find: ‘/home/santo/Documents.old/.mybit’: Permission denied
-rw-rw-rw- 1 root root 162 Oct 1 16:12 /home/santo/.Xauthority
On Thu, 1 Oct 2020 15:52:43 +0000 (UTC), santo wrote:
On Thu, 01 Oct 2020 10:36:24 -0500, Bit Twister wrote:
First off, I see no information about your setup.not sure what you need from me here...
Run the script I posted in my reply.
[santo@localhost ~]$ find $HOME \( -not -user $USER -or -not -group
$USER \) -exec ls -al '{}' \;
find: ‘/home/santo/Documents.old/.mybit’: Permission denied -rw-rw-rw- >> 1 root root 162 Oct 1 16:12 /home/santo/.Xauthority
There is your problem. root root /home/santo/.Xauthority
As root
chown santo:santo /home/santo/.Xauthority
also
chown santo:santo /home/santo/Documents.old/.mybit
Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
do you still want me to run the script?
Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
do you still want me to run the script?
On Thu, 01 Oct 2020 11:51:45 -0500, Bit Twister wrote:
On Thu, 1 Oct 2020 15:52:43 +0000 (UTC), santo wrote:
On Thu, 01 Oct 2020 10:36:24 -0500, Bit Twister wrote:
First off, I see no information about your setup.not sure what you need from me here...
Run the script I posted in my reply.
[santo@localhost ~]$ find $HOME \( -not -user $USER -or -not -group
$USER \) -exec ls -al '{}' \;
find: ‘/home/santo/Documents.old/.mybit’: Permission denied -rw-rw-rw- >>> 1 root root 162 Oct 1 16:12 /home/santo/.Xauthority
There is your problem. root root /home/santo/.Xauthority
As root
chown santo:santo /home/santo/.Xauthority
also
chown santo:santo /home/santo/Documents.old/.mybit
Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
do you still want me to run the script?
On Fri, 02 Oct 2020 02:44:44 -0400, santo <santo@auroville.org.in> wrote:
Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
It happens when using su and then running any gui program, instead of using su --login, which can be abbreviated as just "su -".
do you still want me to run the script?
The script just creates as .signature file that can be appended to all
usenet messages to include info that makes debugging easier. Up to you whether you want to do that or not.
Regards, Dave Hodgins
On 2020-10-02, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
On Fri, 02 Oct 2020 02:44:44 -0400, santo <santo@auroville.org.in> wrote: >>> Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
It happens when using su and then running any gui program, instead of using >> su --login, which can be abbreviated as just "su -".
Then that is bug. Using $HOME rather that getting home from /etc/passwd
is very careless programming.
On 2020-10-02, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
On Fri, 02 Oct 2020 02:44:44 -0400, santo <santo@auroville.org.in> wrote: >>>> Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
It happens when using su and then running any gui program, instead of using
su --login, which can be abbreviated as just "su -".
Then that is bug. Using $HOME rather that getting home from /etc/passwd
is very careless programming.
It is not a bug.
$HOME was set from /etc/password during login.
Lots of apps use $HOME as part of the filespec for
read/writing files.
The bug is between the chair and the keyboard not the software.
The user should always use "su - root" or "su -" unless the user knows
the ramifications/feature of using just su.
On 2020-10-02, Bit Twister <BitTwister@mouse-potato.com> wrote:
On 2020-10-02, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
On Fri, 02 Oct 2020 02:44:44 -0400, santo <santo@auroville.org.in> wrote: >>>>> Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
It happens when using su and then running any gui program, instead of using
su --login, which can be abbreviated as just "su -".
Then that is bug. Using $HOME rather that getting home from /etc/passwd
is very careless programming.
It is not a bug.
$HOME was set from /etc/password during login.
It IS a bug, because on an su, $HOME is NOT copied from /etc/passwd. It remains what it was befor the su.
Lots of apps use $HOME as part of the filespec for
read/writing files.
Yes, and for most that is fine. For X it is not.
The bug is between the chair and the keyboard not the software.
The user should always use "su - root" or "su -" unless the user knows
the ramifications/feature of using just su.
Oh crap.
Especially for something like writing .Xauthority
by root, it should NOT be using $HOME.
It is a bug to require people to adapt to the bug, rather than writing
it properly from the word go.
The purpose if computers is to help people , not people having
to help the computer.
On Fri, 2 Oct 2020 17:26:54 -0000 (UTC), William Unruh wrote:
On 2020-10-02, Bit Twister <BitTwister@mouse-potato.com> wrote:
On 2020-10-02, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
On Fri, 02 Oct 2020 02:44:44 -0400, santo <santo@auroville.org.in> wrote:
Yes...this got me back to santo...phew! Thanks a lot...:-)
I wonder how this has happened...
It happens when using su and then running any gui program, instead of using
su --login, which can be abbreviated as just "su -".
Then that is bug. Using $HOME rather that getting home from /etc/passwd >>>> is very careless programming.
It is not a bug.
$HOME was set from /etc/password during login.
It IS a bug, because on an su, $HOME is NOT copied from /etc/passwd. It
remains what it was befor the su.
Lots of apps use $HOME as part of the filespec for
read/writing files.
Yes, and for most that is fine. For X it is not.
The bug is between the chair and the keyboard not the software.
The user should always use "su - root" or "su -" unless the user knows
the ramifications/feature of using just su.
Oh crap.
You say crap, I say bullcrap to you.
As an end user, I see your point, a little bit.
Especially for something like writing .Xauthority
by root, it should NOT be using $HOME.
It is a bug to require people to adapt to the bug, rather than writing
it properly from the word go.
Then again, I would assume you would say
su
rm /$home
should not be allowed which results in rm removing everything in /
instead of $HOME as expected.
The purpose if computers is to help people , not people having
to help the computer.
Sounding a little like a Micro$oft mantra to me and your statement is
not valid as to what you mean.
Current user computers can only do what people have told it to do.
It is just an idiot piece of machinery that can do whatever it is told
to do at a high rate of speed, repeatedly.
As a software developer and maintenance programmer you need software thattesting/tester.
is portable and testable. Being able to just change an environment variable like $HOME and run tests is a great/fantastic ability for any
Whoever is at the keyboard is communicating with the computer and is responsible knowing what the command does and preferably 'all' the ramifications of using the command.
For example, a little while back I wanted to build another one of my
system configuration scripts, So I was able to include a file of
environment variables which allowed me to make the scripts use /home/bittwister/test as /.
Your desired methodology would prevent such activity.
#* to your posts and post a message in one of the Usenet test groups
#* to verify it works as desired.
#*
#***********************************************************************
Sig_fn=$HOME/.signature
Sig_fn=$PWD/.signature
On 2/10/20 1:36 am, Bit Twister wrote:
#*Â Â Â Â to your posts and post a message in one of the Usenet test groups
#*Â Â Â Â to verify it works as desired.
#*
#***********************************************************************
  Sig_fn=$HOME/.signature
  Sig_fn=$PWD/.signature
OKÂ It's a slow morning here
I've been derailed
Don't two conflicting definitions of "Sig_fn" cause a problem?
On 2/10/20 1:36 am, Bit Twister wrote:
#* to your posts and post a message in one of the Usenet test groups
#* to verify it works as desired.
#*
#***********************************************************************
Sig_fn=$HOME/.signature
Sig_fn=$PWD/.signature
OK It's a slow morning here
I've been derailed
Don't two conflicting definitions of "Sig_fn" cause a problem?
That is why I blamed the programmers, not the computer.
On Sat, 3 Oct 2020 07:07:21 +1000, faeychild wrote:
On 2/10/20 1:36 am, Bit Twister wrote:
#* to your posts and post a message in one of the Usenet test groups >>> #* to verify it works as desired.
#*
#*********************************************************************** >>>
Sig_fn=$HOME/.signature
Sig_fn=$PWD/.signature
OK It's a slow morning here
I've been derailed
Don't two conflicting definitions of "Sig_fn" cause a problem?
Heheh, they are not really in conflict, last one wins.
I did not want my $HOME/.signature file overwritten so I just pick
another location where I was testing and forgot to remove the test
location declaration.
On Fri, 02 Oct 2020 17:06:57 -0400, William Unruh <unruh@invalid.ca> wrote:were
That is why I blamed the programmers, not the computer.
One thing to keep in mind is that most of the core programs in unix/linux
written long before the writing of the software for gui programs. As iscommon
in core programs, backward compatibility is considered extremely importantsince
the core programs are frequently used in scripts.instead
It's the gui programs that fail to recognize that they are running under su
of su --login, that are causing the problems by relying on the environmentvariables
to decide which directories and/or files to use.--login
As there are far too many gui programs to ensure they all handle su without
properly, and su will not be changed to ensure backward compatibility, it'sup to
the user to learn when using su without --login is ok, and when the --loginoption
(or it's abbreviation of just "-") must be used. In general, su - shouldalways be
used.
Some distributions have chosen to protect their users by stronglyencouraging their
users to only use sudo, and never to use su. I do not agree with thatapproach.
While sudo has it's uses, su --login makes more sense in many cases.changed
The ~/.Xauthority file is likely not the only one that had it's ownership
by running a gui program after using su without --login. I recommend using"su -"
to become root, and then running "chown -Rc tester:tester /home/tester"(replacing
tester with the appropriate loginid). Just be careful to review the results.When
I run it on my home directory, I have to fix the group of the followingdirectories
and files ...
# tree -ifaug /home/dave|grep -v '\[dave dave \]'
[dave mail ] /home/dave/mail
[dave mail ] /home/dave/mail/.imap
[dave mail ] /home/dave/mail/.imap/dovecot.list.index.log
[dave mail ] /home/dave/mail/.imap/INBOX
[dave mail ] /home/dave/mail/.imap/INBOX/dovecot.index
[dave mail ] /home/dave/mail/.imap/INBOX/dovecot.index.cache
[dave mail ] /home/dave/mail/.imap/INBOX/dovecot.index.log
Regards, Dave Hodgins
In which case that should be the default. Then su - could be a special
case where the - indicates that it is missing the reading of
.bash_profile.
In any case, it is a bug. Maybe hard to fix, but that does not make it
any less of a bug.
On Fri, 02 Oct 2020 19:38:47 -0400, William Unruh <unruh@invalid.ca> wrote:it
In which case that should be the default. Then su - could be a special
case where the - indicates that it is missing the reading of
.bash_profile.
In any case, it is a bug. Maybe hard to fix, but that does not make it
any less of a bug.
It's only a bug if it's unintended behaviour. It's intended to work the way
does to maintain both backward and cross distribution behaviour.
The most common explanation I've heard for why it's never been altered, isthat
with few exceptions where it's already handled properly such as mcc, mostgui
programs are not supposed to be run as root. Also, changing it's defaultwould
break many existing scripts that use it.
The idea of least privileges is integral to linux design. Programs shouldonly have
the permissions needed to do their intended tasks, and not be allowed toaccess or
modify things that they don't need in order to do that task. Anything thatuses
untrusted input, such as media players and web browsers should never be runas root.
As the most file managers allow specifying network file access such assamba, ftp,
nfs, etc., they also should not be run as root. The program vlc is a goodexample.
It can play media such as a network stream from a site accessed over theinternet.
That untrusted input combined with a large code base including pluginswritten by
many different authors puts vlc at high risk of being abused if allowed torun as
root.
It's sticking to those design principles that keeps linux much safer to usethan
other operating systems.
Chalk it up as a learning experience. Always use "su -", never just "su".Don't
run gui programs as root, except where the switch from user to root ishandled by
things like pkexec, which mcc uses.
Regards, Dave Hodgins
--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.
On 2020-10-03, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
On Fri, 02 Oct 2020 19:38:47 -0400, William Unruh <unruh@invalid.ca> wrote: >>> In which case that should be the default. Then su - could be a special
case where the - indicates that it is missing the reading of
.bash_profile.
In any case, it is a bug. Maybe hard to fix, but that does not make it
any less of a bug.
It's only a bug if it's unintended behaviour. It's intended to work the way it
does to maintain both backward and cross distribution behaviour.
If someone created a command called copy, which erased the file, that
would be a bug, even if it was the intended behaviour. While Alice in Wonderland argues that words are purely arbitrary, it is a nonsense
position to take.
The most common explanation I've heard for why it's never been altered, is that
with few exceptions where it's already handled properly such as mcc, most gui
programs are not supposed to be run as root. Also, changing it's default would
break many existing scripts that use it.
I will buy that last reason, but that does not mean that it has not
become bad design over time.
The idea of least privileges is integral to linux design. Programs should only have
the permissions needed to do their intended tasks, and not be allowed to access or
modify things that they don't need in order to do that task. Anything that uses
untrusted input, such as media players and web browsers should never be run as root.
But doing say sudo konsole, to run the konsole as root to do root stuff
is surely one of the tasks that is, if not entirely without danger, is
so often done so as to be standard. And if a side effect is to destroy
the users ability to run X then that is a bug.
As the most file managers allow specifying network file access such as samba, ftp,
nfs, etc., they also should not be run as root. The program vlc is a good example.
It can play media such as a network stream from a site accessed over the internet.
That untrusted input combined with a large code base including plugins written by
many different authors puts vlc at high risk of being abused if allowed to run as
root.
Fine, and many such programs refuse to run as root. Nothing wrong with
that. And some programs are entirely appropriate to be run as root, and
in fact mandatory to be run as root (eg vipw)
It's sticking to those design principles that keeps linux much safer to use than
other operating systems.
I certainly do not disagree. But if doing something which is appropriate
for root to run and it breaks something else, that is a bug.
Chalk it up as a learning experience. Always use "su -", never just "su". Don't
And sometimes one wants to stay in the directory in which one already is after the switch to root. In that case su rather than su - is the most convenient. And dangerous. In the case under discussion, apparently (we
do not really know what happened) the attempt to run something as root resulted in .Xauthority having its ownership converted to root.root.
That I still consider a bug. Yes, it is possible to evade that bug, but
just because a bug can be kludged does not make it not a bug.
run gui programs as root, except where the switch from user to root is handled by
things like pkexec, which mcc uses.
Regards, Dave Hodgins
--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.
And sometimes one wants to stay in the directory in which one already is after the switch to root. In that case su rather than su - is the most convenient. And dangerous. In the case under discussion, apparently (we
do not really know what happened) the attempt to run something as root resulted in .Xauthority having its ownership converted to root.root.
That I still consider a bug. Yes, it is possible to evade that bug, but
just because a bug can be kludged does not make it not a bug.
On Fri, 2 Oct 2020 06:44:44 +0000 (UTC), santo wrote:
Yes...this got me back to santo...phew! Thanks a lot...:-)
To be clear, the problem was that .Xauthority was owned by root instead
of santo
I wonder how this has happened...
You running "su" instead of "su - root" or "su -"
I make it a habit to always use su - root for great majority of the
time.
do you still want me to run the script?
My suggestion is to have your Usenet client append a file containing
some basic information about your setup, and you asked what info.
Normally I use su - when running urpmi --auto-update which is the only
reason I need to be root...so far...
but I remember using only su while fiddling with this resolution
issue...I feel a bit shy to admit it given the reaction it has created...
I need to know if it is enough to save the script into my /home/bin
directory or where it is the right place to save it in orfer for it to do what is required...
On Sat, 3 Oct 2020 14:15:05 +0000 (UTC), santo wrote:
Do remove the
Sig_fn=$PWD/.signature
line.
On Sat, 03 Oct 2020 10:41:01 -0500, Bit Twister wrote:
On Sat, 3 Oct 2020 14:15:05 +0000 (UTC), santo wrote:
Do remove the
Sig_fn=$PWD/.signature
line.
I did remove the above line this is what is left...
Sig_fn=$HOME/.signature DE=""
DM=""
DISTRO=""
when I run it I get the this error message...
[santo@localhost bin]$ gen_sig_file.sh
/home/santo/bin/gen_sig_file.sh: line 5: basic: command not found /home/santo/bin/gen_sig_file.sh: line 8: post: command not found
On Sun, 4 Oct 2020 07:37:50 +0000 (UTC), santo wrote:
On Sat, 03 Oct 2020 10:41:01 -0500, Bit Twister wrote:
I am going guess some other pan feature is causing problems.
Line 5 does not have "basic" in it but line 6 does.
Line 8 does not have "post" but line 9 does.
Here is the deal, Line 1 is code, but lines 2 through 42 are comments,
and there should be no errors flagged between those lines.
All the lines starting with line 1 through 42 should have "#" as the
first character on the line.
Alright, installed pan. I see that pan wrap caused the line 5 and 7
problems.
For saving script I will recommend the following:
OK will do that later if the new error message above may suggest another 'easier' solution...
Alright, installed pan. I see that pan wrap caused the line 5 and 7
problems.
first of all apologies for my late replies but time spam between India
and the US is huge...I go to sleep when you wake up sort of...so the
delay...
yes I realised that Pan makes some formatting changes when copy and paste
as a result some of the lines where uncommented...fixed that and other
lines I could figure out the problem... and have now only this error messages...
[santo@localhost bin]$ gen_sig_file.sh*
/home/santo/bin/gen_sig_file.sh: line 46: shift: DISTRO=Description::
numeric argument required
/home/santo/bin/gen_sig_file.sh: line 67: Kernel 5.7.19-desktop-1.mga7 on x86_64 DM= DE=: command not found
[santo@localhost bin]$
For saving script I will recommend the following:OK will do that later if the new error message above may suggest another 'easier' solution...
OK will do that later if the new error message above may suggest anotherThat "if" is wrong...what I meant was 'unless' meant
'easier' solution...
[santo@localhost bin]$ gen_sig_file.sh*
/home/santo/bin/gen_sig_file.sh: line 46: shift: DISTRO=Description::
numeric argument required /home/santo/bin/gen_sig_file.sh: line 67:
Kernel 5.7.19-desktop-1.mga7 on x86_64 DM= DE=: command not found [santo@localhost bin]$
You may need parenthesis around each $DM and $XDG_SESSION_DESKTOP,
i.e. $(DM) $(XDG_SESSION_DESKTOP)
<snip>
Bit,
If the above does not clear Santo's problem (and it may not), perhaps you could resend the script,
with NEWLINE appearing at the beginning of every
newline. That would allow Santo to create the file with NEWLINE at
every line, and then delete the NEWLINEs before saving.
On Mon, 05 Oct 2020 14:30:27 +0000, santo wrote:
<snip>
[santo@localhost bin]$ gen_sig_file.sh*
/home/santo/bin/gen_sig_file.sh: line 46: shift: DISTRO=Description::
numeric argument required /home/santo/bin/gen_sig_file.sh: line 67:
You need one or more newlines in the area starting type -p and ending
with shift DISTRO="$@". I think &1 should be followed by a newline,
another preceding set, another after ), another preceding shift.
Kernel 5.7.19-desktop-1.mga7 on x86_64 DM= DE=: command not found
[santo@localhost bin]$
At the end of the script, above #***, each of three echo should be
preceded with a newline. After the first one, it is a single > $Sig_fn.
For the last two, you add to the file created by that, by using >>
$Sig_fn.
You may need parenthesis around each $DM and $XDG_SESSION_DESKTOP,
i.e. $(DM) $(XDG_SESSION_DESKTOP)
<snip>
Bit,
If the above does not clear Santo's problem (and it may not), perhaps
you could resend the script, with NEWLINE appearing at the beginning of
every newline. That would allow Santo to create the file with NEWLINE
at every line, and then delete the NEWLINEs before saving.
Well, I have prepared a version of what I suggested above, and tinkered
with it a little. I use Gnome/Wayland and have no desktop-manager.service file so I get an error message on that and DE= in the output.
NL#***********end gen_sig_file.sh ***************************
To save script,
click up a terminal cat > some_filename_here
click back in pan screen
Click Edit->Select Article Body
Then click at the bottom of the terminal and hit your mouse paste button
hit carriage return and then Ctrl+d
Now you can edit some_filename_here and chop out everything you do not
want.
On Sun, 04 Oct 2020 17:21:14 +0000, Bit Twister wrote:
[santo@localhost ~]$ cat .signatureTo save script,
click up a terminal cat > some_filename_here
click back in pan screen
Click Edit->Select Article Body
Then click at the bottom of the terminal and hit your mouse paste
button hit carriage return and then Ctrl+d
Now you can edit some_filename_here and chop out everything you do not
want.
ok...did this as well but somehow did get error messages as
well...believe me I tried but obviously I make some mistakes am not
aware of...so I retyped the script...now I do not get any error messages
and the .signature file looks like this:
[santo@localhost ~]$ gen_sig_file.sh
ok...did this as well but somehow did get error messages as[santo@localhost ~]$ cat .signature
well...believe me I tried but obviously I make some mistakes am not
aware of...so I retyped the script...now I do not get any error
messages and the .signature file looks like this:
[santo@localhost ~]$ gen_sig_file.sh
RunningMageia release 7 (Official) for x86_64 using kernel 5.7.19-desktop-1.mga7 on x86_64 DM= DE= [santo@localhost ~]$
On Thu, 8 Oct 2020 14:03:16 -0000 (UTC), Jim Beard wrote:
Well, I have prepared a version of what I suggested above, and tinkered
with it a little. I use Gnome/Wayland and have no
desktop-manager.service file so I get an error message on that and DE=
in the output.
Ok, I fixed desktop-manager.service to not error out. But I need to know
what distribution media you used for install and is GNOME the only DE installed?
I need to know enough to create your setup to test my script.
FYI:
NL#***********end gen_sig_file.sh ***************************
You need one more NL to guarantee a carriage return after the last line.
[santo@localhost ~]$ gen_sig_file.sh[santo@localhost ~]$ cat .signature
RunningMageia release 7 (Official) for x86_64 using
kernel 5.7.19-desktop-1.mga7 on x86_64 DM= DE=
I installed Mageia 7 from a DVD iso,
and installed only Gnome DE as part
of the upgrade.
However, it was an upgrade of Mageia 6 rather than a clean install.
Mageia 6 was likewise from a DVD but I seem to remember installing
both Gnome and KDE4 desktops,
and there is a bunch of kde stuff in
my current Mageia 7. I use k3b and okular, and maybe a few other
apps originating in kde.
On Fri, 9 Oct 2020 13:07:53 +0000 (UTC), santo wrote:
\
[santo@localhost ~]$ gen_sig_file.sh[santo@localhost ~]$ cat .signature
RunningMageia release 7 (Official) for x86_64 using
kernel 5.7.19-desktop-1.mga7 on x86_64 DM= DE=
Your retype is still having problems.
I would have expected DM and DE to have values.
Do you know what your Desktop Environment is, kde, plasma, gnome,..... ?
Do you remember what install media/iso was used?
On Fri, 9 Oct 2020 13:58:01 -0000 (UTC), Jim Beard wrote:
I installed Mageia 7 from a DVD iso,
That is a bit vague as to which one.
and installed only Gnome DE as part of the upgrade.
However, it was an upgrade of Mageia 6 rather than a clean install.
Mageia 6 was likewise from a DVD but I seem to remember installing both
Gnome and KDE4 desktops,
Well that bites, because if so, I would have thought
display-manager.service would have been set.
and there is a bunch of kde stuff in my current Mageia 7. I use k3b
and okular, and maybe a few other apps originating in kde.
So, guessing there is some file in your user account, telling the system which DE is to be used.
Click up a terminal and run the following
cd grep -i session= .???* 2> /dev/null | grep -v .xsession
On Fri, 09 Oct 2020 12:28:42 -0500, Bit Twister wrote:
On Fri, 9 Oct 2020 13:58:01 -0000 (UTC), Jim Beard wrote:
I installed Mageia 7 from a DVD iso,
That is a bit vague as to which one.
Mageia-7-x86_64.iso 4.1 GB 2 Jul 19
and installed only Gnome DE as part of the upgrade.
However, it was an upgrade of Mageia 6 rather than a clean install.
Mageia 6 was likewise from a DVD but I seem to remember installing both
Gnome and KDE4 desktops,
Well that bites, because if so, I would have thought
display-manager.service would have been set.
and there is a bunch of kde stuff in my current Mageia 7. I use k3b
and okular, and maybe a few other apps originating in kde.
So, guessing there is some file in your user account, telling the system
which DE is to be used.
I boot to run level 3, and the command used to start gnome is,
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session
Click up a terminal and run the following
cd grep -i session= .???* 2> /dev/null | grep -v .xsession
[jim@sorrel bin]$ cd
[jim@sorrel ~]$ grep -i session= .???* 2> /dev/null | grep -v .xsession [jim@sorrel ~]$
On Fri, 9 Oct 2020 20:21:24 -0000 (UTC), Jim Beard wrote:
On Fri, 09 Oct 2020 12:28:42 -0500, Bit Twister wrote:
On Fri, 9 Oct 2020 13:58:01 -0000 (UTC), Jim Beard wrote:
I installed Mageia 7 from a DVD iso,
That is a bit vague as to which one.
Mageia-7-x86_64.iso 4.1 GB 2 Jul 19
and installed only Gnome DE as part of the upgrade.
However, it was an upgrade of Mageia 6 rather than a clean install.
Mageia 6 was likewise from a DVD but I seem to remember installing
both Gnome and KDE4 desktops,
Well that bites, because if so, I would have thought
display-manager.service would have been set.
and there is a bunch of kde stuff in my current Mageia 7. I use k3b
and okular, and maybe a few other apps originating in kde.
So, guessing there is some file in your user account, telling the
system which DE is to be used.
I boot to run level 3, and the command used to start gnome is,
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session
Click up a terminal and run the following
cd grep -i session= .???* 2> /dev/null | grep -v .xsession
[jim@sorrel bin]$ cd [jim@sorrel ~]$ grep -i session= .???* 2>
/dev/null | grep -v .xsession [jim@sorrel ~]$
Ok, no user customization file.
XDG_SESSION_TYPE makes me wonder why my script did not set DE on your
system. What is the result of
env | grep XDG
On Fri, 09 Oct 2020 15:38:37 -0500, Bit Twister wrote:
XDG_SESSION_TYPE makes me wonder why my script did not set DE on your
system. What is the result of
env | grep XDG
[jim@sorrel ~]$ env |grep XDG
XDG_MENU_PREFIX=gnome-
XDG_VTNR=1
XDG_SESSION_ID=42
XDG_SESSION_TYPE=wayland
XDG_SESSION_CLASS=user
XDG_CURRENT_DESKTOP=GNOME
Click up a terminal and run the following
cd
Click up a terminal and run the following
cd
Didn't know that one, Bits
same as "cd ~"
On Sat, 10 Oct 2020 13:02:09 +1100, faeychild wrote:
Click up a terminal and run the following
cd
Yeah, some terminal launches do not leave you at $HOME. :(
Didn't know that one, Bits
same as "cd ~"
Yup, use of tilde (~) can be useful at times.
just for fun paste all the following:
cd $HOME/.config
pwd
cd /etc/profile.d
pwd
cd ~-
pwd
"cd ~-" is redundant. ;)
"cd" without any parameters takes one back to one's home directory, and
"cd -" takes one back to the previous directory. ;)
On Fri, 9 Oct 2020 12:05:56 -0500, Bit Twister wrote:
Do you know what your Desktop Environment is, kde, plasma, gnome,..... ?
Do you remember what install media/iso was used?
Re-read the article to make sure above changes take effect.
To save script,
On Fri, 09 Oct 2020 13:07:17 -0500, Bit Twister wrote:
On Fri, 9 Oct 2020 12:05:56 -0500, Bit Twister wrote:
Do you know what your Desktop Environment is, kde, plasma, gnome,..... ?
Kde
Do you remember what install media/iso was used?
DVD downloaded from Mageia site ( hope this is the right answer...)
Re-read the article to make sure above changes take effect.
Yes the whole formatting has changed for the better :-)
To save script,
done...no error messages ...
.signature looks like this...
Running Mageia release 7 (Official) for x86_64 using Kernel=5.7.19-desktop-1.mga7 on x86_64 DM=sddm DE=
DE= still no value
Ok, try this one
On Sat, 10 Oct 2020 09:11:04 -0500, Bit Twister wrote:
Ok, try this one
copied the script in .bash_profile
Logged out
Logged in
[santo@localhost ~]$ cat .signature
On Sun, 11 Oct 2020 09:18:12 +0000, santo wrote:
On Sat, 10 Oct 2020 09:11:04 -0500, Bit Twister wrote:
Ok, try this one
copied the script in .bash_profile
Logged out
Logged in
[santo@localhost ~]$ cat .signature
forgot...
also copied the outcome to a text file and added the link in Pan
SIGH!
On Sun, 11 Oct 2020 09:21:40 +0000, santo wrote:
SIGH!
Hope this is the last...resigh...!!
On Sun, 11 Oct 2020 09:30:54 +0000 (UTC), santo wrote:
On Sun, 11 Oct 2020 09:21:40 +0000, santo wrote:
SIGH!
Hope this is the last...resigh...!!
NOTE: do not put replies below the dash dash space.
Good Usenet client will delete everything below the dash dash
Running Mageia release 7 (Official) for x86_64 using Kernel=5.7.19-desktop-1.mga7 on x86_64 DM=sddm DE= ST=tty
put your video card and video driver here
DE= still missing a value.
ST=tty indicates you may need to run gen_sig_file.sh from the DE
autostart directory.
Click up a terminal and run
env | grep XDG.
and paste results.
Also you did not replace this line with desired values.
"put your video card and video driver here"
run lspcidrake | grep Card:
to get values.
On Sun, 11 Oct 2020 05:08:59 -0500, Bit Twister wrote:
On Sun, 11 Oct 2020 09:30:54 +0000 (UTC), santo wrote:
On Sun, 11 Oct 2020 09:21:40 +0000, santo wrote:
SIGH!
Hope this is the last...resigh...!!
NOTE: do not put replies below the dash dash space.
Good Usenet client will delete everything below the dash dash
Running Mageia release 7 (Official) for x86_64 using
Kernel=5.7.19-desktop-1.mga7 on x86_64 DM=sddm DE= ST=tty
put your video card and video driver here
DE= still missing a value.
ST=tty indicates you may need to run gen_sig_file.sh from the DE
autostart directory.
Click up a terminal and run
env | grep XDG.
and paste results.
[santo@localhost ~]$ env | grep XDG.
XDG_MENU_PREFIX=plasma-
XDG_VTNR=1
XDG_SESSION_ID=9
XDG_SESSION_TYPE=tty
XDG_SESSION_CLASS=user
XDG_CURRENT_DESKTOP=KDE
XDG_SEAT=seat0
XDG_RUNTIME_DIR=/run/user/1001 XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg/kf5:/var/lib/plasma5-profiles/common/xdg
Also you did not replace this line with desired values.
"put your video card and video driver here"
run lspcidrake | grep Card:
to get values.
[santo@localhost ~]$ cat .signature[AMD/ATI]|Kabini [Radeon HD 8400 / R3 Series] [DISPLAY_VGA]
--
Running Mageia release 7 (Official) for x86_64 using Kernel=5.7.19-desktop-1.mga7 on x86_64 DM=sddm DE= ST=tty
ATI Radeon HD 5000 to HD 6300 (radeon/fglrx): Advanced Micro Devices, Inc.
On Sun, 11 Oct 2020 05:08:59 -0500, Bit Twister wrote:
DE= still missing a value.
ST=tty indicates you may need to run gen_sig_file.sh from the DE
autostart directory.
Click up a terminal and run
env | grep XDG.
and paste results.
On Sun, 11 Oct 2020 12:22:12 +0000 (UTC), santo wrote:
On Sun, 11 Oct 2020 05:08:59 -0500, Bit Twister wrote:
DE= still missing a value.
ST=tty indicates you may need to run gen_sig_file.sh from the DE
autostart directory.
Click up a terminal and run
env | grep XDG.
and paste results.
Ah Frap, I forgot to remove
Sig_fn=$PWD/.signature
again, in the script.
Remove it from your copy.
I do not understand...Pan does not allow me to select a hidden file (.signature)
ok...did that and manually wrote /home signature in Pan profile
preferences and...
On Sun, 11 Oct 2020 12:25:39 +0000 (UTC), santo wrote:
I do not understand...Pan does not allow me to select a hidden file ( .signature)
just pick a file, click ok, then edit the result to be whatever you like.
It just dawned on me, I needed to modify the script to add your video
info.
Hopefully this is the last scruot change.
On Sun, 11 Oct 2020 08:16:44 -0500, Bit Twister wrote:keep my finger crossed...
On Sun, 11 Oct 2020 12:25:39 +0000 (UTC), santo wrote:
I do not understand...Pan does not allow me to select a hidden file ( .signature)
just pick a file, click ok, then edit the result to be whatever you like.
It just dawned on me, I needed to modify the script to add your video
info.
Hopefully this is the last scruot change.
done...Edited my Posting profile writing /home.signature...
On Sun, 11 Oct 2020 13:12:01 +0000, santo wrote:
<snip>
ok...did that and manually wrote /home signature in Pan profile
preferences and...
After creating the .signature file,
In pan, select Edit, Edit Posting Profiles,
your profile name, Edit, and go down to the Signature area.
You should be able to check Use a Signature, then click
to the right of Signature Type: and find Text File.
Either type in the full path name or click on Open and
.signature will be among the dot files appearing at the
top of the list.
Cheers!
jim b.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 55:12:52 |
Calls: | 9,566 |
Files: | 13,661 |
Messages: | 6,142,848 |