archlinuxcn / lilac

Lilac is the build bot for archlinuxcn
GNU General Public License v3.0
113 stars 39 forks source link

[Help] Enter a lilac user #194

Closed Hayao0819 closed 1 year ago

Hayao0819 commented 1 year ago

Hello. I am Hayao0819 who requested English documentation in #180. Thank you for doing the work for users who cannot read Chinese.

After that I was not able to work on it for a while due to my academic commitments. I have just resumed working on building a Lilac server. I wrote a PKGBUILD and prepared a lilac.yaml.  I built a pure Arch Linux and installed the dependencies for lilac according to this tutorial.

The lilac configuration in the documentation says to log in to the user for lilac using machinectl and not to use su or sudo. However, as far as I know, machinectl is for container management, which I cannot do because I do not have a single container.

Here is the error I get from actually running the command

hayao@Hayao-SZ5 ~> machinectl shell lilac@
Failed to get shell PTY: Access denied
hayao@Hayao-SZ5 ~ [1]> 

Does lilac need to be run in the nspawn container?

Thank you.

lilydjwg commented 1 year ago

Well, you need sudo before machinectl. machinectl can be used for a local login too, and it sets up the correct session environment (e.g. a systemd --user instance).

Hayao0819 commented 1 year ago

Thank you so much for helping me. It works correctly.

I did not know the usage of machinectl.

It is tiny mistake of me but I was helped that. I can continue setup.

However I have another error in my lilac server so I will make another new issue.