Archive for December, 2002

Netscape Email on Windows

Monday, December 30th, 2002

Netscape email, if it becomes corrupted, may be fixed by the following.
-Open the preferences for mail and find the directory/folder in which email is stored
-Close Netscape completely
-Navigate to the appropriate directory/folder and rename inbox to inbox.old and delete inbox.msf
-Delete both trash and trash.msf
-Open Netscape and the email program (Netscape Mail or Netscape Messenger)
-Close Netscape completely again
-Navigate to the appropriate directory/folder and rename inbox.old to inbox (no extension)
-Open Netscape email and see if it worked
-If it didn’t (according to Netscape support), a virus has corrupted the inbox

As an aside…
Netscape 6 does not have an export feature for either the address book or email. You can export the address book if you upgrade to Netscape 7. Email is in a proprietary format and cannot be imported or moved into Outlook or Outlook Express. (This also according to the helpful Netscape phone support jerk, I mean ass, I mean person who I talked with).

BTW, this was on a Windows machnine, so it could be a moot point on Apple.

Helpful DOS Commands

Monday, December 30th, 2002

When you first place a hard drive into a machine, you need to run fdisk. This is a menu driven application for partitioning a drive. It requires a reboot to complete.

Following an fdisk, you would typically run a “format ” Before formatting it is good to check fdisk and verify that your drive letter really is valid.

Dir is the command for list contents. You can list by type by specifying a parameter immediately following, like “dir autoexec.bat”. You can also use switches to find hidden and archived files or to separate the output by pages (“dir /p”). This command is a lot like the ls command in UNIX.

To change your current directory, use the cd command. To go backwards use “cd ..” (yes, there is a space after cd just like in UNIX). To go back to the root directory, type “cd \”.

To make folders, use the md command. The proper syntax to create a folder called i386 (typical name for Windows 2000 setup file directory) would be “md i386”

“Copy *.* c:\i386” – For this command, the * represents a wildcard. If I said *.exe, it would copy all executable files or autoexec.bat would just copy that one file. The syntax is such that it is “copy

From the i386 folder, run “winnt” if you want to start an installation of windows 2000.

Using these commands you can navigate through a file system in DOS and install windows 2000 or windows 98 (setup file is called setup) from scratch onto a new hard drive. Other usefull commands to know are

“Ipconfig /release” or /renew or /flushdns or /all– This command is especially nice b/c it gives you complete control over the DHCP status of your machine – only from 2000

“winipcfg” – Displays a GUI of the TCP IP stack – 98 only

“Arp –a” – This will show you a cached list of all machines that have connected to yours in the past few minutes

“delete ” – This command will, yes, you guessed it, delete files. Be wary, there is no trash… Gone means gone.

“winnt /sos” – When run from an i386 folder, this command will tell you why your 2k box isn’t booting sometimes.

“ping” – is a loopback IP address. You’re just testing if your NIC works, but if you go in order, from NIC, to Router, to DNS servers, to a URL, you can pinpoint where your computer is receiving internet issues, if you’re having them.

“tracert ” – using this command, you can follow traffic per hop into specific locations. This can be especially helpful when isolating a connectivity issue. If often copy the results into an email and fire that off to an ISP to get them to resolve routing table issues )yes, those still friggin’ happen).

“sys a:” – Makes a bootable floppy (no CDROM drivers) – only from 98

“dcpromo” – adds a 2K server to a domain or creates a domain, or unjoins from a domain – 2K server only

“net use * //server/volume” – map the next available (once again using the * as a wildcard) drive letter to that volume on that server

“net use z: /delete” – delete’s that network drive

“xcopy *.* destination /e” The beauty of this little comman is that it gives the user the ability to transfer subdirectories, a feature not part of copy. The /d switch will copy only changed files. The /y files will copy without asking for verification. Xcopy is not always available.

Start and stop are the final ones. These I use rarely, but you can use them to kill a process (like the kill statement in UNIX)

Anyway, just thought the Mac users would like some commands. If you want

Permission Issues in Mac OS X 10.2

Wednesday, December 11th, 2002

I’ve noticed some permissions issues with 10.2 server where new filez and directories created do not have permissions of the files in the directory they were created in. For SMB at least I found this workaround. Once I have a 10 server at home I will be able to find a comparable resolution for appletalk clients and ftp clients:

Edit the /etc/smb.conf file. This causes Windows clients to create files with the same privileges as the folder to which you save a file. The /etc/smb.conf file is dynamically created by Server Admin, so changes you make to this file would normally be overwritten through the normal use of Server Admin. The following steps will prevent that from happening, but they will also prevent you from making changes in the Windows file sharing settings in Server Admin.

1. Open the Terminal (/Applications/Utilities/).
2. At the prompt (#), type:
sudo pico /etc/smb.conf
3. Press Return. The file opens in the pico text editor within the Terminal window.
4. Use the cursor keys to locate the “global” section of the file, and add this line:
inherit permissions = yes
5. Press and hold the Control key, then press the “X” key. This saves the file.
6. Press the “Y” key.
7. Press Return.
8. At the prompt, type:
sudo chflags uchg /etc/smb.conf

Step 8 locks the file. If in the future you want to make changes to this configuration using the Server Admin application, you must unlock the file. Follow these steps to allow unlock it:

1. Open the Terminal.
2. At the prompty, type:
sudo chflags nouchg /etc/smb.conf
3. Press Return.