-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
how to auto start before login at Ubuntu 16.04 #179
Comments
That's a dangerous service file, as barrier is being ran as root. As how to run it before login, I can't think of a way at the moment. Also, user created unit files go in |
I find https://help.ubuntu.com/community/SynergyHowto#Autostart_Synergy_before_logging_in_.28LightDM.29 Like this, I tried but failed. Let's think about user has one windows PC and one ubuntu PC and one mouse and keyboard. |
Beware, this would also run synergy/barrier as root.
One thing that comes to mind is having the ubuntu machine auto-login (if you're comfortable with that). |
@Hokwang, I wonder if you have succeeded. I believe this is more of a Linux problem than "barrier" problem, but I wasn't able to find a solution to this... |
I'm wondering if this was figured out as well. I have been using login screen via VNC connection for now but would be nice to not have to load that every time I log out of my second machine (ubuntu). |
@noisyshape is the "ideal world" scenario possible—that Barrier can start soon enough to allow for password entry on the Ubuntu machine that doesn't have KB/mouse plugged in? I can't have this machine log in automatically in an office environment for security/privacy reasons. |
@evictor Very important question: If barrier is running before you log in (so that you can log in), what user is barrier running under? If autologin is considered unsafe, then running barrier as root is definitely unsafe. Perhaps you can make some kind of limited user just for barrier, but I'm not sure how that would work or if it's feasible. |
If you're using a systemd unit file for the service, you might be able to use |
Personally, I have solved this issue by making ubuntu login without asking for password, then make barrier start automatically and then lock the screen using gnome-screensaver-command -l |
As for my comment above on the invisible mouse, I fixed it with |
Thx all for the very good input re: login user. Another somewhat related concern for always-on Barrier client—what is stopping a malicious party with access to the network from pretending to be the server and then gaining control of the client? For instance, I connect to the server via static hostname, but if the server is offline someone can just pose w/ that hostname and instantly get control of the client. I don't see any built-in features to handle authentication but that would be excellent if a handshake of some sort could happen (esp. key-based auth) on connect. Or maybe just a warning + refusal to connect if the SSL fingerprint has changed. In that scenario it is reasonable to me to require direct keyboard/mouse on the remote machine to authorize the connection. For reference we are using Barrier for an always-on big screen monitoring dash. |
I do not have a lot of knowledge about any of this, but I know that there is a fingerprint detection that takes place for the client to recognize the server. I have to accept the fingerprint the first time I run the client on a new computer. |
Servers can be authenticated with a fingerprint. The GUI program is supposed to kill the client when there's an unapproved fingerprint. Unless I'm mistaken, the client itself doesn't handle fingerprints and if you're running the client by itself you may silently connect to an unauthenticated server. |
Note this works for me on raspbian (assuming you want to control the Pi with another machine):
|
in case someone comes back here: |
I found out this,
and reboot. So I close this. |
lightdm has changed config file format, newer versions need:
But more things seem to have changed and somehow my setup does not reliably work anymore... (Like a 1 minute delay to connect back to the server) This is certainly on my network though. |
ArchLinux aur has slim-synergy package. I think someone could easily replace synergy with barrier easily. |
Operating Systems
Server: Windows 7
Client: Ubuntu 16.04
Barrier Version
barrierc --version
barrierc 2.2.0-Release
Steps to reproduce bug
In Ubuntu,
How to auto start before login ?
I think I can use systemd but that's not easy (I am beginner.)
I did like below
and then there's a problem.
The text was updated successfully, but these errors were encountered: