Announcement

Collapse
No announcement yet.

Autostart Barrier before login?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Autostart Barrier before login?

    Is there a simple way to autostart barrier in a way that I can use it to login from my desktop into my laptop? I followed this guide: https://itsfoss.com/keyboard-mouse-s...een-computers/ and then made the following service which does start, and does connect, but only AFTER I login.

    [Unit]
    Description=Barrier Client mouse/keyboard share
    Requires=display-manager.service
    After=display-manager.service
    StartLimitIntervalSec=0

    [Service]
    Type=simple
    ExecStart=/usr/bin/barrierc -f --name Toshiba --enable-crypto 192.168.0.3:24800
    Restart=always
    RestartSec=10
    User=raiden

    [Install]
    WantedBy=multi-user.target
    Am I missing something here that's not allowing it to fire up barrier in such a way that it allows me to use my desktop keyboard and mouse on my laptop prior to login? Others say they've gotten it working using KDE's KDM login system, but I can't seem to get it to work. Any thoughts or ideas on what I'm missing or have wrong is welcome.

    #2
    KDM is long long deprecated maybe 2012 ish?, so the info mentioning that is probably really old.

    Looking at the service setup, you probably need to investigate some of the individual settings

    Namely
    Code:
    After=display-manager.service
    and (maybe)
    Code:
    User=raiden
    it is set to start after the display manager (GDM, SDDM, etc), if my meager understanding of services is valid. This may or may not effect what you are trying to do

    Notice a different setup here on Barrier's github wiki
    https://github.com/debauchee/barrier/wiki/Command-Line
    Last edited by claydoh; Aug 31, 2020, 09:05 AM.

    Comment


      #3
      Okay, I was wrong. For some reason I was thinking KDM, but yeah, it's SSDM. Shows you how often I have to futz with this stuff. lol. Also, reading the article, it looks like I was missing the display tag which would then make this work. If that turns out to be what's it, that'll explain why it wasn't working before.
      Last edited by megosdog; Aug 31, 2020, 09:49 AM.

      Comment


        #4
        I do the following on my client not ideal but it works
        Have sddm autologin my user
        start barrier
        loginctl lock-session
        Mark Your Solved Issues [SOLVED]
        (top of thread: thread tools)

        Comment


          #5
          Hmm, okay, so auto-login, then immediately lock session. Hmm, that could work, and it would satisfy the security requirements for my employer as the laptop would be secured. How do I setup that process? I have barrier set to fire up and login as soon as the desktop loads, but I'm not sure how to auto lock the session on login like that.

          Comment

          Working...
          X