Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

An introduction to web serving with OS X Internet
In their online MacDevCenter, O'Reilly Press has published an article by Kevin Hemenway titled Apache Web-Serving with Mac OS X: Part 1.

This first article in a series provides a basic introduction to enabling the OS X web server and setting up a very basic web page. Future articles promise to delve into enabling CGI and other more advanced topics.

I've added the link to the links page (which is now approaching 100 OS X related URLs!) for easy future reference.
  Post a comment  •  Comments (4)  
  • Currently 4.00 / 5
  You rated: 2 / 5 (3 votes cast)
 
[2,966 views] Email Article To a Friend View Printable Version
Start a remote access server from the shell Internet
If you're like me, you use VNC for remote GUI access, but don't want to keep the server running when you aren't using it due to security concerns. Here's how you can start a VNC server on demand via ssh.

First, create a script called /pathto/yourscripts/startvncserver as follows:
#!/bin/tcsh
cp /pathto/yourscripts/.osxvnc-passwd /tmp/osxvnc-passwd
/Applications/OSXvnc.app/Contents/MacOS/OSXvnc-server -rfbport 5901
-desktop "OSX VNC 1" -rfbauth /tmp/osxvnc-passwd &
[This is a three line script; remove the line break after the "5901" when entering it.]

Save it wherever you save your own scripts, and make it executable (i.e. chmod 755 startvncserver).

The next step is to make the osxvnc-passwd file. All you need to do is start a VNC server via the GUI (with a password), and copy /tmp/osxvnc-passwd to /pathto/yourscripts/.osxvnc-passwd

All set! Now you can SSH to your machine, start VNC with your new script, and then connect via the GUI.

Note: A user must be logged into the console at the remote machine, or I don't think this will work. I'm going to test it without being logged in and I'll post a comment with the results.
  Post a comment  •  Comments (11)  
  • Currently 3.00 / 5
  You rated: 3 / 5 (3 votes cast)
 
[22,555 views] Email Article To a Friend View Printable Version
Track a changing IP number remotely Internet
I love this site. By incorporating many past hints, I've developed a simplistic "poor man's" way of getting remote access to a Mac that is behind a router on a dynamic DSL account. Let's say you want to have remote access to your Mac - secure telnet and FTP access for example. If you are like me, you have the following problems:
  1. My DSL connection has a dynamic IP address
  2. My Mac is connected to a router, which gives me a local IP address.
  3. I'm too cheap to buy a domain-name or register for a Dynamic DNS service.
If you'd like the solution to these problems, read the rest of the article...
read more (452 words)   Post a comment  •  Comments (10)  
  • Currently 2.33 / 5
  You rated: 1 / 5 (3 votes cast)
 
[16,054 views] Email Article To a Friend View Printable Version
Speed up a slow ADSL connection in 10.1 Internet
I have had difficulty with my ADSL connection using Telstra in Australia with 10.1. It worked fine on 10.0.4 and still on my WinTel box.

The link establishes correctly (ping etc. work) but mail and web traffic are terribly slow. I contacted Apple and they know the problem and are working on a proper fix. Their interim fix is to enter the following at the command line after you have connected.
sudo ifconfig ppp0 mtu 1492
It is also suggested that you may have to make the last number lower, I have set it to 1000. I believe this is the maximum packet size.

Where does the system keep the ppp configuration information so it can be modifed once and for all? Perhaps someone can further explain what is going on.

Gavin.
  Post a comment  •  Comments (9)  
  • Currently 3.00 / 5
  You rated: 3 / 5 (3 votes cast)
 
[25,534 views] Email Article To a Friend View Printable Version
Running Applets safely Internet
If you have to run an applet, and it crashes your browser (as most applets seem to do), you can sometimes work around it with the 'appletviewer' command.

Open up the Terminal. The appletviewer command takes the URL as an argumnet. For example:

appletviewer http://www.killradio.org/chat.html

...will run the killradio.org chatroom, which didn't run in my browsers. It runs in it's own small window, which is nice.

[Editor: This situation should be greatly improved in 10.1, as the Java support in browsers has been greatly improved.]
  Post a comment  •  Comments (2)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[4,090 views] Email Article To a Friend View Printable Version
View internet cache file Internet
Is there a way to view the IE5 disk cache (or OmniWeb cache)? Most downloaded images and multimedia files are temporary stored in this cache while browsing the web, so I was wondering as to how I can view and extract files from this cache. Any help would greatly be appretiated.
  Post a comment  •  Comments (3)  
  • Currently 2.33 / 5
  You rated: 3 / 5 (3 votes cast)
 
[8,066 views] Email Article To a Friend View Printable Version
Script to stay online at all times Internet
Is there a way for me to let a script (or something similar) always check whether I'm online and to re-connect when I'm not? I have a dsl flat and would like my ftp and webserver to stay online. my isp tends to disconnect if after some idle time, and i'd rather not do a permanent ping which is good for "faking" user activity.

Looking forward to your hints
;-) maciana
  Post a comment  •  Comments (12)  
  • Currently 3.00 / 5
  You rated: 4 / 5 (2 votes cast)
 
[3,925 views] Email Article To a Friend View Printable Version
Mac OSX and cable access in Australia Internet
Telstra, the ex-government telecommunications monopoly down under, has 100% of the ADSL market in Australia and is the leading cable supplier.

They are exceedingly ignorant about all things MacOS especially Mac OS X. The following non-Telstra FAQ has information about connecting MacOS X to Telstra ADSL, and has links to a freeware non-classic client for Telstra Cable (a boon for Australian OS X users)

http://whirlpool.net.au/faq-mac.cfm
  Post a comment  •  Comments (0)  
  • Currently 2.25 / 5
  You rated: 2 / 5 (4 votes cast)
 
[2,264 views] Email Article To a Friend View Printable Version
Code Red and OS X firewalls Internet
Recently I started seeing lot of activity in my Apache logs. For those that don't know, they are at /private/var/log/httpd (access_log and error_log). The code was:
63.82.46.11 - - [07/Aug/2001:04:06:38 -0700] "GET /default.ida?
XXXXXXXXX...snipped...XXX%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3
%u7801%u9090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003
%u8b00%u531b%u53ff%u0078%u0000%u00=a HTTP/1.0" 404 27
[Editor's note: Carriage returns inserted, and repetitive "X" characters snipped, to aid readability; this will appear as one line in your log].

If you're seeing this then it's not a threat to your system. It's someone's machine running windows NT 4.0 with IIS 4.0 or 5.0 enabled, Windows 2000 servers, or betas of XP with the Code Red worm running on their box. This probably means they don't know about it and it doesn't hurt us except it bloats your access logs. The information on it can be found at
http://www.cert.org/incident_notes/IN-2001-08.html

I have a question. Is there a way to set a deny rule for this with ipfw. Anyone?
-j
  Post a comment  •  Comments (26)  
  • Currently 2.00 / 5
  You rated: 2 / 5 (3 votes cast)
 
[3,734 views] Email Article To a Friend View Printable Version
Disable internet connections on your PowerBook Internet
Tip: How to easily keep your Powerbook from trying to connect to internet when on the road and off line.

Go to Network panel in System Prefs, Under the 'Locations' popup, select 'Edit Location'. Duplicate any existing location, and rename it something like 'Off-line'. Now go to the 'Configure' popup and select 'Advanced'. On this screen uncheck ALL of the connection types - and Save. Now you can switch easily at any time from the new 'Apple' menu's location sub-menu. When you select your new 'Off-line' location, your Powerbook will not keep trying to connect to internet.
  Post a comment  •  Comments (1)  
  • Currently 2.00 / 5
  You rated: 2 / 5 (3 votes cast)
 
[5,121 views] Email Article To a Friend View Printable Version