Getting x11 to start on ereader already running a Linux Distro independently on sdcard












1















I burn a customized recovery image onto a sdcard that gives me ssh and adb access over wifi. I mount the sdcard and successfully get into the Linux Distro image.



I enter these commands over adb on the device and x11 will not show up. I've already installed the drivers into the linux distro.




startx -- tty01 -sharevts -novtswitch



while true; do echo 1 > /sys/class/graphics/fb0/epd_refresh; sleep 2;
done & xterm




It throws error saying display is not set. I try to set display with set DISPLAY: 0 or set DISPLAY: 1 or set DISPLAY :tty01



Doesn't work.




root@localhost:~# startx



Fatal server error: Can't read lock file /tmp/.X0-lock



Please consult the The X.Org Foundation support at
http://wiki.x.org for help. ddxSigGiveUp: Closing log



giving up. xinit: Stale NFS file handle (errno 116): unable to
connect to X server xinit: No such process (errno 3): Server error.




Here are some links of instructions that I followed.



X running on nook touch(independent without stock os)



simple touch tweaked to run linux distros



UPDATE



Some information has been deleted as it was no longer needed and the problem has been fixed, but startx is still being difficult to launch.



I have managed to get one step closer by running fsck.ext2 -fyc /sdcard/ubuntu.img while running the aforementioned startx command these errors popped up.



What should I do now with this information?



Here, I try to find the device files for the screen. I look into graphics and fb0 is beyond my knowledge. (NOTE THIS IS THE ANDROID's DEVICE DIRECTORY)



The first screenshot of the ubuntu's /dev folder and the 2nd is android's
enter image description hereenter image description here










share|improve this question

























  • Have you tried with ssh -X?

    – sudodus
    Feb 15 at 19:23











  • I had issues with it and I believe that maybe it won't start because fsck can't run on a .img file.

    – Travis Wells
    Feb 18 at 5:44











  • I've runned fsck.ext2 /sdcard/ubuntu.img and /usr/bin/X: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file: No such file or directory

    – Travis Wells
    Feb 18 at 6:09













  • If I understand correctly, you want to run fsck.ext2, which is a text mode program. It needs no X, but should write its output in the text screen or terminal window, where it was started. - There could be a problem with the image: 1. If it is an image of the partition with an ext file system, it should work, but 2. if it is an image of the whole drive, it could be difficult to point to the partition, so that fsck.ext2 will find the file system. Maybe you can use kpartx for that purpose. - What was the result of fsck.ext2?

    – sudodus
    Feb 18 at 7:18











  • Libraries are destroyed. Going to have to recopy image. :(

    – Travis Wells
    Feb 18 at 7:24
















1















I burn a customized recovery image onto a sdcard that gives me ssh and adb access over wifi. I mount the sdcard and successfully get into the Linux Distro image.



I enter these commands over adb on the device and x11 will not show up. I've already installed the drivers into the linux distro.




startx -- tty01 -sharevts -novtswitch



while true; do echo 1 > /sys/class/graphics/fb0/epd_refresh; sleep 2;
done & xterm




It throws error saying display is not set. I try to set display with set DISPLAY: 0 or set DISPLAY: 1 or set DISPLAY :tty01



Doesn't work.




root@localhost:~# startx



Fatal server error: Can't read lock file /tmp/.X0-lock



Please consult the The X.Org Foundation support at
http://wiki.x.org for help. ddxSigGiveUp: Closing log



giving up. xinit: Stale NFS file handle (errno 116): unable to
connect to X server xinit: No such process (errno 3): Server error.




Here are some links of instructions that I followed.



X running on nook touch(independent without stock os)



simple touch tweaked to run linux distros



UPDATE



Some information has been deleted as it was no longer needed and the problem has been fixed, but startx is still being difficult to launch.



I have managed to get one step closer by running fsck.ext2 -fyc /sdcard/ubuntu.img while running the aforementioned startx command these errors popped up.



What should I do now with this information?



Here, I try to find the device files for the screen. I look into graphics and fb0 is beyond my knowledge. (NOTE THIS IS THE ANDROID's DEVICE DIRECTORY)



The first screenshot of the ubuntu's /dev folder and the 2nd is android's
enter image description hereenter image description here










share|improve this question

























  • Have you tried with ssh -X?

    – sudodus
    Feb 15 at 19:23











  • I had issues with it and I believe that maybe it won't start because fsck can't run on a .img file.

    – Travis Wells
    Feb 18 at 5:44











  • I've runned fsck.ext2 /sdcard/ubuntu.img and /usr/bin/X: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file: No such file or directory

    – Travis Wells
    Feb 18 at 6:09













  • If I understand correctly, you want to run fsck.ext2, which is a text mode program. It needs no X, but should write its output in the text screen or terminal window, where it was started. - There could be a problem with the image: 1. If it is an image of the partition with an ext file system, it should work, but 2. if it is an image of the whole drive, it could be difficult to point to the partition, so that fsck.ext2 will find the file system. Maybe you can use kpartx for that purpose. - What was the result of fsck.ext2?

    – sudodus
    Feb 18 at 7:18











  • Libraries are destroyed. Going to have to recopy image. :(

    – Travis Wells
    Feb 18 at 7:24














1












1








1








I burn a customized recovery image onto a sdcard that gives me ssh and adb access over wifi. I mount the sdcard and successfully get into the Linux Distro image.



I enter these commands over adb on the device and x11 will not show up. I've already installed the drivers into the linux distro.




startx -- tty01 -sharevts -novtswitch



while true; do echo 1 > /sys/class/graphics/fb0/epd_refresh; sleep 2;
done & xterm




It throws error saying display is not set. I try to set display with set DISPLAY: 0 or set DISPLAY: 1 or set DISPLAY :tty01



Doesn't work.




root@localhost:~# startx



Fatal server error: Can't read lock file /tmp/.X0-lock



Please consult the The X.Org Foundation support at
http://wiki.x.org for help. ddxSigGiveUp: Closing log



giving up. xinit: Stale NFS file handle (errno 116): unable to
connect to X server xinit: No such process (errno 3): Server error.




Here are some links of instructions that I followed.



X running on nook touch(independent without stock os)



simple touch tweaked to run linux distros



UPDATE



Some information has been deleted as it was no longer needed and the problem has been fixed, but startx is still being difficult to launch.



I have managed to get one step closer by running fsck.ext2 -fyc /sdcard/ubuntu.img while running the aforementioned startx command these errors popped up.



What should I do now with this information?



Here, I try to find the device files for the screen. I look into graphics and fb0 is beyond my knowledge. (NOTE THIS IS THE ANDROID's DEVICE DIRECTORY)



The first screenshot of the ubuntu's /dev folder and the 2nd is android's
enter image description hereenter image description here










share|improve this question
















I burn a customized recovery image onto a sdcard that gives me ssh and adb access over wifi. I mount the sdcard and successfully get into the Linux Distro image.



I enter these commands over adb on the device and x11 will not show up. I've already installed the drivers into the linux distro.




startx -- tty01 -sharevts -novtswitch



while true; do echo 1 > /sys/class/graphics/fb0/epd_refresh; sleep 2;
done & xterm




It throws error saying display is not set. I try to set display with set DISPLAY: 0 or set DISPLAY: 1 or set DISPLAY :tty01



Doesn't work.




root@localhost:~# startx



Fatal server error: Can't read lock file /tmp/.X0-lock



Please consult the The X.Org Foundation support at
http://wiki.x.org for help. ddxSigGiveUp: Closing log



giving up. xinit: Stale NFS file handle (errno 116): unable to
connect to X server xinit: No such process (errno 3): Server error.




Here are some links of instructions that I followed.



X running on nook touch(independent without stock os)



simple touch tweaked to run linux distros



UPDATE



Some information has been deleted as it was no longer needed and the problem has been fixed, but startx is still being difficult to launch.



I have managed to get one step closer by running fsck.ext2 -fyc /sdcard/ubuntu.img while running the aforementioned startx command these errors popped up.



What should I do now with this information?



Here, I try to find the device files for the screen. I look into graphics and fb0 is beyond my knowledge. (NOTE THIS IS THE ANDROID's DEVICE DIRECTORY)



The first screenshot of the ubuntu's /dev folder and the 2nd is android's
enter image description hereenter image description here







bash kernel x11






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 18 at 16:08







Travis Wells

















asked Feb 15 at 18:50









Travis WellsTravis Wells

103




103













  • Have you tried with ssh -X?

    – sudodus
    Feb 15 at 19:23











  • I had issues with it and I believe that maybe it won't start because fsck can't run on a .img file.

    – Travis Wells
    Feb 18 at 5:44











  • I've runned fsck.ext2 /sdcard/ubuntu.img and /usr/bin/X: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file: No such file or directory

    – Travis Wells
    Feb 18 at 6:09













  • If I understand correctly, you want to run fsck.ext2, which is a text mode program. It needs no X, but should write its output in the text screen or terminal window, where it was started. - There could be a problem with the image: 1. If it is an image of the partition with an ext file system, it should work, but 2. if it is an image of the whole drive, it could be difficult to point to the partition, so that fsck.ext2 will find the file system. Maybe you can use kpartx for that purpose. - What was the result of fsck.ext2?

    – sudodus
    Feb 18 at 7:18











  • Libraries are destroyed. Going to have to recopy image. :(

    – Travis Wells
    Feb 18 at 7:24



















  • Have you tried with ssh -X?

    – sudodus
    Feb 15 at 19:23











  • I had issues with it and I believe that maybe it won't start because fsck can't run on a .img file.

    – Travis Wells
    Feb 18 at 5:44











  • I've runned fsck.ext2 /sdcard/ubuntu.img and /usr/bin/X: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file: No such file or directory

    – Travis Wells
    Feb 18 at 6:09













  • If I understand correctly, you want to run fsck.ext2, which is a text mode program. It needs no X, but should write its output in the text screen or terminal window, where it was started. - There could be a problem with the image: 1. If it is an image of the partition with an ext file system, it should work, but 2. if it is an image of the whole drive, it could be difficult to point to the partition, so that fsck.ext2 will find the file system. Maybe you can use kpartx for that purpose. - What was the result of fsck.ext2?

    – sudodus
    Feb 18 at 7:18











  • Libraries are destroyed. Going to have to recopy image. :(

    – Travis Wells
    Feb 18 at 7:24

















Have you tried with ssh -X?

– sudodus
Feb 15 at 19:23





Have you tried with ssh -X?

– sudodus
Feb 15 at 19:23













I had issues with it and I believe that maybe it won't start because fsck can't run on a .img file.

– Travis Wells
Feb 18 at 5:44





I had issues with it and I believe that maybe it won't start because fsck can't run on a .img file.

– Travis Wells
Feb 18 at 5:44













I've runned fsck.ext2 /sdcard/ubuntu.img and /usr/bin/X: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file: No such file or directory

– Travis Wells
Feb 18 at 6:09







I've runned fsck.ext2 /sdcard/ubuntu.img and /usr/bin/X: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file: No such file or directory

– Travis Wells
Feb 18 at 6:09















If I understand correctly, you want to run fsck.ext2, which is a text mode program. It needs no X, but should write its output in the text screen or terminal window, where it was started. - There could be a problem with the image: 1. If it is an image of the partition with an ext file system, it should work, but 2. if it is an image of the whole drive, it could be difficult to point to the partition, so that fsck.ext2 will find the file system. Maybe you can use kpartx for that purpose. - What was the result of fsck.ext2?

– sudodus
Feb 18 at 7:18





If I understand correctly, you want to run fsck.ext2, which is a text mode program. It needs no X, but should write its output in the text screen or terminal window, where it was started. - There could be a problem with the image: 1. If it is an image of the partition with an ext file system, it should work, but 2. if it is an image of the whole drive, it could be difficult to point to the partition, so that fsck.ext2 will find the file system. Maybe you can use kpartx for that purpose. - What was the result of fsck.ext2?

– sudodus
Feb 18 at 7:18













Libraries are destroyed. Going to have to recopy image. :(

– Travis Wells
Feb 18 at 7:24





Libraries are destroyed. Going to have to recopy image. :(

– Travis Wells
Feb 18 at 7:24










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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500929%2fgetting-x11-to-start-on-ereader-already-running-a-linux-distro-independently-on%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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500929%2fgetting-x11-to-start-on-ereader-already-running-a-linux-distro-independently-on%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

is 'sed' thread safe

How to make a Squid Proxy server?