Populating .Xauthority file when DISPLAY and HOST variables are non-existentCrunch bang Linux login...
Why archangel Michael didn't save Jesus when he was crucified?
What's the point of having a RAID 1 configuration over incremental backups to a secondary drive?
Graduate student with abysmal English writing skills, how to help
What happens to unproductive professors?
Swapping "Good" and "Bad"
What is /bin/red
How would the law enforce a ban on immortality?
Is it possible to split a vertex?
Elf (adjective) vs. Elvish vs. Elven
Party going through airport security at separate times?
OR-backed serious games
What are some further readings in Econometrics you recommend?
Why does every calorie tracking app give a different target calorie count for the same goals?
Is "I do not want you to go nowhere" a case of "DOUBLE-NEGATIVES" as claimed by Grammarly?
Is it OK to leave real names & info visible in business card portfolio?
Is a request to book a business flight ticket for a graduate student an unreasonable one?
What's it called when the bad guy gets eaten?
Data Encryption by Application vs Data Encryption in Database
Chorophyll and photosynthesis in plants with coloured leaves
What is the parallel of Day of the Dead with Stranger things?
What are the original Russian words for a prostitute?
Apollo astronauts were charged for their berth during their missions?
The three greedy pirates
Given a 32 bit number, what is an efficient way to scale each byte by a certain factor?
Populating .Xauthority file when DISPLAY and HOST variables are non-existent
Crunch bang Linux login failsdebian X Xconf resolution xrandr badmatchCannot log in via a display manager on Debian Jessiesystemd and non-existent *.service files: Are they generic?adding a sudoer in debianHow to downgrade vlc to a stable version?libcodec and libcodec2-dev do not exist in Debian 8My ubuntu-server doesn't execute my gtk-based program at startup!X11 forwarding and .Xauthority fileIssue with startx saying that there are no monitors found on Arch Linux
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I just installed the new Debian 10 Buster and I am not satisfied. I installed it without any desktop. Only basic system utilities
were installed during the initial install.
After reboot I signed in with a root
user and added i386 architecture support using dpkg --add-architecture i386
. Then I modified the /etc/apt/sources.list
file where I added contrib non-free
at the end of every line and added one more line for a buster-backports
repository. I saved the file and updated apt.
Then I instelled sudo
using apt install sudo
and modifying the /etc/sudoers
file so that my user ziga's rights are defined with a line ziga ALL=(ALL:ALL) NOPASSWD:ALL
. Then I signed out and signed back in using my user ziga
.
I installed some packages sudo apt install xserver-xorg-core xinit openbox
, I created the ~/.xinitrc
file with a line exec openbox-session
and I ran startx
.
Openbox never came up. The first time I used startx
I saw a warning saying something like:
".Xauthority file not found"
and then everything hangs until after some time it fails and prints:
"xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permited)"
The 1st message never came up again after retryig startx
while 2nd message did come up after a while (each time), so ~.Xauthority
was probably created, but Openbox still didn't start. This is why I checked the xauth list
command and it printed nothing. This means I have to add a line to it! Well I tried by using xauth
(forum) like this:
# For X11 over SSH
xauth generate :0 . trusted
# Generate my own key, xauth requires 128 bit hex encoding
xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom)
But this failed, because there is no variable DISPLAY
and no variable HOST
defined (checked with printenv
). Also 1st command returns unable to open display ":0"
. Well I am on a laptop and display is clearly attached...
So does anyone have any suggestions. I want to use Openbox... =)
debian openbox xinit xauth
add a comment |
I just installed the new Debian 10 Buster and I am not satisfied. I installed it without any desktop. Only basic system utilities
were installed during the initial install.
After reboot I signed in with a root
user and added i386 architecture support using dpkg --add-architecture i386
. Then I modified the /etc/apt/sources.list
file where I added contrib non-free
at the end of every line and added one more line for a buster-backports
repository. I saved the file and updated apt.
Then I instelled sudo
using apt install sudo
and modifying the /etc/sudoers
file so that my user ziga's rights are defined with a line ziga ALL=(ALL:ALL) NOPASSWD:ALL
. Then I signed out and signed back in using my user ziga
.
I installed some packages sudo apt install xserver-xorg-core xinit openbox
, I created the ~/.xinitrc
file with a line exec openbox-session
and I ran startx
.
Openbox never came up. The first time I used startx
I saw a warning saying something like:
".Xauthority file not found"
and then everything hangs until after some time it fails and prints:
"xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permited)"
The 1st message never came up again after retryig startx
while 2nd message did come up after a while (each time), so ~.Xauthority
was probably created, but Openbox still didn't start. This is why I checked the xauth list
command and it printed nothing. This means I have to add a line to it! Well I tried by using xauth
(forum) like this:
# For X11 over SSH
xauth generate :0 . trusted
# Generate my own key, xauth requires 128 bit hex encoding
xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom)
But this failed, because there is no variable DISPLAY
and no variable HOST
defined (checked with printenv
). Also 1st command returns unable to open display ":0"
. Well I am on a laptop and display is clearly attached...
So does anyone have any suggestions. I want to use Openbox... =)
debian openbox xinit xauth
I suspect you either need to set uplogind
andlibpam-systemd
, or installxserver-xorg-legacy
and configure that. See/usr/share/doc/xserver-xorg-core/NEWS.Debian.gz
for details and pointers.
– Stephen Kitt
10 hours ago
When I read the.local/share/xorg/Xorg.0.log
There is a lot of lines at the end saying something likesystemd-logind: got pause for 14:52
where time differs a bit. So you might be right. Butxserver-xorg-legacy
was installed as a dependancy with packagexserver-xorg-core
so it is installed.
– 71GA
9 hours ago
I tried executingstartx
as aroot
but it doesn't work either.
– 71GA
8 hours ago
you should ignore that message about .Xauthority; xauth will create it automatically. That's not the cause of the hang. It's because you're trying run Xorg as a non-root user (the iopl error message tells it all). I suggest you install a proper display manager (even xdm is fine) that will be started as a service, and forget about and remove all that sudo crap (apt-get remove --purge sudo
should do)
– Uncle Billy
18 mins ago
add a comment |
I just installed the new Debian 10 Buster and I am not satisfied. I installed it without any desktop. Only basic system utilities
were installed during the initial install.
After reboot I signed in with a root
user and added i386 architecture support using dpkg --add-architecture i386
. Then I modified the /etc/apt/sources.list
file where I added contrib non-free
at the end of every line and added one more line for a buster-backports
repository. I saved the file and updated apt.
Then I instelled sudo
using apt install sudo
and modifying the /etc/sudoers
file so that my user ziga's rights are defined with a line ziga ALL=(ALL:ALL) NOPASSWD:ALL
. Then I signed out and signed back in using my user ziga
.
I installed some packages sudo apt install xserver-xorg-core xinit openbox
, I created the ~/.xinitrc
file with a line exec openbox-session
and I ran startx
.
Openbox never came up. The first time I used startx
I saw a warning saying something like:
".Xauthority file not found"
and then everything hangs until after some time it fails and prints:
"xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permited)"
The 1st message never came up again after retryig startx
while 2nd message did come up after a while (each time), so ~.Xauthority
was probably created, but Openbox still didn't start. This is why I checked the xauth list
command and it printed nothing. This means I have to add a line to it! Well I tried by using xauth
(forum) like this:
# For X11 over SSH
xauth generate :0 . trusted
# Generate my own key, xauth requires 128 bit hex encoding
xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom)
But this failed, because there is no variable DISPLAY
and no variable HOST
defined (checked with printenv
). Also 1st command returns unable to open display ":0"
. Well I am on a laptop and display is clearly attached...
So does anyone have any suggestions. I want to use Openbox... =)
debian openbox xinit xauth
I just installed the new Debian 10 Buster and I am not satisfied. I installed it without any desktop. Only basic system utilities
were installed during the initial install.
After reboot I signed in with a root
user and added i386 architecture support using dpkg --add-architecture i386
. Then I modified the /etc/apt/sources.list
file where I added contrib non-free
at the end of every line and added one more line for a buster-backports
repository. I saved the file and updated apt.
Then I instelled sudo
using apt install sudo
and modifying the /etc/sudoers
file so that my user ziga's rights are defined with a line ziga ALL=(ALL:ALL) NOPASSWD:ALL
. Then I signed out and signed back in using my user ziga
.
I installed some packages sudo apt install xserver-xorg-core xinit openbox
, I created the ~/.xinitrc
file with a line exec openbox-session
and I ran startx
.
Openbox never came up. The first time I used startx
I saw a warning saying something like:
".Xauthority file not found"
and then everything hangs until after some time it fails and prints:
"xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permited)"
The 1st message never came up again after retryig startx
while 2nd message did come up after a while (each time), so ~.Xauthority
was probably created, but Openbox still didn't start. This is why I checked the xauth list
command and it printed nothing. This means I have to add a line to it! Well I tried by using xauth
(forum) like this:
# For X11 over SSH
xauth generate :0 . trusted
# Generate my own key, xauth requires 128 bit hex encoding
xauth add ${HOST}:0 . $(xxd -l 16 -p /dev/urandom)
But this failed, because there is no variable DISPLAY
and no variable HOST
defined (checked with printenv
). Also 1st command returns unable to open display ":0"
. Well I am on a laptop and display is clearly attached...
So does anyone have any suggestions. I want to use Openbox... =)
debian openbox xinit xauth
debian openbox xinit xauth
edited 1 hour ago
71GA
asked 10 hours ago
71GA71GA
4761 gold badge11 silver badges27 bronze badges
4761 gold badge11 silver badges27 bronze badges
I suspect you either need to set uplogind
andlibpam-systemd
, or installxserver-xorg-legacy
and configure that. See/usr/share/doc/xserver-xorg-core/NEWS.Debian.gz
for details and pointers.
– Stephen Kitt
10 hours ago
When I read the.local/share/xorg/Xorg.0.log
There is a lot of lines at the end saying something likesystemd-logind: got pause for 14:52
where time differs a bit. So you might be right. Butxserver-xorg-legacy
was installed as a dependancy with packagexserver-xorg-core
so it is installed.
– 71GA
9 hours ago
I tried executingstartx
as aroot
but it doesn't work either.
– 71GA
8 hours ago
you should ignore that message about .Xauthority; xauth will create it automatically. That's not the cause of the hang. It's because you're trying run Xorg as a non-root user (the iopl error message tells it all). I suggest you install a proper display manager (even xdm is fine) that will be started as a service, and forget about and remove all that sudo crap (apt-get remove --purge sudo
should do)
– Uncle Billy
18 mins ago
add a comment |
I suspect you either need to set uplogind
andlibpam-systemd
, or installxserver-xorg-legacy
and configure that. See/usr/share/doc/xserver-xorg-core/NEWS.Debian.gz
for details and pointers.
– Stephen Kitt
10 hours ago
When I read the.local/share/xorg/Xorg.0.log
There is a lot of lines at the end saying something likesystemd-logind: got pause for 14:52
where time differs a bit. So you might be right. Butxserver-xorg-legacy
was installed as a dependancy with packagexserver-xorg-core
so it is installed.
– 71GA
9 hours ago
I tried executingstartx
as aroot
but it doesn't work either.
– 71GA
8 hours ago
you should ignore that message about .Xauthority; xauth will create it automatically. That's not the cause of the hang. It's because you're trying run Xorg as a non-root user (the iopl error message tells it all). I suggest you install a proper display manager (even xdm is fine) that will be started as a service, and forget about and remove all that sudo crap (apt-get remove --purge sudo
should do)
– Uncle Billy
18 mins ago
I suspect you either need to set up
logind
and libpam-systemd
, or install xserver-xorg-legacy
and configure that. See /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz
for details and pointers.– Stephen Kitt
10 hours ago
I suspect you either need to set up
logind
and libpam-systemd
, or install xserver-xorg-legacy
and configure that. See /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz
for details and pointers.– Stephen Kitt
10 hours ago
When I read the
.local/share/xorg/Xorg.0.log
There is a lot of lines at the end saying something like systemd-logind: got pause for 14:52
where time differs a bit. So you might be right. But xserver-xorg-legacy
was installed as a dependancy with package xserver-xorg-core
so it is installed.– 71GA
9 hours ago
When I read the
.local/share/xorg/Xorg.0.log
There is a lot of lines at the end saying something like systemd-logind: got pause for 14:52
where time differs a bit. So you might be right. But xserver-xorg-legacy
was installed as a dependancy with package xserver-xorg-core
so it is installed.– 71GA
9 hours ago
I tried executing
startx
as a root
but it doesn't work either.– 71GA
8 hours ago
I tried executing
startx
as a root
but it doesn't work either.– 71GA
8 hours ago
you should ignore that message about .Xauthority; xauth will create it automatically. That's not the cause of the hang. It's because you're trying run Xorg as a non-root user (the iopl error message tells it all). I suggest you install a proper display manager (even xdm is fine) that will be started as a service, and forget about and remove all that sudo crap (
apt-get remove --purge sudo
should do)– Uncle Billy
18 mins ago
you should ignore that message about .Xauthority; xauth will create it automatically. That's not the cause of the hang. It's because you're trying run Xorg as a non-root user (the iopl error message tells it all). I suggest you install a proper display manager (even xdm is fine) that will be started as a service, and forget about and remove all that sudo crap (
apt-get remove --purge sudo
should do)– Uncle Billy
18 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529033%2fpopulating-xauthority-file-when-display-and-host-variables-are-non-existent%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f529033%2fpopulating-xauthority-file-when-display-and-host-variables-are-non-existent%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I suspect you either need to set up
logind
andlibpam-systemd
, or installxserver-xorg-legacy
and configure that. See/usr/share/doc/xserver-xorg-core/NEWS.Debian.gz
for details and pointers.– Stephen Kitt
10 hours ago
When I read the
.local/share/xorg/Xorg.0.log
There is a lot of lines at the end saying something likesystemd-logind: got pause for 14:52
where time differs a bit. So you might be right. Butxserver-xorg-legacy
was installed as a dependancy with packagexserver-xorg-core
so it is installed.– 71GA
9 hours ago
I tried executing
startx
as aroot
but it doesn't work either.– 71GA
8 hours ago
you should ignore that message about .Xauthority; xauth will create it automatically. That's not the cause of the hang. It's because you're trying run Xorg as a non-root user (the iopl error message tells it all). I suggest you install a proper display manager (even xdm is fine) that will be started as a service, and forget about and remove all that sudo crap (
apt-get remove --purge sudo
should do)– Uncle Billy
18 mins ago