Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175925 > unrolled thread

question about aptitudetask-ldxe

Started byGene Heskett <gheskett@shentel.net>
First post2016-12-26 04:20 +0100
Last post2016-12-26 12:40 +0100
Articles 12 — 9 participants

Back to article view | Back to linux.debian.user


Contents

  question about aptitudetask-ldxe Gene Heskett <gheskett@shentel.net> - 2016-12-26 04:20 +0100
    Re: question about aptitudetask-ldxe David Wright <deblis@lionunicorn.co.uk> - 2016-12-26 05:20 +0100
      Re: question about aptitudetask-ldxe Gene Heskett <gheskett@shentel.net> - 2016-12-26 06:00 +0100
        Re: question about aptitudetask-ldxe Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-12-26 06:50 +0100
          Re: question about aptitudetask-ldxe Gene Heskett <gheskett@shentel.net> - 2016-12-26 07:20 +0100
            Re: question about aptitudetask-ldxe Floris <jkfloris@dds.nl> - 2016-12-26 12:50 +0100
              Re: question about aptitudetask-ldxe Richard Owlett <rowlett@cloud85.net> - 2016-12-26 13:40 +0100
                Re: question about aptitudetask-ldxe rhkramer@gmail.com - 2016-12-26 15:20 +0100
              Re: question about aptitudetask-ldxe Gene Heskett <gheskett@shentel.net> - 2016-12-26 16:10 +0100
              Re: question about aptitudetask-ldxe Greg Wooledge <wooledg@eeg.ccf.org> - 2016-12-27 14:20 +0100
            Re: question about aptitudetask-ldxe kamaraju kusumanchi <raju.mailinglists@gmail.com> - 2016-12-26 18:10 +0100
        Re: question about aptitudetask-ldxe Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2016-12-26 12:40 +0100

#175925 — question about aptitudetask-ldxe

FromGene Heskett <gheskett@shentel.net>
Date2016-12-26 04:20 +0100
Subjectquestion about aptitudetask-ldxe
Message-ID<sStZn-7hc-3@gated-at.bofh.it>
Greetings everybody, I hope you have had and enjoyable day;

I am currently logged into a raspi 3b with an armhf jessie-lite install.

That means the only x is enough to export it.  But I know for a fact that 
x can run quite well, I have seen it do so.

But that install was well and truly wrecked because the kernel wasn't 
pinned, and it was a realtime kernel. So the updater overwrote the 
kernel with one that can't do the job and by the time I realized the 
kernel running wasn't the right one, and I could not force the 
re-installation because it couldn't, even as root, overwrite the overlay 
stuff.

So this is a fresh install of jessie-lite for armhf.

Installing lightdm, and telling it to open a default "seat" gets me a 
teeny little, non-movable terminal with just enough mouse to allow  me 
to put keyboard focus on it.  From there I can cd around, run nano, or 
even run the app I built this to run, linuxcnc.

But I need a real "desktop", so despite the fact that aptitude has 
totally destroyed my systems twice with its wild dependency removals, 
its the only thing I have that can show me a list of files.
So I am sitting with task-lxde-desktop selected, and looking at a 
screenfull of red because its dependencies aren't satisfied.
I want to install  it, but not as it shows in the view.

If it will install everything marked in red, then it will install a bunch 
of stuff I absolutely do not need for this job, like 500 megabytes of 
libreoffice stuff.

Help please, or tell me how to run synaptic, it won't let the default 
user, pi run it without the ROOT passwd, which something in polkit-1 has 
kittens over because that makes me not the logged in user, or if I 
become root and try to run synaptic, it can't open display 10:.

So aptitude guru's, how do I install lxde so I might have a useable 
desktop, without also installing half a gigabyte of libreoffice I do NOT 
need on a limited resource machine.

If I need to use a libreoffice/openoffice tool, I have half a dozen other 
x86 boxes about the place that can run it just fine.

Many Thanks for any help.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [next] | [standalone]


#175926

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2016-12-26 05:20 +0100
Message-ID<sSuVr-82Y-1@gated-at.bofh.it>
In reply to#175925
On Sun 25 Dec 2016 at 22:19:27 (-0500), Gene Heskett wrote:
> Greetings everybody, I hope you have had and enjoyable day;
> 
> I am currently logged into a raspi 3b with an armhf jessie-lite install.
> 
> That means the only x is enough to export it.  But I know for a fact that 
> x can run quite well, I have seen it do so.
> 
> But that install was well and truly wrecked because the kernel wasn't 
> pinned, and it was a realtime kernel. So the updater overwrote the 
> kernel with one that can't do the job and by the time I realized the 
> kernel running wasn't the right one, and I could not force the 
> re-installation because it couldn't, even as root, overwrite the overlay 
> stuff.
> 
> So this is a fresh install of jessie-lite for armhf.
> 
> Installing lightdm, and telling it to open a default "seat" gets me a 
> teeny little, non-movable terminal with just enough mouse to allow  me 
> to put keyboard focus on it.  From there I can cd around, run nano, or 
> even run the app I built this to run, linuxcnc.
> 
> But I need a real "desktop", so despite the fact that aptitude has 
> totally destroyed my systems twice with its wild dependency removals, 
> its the only thing I have that can show me a list of files.
> So I am sitting with task-lxde-desktop selected, and looking at a 
> screenfull of red because its dependencies aren't satisfied.
> I want to install  it, but not as it shows in the view.
> 
> If it will install everything marked in red, then it will install a bunch 
> of stuff I absolutely do not need for this job, like 500 megabytes of 
> libreoffice stuff.
> 
> Help please, or tell me how to run synaptic, it won't let the default 
> user, pi run it without the ROOT passwd, which something in polkit-1 has 
> kittens over because that makes me not the logged in user, or if I 
> become root and try to run synaptic, it can't open display 10:.
> 
> So aptitude guru's, how do I install lxde so I might have a useable 
> desktop, without also installing half a gigabyte of libreoffice I do NOT 
> need on a limited resource machine.
> 
> If I need to use a libreoffice/openoffice tool, I have half a dozen other 
> x86 boxes about the place that can run it just fine.
> 
> Many Thanks for any help.

Package: task-lxde-desktop
Depends: tasksel (= 3.31+deb8u1), task-desktop, lightdm, lxde
Recommends: lxtask, lxlauncher, xsane, libreoffice-gtk, synaptic,
iceweasel, libreoffice, libreoffice-help-en-us, mythes-en-us,
hunspell-en-us, hyphen-en-us, system-config-printer, gnome-orca

so how about:   # aptitude -R

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#175927

FromGene Heskett <gheskett@shentel.net>
Date2016-12-26 06:00 +0100
Message-ID<sSvy9-8j4-1@gated-at.bofh.it>
In reply to#175926
On Sunday 25 December 2016 23:05:03 David Wright wrote:

> On Sun 25 Dec 2016 at 22:19:27 (-0500), Gene Heskett wrote:
> > Greetings everybody, I hope you have had and enjoyable day;
> >
> > I am currently logged into a raspi 3b with an armhf jessie-lite
> > install.
> >
> > That means the only x is enough to export it.  But I know for a fact
> > that x can run quite well, I have seen it do so.
> >
> > But that install was well and truly wrecked because the kernel
> > wasn't pinned, and it was a realtime kernel. So the updater
> > overwrote the kernel with one that can't do the job and by the time
> > I realized the kernel running wasn't the right one, and I could not
> > force the re-installation because it couldn't, even as root,
> > overwrite the overlay stuff.
> >
> > So this is a fresh install of jessie-lite for armhf.
> >
> > Installing lightdm, and telling it to open a default "seat" gets me
> > a teeny little, non-movable terminal with just enough mouse to allow
> >  me to put keyboard focus on it.  From there I can cd around, run
> > nano, or even run the app I built this to run, linuxcnc.
> >
> > But I need a real "desktop", so despite the fact that aptitude has
> > totally destroyed my systems twice with its wild dependency
> > removals, its the only thing I have that can show me a list of
> > files. So I am sitting with task-lxde-desktop selected, and looking
> > at a screenfull of red because its dependencies aren't satisfied. I
> > want to install  it, but not as it shows in the view.
> >
> > If it will install everything marked in red, then it will install a
> > bunch of stuff I absolutely do not need for this job, like 500
> > megabytes of libreoffice stuff.
> >
> > Help please, or tell me how to run synaptic, it won't let the
> > default user, pi run it without the ROOT passwd, which something in
> > polkit-1 has kittens over because that makes me not the logged in
> > user, or if I become root and try to run synaptic, it can't open
> > display 10:.
> >
> > So aptitude guru's, how do I install lxde so I might have a useable
> > desktop, without also installing half a gigabyte of libreoffice I do
> > NOT need on a limited resource machine.
> >
> > If I need to use a libreoffice/openoffice tool, I have half a dozen
> > other x86 boxes about the place that can run it just fine.
> >
> > Many Thanks for any help.
>
> Package: task-lxde-desktop
> Depends: tasksel (= 3.31+deb8u1), task-desktop, lightdm, lxde
> Recommends: lxtask, lxlauncher, xsane, libreoffice-gtk, synaptic,
> iceweasel, libreoffice, libreoffice-help-en-us, mythes-en-us,
> hunspell-en-us, hyphen-en-us, system-config-printer, gnome-orca
>
> so how about:   # aptitude -R
>
That will not tell me what it will do, and with my previous experience 
with aptitude leading to a complete re-install every time, I don't do 
anything without knowing what it will do. Its idea of package management 
the last time I wanted something like htop installed, was to rip out 278 
other vital packages, so I had to locate the install dvd and start all 
over.  By the time I actually had it running the machine again, was 
about 3 days work. Burn me once was educational, twice was because I 
must learn slow.  Its not going to do anything again without knowing 
exactly what that next keypress, other than a 'q', is going to do.

I would much rather we figure out how I can run synaptic, it is 
installed, but if root tries to run it, it can't use display 10:
If pi tries to run synaptic-pkexec, it asks for the root pw, I enter it, 
and something in polkit-1 screams because I am not the logged in user.

The paranoia about denying the user, root or otherwise, the ability to 
run a decent package manager is wearing thin in this old chiefs camp. 
I've been running a linux house exclusively since rh5 in 1998. After 18 
years, I know well how much damage root can do, aptitude has 
demonstrated that twice already.

So please, lets make synaptic run for me if you can't tell me what that 
commandline "aptitude -R" launch will do.

> Cheers,
> David.


Cheers David, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#175930

FromCharlie Kravetz <cjk@teamcharliesangels.com>
Date2016-12-26 06:50 +0100
Message-ID<sSwkx-wy-1@gated-at.bofh.it>
In reply to#175927
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Sun, 25 Dec 2016 23:51:03 -0500
Gene Heskett <gheskett@shentel.net> wrote:

>On Sunday 25 December 2016 23:05:03 David Wright wrote:
>
>> On Sun 25 Dec 2016 at 22:19:27 (-0500), Gene Heskett wrote:  
>> > Greetings everybody, I hope you have had and enjoyable day;
>> >
>> > I am currently logged into a raspi 3b with an armhf jessie-lite
>> > install.
>> >
>> > That means the only x is enough to export it.  But I know for a fact
>> > that x can run quite well, I have seen it do so.
>> >
>> > But that install was well and truly wrecked because the kernel
>> > wasn't pinned, and it was a realtime kernel. So the updater
>> > overwrote the kernel with one that can't do the job and by the time
>> > I realized the kernel running wasn't the right one, and I could not
>> > force the re-installation because it couldn't, even as root,
>> > overwrite the overlay stuff.
>> >
>> > So this is a fresh install of jessie-lite for armhf.
>> >
>> > Installing lightdm, and telling it to open a default "seat" gets me
>> > a teeny little, non-movable terminal with just enough mouse to allow
>> >  me to put keyboard focus on it.  From there I can cd around, run
>> > nano, or even run the app I built this to run, linuxcnc.
>> >
>> > But I need a real "desktop", so despite the fact that aptitude has
>> > totally destroyed my systems twice with its wild dependency
>> > removals, its the only thing I have that can show me a list of
>> > files. So I am sitting with task-lxde-desktop selected, and looking
>> > at a screenfull of red because its dependencies aren't satisfied. I
>> > want to install  it, but not as it shows in the view.
>> >
>> > If it will install everything marked in red, then it will install a
>> > bunch of stuff I absolutely do not need for this job, like 500
>> > megabytes of libreoffice stuff.
>> >
>> > Help please, or tell me how to run synaptic, it won't let the
>> > default user, pi run it without the ROOT passwd, which something in
>> > polkit-1 has kittens over because that makes me not the logged in
>> > user, or if I become root and try to run synaptic, it can't open
>> > display 10:.
>> >
>> > So aptitude guru's, how do I install lxde so I might have a useable
>> > desktop, without also installing half a gigabyte of libreoffice I do
>> > NOT need on a limited resource machine.
>> >
>> > If I need to use a libreoffice/openoffice tool, I have half a dozen
>> > other x86 boxes about the place that can run it just fine.
>> >
>> > Many Thanks for any help.  
>>
>> Package: task-lxde-desktop
>> Depends: tasksel (= 3.31+deb8u1), task-desktop, lightdm, lxde
>> Recommends: lxtask, lxlauncher, xsane, libreoffice-gtk, synaptic,
>> iceweasel, libreoffice, libreoffice-help-en-us, mythes-en-us,
>> hunspell-en-us, hyphen-en-us, system-config-printer, gnome-orca
>>
>> so how about:   # aptitude -R
>>  
>That will not tell me what it will do, and with my previous experience 
>with aptitude leading to a complete re-install every time, I don't do 
>anything without knowing what it will do. Its idea of package management 
>the last time I wanted something like htop installed, was to rip out 278 
>other vital packages, so I had to locate the install dvd and start all 
>over.  By the time I actually had it running the machine again, was 
>about 3 days work. Burn me once was educational, twice was because I 
>must learn slow.  Its not going to do anything again without knowing 
>exactly what that next keypress, other than a 'q', is going to do.
>
>I would much rather we figure out how I can run synaptic, it is 
>installed, but if root tries to run it, it can't use display 10:
>If pi tries to run synaptic-pkexec, it asks for the root pw, I enter it, 
>and something in polkit-1 screams because I am not the logged in user.
>
>The paranoia about denying the user, root or otherwise, the ability to 
>run a decent package manager is wearing thin in this old chiefs camp. 
>I've been running a linux house exclusively since rh5 in 1998. After 18 
>years, I know well how much damage root can do, aptitude has 
>demonstrated that twice already.
>
>So please, lets make synaptic run for me if you can't tell me what that 
>commandline "aptitude -R" launch will do.
>
>> Cheers,
>> David.  
>
>
>Cheers David, Gene Heskett


To run synaptic:
go to root as user pi - su 
run synaptic - synaptic

It does not need pkexec to make it run from root.

- -- 
Charlie Kravetz
Linux Registered User Number 425914
[http://linuxcounter.net/user/425914.html]
Never let anyone steal your DREAM.   [http://keepingdreams.com]
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEG5QK93YKrQMH22ZTiq6LjqbJ0IAFAlhgqGQACgkQiq6LjqbJ
0ICF0Qf9HKfF+Dzrcfo2L5OGQdmB0oAMq4GlqF1vZAnL8DPH1PWsjX3w7xkHjPFt
JIEreLoCvZAAFzO0OKTOKKN/CV6udO1I/JFFfrrUiUdbyZTplbP6AI6VjhPCroB+
IuhIknxcwnEGRqM0CGiGfpckmVU8gm0CB/TSMz2z2ERCcvH/eumRjjnbiyEqSbEu
GZJOFlJ3VuyLd91824hpBJN0GNY7Si9GNWGgBdNycNtpFDaYLuxKKlkdqX2+By+U
QJDc0c0z9Xbhx5MND+zI0hFM7D5Lp4uTMNlmy18qtQtU4E2iFue6gpe8WI1DS7aB
fFBhI3jSksSxt4/rtnnRC2WyLoxZOA==
=Xzbp
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#175931

FromGene Heskett <gheskett@shentel.net>
Date2016-12-26 07:20 +0100
Message-ID<sSwNz-VP-5@gated-at.bofh.it>
In reply to#175930
On Monday 26 December 2016 00:19:31 Charlie Kravetz wrote:

> On Sun, 25 Dec 2016 23:51:03 -0500
>
> Gene Heskett <gheskett@shentel.net> wrote:
> >On Sunday 25 December 2016 23:05:03 David Wright wrote:
> >> On Sun 25 Dec 2016 at 22:19:27 (-0500), Gene Heskett wrote:
> >> > Greetings everybody, I hope you have had and enjoyable day;
> >> >
> >> > I am currently logged into a raspi 3b with an armhf jessie-lite
> >> > install.
> >> >
> >> > That means the only x is enough to export it.  But I know for a
> >> > fact that x can run quite well, I have seen it do so.
> >> >
> >> > But that install was well and truly wrecked because the kernel
> >> > wasn't pinned, and it was a realtime kernel. So the updater
> >> > overwrote the kernel with one that can't do the job and by the
> >> > time I realized the kernel running wasn't the right one, and I
> >> > could not force the re-installation because it couldn't, even as
> >> > root, overwrite the overlay stuff.
> >> >
> >> > So this is a fresh install of jessie-lite for armhf.
> >> >
> >> > Installing lightdm, and telling it to open a default "seat" gets
> >> > me a teeny little, non-movable terminal with just enough mouse to
> >> > allow me to put keyboard focus on it.  From there I can cd
> >> > around, run nano, or even run the app I built this to run,
> >> > linuxcnc.
> >> >
> >> > But I need a real "desktop", so despite the fact that aptitude
> >> > has totally destroyed my systems twice with its wild dependency
> >> > removals, its the only thing I have that can show me a list of
> >> > files. So I am sitting with task-lxde-desktop selected, and
> >> > looking at a screenfull of red because its dependencies aren't
> >> > satisfied. I want to install  it, but not as it shows in the
> >> > view.
> >> >
> >> > If it will install everything marked in red, then it will install
> >> > a bunch of stuff I absolutely do not need for this job, like 500
> >> > megabytes of libreoffice stuff.
> >> >
> >> > Help please, or tell me how to run synaptic, it won't let the
> >> > default user, pi run it without the ROOT passwd, which something
> >> > in polkit-1 has kittens over because that makes me not the logged
> >> > in user, or if I become root and try to run synaptic, it can't
> >> > open display 10:.
> >> >
> >> > So aptitude guru's, how do I install lxde so I might have a
> >> > useable desktop, without also installing half a gigabyte of
> >> > libreoffice I do NOT need on a limited resource machine.
> >> >
> >> > If I need to use a libreoffice/openoffice tool, I have half a
> >> > dozen other x86 boxes about the place that can run it just fine.
> >> >
> >> > Many Thanks for any help.
> >>
> >> Package: task-lxde-desktop
> >> Depends: tasksel (= 3.31+deb8u1), task-desktop, lightdm, lxde
> >> Recommends: lxtask, lxlauncher, xsane, libreoffice-gtk, synaptic,
> >> iceweasel, libreoffice, libreoffice-help-en-us, mythes-en-us,
> >> hunspell-en-us, hyphen-en-us, system-config-printer, gnome-orca
> >>
> >> so how about:   # aptitude -R
> >
> >That will not tell me what it will do, and with my previous
> > experience with aptitude leading to a complete re-install every
> > time, I don't do anything without knowing what it will do. Its idea
> > of package management the last time I wanted something like htop
> > installed, was to rip out 278 other vital packages, so I had to
> > locate the install dvd and start all over.  By the time I actually
> > had it running the machine again, was about 3 days work. Burn me
> > once was educational, twice was because I must learn slow.  Its not
> > going to do anything again without knowing exactly what that next
> > keypress, other than a 'q', is going to do.
> >
> >I would much rather we figure out how I can run synaptic, it is
> >installed, but if root tries to run it, it can't use display 10:
> >If pi tries to run synaptic-pkexec, it asks for the root pw, I enter
> > it, and something in polkit-1 screams because I am not the logged in
> > user.
> >
> >The paranoia about denying the user, root or otherwise, the ability
> > to run a decent package manager is wearing thin in this old chiefs
> > camp. I've been running a linux house exclusively since rh5 in 1998.
> > After 18 years, I know well how much damage root can do, aptitude
> > has demonstrated that twice already.
> >
> >So please, lets make synaptic run for me if you can't tell me what
> > that commandline "aptitude -R" launch will do.
> >
> >> Cheers,
> >> David.
> >
> >Cheers David, Gene Heskett
>
> To run synaptic:
> go to root as user pi - su
> run synaptic - synaptic
>
> It does not need pkexec to make it run from root.
screen scrape:
pi@raspberrypi:~/linuxcnc/configs/lathe $ su
Password: 
root@raspberrypi:/home/pi/linuxcnc/configs/lathe# synaptic
X11 connection rejected because of wrong authentication.

** (synaptic:2792): WARNING **: Could not open X display
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
Unable to init server: Could not connect: Connection refused

(synaptic:2792): Gtk-WARNING **: cannot open display: localhost:10.0

Next?

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#175937

FromFloris <jkfloris@dds.nl>
Date2016-12-26 12:50 +0100
Message-ID<sSBWW-4gI-7@gated-at.bofh.it>
In reply to#175931
>> To run synaptic:
>> go to root as user pi - su
>> run synaptic - synaptic
>>
>> It does not need pkexec to make it run from root.
> screen scrape:
> pi@raspberrypi:~/linuxcnc/configs/lathe $ su
> Password:
> root@raspberrypi:/home/pi/linuxcnc/configs/lathe# synaptic
> X11 connection rejected because of wrong authentication.
>
> ** (synaptic:2792): WARNING **: Could not open X display
> X11 connection rejected because of wrong authentication.
> X11 connection rejected because of wrong authentication.
> Unable to init server: Could not connect: Connection refused
>
> (synaptic:2792): Gtk-WARNING **: cannot open display: localhost:10.0
>
> Next?
>
> Cheers, Gene Heskett

Not recommended, but it will work
as the normal user:
xhost +
su and run synaptic
xhost -

Floris

[toc] | [prev] | [next] | [standalone]


#175939

FromRichard Owlett <rowlett@cloud85.net>
Date2016-12-26 13:40 +0100
Message-ID<sSCJj-4Nn-7@gated-at.bofh.it>
In reply to#175937
On 12/26/2016 5:45 AM, Floris wrote:
>>> To run synaptic:
>>> go to root as user pi - su
>>> run synaptic - synaptic
>>>
>>> It does not need pkexec to make it run from root.
>> screen scrape:
>> pi@raspberrypi:~/linuxcnc/configs/lathe $ su
>> Password:
>> root@raspberrypi:/home/pi/linuxcnc/configs/lathe# synaptic
>> X11 connection rejected because of wrong authentication.
>>
>> ** (synaptic:2792): WARNING **: Could not open X display
>> X11 connection rejected because of wrong authentication.
>> X11 connection rejected because of wrong authentication.
>> Unable to init server: Could not connect: Connection refused
>>
>> (synaptic:2792): Gtk-WARNING **: cannot open display:
>> localhost:10.0
>>
>> Next?
>>
>> Cheers, Gene Heskett
>
> Not recommended, but it will work
> as the normal user:
> xhost +
> su and run synaptic
> xhost -
>
> Floris

Don't know if it solves Gene's problem, but reading the man page 
may have broken a mental logjam on networking.
Thanks.

[toc] | [prev] | [next] | [standalone]


#175942

Fromrhkramer@gmail.com
Date2016-12-26 15:20 +0100
Message-ID<sSEi5-5Pl-7@gated-at.bofh.it>
In reply to#175939
On Monday, December 26, 2016 07:38:08 AM Richard Owlett wrote:
> On 12/26/2016 5:45 AM, Floris wrote:
> > Not recommended, but it will work
> > as the normal user:
> > xhost +
> > su and run synaptic
> > xhost -
> > 
> > Floris
> 
> Don't know if it solves Gene's problem, but reading the man page
> may have broken a mental logjam on networking.
> Thanks.

To further my education, can anyone tell me the syntax to add root as a user 
of X? Oh, wait, I think I've got it (not tested):

$ xhost + SI:localuser:root
localuser:root being added to access control list

And later, for security (I guess):

$ *xhost - SI:localuser:root*
localuser:root being removed from access control list

[toc] | [prev] | [next] | [standalone]


#175945

FromGene Heskett <gheskett@shentel.net>
Date2016-12-26 16:10 +0100
Message-ID<sSF4t-6lc-5@gated-at.bofh.it>
In reply to#175937
On Monday 26 December 2016 06:45:31 Floris wrote:

> >> To run synaptic:
> >> go to root as user pi - su
> >> run synaptic - synaptic
> >>
> >> It does not need pkexec to make it run from root.
> >
> > screen scrape:
> > pi@raspberrypi:~/linuxcnc/configs/lathe $ su
> > Password:
> > root@raspberrypi:/home/pi/linuxcnc/configs/lathe# synaptic
> > X11 connection rejected because of wrong authentication.
> >
> > ** (synaptic:2792): WARNING **: Could not open X display
> > X11 connection rejected because of wrong authentication.
> > X11 connection rejected because of wrong authentication.
> > Unable to init server: Could not connect: Connection refused
> >
> > (synaptic:2792): Gtk-WARNING **: cannot open display: localhost:10.0
> >
> > Next?
> >
> > Cheers, Gene Heskett
>
> Not recommended, but it will work
> as the normal user:
> xhost +
> su and run synaptic
> xhost -
>
> Floris
I am logged into it from this machine ATM, and part of opening a terminal 
here is an xhost +. So it is in effect at both ends of the cable.

Another screen scrape:

pi@raspberrypi:~/linuxcnc/configs/sheldon-lathe $ xhost +
access control disabled, clients can connect from any host
pi@raspberrypi:~/linuxcnc/configs/sheldon-lathe $ su
Password: 
root@raspberrypi:/home/pi/linuxcnc/configs/sheldon-lathe# synaptic
X11 connection rejected because of wrong authentication.

** (synaptic:24533): WARNING **: Could not open X display
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
Unable to init server: Could not connect: Connection refused

(synaptic:24533): Gtk-WARNING **: cannot open display: localhost:10.0

Thanks Floris.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

[toc] | [prev] | [next] | [standalone]


#175972

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2016-12-27 14:20 +0100
Message-ID<sSZPA-2xe-17@gated-at.bofh.it>
In reply to#175937
On Mon, Dec 26, 2016 at 12:45:31PM +0100, Floris wrote:
> Not recommended, but it will work
> as the normal user:
> xhost +
> su and run synaptic
> xhost -

Another alternative is to allow ssh connections as root (which may not
be the default, depending on which version of Debian you install),
and then:

ssh -X root@localhost

A third alternative, if your regular user has an ~/.Xauthority file,
is:

su
export XAUTHORITY=/home/youruser/.Xauthority

(The export may not even be necessary; it seems XAUTHORITY is
automatically exported from the X session under certain conditions that I
can't pinpoint.  Just don't use "su -" which would clear the environment.)

[toc] | [prev] | [next] | [standalone]


#175954

Fromkamaraju kusumanchi <raju.mailinglists@gmail.com>
Date2016-12-26 18:10 +0100
Message-ID<sSGWC-7wy-21@gated-at.bofh.it>
In reply to#175931
On Mon, Dec 26, 2016 at 1:13 AM, Gene Heskett <gheskett@shentel.net> wrote:
> screen scrape:
> pi@raspberrypi:~/linuxcnc/configs/lathe $ su
> Password:
> root@raspberrypi:/home/pi/linuxcnc/configs/lathe# synaptic
> X11 connection rejected because of wrong authentication.
>
> ** (synaptic:2792): WARNING **: Could not open X display
> X11 connection rejected because of wrong authentication.
> X11 connection rejected because of wrong authentication.
> Unable to init server: Could not connect: Connection refused
>
> (synaptic:2792): Gtk-WARNING **: cannot open display: localhost:10.0
>
> Next?

I had similar problems with su and I read in multiple places that
using xhost (the work around suggested by Floris) is not recommended
due to security reasons. Can you try

  su-to-root -X -c synaptic

Enter the root password when it asks for one.

regards
raju
-- 
Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog

[toc] | [prev] | [next] | [standalone]


#175936

FromEduardo M KALINOWSKI <eduardo@kalinowski.com.br>
Date2016-12-26 12:40 +0100
Message-ID<sSBNf-4du-3@gated-at.bofh.it>
In reply to#175927
On Seg, 26 Dez 2016, Gene Heskett wrote:
> So please, lets make synaptic run for me if you can't tell me what that
> commandline "aptitude -R" launch will do.

man aptitude will tell you.

But anyway, if aptitude has to remove packages or install additional  
ones, it will ask for confirmation, along with a listing of all the  
actions to be done. So you can always cancel if that's not what you  
want.
-- 
Eduardo M KALINOWSKI
eduardo@kalinowski.com.br

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web