[GH-ISSUE #44] Quick question #35

Closed
opened 2026-05-05 04:49:27 -06:00 by gitea-mirror · 13 comments
Owner

Originally created by @kenny-w1 on GitHub (May 23, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/44

Hey, lovely project! Very happy to have an alternative to the mainline synergy what with the pay-wall and all, but I have the same problem on synergy as I do on barrier, the 'server IP: ' is always blank when I restart my client PC's, I'd like my client PCs to work without keyboards & mice but I cannot do that it would seem, I've tried saving the configuration but that doesn't seem to do it, and auto config asks me for a hostname.... What am I missing here? I must be doing something wrong but I don't know.

Using the AUR version of the program, in case that matters.

Originally created by @kenny-w1 on GitHub (May 23, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/44 Hey, lovely project! Very happy to have an alternative to the mainline synergy what with the pay-wall and all, but I have the same problem on synergy as I do on barrier, the 'server IP: ' is always blank when I restart my client PC's, I'd like my client PCs to work without keyboards & mice but I cannot do that it would seem, I've tried saving the configuration but that doesn't seem to do it, and auto config asks me for a hostname.... What am I missing here? I must be doing something wrong but I don't know. Using the AUR version of the program, in case that matters.
Author
Owner

@johnny-mac commented on GitHub (May 23, 2018):

I have the same issue on my Arch distro, the client server IP always goes blank on reboot, I'd like it to be filled in & auto-"start"ed but I cant figure this out either. Surely there is something we must have missed but I'm not sure what or where that could be, perhaps a config file must be editted so it starts up with an IP & auto-"start"s....

I don't mind if I have to toggle configurations on the keyboard/mouse server PC but having to do so on the client PC's is kind of a pain, that means I have to unplug my keyboard & plug it into the other computers every time I start them up.. I have over-looked the example config files but no luck there unfortunately.

<!-- gh-comment-id:391379434 --> @johnny-mac commented on GitHub (May 23, 2018): I have the same issue on my Arch distro, the client server IP always goes blank on reboot, I'd like it to be filled in & auto-"start"ed but I cant figure this out either. Surely there is something we must have missed but I'm not sure what or where that could be, perhaps a config file must be editted so it starts up with an IP & auto-"start"s.... I don't mind if I have to toggle configurations on the keyboard/mouse server PC but having to do so on the client PC's is kind of a pain, that means I have to unplug my keyboard & plug it into the other computers every time I start them up.. I have over-looked the example config files but no luck there unfortunately.
Author
Owner

@johnny-mac commented on GitHub (May 23, 2018):

Hey kenny-w1 I have something you can try, when you start barrier you just have to add --config barrier.sgc
like this:

barrier --config barrier.sgc

That did it for me :) this just made everything 10000x easier, thank you for this awesome free fork of Synergy. you save configuration to make a barrier.sgc
I think it would benefit everyone else for this to be documented in an obvious & easy-to-see place.

<!-- gh-comment-id:391426280 --> @johnny-mac commented on GitHub (May 23, 2018): Hey kenny-w1 I have something you can try, when you start barrier you just have to add --config barrier.sgc like this: barrier --config barrier.sgc That did it for me :) this just made everything 10000x easier, thank you for this awesome free fork of Synergy. you save configuration to make a barrier.sgc I think it would benefit everyone else for this to be documented in an obvious & easy-to-see place.
Author
Owner

@walker0643 commented on GitHub (May 25, 2018):

hi @kenny-w1 - the server's info should persist inside the following file:
$HOME/.config/Debauchee/Barrier.conf

Can you verify that the file exists and that it has a "serverHostname=" line under the "[General]" section?

<!-- gh-comment-id:392141016 --> @walker0643 commented on GitHub (May 25, 2018): hi @kenny-w1 - the server's info should persist inside the following file: `$HOME/.config/Debauchee/Barrier.conf` Can you verify that the file exists and that it has a "serverHostname=" line under the "[General]" section?
Author
Owner

@kenny-w1 commented on GitHub (May 26, 2018):

Yeah and my IP address for my server PC is in serverHostname=, BUT the configuration(and by configuration I mean the program won't auto-connect when it opens back up, the server IP: is always blank) won't save unless I do what Johnny here did. If I don't do barrier --config ~/.barrier.sgc after saving a configuration to /home/user/.barrier.sgc then barrier will open up without any of the configuration working, also there's a funny error about qt5_use_modules, I think its occuring since I updated cmake...

It would also appear that if I use -DCMAKE_BUILD_TYPE=Release in the CMAKE command that it won't save the configuration right or start with the configuration right or something, all I know is that with =Release it doesn't want to work on start-up. all exact same settings work fine when -DCMAKE_BUILD_TYPE=Release isn't included... I imagine that is Synergy's doing upstream but IDK.

<!-- gh-comment-id:392283938 --> @kenny-w1 commented on GitHub (May 26, 2018): Yeah and my IP address for my server PC is in serverHostname=, BUT the configuration(and by configuration I mean the program won't auto-connect when it opens back up, the server IP: is always blank) won't save unless I do what Johnny here did. If I don't do barrier --config ~/.barrier.sgc after saving a configuration to /home/user/.barrier.sgc then barrier will open up without any of the configuration working, also there's a funny error about qt5_use_modules, I think its occuring since I updated cmake... It would also appear that if I use -DCMAKE_BUILD_TYPE=Release in the CMAKE command that it won't save the configuration right or start with the configuration right or something, all I know is that with =Release it doesn't want to work on start-up. all exact same settings work fine when -DCMAKE_BUILD_TYPE=Release isn't included... I imagine that is Synergy's doing upstream but IDK.
Author
Owner

@walker0643 commented on GitHub (Sep 8, 2018):

Closing due to lack of activity since May. If this is still a problem for you can you try "-config $HOME/.config/Debauchee/Barrier.conf" instead of ~/.barrier.sgc -- does it also work? If not can you paste the contents of that file? Thanks :)

<!-- gh-comment-id:419677765 --> @walker0643 commented on GitHub (Sep 8, 2018): Closing due to lack of activity since May. If this is still a problem for you can you try "-config $HOME/.config/Debauchee/Barrier.conf" instead of ~/.barrier.sgc -- does it also work? If not can you paste the contents of that file? Thanks :)
Author
Owner

@wemakefuture commented on GitHub (Jan 22, 2019):

I am facing the same issue. When i startup barrier doenst connect and the server IP is empty. When i save my config file, there is no IP in it. Can someone pls tell me how to set it up, so my ubuntu 18.04 is by startup connecting?

section: screens
end

section: aliases
end

section: links
end

section: options
	relativeMouseMoves = false
	screenSaverSync = true
	win32KeepForeground = false
	clipboardSharing = true
	switchCorners = none 
	switchCornerSize = 0
end

My Barrier.conf file which was saved by Barrier save configuration.

<!-- gh-comment-id:456351904 --> @wemakefuture commented on GitHub (Jan 22, 2019): I am facing the same issue. When i startup barrier doenst connect and the server IP is empty. When i save my config file, there is no IP in it. Can someone pls tell me how to set it up, so my ubuntu 18.04 is by startup connecting? ``` section: screens end section: aliases end section: links end section: options relativeMouseMoves = false screenSaverSync = true win32KeepForeground = false clipboardSharing = true switchCorners = none switchCornerSize = 0 end ``` My Barrier.conf file which was saved by Barrier save configuration.
Author
Owner

@AdrianKoshka commented on GitHub (Jan 22, 2019):

The barrier config has no IP in it to my knowledge, here's my server config:

section: screens
	am1m-s2h.ccbp.online:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		switchCorners = none 
		switchCornerSize = 0
	acer:
		halfDuplexCapsLock = false
		halfDuplexNumLock = false
		halfDuplexScrollLock = false
		xtestIsXineramaUnaware = false
		switchCorners = none 
		switchCornerSize = 0
end

section: aliases
end

section: links
	am1m-s2h.ccbp.online:
		left = acer
	acer:
		right = am1m-s2h.ccbp.online
end

section: options
	relativeMouseMoves = false
	screenSaverSync = true
	win32KeepForeground = false
	clipboardSharing = true
	switchCorners = none 
	switchCornerSize = 0
end
<!-- gh-comment-id:456503176 --> @AdrianKoshka commented on GitHub (Jan 22, 2019): The barrier config has no IP in it to my knowledge, here's my server config: ``` section: screens am1m-s2h.ccbp.online: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false switchCorners = none switchCornerSize = 0 acer: halfDuplexCapsLock = false halfDuplexNumLock = false halfDuplexScrollLock = false xtestIsXineramaUnaware = false switchCorners = none switchCornerSize = 0 end section: aliases end section: links am1m-s2h.ccbp.online: left = acer acer: right = am1m-s2h.ccbp.online end section: options relativeMouseMoves = false screenSaverSync = true win32KeepForeground = false clipboardSharing = true switchCorners = none switchCornerSize = 0 end ```
Author
Owner

@Riztard commented on GitHub (Nov 8, 2019):

sorry im new for using linux. so how do i start the client without fill with ip address?

<!-- gh-comment-id:551370240 --> @Riztard commented on GitHub (Nov 8, 2019): sorry im new for using linux. so how do i start the client without fill with ip address?
Author
Owner

@iamstoick commented on GitHub (Mar 18, 2020):

I have the same issue on my Mac (server) and Ubuntu (client) setup. Everytime I reboot my Ubuntu the server IP textfield is blank.

<!-- gh-comment-id:600418853 --> @iamstoick commented on GitHub (Mar 18, 2020): I have the same issue on my Mac (server) and Ubuntu (client) setup. Everytime I reboot my Ubuntu the server IP textfield is blank.
Author
Owner

@PCAri75 commented on GitHub (Sep 11, 2020):

I know this is an old thread, but there is a fix described here that isn't clearly described (and I joined Git today just to add this note :) ).

For my MacBook Pro running Catalina, I added the "serverHostname" directive to the"section: options" block of the barrier.sgc file in my macOS home-directory, which now looks like this:

section: screens
end

section: aliases
end

section: links
end

section: options
relativeMouseMoves = false
screenSaverSync = true
win32KeepForeground = false
clipboardSharing = true
switchCorners = none
switchCornerSize = 0
serverhostname = <A.B.C.D>
end

I have Barrier added to my login-items, and in the Barrier settings interface I have "Hide on startup" enabled.

With that setup, Barrier starts when I log in, successfully connects to the server, and remains visible only in the menu-bar at the top of the screen.

Good luck!
--Ari

<!-- gh-comment-id:691330711 --> @PCAri75 commented on GitHub (Sep 11, 2020): I know this is an old thread, but there is a fix described here that isn't clearly described (and I joined Git today just to add this note :) ). For my MacBook Pro running Catalina, I added the "serverHostname" directive to the"section: options" block of the barrier.sgc file in my macOS home-directory, which now looks like this: section: screens end section: aliases end section: links end section: options relativeMouseMoves = false screenSaverSync = true win32KeepForeground = false clipboardSharing = true switchCorners = none switchCornerSize = 0 serverhostname = <A.B.C.D> end I have Barrier added to my login-items, and in the Barrier settings interface I have "Hide on startup" enabled. With that setup, Barrier starts when I log in, successfully connects to the server, and remains visible only in the menu-bar at the top of the screen. Good luck! --Ari
Author
Owner

@tienloc1 commented on GitHub (Apr 1, 2021):

I know this is an old thread, but there is a fix described here that isn't clearly described (and I joined Git today just to add this note :) ).

For my MacBook Pro running Catalina, I added the "serverHostname" directive to the"section: options" block of the barrier.sgc file in my macOS home-directory, which now looks like this:

section: screens
end

section: aliases
end

section: links
end

section: options
relativeMouseMoves = false
screenSaverSync = true
win32KeepForeground = false
clipboardSharing = true
switchCorners = none
switchCornerSize = 0
serverhostname = <A.B.C.D>
end

I have Barrier added to my login-items, and in the Barrier settings interface I have "Hide on startup" enabled.

With that setup, Barrier starts when I log in, successfully connects to the server, and remains visible only in the menu-bar at the top of the screen.

Good luck!
--Ari

So simple and 100% working for me, thank you so much.

<!-- gh-comment-id:811882480 --> @tienloc1 commented on GitHub (Apr 1, 2021): > I know this is an old thread, but there is a fix described here that isn't clearly described (and I joined Git today just to add this note :) ). > > For my MacBook Pro running Catalina, I added the "serverHostname" directive to the"section: options" block of the barrier.sgc file in my macOS home-directory, which now looks like this: > > section: screens > end > > section: aliases > end > > section: links > end > > section: options > relativeMouseMoves = false > screenSaverSync = true > win32KeepForeground = false > clipboardSharing = true > switchCorners = none > switchCornerSize = 0 > serverhostname = <A.B.C.D> > end > > I have Barrier added to my login-items, and in the Barrier settings interface I have "Hide on startup" enabled. > > With that setup, Barrier starts when I log in, successfully connects to the server, and remains visible only in the menu-bar at the top of the screen. > > Good luck! > --Ari So simple and 100% working for me, thank you so much.
Author
Owner

@heawon1126 commented on GitHub (Oct 30, 2022):

sudo nano ~/.config/Debauchee/Barrier.conf

[General]

autoStart=true <<<< autostart barrier
serverHostname=192.168.0.4 <<<< input you server ip

my client file Barrier.conf
[General]
autoConfig=false
autoConfigPrompted=true
autoHide=false
autoStart=true
cryptoEnabled=false
elevateMode=false
elevateModeEnum=0
groupClientChecked=true
groupServerChecked=false
interface=
language=en
logFilename=/var/log/barrier.log
logLevel=3
logToFile=false
minimizeToTray=false
port=5000
requireClientCertificate=false
screenName=i
serverHostname=192.168.0.4
startedBefore=true
wizardLastRun=9

im not good eng sorry

잘됨 클라이언트 부분임
서버호스트 네임 부분에 연결할 서버의 아이피를 넣어요
자동시작하기 위해서 autoStart=true
groupClientChecked=true 는 클라이언트 gui 보이는부분이에요 그거체크할거냐구 물어보는거에요
groupServerChecked=false 이거체크 트루로 하면 ip 안떠요 flase

i3 사용하시는대 barrier 자동시작 안되시면

sudo nano ~/.config/i3/config

exec_always --no-startup-id barrier
다른 os는 모르겠어요 ㅎㅎ

<!-- gh-comment-id:1296033251 --> @heawon1126 commented on GitHub (Oct 30, 2022): sudo nano ~/.config/Debauchee/Barrier.conf [General] autoStart=true <<<< autostart barrier serverHostname=192.168.0.4 <<<< input you server ip my client file Barrier.conf [General] autoConfig=false autoConfigPrompted=true autoHide=false autoStart=true cryptoEnabled=false elevateMode=false elevateModeEnum=0 groupClientChecked=true groupServerChecked=false interface= language=en logFilename=/var/log/barrier.log logLevel=3 logToFile=false minimizeToTray=false port=5000 requireClientCertificate=false screenName=i serverHostname=192.168.0.4 startedBefore=true wizardLastRun=9 im not good eng sorry 잘됨 클라이언트 부분임 서버호스트 네임 부분에 연결할 서버의 아이피를 넣어요 자동시작하기 위해서 autoStart=true groupClientChecked=true 는 클라이언트 gui 보이는부분이에요 그거체크할거냐구 물어보는거에요 groupServerChecked=false 이거체크 트루로 하면 ip 안떠요 flase i3 사용하시는대 barrier 자동시작 안되시면 sudo nano ~/.config/i3/config exec_always --no-startup-id barrier 다른 os는 모르겠어요 ㅎㅎ
Author
Owner

@VDK84 commented on GitHub (Jan 4, 2024):

I would like to mention that in Steam Deck Barrier.conf is in:
nano ~/.var/app/com.github.debauchee.barrier/config/Debauchee/Barrier.conf
as mention by @heawon1126 filling the serverHostname with the corresponding IP works!

<!-- gh-comment-id:1876902447 --> @VDK84 commented on GitHub (Jan 4, 2024): I would like to mention that in Steam Deck Barrier.conf is in: nano ~/.var/app/com.github.debauchee.barrier/config/Debauchee/Barrier.conf as mention by @heawon1126 filling the serverHostname with the corresponding IP works!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#35
No description provided.