Homemade Dot-Mac with OS X, Part 2
Pages: 1, 2, 3
Make Your Mark
If you are serious about the identity of your URL, you may want to take this moment to register a domain name. So far, everything we've done has led up to this moment. If a domain name is unimportant to you, save a few bucks and skip this section.
When you register a domain name, the registrar requires that you point the name to the ISP's name servers. Since we are using a Dynamic DNS service to point to our own server, we'll be using their name servers in place of an ISP's. In the last article we used a service called DynDNS.org. You can find instructions on how to point your domain to the DynDNS.org service here.
iDisk
One feature that I occasionally use on .Mac is iDisk. The problem in the past was that I was unable to store large amounts of data without paying Apple large amounts of cash. Even with the recent increase to 100MB with the .Mac account, many of the files I deal with daily have a cumulative storage space of several gigs.
I travel a great deal, and all of my clients are located hundreds of miles from my location. I just don't keep every file I ever created on my laptop, and I backup to an external drive connected to my home server. My clients are also PC users, and I find file transfers easier when I can just connect to my home machine versus dealing with my laptop and their networks. I often need access to large database and graphics files, so I love being able to connect to my home server without being concerned about their firewalls.
There are several ways to ensure you can get to your files no matter your location. In this piece we'll set up one option and talk about another.
|
Related Reading
iPhoto: The Missing Manual |
Home iDisk Solution 1: FTP
File Transfer Protocol is one of the most common ways to move files between locations. What I like about ftp is that I can use it from almost any Web browser with a connection to the Internet. Lucky for me Mac OS X has an ftp server built in, and it starts with one click of the mouse.
Now I want to mention that for certain reasons, ftp is not the safest way to connect to your computer remotely, but it is by far the easiest.
Enable FTP
In the Sharing Preferences Pane, check "Allow FTP Access." You're now ready to login to your computer remotely. Different browsers and operating systems handle it differently, but the end result is always the same.
From a Mac
Open a browser window and type in ftp://youripordomainname. You should then be prompted to type in your username and password. That's it.
From a PC
In general you can open a browser and type ftp://yourusername@youripordomain. The browser should then request your password.
I will point out that one of the most common security violations when using ftp is often a silly mistake. If you logon at a remote location and don't clear that browser's cache, you may have left the door open to the next person who uses that computer.
Home iDisk Solution 2: WebDAV
Web-based Distributed Authoring and Versioning(WebDAV), is an emerging Web-based collaboration standard. WebDAV allows you to use a remote Web server as if it were a local drive. iDisk is an example of a WebDAV solution. If you use Mac OS X and iDisk, you've probably noticed that your iDisk mounts on your computer as if it were a regular hard drive. What makes WebDAV particularly useful is it works well as a collaborative tool. A group of people can remotely develop, edit, and manage any content, all sharing the same WebDAV "drive."
It is not only a safer solution than ftp, but also possible to enable WebDAV on your OS X Web server. However, due to the complexity, we'll cover that in a future article.
Recap
Now that we've set up the basics of our home Web server, we have a platform for a wide variety of options and fun projects that we can build upon. Our very own James Duncan Davidson and I are planning to introduce some of these issues in future articles. James will be introducing you to the more technical "Unix" aspects of controlling your Web server, while I'll be introducing a number of new projects. Look for upcoming articles on setting up a mail server, Quicktime streaming, MP3 streaming, database hosting, blogging, home automation, and much more.
Alan Graham is the creator of the Best of Blogs book series and is a frequent writer on the O'Reilly Network.
Return to the Mac DevCenter.
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 28 of 28.
-
Homemade WebDAV iDisk
2004-02-12 11:39:21 mjasonc [Reply | View]
Any more info. on how to setup a homemade iDisk using WebDAV on Panther behind a cable connection with dynamic DNS?
-
Anything further on the webdav setup?
2003-12-25 13:47:50 mr_magicfingers [Reply | View]
Alan, it's been over a year since this article, have you put anything out about how to make a webdav version of idisk? I looked through the site but didn't find anything.
Thanks,
Justin.
-
Email
2002-12-27 14:47:54 tjtrujillo [Reply | View]
Very much looking forward to the next installment including how to set up the email server. Please hurry!
Tom -
Email
2003-09-03 16:14:36 anonymous2 [Reply | View]
Check this article out: it's downright awesome, and it enabled me to run an IMAP server quite successfully. The only caveat is the usage of SSL. It's great and very secure, but it can be a hassle when dealing with email clients' support.
http://www.macdevcenter.com/pub/a/mac/2002/08/23/jaguar_server.html
Good luck!
JAS -
Email
2003-09-03 16:14:19 anonymous2 [Reply | View]
Check this article out: it's downright awesome, and it enabled me to run an IMAP server quite successfully. The only caveat is the usage of SSL. It's great and very secure, but it can be a hassle when dealing with email clients' support.
Good luck!
JAS
-
Cannot access my site... need help
2002-12-18 10:20:41 anonymous2 [Reply | View]
I have my domain name signed up with Register.com and the DNS servers pointing to DynDNS.
I signed up for customDNS and using DNSUpdate v2.6 client set to external to update my dynamic ip.
I have netgear814 router and port forwarding set to internal ip set by the router.
Do I have to do any configuration to Apache?
-
Streaming Server
2002-10-31 02:21:11 anonymous2 [Reply | View]
When r we going to get the info on streaming server? The stuff I read before is really good just want more on this project.
RB
-
Mozilla as HTML & CSS editor
2002-10-29 21:36:05 bjarnedm [Reply | View]
The Mozilla browser has an inbuilt development environment with WYSIWYG editing, direct editing of code etc.
Additionally, you can get a plugin from Mozdev called Cascades that gives you CSS-editing in the Mozilla Composer
-
Success with Comcast.net!
2002-10-23 04:25:57 anonymous2 [Reply | View]
This article really caught my eye.
I have a cable modem.
I set up the account no sweat.
But non matter what I did, the connection was refused.
I read the comment on setting the port mapping etc. Here's what worked for me-- finally.
In my airport base station...
mapped port public 8081 10.0.1.201 to private port 80
copied down the dns server addresses shown
In NetInfo...
unlocked. selected machines. duplicated localhost.
changed the IP of the localhost copy to 10.0.1.201
In network settings...
selected airport card (no hardwire to server)
changed from DHCP to manual
set address to 10.0.1.201
set dns servers to address shown in base station
In sharing...
only allow web services for now, turned off the others until I know how to set.
At dyndns.org...
set up an regular dynamic account point to my base station ip
set up a webhop to point to dynamicaccount:8081
Finally, tried access from work and viola!
My guess is that comcast check ports ?
-
Sergio - reaction
2002-10-13 10:06:05 anonymous2 [Reply | View]
Sergio, did you leave your local firewall open for HTTP requests (port 80) or whichever other port number you used on the local machine that is your webserver?
By the way, still no reaction from the author on my questions regarding using your domain name in a network...
Marc
(marc@aglaea.net)
-
Brickhouse and Sharing
2002-10-13 09:55:40 anonymous2 [Reply | View]
The two articles have been great so far. I have my Web Server and FTP up and running.
One area that was not explained in the article was...
I am using BrickHouse but should what should I do about the settings made in the Sharing control Panel?
Does BrickHouse override them or do they conflict?
Any one got any information on this?
Looking forwards to some more info on WebDAV.
-
so, how to? port forwarding
2002-10-13 01:20:46 anonymous2 [Reply | View]
Hi, what I found is that setting on the firewall in Jaguar using the sharing preferences panel disables the port forwarding, losing the ability to share an internet connection, how do I share this connection to my other Macs in the LAN without using BrickHouse? what do I need to configure, and how? thx!
Sergio. (satv@mac.com)
-
The missing Airport / network link
2002-10-10 15:38:19 anonymous2 [Reply | View]
Sorry that I'm posting it here, but this is the most recent article in the series...
I have a local set up with a Powerbook with Airport connection and a G3 B&W with ethernet to the Airport base.
I've got the dynamic DNS and got Airpost to point to the G3, who is the web server now, but I run in to the local vs. internet problem.
First it all seemed to work fine locally, but people couldn't look at my site. It turned out the IP update software sent the internal IP-address of my machine in the network as the IP for the site. So locally I could see things fine, as it pointed to my machine locally, but others also tried to get to the local IP, which of course doesn't work from outside...
Then I solved that, by getting the correct IP for the dyndns.org connection, but now others could see my pages, but I couldn't get to my site using the domain name. I've installed some bulletin board scripts to test, but some use full URL's for the links instead of relative links. This means I can't navigate through them, and thus not test them while on my local network. Neither computer understands how to get to the web server through the domain name.
I've added the domain name to 'machines' with Netinfo-manager, but it seems that the computer still thinks that the domain can be reached only through the 'external' IP address, which means it can't find the site.
Can somebody please tell me THE working solution to get the domain to be reachable locally? Similar to altering a hosts file on a system V UNIX...?
Those are my 'complaints' about these articles; the pass the 'big issues' whem doing this setup on multiple machines:
- how do I get Airport to point to the machine chosen to be webserver. This was avoided in the article by having the 'webserver' being connected directly to the internet instead of through Airport,
- how do I get all machines to resolve the domain name to a local IP, since the public IP doesn't work.
-
Anybody redirected iDisk?
2002-10-02 21:27:09 ctraue [Reply | View]
Has anybody managed to redirect the iDisk menu item (shift-command-i in the Finder) to a webdav server other than .mac?
That way, my webdav server could really take over the iDisk functionality...
Thanks!
-
Location of httpd.config file
2002-09-29 12:24:14 anonymous2 [Reply | View]
This is an example of why OS X can be so frustrating. I have a PC running Windows 2000 and successfully set it up as a server quite easily. It uses a control panel to set default documents. Very simple.
I have set up my laptop running Jaguar as a server, but it won't recognise an html file as a browser file. There is no obvious way to set this that I have found. I have read the 'Homemade Dot Mac: Deax' article and it's reader responses and found out I need to edit the httpd.config file. I have searched the entire hard drive for such a file and it's just not there. Not only that, the etc/config/ directories that supposedly contain the file aren't there either.
I hate it when Windows does things easier than a Mac. Can someone clue me in?
Thanks. -
Location of httpd.config file
2003-12-14 21:47:30 anonymous2 [Reply | View]
I do not know what kind of a MAC you own but Coldfusion automatically found my files and directories then proceeded to load with very few promts from me . Now my PC(Peice of Crap)on the other hand does not seem to have an httpd,config file anywhere- asystem search turned up nothing. other hand -
Location of httpd.config file
2002-10-02 21:32:23 ctraue [Reply | View]
You will find httpd.conf here:
/etc/httpd/httpd.conf
Go into Terminal and switch to su (become the 'root' use) --- from within the Finder, you have to 'Go to folder' (shift-command-G) and type in the path /private/etc/httpd/httpd.conf
-
Apple Laptop Keyboards Unsuitable for Unix Users
2002-09-28 21:57:22 anonymous2 [Reply | View]
Apple laptops are effectively unusable for unix users.
I am a long-time Unix user. That means I need to have the Ctrl key to the left of the A key. This is a genuine need, not merely a want; it is based upon ergonomics.
The Ctrl key is heavily used in unix, and it must be easily accessable. It cannot be off in the lower left corner of the keyboard where it is difficult to get at, and where it distorts the position of your left hand such that you can't easily type other keys while holding the Ctrl key down.
Apple desktop keyboards are now all USB. They are all OK. The CapsLock key can be re-mapped into a Ctrl key.
Unfortunately, even in this modern age, all Apple laptops have built-in ADB keyboards. The ADB keyboard is broken-by-design. It is, in
general, not possible to remap the CapsLock key into a Ctrl key.
There are some exceptions, but they are horrible kludges. They are
horrible kludges because the original design of the ADB keyboard was a horrible
kludge. The correct solution would be for Apple to re-design their laptop motherboards to use built-in USB keyboards. This hasn't happened yet. If you run Linux, use Debian's solution. For Mac OS X users, uControl works. There are no solutions (that I know of) for either NetBSD or OpenBSD. Please note once again that the "solutions" above are in fact kludges, because of the original bad design of the ADB keyboard.
Apple is (currently) ignoring Unix users! This is not merely speculation on my part. In an on-going email exchange I am having with an Apple employee (whom I won't name) in their marketing department, the Apple marketing person directly stated to me that Apple was catering to their historic Mac customers, and is purposely ignoring the Unix market. He also claimed that Apple would soon start paying more attention to the Unix market. I won't hold my breath. Apple has been ignoring Unix users for more than 12 years. I expect that trend to continue. (Also note that my Apple contact indicated that Macs would never ship with a 3-button mouse, even though Apple intended to port almost all X-window software and deliver it either on a CD/DVD or installed directly on each Mac's hard drive. How Unix friendly is a 1-button mouse with X programs that often require 3 buttons?)
Apple has now lost two opportunities to sell me hardware. I really wanted an Apple laptop for their superior battery life, and for the PowerPC with Altivec CPU. (The Altivec is vastly superior to the
x86 line for DSP.) Because I can't live with the broken-by-design built-in ADB keyboard in all Apple laptops, Sony and IBM sold me laptops instead. If Apple fixes this problem, they will sell me a PowerBook next year; if they don't, I'll still be running OpenBSD on
x86 hardware, and wishing I could use a Mac.
-
Apple Laptop Keyboards Unsuitable for Unix Users
2003-09-03 16:22:47 anonymous2 [Reply | View]
Poor guy.
Honestly, I've been using Un*x and variants for some time, and find Apple computers to be quite nicely laid out and set up, particularly the laptops. I guess you can't please everybody, but I really don't see the problem.
Much like some high-performance german cars have reverse in the extended-H, it's just not for everybody. Again I say: poor guy!
;)
JAS
-
client restrictions?
2002-09-26 14:40:21 anonymous2 [Reply | View]
Is there a difference in the number of clients that connect to OS X workstation vs. OS X Server, as there is in the Windows world (e.g. Windows NT would only allow ten clients to connect at a time, whereas NT Server did not have this hard-coded limit)?
-
iDisk, WebDAV in https (SSL)?
2002-09-24 13:07:52 anonymous2 [Reply | View]
I am trying to understand why the jaguar can't mount a webdav disk in https instead of http.
Because that way, you would be more safe with the data in transit.
Do you know anything about this subject.
Thanks,
ZN
-
Additional Web Tools
2002-09-23 22:37:28 netologies [Reply | View]
Alan, don't forget that the Mozilla group has created a great solution. Mozilla has a WYSIWYG HTML for handling most of your needs. Plus Mozilla has a Javascript debugger and there is a great installer that makes set-up easy on Max OS X.
And did I mention that it is free?
Robert
-
Where is the httpd.conf for Jaguar?
2002-09-22 09:14:30 anonymous2 [Reply | View]
I set up Jaguar's web server and replaced the plethera of pages with a single one (index.htm). It didn't work. Jaguar's Apache seems to be setup to detect language and it uses another extension for display. I had to change my index.htm to index.html.en (I assume this is english). I went into the manual and it stated that the settings were changed in a settings file named httpd.conf. I can't find it. The only thing that I can find is a file named httpd.conf.pm that states it generates a httpd.conf file. How do I change the basic settings for Apache in Jaguar? -
Where is the httpd.conf for Jaguar?
2002-09-22 19:51:48 Alan Graham |
[Reply | View]
Should find it in:
/etc/httpd/httpd.conf
Make a backup before you edit it. -
BTW...
2002-09-23 12:06:45 Alan Graham |
[Reply | View]
"index.htm" isn't defined in httpd.conf by default. The default is only "index.html".
The "index.html.en" works because language negotiation is turned on as well, but "index.html" will work just fine.
Also...the etc location can only be seen by terminal, unless you use Go>Go to Folder.
Special nod to James!
-
More Firewall info
2002-09-20 20:10:42 Alan Graham |
[Reply | View]
Check this months MacWorld for some good articles on Firewalls and even a piece on BrickHouse.





