På gammalt känt manér är det den filen OS/2 läser när man startar upp en PC med det operativsystemet.
På Macfronten har jag kämpat en del med X11 för att få kommunikation från en AIX-maskin vi sätter upp med massor av disk (på jobbet) att fungera. Det fungerade men det tog några minuter att reda ut varför man inte bara kan köra en xhost + och åka.
Svaret:
Enabling Network Connections in X11
Before we can use xhost and xauth across machines, we need to configure the display server to accept incoming network connections. The nolisten_tcp setting controls this. It must be set to false in order to accept connections. This can easily be accomplished through the Mac OS X user defaults system. Use defaults write to change a setting:
defaults write com.apple.x11 nolisten_tcp -boolean false
defaults read will display the value of a setting:
Mertz:~ asd$ defaults write com.apple.x11 nolisten_tcp -boolean false
Mertz:~ asd$ defaults read com.apple.x11
{
...
"nolisten_tcp" = 0;
...
}
Mertz:~ asd$
Remember, false enables incoming connections, true disables connections. Use the boolean values instead of their numeric counterparts.
no_auth flag, which can be set or cleared using defaults write: Mertz:~ asd$ defaults write com.apple.x11 no_auth -boolean falseHittat här.
Mertz:~ asd$ defaults read com.apple.x11
{
...
"no_auth" = 0;
"nolisten_tcp" = 0;
...
}
Mertz:~ asd$
Smidigt! :)
No comments:
Post a Comment