Difference between revisions of "Talk:Enable Internet Sharing"

From AwkwardTV
Jump to: navigation, search
(worked for a while)
 
(16 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
Aole: so, to enable this feature, we must first connect with cable our appletv. When you plug the cable, normally appletv disconnects from WLAN.Ok
 +
logging into the appletv, then we have to kill configd so ..
 +
 +
kill -9 `ps awx | grep [c]onfig | awk {'print $1'}`
 +
 +
At this point, we have to turn-on airport.
 +
 +
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setairportpower on
 +
 +
(If you need come kind of encryption look here for a help http://developer.apple.com/documentation/Darwin/Reference/Manpages/man8/networksetup.8.html )
 +
 +
At this point, we need to copy System Preferences, and then enable internet sharing..
 +
 +
So WE have a fully function 802.11n WLAN access point or a bridge wirless with basic routing.
 +
 +
Keep on mind, that you MUST use another subnet for this segment of network.
 +
 +
for example. If my net is 192.168.0.x connected to airport, you must change ip address on the interface wired (for example 192.168.1.x ), allowing nat and routing between interfaces. (Be careful with routable address, look here http://www.samspublishing.com/articles/article.asp?p=131034&seqNum=6&rl=1 )
 +
 +
Aole: Ok, I've enabled Internet Sharing from System Preferences but stills a problem.
 +
My Internet Connection is provided by Wlan, when I attached the network cable, Finder uses only cable connection.
 +
I knew that is a problem of interfaces's priority, but if I change the priority of Ethernet Interface in System Preferecens placing in the top of the list Airport, the problem remains.
 +
 +
So what about interfaces's priority ? Suggestions ?
 +
 +
 
Heliode: Just thinking out loud: people have managed to install System Preferences.app. Couldn't internet sharing be enabled from this? btw, not sure if you already are, but you should really try fseventer to gather information on what changes are made on the file system when you enable internet sharing.
 
Heliode: Just thinking out loud: people have managed to install System Preferences.app. Couldn't internet sharing be enabled from this? btw, not sure if you already are, but you should really try fseventer to gather information on what changes are made on the file system when you enable internet sharing.
  
Chasd: Since someone has been able to get Apache to run, why not enable WebDAV and use that ? You can enable WebDAV by uncommenting the config file line that loads the dav_module, and also the line that adds mod_dav.c. Then you need to set up Directives that create an alias and enable WebDAV, like this
+
Chasd: <pre>Comment Removed, incorrect page.</pre>
  
Inside the
+
----
 +
Uh, unless I'm really confused, WebDav is not at all the same thing as Internet Sharing. Internet Sharing would enable the Apple TV to share its Ethernet connection to wireless clients, or vice versa, as a bridge from wireless to Ethernet. See: [http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh336.html Mac OS X 10.4 Help: Sharing your Internet connection] --[[User:Jonathan|Jonathan]] 20:12, 29 March 2007 (CEST)
  
<nowiki><IfModule mod_alias.c>
 
[...]
 
</IfModule></nowiki>
 
  
block, add this block, generally after the block of lines for CGI-
+
--
 +
In Mac OS X System Preferences, the Sharing icon presents a variety of things. The main tab, "Services," turns on AFP, SMB, WWW, FTP, Etc, while the "Internet" sharing tab offers one button "Internet Sharing," which sets up routing, NAT and DHCP automatically, turning the device into an ultra simple router. [[User:Danieleran|Danieleran]] 06:20, 30 March 2007 (CEST)
  
<nowiki><IfModule mod_dav.c>
+
--
Alias /media "/mediadirectorypath/"
+
did aynone have any further success on it? The problem seems to be that /usr/libexec/InternetSharing fails, cause the Airport-Interface gets automatically disabled, when a cable is plugged in. A solution is to kill configd. Then both interfaces are operating, but InternetSharing wants to write to configd, so thats no solution. Anyone got more information on this or any solutions?
 +
--[[User:Appletv ger|Appletv ger]] 20:13, 7 June 2007 (CEST)
  
# Create a lock database file for this server at this path
+
== proxy server ==
DAVLockDB /Library/Webserver/DAVLock.ical
 
# Minimum life of a lock
 
DAVMinTimeout 600
 
<Directory /mediadirectorypath>
 
DAV On
 
AllowOverride None
 
Options None
 
allow from all
 
</Directory>
 
</IfModule>
 
</nowiki>
 
  
Make sure the media directory is writable by the apache process.
+
prasys: How about setting up a proxy server or squid with it. I mean , it will be nice to create a sort of envoriment for the rest of the folks. I know 256MB of RAM is not enough , but then if you have 3-4 computers it will be handy !
You may need to touch the lock file and set its permissions.
 
<nowiki>Insert non-formatted text here</nowiki>
 
Restart apache, then use this URL in "Connect To Server"
 
  
<nowiki>http://<ipaddressofappletv/media/</nowiki>
+
== worked for a while ==
 +
my appletv (1.0, up to 2.4) lacked some of the specified files, I got them from a 10.4.10 installation disk. started InternetSharing, both interfaces were operational and it worked, until I added the InternetSharing in rc.local and rebooted - now I can't enable both the ethernet and the wireless connection.
  
You can also use Windows or Linux to access WebDAV volumes ( actually called collections ).
+
Edit: It works, the trick is that the ethernet port must be empty during the booting process (even unconnected cable messes it) and to kill the configd daemon after that. All described files from the front page are necessary.

Latest revision as of 05:43, 5 October 2009

Aole: so, to enable this feature, we must first connect with cable our appletv. When you plug the cable, normally appletv disconnects from WLAN.Ok logging into the appletv, then we have to kill configd so ..

kill -9 `ps awx | grep [c]onfig | awk {'print $1'}`

At this point, we have to turn-on airport.

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support/networksetup -setairportpower on

(If you need come kind of encryption look here for a help http://developer.apple.com/documentation/Darwin/Reference/Manpages/man8/networksetup.8.html )

At this point, we need to copy System Preferences, and then enable internet sharing..

So WE have a fully function 802.11n WLAN access point or a bridge wirless with basic routing.

Keep on mind, that you MUST use another subnet for this segment of network.

for example. If my net is 192.168.0.x connected to airport, you must change ip address on the interface wired (for example 192.168.1.x ), allowing nat and routing between interfaces. (Be careful with routable address, look here http://www.samspublishing.com/articles/article.asp?p=131034&seqNum=6&rl=1 )

Aole: Ok, I've enabled Internet Sharing from System Preferences but stills a problem. My Internet Connection is provided by Wlan, when I attached the network cable, Finder uses only cable connection. I knew that is a problem of interfaces's priority, but if I change the priority of Ethernet Interface in System Preferecens placing in the top of the list Airport, the problem remains.

So what about interfaces's priority ? Suggestions ?


Heliode: Just thinking out loud: people have managed to install System Preferences.app. Couldn't internet sharing be enabled from this? btw, not sure if you already are, but you should really try fseventer to gather information on what changes are made on the file system when you enable internet sharing.

Chasd:
Comment Removed, incorrect page.

Uh, unless I'm really confused, WebDav is not at all the same thing as Internet Sharing. Internet Sharing would enable the Apple TV to share its Ethernet connection to wireless clients, or vice versa, as a bridge from wireless to Ethernet. See: Mac OS X 10.4 Help: Sharing your Internet connection --Jonathan 20:12, 29 March 2007 (CEST)


-- In Mac OS X System Preferences, the Sharing icon presents a variety of things. The main tab, "Services," turns on AFP, SMB, WWW, FTP, Etc, while the "Internet" sharing tab offers one button "Internet Sharing," which sets up routing, NAT and DHCP automatically, turning the device into an ultra simple router. Danieleran 06:20, 30 March 2007 (CEST)

-- did aynone have any further success on it? The problem seems to be that /usr/libexec/InternetSharing fails, cause the Airport-Interface gets automatically disabled, when a cable is plugged in. A solution is to kill configd. Then both interfaces are operating, but InternetSharing wants to write to configd, so thats no solution. Anyone got more information on this or any solutions? --Appletv ger 20:13, 7 June 2007 (CEST)

proxy server

prasys: How about setting up a proxy server or squid with it. I mean , it will be nice to create a sort of envoriment for the rest of the folks. I know 256MB of RAM is not enough , but then if you have 3-4 computers it will be handy !

worked for a while

my appletv (1.0, up to 2.4) lacked some of the specified files, I got them from a 10.4.10 installation disk. started InternetSharing, both interfaces were operational and it worked, until I added the InternetSharing in rc.local and rebooted - now I can't enable both the ethernet and the wireless connection.

Edit: It works, the trick is that the ethernet port must be empty during the booting process (even unconnected cable messes it) and to kill the configd daemon after that. All described files from the front page are necessary.