-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vncserver from tigervnc package will only run as root #205
Comments
Playing around with this locally I have found out how to run commands as a normal non-root user. By using the root account to cp over the /root/.Xauthority command over to the users account homedir the user is able to access the X instance created by root. The alternative is to using something like xdm to allow you to do log in after X starts up, but while I have had some luck getting xdm to appear over VNC I have hit a wall with getting past the PAM related authentication errors I see when trying to log in. |
Stale issue message |
I had the same issue bothering me for a while. You can see #228 (comment) and #240 (comment) for details. This should be resolved with TermuxArch/TermuxArch@db63804 |
This is now automated.
The code might be archaic by now. Depreciated for testing with TermuxArch/TermuxArch@8980bb1 commit. How is
I do not see errors running
This TermuxArch/TermuxArch@8980bb1 commit addresses some of the issues, but not all. Can |
resolved with TermuxArch/TermuxArch@7dcb973 |
Can confirm. X11 works on all three refresh options correctly now.
sudo seems to be working perfectly on my device even after refreshing using all three methods. So does downloading and installing packages from pacman as a user (and root). Makepkg stopped working and fails at either build() or with fakeroot error. I tested this on my device and with a fresh install (on another device of the same model) only to obtain the same results. Does this commit TermuxArch/TermuxArch@8980bb1 somehow affect makepkg? Besides being unable to build aur packages, the installation of programs like gcc and python is smooth on user when done using sudo (good news).
As for this issue, it happens to be that files ownership is either current user or root only. Proot doesn't track any chown call and file attribute states. This may lead to breakage of some tools relying on setuid/setgid. To conclude, makepkg seems to be failing.
These two lines must be run only once and not every time refresh is run. I guess that's a bad implementation from my side. Please correct it. And as for |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
A new error I'm getting is |
I will take a closer look at this again. If you take a closer look at For now it appears we might have something better than we had with this revert TermuxArch/TermuxArch@92c254c commit. Can you check if |
Just tested makepkg and was able to build
The po4a binary seems to be missing even though I reinstalled it.
Could you test this out after a full |
Sure, please list all the steps you took. |
|
Please do report the status of the build from the above instructions when time permits. |
And for the issue with not being able to build from aur, when I posted this #228 (comment) , I was able to download packages straight after cloning and running makepkg -si. Even the installation of fakeroot-tcp wasn't required.
It was about 15 days ago and you could build from aur without even the need to switch to fakeroot tcp. But this stopped after the subsequent refresh and I'm not sure which commit caused this regression. |
After patching with
po4a: command not found |
This TermuxArch/TermuxArch@2c0f56d commit adds wheel support to |
Apologies for originally opening this issue in the wrong GH repo.. The command
vncserver :1 -localhost
will only work under two conditions:su user
from the root userTrying to run
vncserver :1 -localhost
as the non-root user viastartarch u[ser]|l[ogin] user
or
startarch s[u] user cmd
will result in this error:
`[user11:27~]$ vncserver :1 -localhost
xauth: error in locking authority file /home/user/.Xauthority
Could not start Xvnc.
(EE)
Fatal server error:
(EE) Can't read lock file /tmp/.X1-lock
(EE)`
My goal is to create a script that will launch the vnc server as the non-root user (since there is a gui program that wont run as root), but it seems the above
startarch
syntaxes don't allow this?The text was updated successfully, but these errors were encountered: