Share your PC or Mac mouse and keyboard with your RASPBERRY PI using Barrier

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • Declutter your desk by sharing your mouse and keyboard across multiple computers at once, including your Raspberry Pis, with Barrier. Raspberry Pi Director of Software Engineering, Gordon Hollingworth, shows you how.
    More information: rpf.io/barrier
    --------------
    Subscribe to our channel: rptl.io/youtube
    Looking for kid-friendly projects, educator-led seminars, and information about our non-profit work? Check out the Raspberry Pi Foundation RUclips channel: rptl.io/rpfyt
    BUY A RASPBERRY PI
    --------------
    Raspberry Pi Pico: rptl.io/pico
    Raspberry Pi 4: rptl.io/raspber...
    Raspberry Pi 400: rptl.io/400
    All Raspberry Pi products: rptl.io/products
    Raspberry Pi Store, Cambridge: rptl.io/cambridge
    READ OUR BOOKS & MAGAZINES
    --------------
    The MagPi magazine: rptl.io/themagpi
    HackSpace magazine: rptl.io/hackspace
    Wireframe magazine: rptl.io/wireframe
    Custom PC: rptl.io/custompc
    Raspberry Pi Press online store: rptl.io/raspber...
    GET HELP WITH YOUR RASPBERRY PI
    --------------
    Getting started with your Raspberry Pi: rptl.io/getting...
    Raspberry Pi Help Guides: rptl.io/help
    Raspberry Pi Forums: rptl.io/forums
    Technical documentation: rptl.io/techdocs
    FOLLOW US
    --------------
    Twitter: rptl.io/twitter
    Instagram: rptl.io/instagram
    Facebook: rptl.io/facebook
    Raspberry Pi blog: rptl.io/blog
    SUPPORT RASPBERRY PI FOUNDATION
    --------------
    Free coding projects: rptl.io/rpfproj...
    Digital Making at Home: rptl.io/dmah
    Free online courses: rptl.io/rpfcourses
    Raspberry Pi Foundation: rptl.io/rpf
    Donate: rptl.io/donate
    #RaspberryPi

Комментарии • 245

  • @AaLLLLL
    @AaLLLLL 4 года назад +58

    This is just incredible to see, not just awesome.

  • @OurPastSecrets
    @OurPastSecrets 4 года назад +42

    This is super useful, I have a desk full of laptops and devices. Definitely going to try this, thanks Gordon!

    • @raspberrypi
      @raspberrypi  4 года назад +14

      Consider him thanked by proxy

  • @davidanthrope6084
    @davidanthrope6084 3 года назад +1

    Quite possibly the greatest software invention in three decades. And that it is free & open-source.... gives me hope for humanity quite honestly. THANK YOU for the video, I cannot fathom how I have not found this software before today. I do develop software for a living (for 36yrs) and for the last 4 mostly for the Pi. Don't know how I missed it only that I'm THANKFUL for your video today.

  • @Scott-jz4xx
    @Scott-jz4xx 4 года назад +2

    Thank you for this quick 6-7 minute video showing how to quickly set this up. Very little BS, quite informative and to the point.

  • @haronclement
    @haronclement 4 года назад +5

    awesome! just what I need, currently have two laptops , one with extra monitor + raspberry pi with one monitor, all together on my desk! this software will be very helpful for me..

  • @yearls
    @yearls 4 года назад

    People are acting like this is a new thing, but Synergy has been around for a while.
    Also, this is just wonderful if you work with many systems.

  • @Steeps1969
    @Steeps1969 4 года назад +3

    Wow, this is just what I need for my Amateur Radio computer setup, thanks for bringing this to my attention!

  • @seansagert1380
    @seansagert1380 3 года назад

    Just came across this for the first time and couldn't wait to try it! Works flawlessly. Thank you so much!

  • @ReavoEnd
    @ReavoEnd 4 года назад +2

    Ever had an issue where the client just gets stuck at "Barrier is starting." and never moves on? It found my server, I even tried manually inputting the IP but same thing. Hmm...
    Edit: Fixed it. I did several things, so not sure what the trick was but I 1. Changed the port on client and server, 2. Disabled SSL for both and 3. Changed the screenname of the client to match what I had setup in the server. Works great now. Thanks!

  • @rafaelzasas9421
    @rafaelzasas9421 4 года назад +2

    This is just what I need! I’ve been using VNC viewer to do the same thing even though I have a separate monitor... you guys are awesome!!!

  • @pluanant
    @pluanant 4 года назад +2

    FYI: on the server side don't forget to allow port 24800/tcp

  • @otter-pro
    @otter-pro 4 года назад +1

    I've been using Synergy for a long time, and it seems Barrier is a fork of Synergy. The user interface is identical as well. I'm hoping Barrier will continue to improve, and fix the bugs that were not fixed in the Synergy.

  • @MikeBramm
    @MikeBramm 4 года назад +10

    Pretty cool. I've been using a KVM switch for years.

  • @tattoogeek77
    @tattoogeek77 3 года назад

    OMG where has this been all my life?!?

  • @Michael-eq8ve
    @Michael-eq8ve 3 года назад +1

    Very cool, thanks. Found this in Search for a (hardware) usb switch for mouse and keyboard. None of them work together with the Pi4. But now I don't need a physical switch any more. Great.

  • @snurreo
    @snurreo 4 года назад +4

    You can also control the mouse and keyboard from your phone! The app is called "XMouse" on Android. It is even available from F-droid app store.
    (The app uses ssh and xdotool. So ssh have to be enabled and xdotool have to be installed)

  • @IfanIqbal
    @IfanIqbal 4 года назад +4

    Q: how many conputers at your desk?
    A: no

  • @russdibennetto8591
    @russdibennetto8591 4 года назад +1

    I prefer VNC, the server is already installed on the Raspberry Pi's OS and you can download a free client for the PC and Android device and control the Raspberry Pi completely headless, which means you don't need a monitor on the Raspberry Pi and the PC and you can also cut and paste between devices. I am not sure but I believe that VNC also works on a Mac Book.

    • @jamessloan8653
      @jamessloan8653 4 года назад +2

      I've used this method before but I've never been able to copy and paste between the two. How did you accomplish this?

  • @blackmennewstyle
    @blackmennewstyle 4 года назад +6

    The first link in your video description, at the time i write my comment, is pointing to an 404 error :)
    Nice little software indeed, sweet alternative to KVM switch :)
    Have a great week guys!

  • @hashimsherkhan7413
    @hashimsherkhan7413 4 года назад +5

    Is it possible that I could make both barriers run in the startup of both the pi and the PC, so I can use just one mouse and computer at the login page?

    • @danielmunoz6915
      @danielmunoz6915 4 года назад

      you could write a script to automaticlly do that

    • @coolness4487
      @coolness4487 3 года назад

      That didn’t work for me because you have to press the start button manually

  • @jat1531
    @jat1531 3 года назад +2

    Note: scroll lock stops the mouse moving to other computers screen

  • @wincoder
    @wincoder 6 месяцев назад

    Very nice. Very timely for me as it happens too.

  • @shaunwatson2175
    @shaunwatson2175 4 года назад +2

    Install and tested.. writing this from my laptop keyboard on my RPI 4 works brilliantly .. until the Pi goes to locks screen when left then I have to reconnect a keyboard to log back in i'll see if there a setting... Other than that it's a great solution for the way I work. :) thanks for the Vid.

    • @edmundcua3396
      @edmundcua3396 4 года назад

      experiencing the same issue. Not only that, you always have to reconnect the keyboard/mouse to start barrier after booting up.

    • @AndrewHelgeCox
      @AndrewHelgeCox 4 года назад

      @@edmundcua3396 can you ssh into the pi to start barrier?

    • @VHAWildeman
      @VHAWildeman 4 года назад +1

      Just add Barrier to the autostart file and it works everytime immediately after booting the Raspberry:
      sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
      What I would like to see is an option to start Barrier in 'minimized' mode.
      Great stuff!

  • @migix7077
    @migix7077 4 года назад

    Something else to mention for people doing projects is an alternative to something like this if u don't want to use a second monitor and your not frequently using the pi's display you can look into a VNC where you can control the pi from your main PC or even your phone. This is what I've done for my school project involving raspberry pi so i dont have to reconnect mouse and keyboard each time and if u set it up correctly you never need to connect ur pi to a monitor again

  • @bahtsizbahtsz7500
    @bahtsizbahtsz7500 3 года назад

    Thank you so much. There is no Turkish source on this subject. i have a bit of bad english but i got it. It was a video that would really work. Thanks again

  • @robzicu
    @robzicu 4 года назад +2

    This is gold! It's a perfect solution

  • @tpobrienjr
    @tpobrienjr 4 года назад

    Wonderful! I have a PC and a RasPi on my desk at my amateur radio station, and this will be perfect. Thanks for the easy (?) demonstration.

    • @tpobrienjr
      @tpobrienjr 4 года назад

      And... it works for me! Thank you, Mr Director.

  • @chophilip21
    @chophilip21 4 года назад

    Incredible. I just lost words. Many thanks!!!

  • @joelvarney5091
    @joelvarney5091 4 года назад +1

    This is what I have been looking for! Thanks for sharing!

  • @rigvedepur2
    @rigvedepur2 4 года назад

    Incredibly useful application

  • @send2gl
    @send2gl 4 года назад +1

    Wow, that looks useful. Do you need the KB to initiate the client or just the original setup?

  • @MyWissam
    @MyWissam 4 года назад +4

    Yes, this is awesome. Thank you.

  • @medinachete73
    @medinachete73 4 года назад +2

    this is gonna save me a ton of work!! thanks alot, I stay

  • @lordchive8944
    @lordchive8944 4 года назад +2

    The 12 thumbs down are peripheral manufacturers....

  • @spot1401
    @spot1401 3 года назад +1

    Hi, great video. i am just wondering, what happens when you reboot the R_pi. Can you enter the password using barrier or will that just become available after you have logged in?

  • @MrGomeazy
    @MrGomeazy 4 года назад +1

    Love this! In the raspberry pi screen casts, I see you are using simple screen recorder. May I ask, how are you “zooming” into your various windows?

    • @raspberrypi
      @raspberrypi  4 года назад

      We edit the videos in Premiere :)

  • @brytheitguy_
    @brytheitguy_ 3 года назад +1

    Would this work if I only have one monitor? I have my PC plugged into the Display port and the raspberry pi in the HDMI. I would like to be able to switch between them and use the say keyboard and mouse.

  • @GmoLargey
    @GmoLargey 4 года назад

    You could make one hell of a workstation like this if repeated, perfect timing for me as I'm just salvaging an old laptop screen for use as a second monitor and powering pi 3b+ from the LCD board.

  • @RogueA.I.
    @RogueA.I. 4 года назад

    Mind
    BLOWN

  • @ighor
    @ighor 4 года назад

    It would be great to have not Ethernet, but USB solution. Just connect keyboard and mouse to the Raspberry Pi, and then connect Raspberry Pi to other devices that will detect Pi as mouse and keyboard. And use some hot-key to switch between them. So that way we would get it to work in a BIOS on each of PC.

  • @davidtan5570
    @davidtan5570 4 года назад +1

    Super cool, the problem is I can only set the Pi as the server to share the mouse and keyboard to Win 10(the client), but could not set Win 10 as the server to share the mouse and keyboard to my Pi 4b, though it is connected, the cursor just could not move to the screen of Pi, and the keyboard does not work, either.

  • @SpyrosAnastasiadis
    @SpyrosAnastasiadis 3 года назад

    This is absolutely fantastic! Thank you for sharing

  • @vinlacey
    @vinlacey 4 года назад +2

    Really cool!

  • @richardwinters7839
    @richardwinters7839 2 года назад

    great video, simple and easy to understand.

  • @DarrylLee-cz5rv
    @DarrylLee-cz5rv 4 года назад +1

    OMG love this! Thanks for sharing!

  • @mayurchavhan8590
    @mayurchavhan8590 4 года назад +1

    Its great but only problem is when my raspberry pi reboots i have to start it again, Is there way to start service at boot?

  • @000phoenix00092000
    @000phoenix00092000 4 года назад +1

    what about share one monitor between two pc ?

    • @gaming4hire
      @gaming4hire 2 года назад

      I would love to know if this is possible

  • @SeferDöngel
    @SeferDöngel 4 года назад +2

    Nice, smart and very useful solution. Thank you very much. I'm gonna make a video about barrier on my youtube channel as soon as possible....

  • @raspberrypibuenosaires
    @raspberrypibuenosaires 4 года назад

    Nice to see that can share beetween 2 raspberry pi too 😎

  • @santerredittz
    @santerredittz 2 года назад

    That´s what I was looking for. Thanks a lot!

  • @di4241
    @di4241 3 года назад

    Wow! That's amazing! Thanks for making this video.

  • @FirstLast-yf7qw
    @FirstLast-yf7qw 4 года назад

    This works like magic!!!! Nice, thank you for the information!!!!!!!!!!!

  • @prasanaism
    @prasanaism 4 года назад +1

    that is awesome..just what i looking for...thanks

  • @tubeDude48
    @tubeDude48 3 года назад +1

    Very cool! Thanks.

  • @pushkarrajpujari2343
    @pushkarrajpujari2343 4 года назад +1

    Amazing!!! this will solve a lot of my problems

  • @DockoNocko
    @DockoNocko 3 года назад

    YES! Finally found a solution! Thanks, captain.

  • @JayDeBee
    @JayDeBee Год назад

    Thank you Sir!

  • @DylanHubbard
    @DylanHubbard 9 месяцев назад

    You are the best!! thank you

  • @Turbotrend
    @Turbotrend 4 года назад

    Any experience using barrier over different networks? i.e. portforwarding
    That would be a game changer!

  • @fernandohual
    @fernandohual 3 года назад

    very good video sir. Thank you very much

  • @chefbundles3870
    @chefbundles3870 4 года назад +1

    I love this video, but mine is not working that simple. I'm using a RPi3, running Raspbian Stretch 9. I keep getting the "E: Una let to locate package" error. Can you provide the instructions for the necessary repo? Thanks in advance!

    • @sirsammy9800
      @sirsammy9800 4 года назад

      sudo apt update will update the repos for Raspbian.

  • @Hufsa
    @Hufsa 2 года назад

    Really good to have this tool and it's free, now I just need to know how to configure in a pc connected to a vpn

  • @d.joseph4356
    @d.joseph4356 4 года назад

    Thanks! Works well.

  • @bryanjaym.irog-irog2732
    @bryanjaym.irog-irog2732 3 года назад

    Very useful! Thanks!

  • @aonutube
    @aonutube 4 года назад +1

    Thanks so much, this certainly helps.

  • @alienlee4302
    @alienlee4302 4 года назад

    It's amazing and very useful! Thanks.

  • @DarkBraveStuff
    @DarkBraveStuff 4 года назад +1

    I have 3 computers on my desk.
    1) Windows PC (This One I'm On)
    2) Raspberry Pi (Never Use It, As My Current PC Doesn't Have SD Card Reader)
    3) My Old Windows PC (Slow, Never Use It)

  • @yv6eda
    @yv6eda 3 года назад

    Great info, thanks!

  • @santhorathi
    @santhorathi 3 года назад

    It's very useful.

  • @indigowyrm
    @indigowyrm 3 года назад

    Thanks!

  • @wild-radio7373
    @wild-radio7373 2 года назад

    Fantastically useful ❤👍

  • @gacherumburu9958
    @gacherumburu9958 4 года назад

    Wow! Thanks for the info! 👍

  • @Spreme91
    @Spreme91 4 года назад +1

    whats difference with using VNC ?

    • @hashimsherkhan7413
      @hashimsherkhan7413 4 года назад +1

      I think VNC just shows another pc/pi's screen, while barrier actually let's u share the mouse and the keyboard between the pi and the PC/Mac

    • @MiniRockerz4ever
      @MiniRockerz4ever 4 года назад

      copy paste from 1 machine to another

  • @dmn1n
    @dmn1n 4 года назад

    Incredible tip ! Thanks

  • @steveh6402
    @steveh6402 3 года назад

    Nice idea, but when I enter either "sudo apt install barrier" or "sudo apt-get install barrier" all I get is "E: Unable to locate package barrier" on my Raspberry Pi not sure what to do next?

  • @DjMonkeyUK
    @DjMonkeyUK 4 года назад +1

    I've been having an issue where it only seems to work 50% of the time. When it doesn't work - the entire RaspberryPi screen goes black, but the mouse is still visible. I can only seem to get it back by doing a reboot. Have you or anyone ever encountered this? I'm using the RaspberryPi 4 Model B with a 7 inch display.

  • @deewillerd918
    @deewillerd918 3 года назад +1

    whats barrier n why doesnt mirroring or ultramon work?

  • @LeightonGill
    @LeightonGill 4 года назад

    Excellent tutorial thanks.
    Admittedly, this does look just like Synergy though. Is it a rip off?
    Really useful, nonetheless. Especially as I have a small desktop.
    Synergy is quite buggy sometimes, so hopefully this is better.

    • @raspberrypi
      @raspberrypi  4 года назад +4

      Barrier is the open source fork of Synergy

  • @geographicaloddity2
    @geographicaloddity2 4 года назад

    Way cooler than a KVM.

  • @darius-rex
    @darius-rex 2 года назад

    i'm assuming based on my failure to get barrier working in my office and the videos i've seen that the keyboard and mouse have to be wired. doesnt work with wireless? if not then that strikes me as a pretty big downside.

  • @MrWallyGattor
    @MrWallyGattor 4 года назад

    great video, is there a way to make it auto start on the pi so I don't have to use a keyboard to start it??

  • @atharvsingh69
    @atharvsingh69 Год назад

    Hey guys!! just wanted to ask whether you could also transfer small files (word docs,ppts,etc) through barrier

  • @nik_y
    @nik_y 4 года назад

    Wow, i'm gonna try it later, thanks man !

  • @cxmmax4265
    @cxmmax4265 4 года назад +23

    Barrier look so mush like Synergy, interesting

    • @raspberrypi
      @raspberrypi  4 года назад +41

      Barrier is the open source fork of Synergy

    • @cxmmax4265
      @cxmmax4265 4 года назад +8

      ​@@raspberrypi thanks for reply

    • @mikehensley78
      @mikehensley78 4 года назад +2

      I thought, man that looks just like synergy! Lol

    • @Michael_H_
      @Michael_H_ 4 года назад

      Thought that too

    • @SouravTechLabs
      @SouravTechLabs 4 года назад +2

      @@raspberrypi Synergy is also open source. It's even available on Archlinux and Archlinux ARM repo
      Get it on all systems:
      1. pacman -S synergy
      2. github.com/symless/synergy-core
      But... Barrier has one more feature! It allows autoconfigure, that's a plus.
      Edit:
      I was running synergy, I uninstalled and quitted it and installed barrier! Barrier is the worst software I have ever seen.
      It uses 100% CPU and used all the available memory (RAM + ZRAM) and then froze my system. I had to warm boot my works are gone 😰😰 I was writing an app, that was on my ramdisk (no that didn't use all the CPU). After a fresh restart, I saw that barrier uses huge amount of memory when switching from one computer to another. This is worst. Back to synergy.
      github.com/debauchee/barrier/issues/715

  • @victorkamhi4963
    @victorkamhi4963 Год назад

    does this work when the server Windows PC is using wireless (Logitech universal USB dongle) mouse and keyboard? or only if they are wired type into the USB plugs?

  • @ademy7564
    @ademy7564 4 года назад

    awesom finally I solved it after a few tryes thanks

  • @LucasAnzoategui
    @LucasAnzoategui 4 года назад

    Ohh... that's good!
    What model of Raspberry Pi do you have?
    Thank you so much for showing us Barrier.

    • @raspberrypi
      @raspberrypi  4 года назад

      By the look of the case, Gordon is using the Raspberry Pi 4

  • @prosperow
    @prosperow 4 года назад

    love it

  • @streamx2
    @streamx2 4 года назад

    I have a monitor connected to my laptop - the last thing i need is another monitor. I ssh into my Raspberry Pi if I need to do something. Could this be useful for me in anyway?

  • @MiniRockerz4ever
    @MiniRockerz4ever 4 года назад

    I wonder if it's more lightweight than VNC server on CPU usage and RAM. Would it work without GUI, if I just want to send commands from laptop to Pi with CLI boot or I am better off with figuring ssh out?

  • @socalledchaos8139
    @socalledchaos8139 4 года назад +1

    yes!

  • @manningcustom
    @manningcustom 4 года назад

    it's not setting up as easily as this video. I'm using 2 linux computers. The one that is running as server says barrier is running. the one running as client says barrier is starting. I have tried auto config and manually interning the computer ip. both ways it gets stuck on barrier is starting.

  • @stefankirchengast6446
    @stefankirchengast6446 4 года назад +1

    I know this video explains how to set up your Pi as a Barrier Server, but for those looking into how to start Barrier as a Client at boot:
    on your PC enable SSL in Barrier -> Change Settings.
    on your Pi create a file using sudo nano /home/pi/.config/autostart/barrierc.desktop with the following content:
    [Desktop Entry]
    Type=Application
    Name=Barrier
    Exec=barrierc --enable-crypto xxx.xxx.xxx.xxx
    StartupNotify=false
    Note: replace xxx.xxx.xxx.xxx with your server's ip address.
    If the barrierc executable's folder is not added to your PATH, you might have to put the full path to your executable, e.g. Exec=/usr/bin/barrierc --enable-crypto xxx.xxx.xxx.xxx

  • @jankymaker9680
    @jankymaker9680 4 года назад

    Very Cool!

  • @horizon42q
    @horizon42q 3 года назад

    Very good

  • @mauroymgch339
    @mauroymgch339 3 года назад

    Fantástico!!! Awesome!!!

  • @V1P3RSlab
    @V1P3RSlab 4 года назад

    what do you mean for PC? barrier server could be loaded also on a linux machine. PS: raspbian is linux so ... you can to add linux to mac and "pc" in the tile :D

    • @raspberrypi
      @raspberrypi  4 года назад +4

      If I add too many words to the title for the video I will run out of spa

  •  4 года назад

    Excellent video

  • @josemiguelguerra222
    @josemiguelguerra222 4 года назад

    Great! Thanks!

  • @tld8102
    @tld8102 3 года назад

    Does barrier allow you to share any usb connection as well?