mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #179] how to auto start before login at Ubuntu 16.04 #142
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Hokwang on GitHub (Nov 21, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/179
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.
@AdrianKoshka commented on GitHub (Nov 21, 2018):
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
/etc/systemd/system/.@Hokwang commented on GitHub (Nov 22, 2018):
I find https://help.ubuntu.com/community/SynergyHowto#Autostart_Synergy_before_logging_in_.28LightDM.29
link for synergy.
Like this, I tried but failed.
Let's think about user has one windows PC and one ubuntu PC and one mouse and keyboard.
If reboot ubuntu, how can I login ubuntu ?
If autostart before login does not work, user should have to connect mouse and keyboard to ubuntu PC.
@AdrianKoshka commented on GitHub (Nov 22, 2018):
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).
@marcelinomalmeidan commented on GitHub (Feb 1, 2019):
@Hokwang, I wonder if you have succeeded.
I am able to start barrierc on boot (the computer logs in automatically), and it runs in the background, but the mouse icon is invisible. The mouse icon only becomes visible once I physically plug/unplug the mouse on this computer. This defeats the whole purpose of "booting the computer and having mouse/keyboard without ever physically plugging them in"
I believe this is more of a Linux problem than "barrier" problem, but I wasn't able to find a solution to this...
@carlgrosser commented on GitHub (Mar 6, 2019):
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).
@evictor commented on GitHub (May 3, 2019):
@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.
@hovissimo commented on GitHub (Jun 14, 2019):
@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.
@AdrianKoshka commented on GitHub (Jun 14, 2019):
If you're using a systemd unit file for the service, you might be able to use
DyanmicUser=yes, which would generate a unprivileged user every time the service starts to run the service under.@marcelinomalmeidan commented on GitHub (Jun 14, 2019):
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
@marcelinomalmeidan commented on GitHub (Jun 14, 2019):
As for my comment above on the invisible mouse, I fixed it with
gsettings set org-gnome.settings-daemon.plugins.cursor active false@evictor commented on GitHub (Jun 17, 2019):
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.
@marcelinomalmeidan commented on GitHub (Jun 17, 2019):
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.
@noisyshape commented on GitHub (Jun 17, 2019):
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.
@yonderblue commented on GitHub (Jul 11, 2019):
Note this works for me on raspbian (assuming you want to control the Pi with another machine):
@ghost commented on GitHub (Jun 17, 2020):
in case someone comes back here:
what worked for me was to follow what marcelinomalmeidan did:
set up auto-login in /etc/gdm3/custom.conf
and then gsettings set org.gnome.settings-daemon.plugins.cursor active false
@Hokwang commented on GitHub (Jun 18, 2020):
I found out this,
and reboot.
So I close this.
@SteveClement commented on GitHub (Oct 5, 2020):
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.
@twnaing commented on GitHub (Nov 21, 2021):
ArchLinux aur has slim-synergy package. I think someone could easily replace synergy with barrier easily.