I have an old macbook with some photos on it that I'm trying to sell. I want to keep the OS on there so that someone new can use it, but I have to wipe it through terminal because the screen is mostly broken.
How can I delete all accounts on my Mac and leave it with a fresh install with no DVD and a mostly broken screen?
Note: I don't have a video out adapter. I know that would be the easy option, but I'm a sucker for the Terminal.
Update: I used this article http://en.kioskea.net/forum/affich-73393-change-mac-admin-password-without-the-disk
It gives me a new account and the computer starts up as if I just walked out of the store with it, but it says that the other account still exists.