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
This is just incredible to see, not just awesome.
This is super useful, I have a desk full of laptops and devices. Definitely going to try this, thanks Gordon!
Consider him thanked by proxy
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.
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.
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..
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.
Wow, this is just what I need for my Amateur Radio computer setup, thanks for bringing this to my attention!
Just came across this for the first time and couldn't wait to try it! Works flawlessly. Thank you so much!
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!
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!!!
Happy to help!
FYI: on the server side don't forget to allow port 24800/tcp
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.
Pretty cool. I've been using a KVM switch for years.
OMG where has this been all my life?!?
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.
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)
Q: how many conputers at your desk?
A: no
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.
I've used this method before but I've never been able to copy and paste between the two. How did you accomplish this?
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!
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?
you could write a script to automaticlly do that
That didn’t work for me because you have to press the start button manually
Note: scroll lock stops the mouse moving to other computers screen
Very nice. Very timely for me as it happens too.
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.
experiencing the same issue. Not only that, you always have to reconnect the keyboard/mouse to start barrier after booting up.
@@edmundcua3396 can you ssh into the pi to start barrier?
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!
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
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
This is gold! It's a perfect solution
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.
And... it works for me! Thank you, Mr Director.
Incredible. I just lost words. Many thanks!!!
This is what I have been looking for! Thanks for sharing!
Glad it was helpful!
Incredibly useful application
Wow, that looks useful. Do you need the KB to initiate the client or just the original setup?
Yes, this is awesome. Thank you.
this is gonna save me a ton of work!! thanks alot, I stay
Glad we could help!
The 12 thumbs down are peripheral manufacturers....
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?
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?
We edit the videos in Premiere :)
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.
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.
Mind
BLOWN
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.
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.
This is absolutely fantastic! Thank you for sharing
Really cool!
great video, simple and easy to understand.
OMG love this! Thanks for sharing!
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?
what about share one monitor between two pc ?
I would love to know if this is possible
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....
Nice to see that can share beetween 2 raspberry pi too 😎
That´s what I was looking for. Thanks a lot!
Wow! That's amazing! Thanks for making this video.
This works like magic!!!! Nice, thank you for the information!!!!!!!!!!!
that is awesome..just what i looking for...thanks
Enjoy!
Very cool! Thanks.
Amazing!!! this will solve a lot of my problems
YES! Finally found a solution! Thanks, captain.
Thank you Sir!
You are the best!! thank you
Any experience using barrier over different networks? i.e. portforwarding
That would be a game changer!
very good video sir. Thank you very much
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!
sudo apt update will update the repos for Raspbian.
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
Thanks! Works well.
Very useful! Thanks!
Thanks so much, this certainly helps.
Glad it helps!
It's amazing and very useful! Thanks.
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)
Great info, thanks!
It's very useful.
Thanks!
Fantastically useful ❤👍
Wow! Thanks for the info! 👍
whats difference with using VNC ?
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
copy paste from 1 machine to another
Incredible tip ! Thanks
No problem!
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?
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.
whats barrier n why doesnt mirroring or ultramon work?
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.
Barrier is the open source fork of Synergy
Way cooler than a KVM.
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.
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??
Hey guys!! just wanted to ask whether you could also transfer small files (word docs,ppts,etc) through barrier
Wow, i'm gonna try it later, thanks man !
No worries.
Barrier look so mush like Synergy, interesting
Barrier is the open source fork of Synergy
@@raspberrypi thanks for reply
I thought, man that looks just like synergy! Lol
Thought that too
@@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
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?
awesom finally I solved it after a few tryes thanks
Ohh... that's good!
What model of Raspberry Pi do you have?
Thank you so much for showing us Barrier.
By the look of the case, Gordon is using the Raspberry Pi 4
love it
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?
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?
yes!
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.
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
Very Cool!
Very good
Fantástico!!! Awesome!!!
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
If I add too many words to the title for the video I will run out of spa
Excellent video
Thank you very much!
Great! Thanks!
Does barrier allow you to share any usb connection as well?