Beware! Make sure you have a backup of the registry and are 100% confident of the syntax of the entries before you change anything. If you mess up, your NT system may never boot again, and you will have to reinstall NT. Try to tweak the registry indirectly whenever you can through control panel/services, system […]
Our Favorite NT Registry Entries
Pstools freeware from Sysinternals
One problem with upgrading software remotely is that you often need to stop the software you are upgrading first. Often, there is no service that can be stopped. The process must be killed. This can be a bit nasty with Windows systems because there is no easy way to find all instances of a particular […]
Using Cygwin for Automated File Transfer
Although Windows 2000 can be set up using proprietary (Well… MSified) secure connections via IPSec, there are a variety of problems. Most notable is the difficulty to get secure connections to work across multiple platforms, even between different Windows products. It is quite easy to create keys and pull files securely over the Internet from […]
Using VB to Create an Administration Console
There are many tasks that you may want to automate using a custom console. This could be for your Jr. Systems Administrators, for users, or for yourself. One tool that we like to use for this is Visual Tcl, but sometime it is nice to use plain old Visual Basic. If you do use Visual […]
Using rasdial to automate RAS connections
If you have servers or workstations that use RAS to connect to your servers directly or via the Internet, you can use the rasdial command to automate the connection. This would be particularly useful for nightly file transfers. Enter: rasdial /? to get a list of the options for rasdial. For more info on rasdial […]
The Arusha Project
The folks at the Arusha Project are *extremely* caffeinated. The best way to describe this project is that it is a language that defines systems objects. The catch is that it can be specific and useful. You can actually do package management with it. If you are running Open Source software of any ilk for, […]
Creating PDF Network Diagrams on Windows with Free Software
If you have tons of money, buy Visio. Visio is very easy to use, has tons of symbols… well, you know. This article, though, will introduce you to a number of tools that will allow you to create PDF network diagrams with free, open source software on a Windows workstation. The first tool you will […]
Free Books
Check out the collection of free books at O’Reilly’s Open Books Project. Much of the reason for the books being free is O’Reilly’s and the author’s involvment in Open Source. Don’t miss out on the unofficial biography of Richard Stallman, “Join us now and share the software, you’ll be free…”. There are also some good […]
Word Abbreviation With Vi
You can use word abbreviation with vi to insert common chunks of code, commands, or text into your documents. Simply type esc: (to go into command mode) and enter ab abbr phrase. For instance, say you were editing html, and you wanted sztt to enter standard table tags of BORDER=”0″ BGCOLOR=”#E0E0E0″ WIDTH=”99%”, you could enter: […]
Disabling Shutdown Reasoning on Windows Server 2003
When you shut down or restart Windows Server 2003, you are required to explain yourself: The only way to shut down is to enter something in the lower box: Whatever. Makes us want to punch the screen in defiance, like when XP gently asks if you have forgotten your password. Now, you might think this […]
Creating a One Way External Trust Between Windows 2003 and NT (MMC)
To allow users in an NT domain to use resources on a Windows 2003 domain, you need to set up a one way external trust. In NT-style language, this means that the Windows 2003 domain (trusting) trusts the NT domain (trusted). In User Manager for the NT domain, select policies->trust relationships, and add a trusting […]
Pstree
Use the pstree command to list processes in a tree format. It will show the process owners. Default is to start the root of the tree at init: u-1@srv-1 u-1 $ pstree init-+-3*[agetty] |-ahc_dv_0 |-bdflush |-crond—2*[sh—perl—sh-+-grep] | `-iget-quote] |-cupsd |-devfsd |-keventd |-khubd |-kjournald |-kscand |-ksoftirqd_CPU0 |-kswapd |-kupdated |-lockd |-login—bash—startx—xinit-+-X | `-sh-+-icewm-+-Eterm—bash—ssh | | |-Eterm—bash—pstree | […]
Setting Time Synchronization With Windows 2000
We have some Windows 2000 servers we administer that are authenticating against some NT domain controllers. You can set up your Windows 2000 servers to synchronize time with an outside source: C:\>net time /querysntp This computer is not currently configured to use a specific SNTP server. The command completed successfully. For a list of NTP […]
Don’t Wrap in the Middle of a Word, and Display Partial Paragraphs in Vim
A couple things that really annoy me are the default vim settings where words get chopped in the middle and paragraphs don’t display correctly. I’m sure there is a reason for the defaults, but here is how you change this while in vim: :set linebreak :set display+=lastline If you put this in .vimrc in your […]
Using Strace to Determine What Files a Program Opens
We were recently configuring AIDE, and didn’t pay attention to the defaults in the configuration when we compiled it, and didn’t know where aide.db.new was going to after running aide initially. Sure, lsof would work while to porgram is running; however, we needed to know what files were open while the program was running. Strace […]
Changing the Default Crontab Editor
The default crontab editor is nano on some systems. This is a pain. You can change this by setting the EDITOR environment variable. In BASH: srv-4 / # set | grep EDITOR EDITOR=/bin/nano srv-4 / # which vi /usr/bin/vi srv-4 / # export EDITOR=/usr/bin/vi srv-4 / # set | grep EDITOR EDITOR=/usr/bin/vi _=EDITOR srv-4 / […]
One off Administration and Testing Scripts Using Vi
If you have a list of servers, you can use the substitution feature in vi to quickly turn that list into a test script. For instance, if I want to test a list of domains that looks like this: domain1.com domain2.com domain3.com domain4.com domain5.com I can insert text before and after the domain name. Here […]
Vim With Spell Checking
There is a new version of Vim that will do spell checking. We used version 7.0131 available here. Grab the source, extract, compile, and install: [root@www src]# cd vim7 [root@www vim7]# ls vim-7.0131.zip [root@www vim7]# unzip *.zip Archive: vim-7.0131.zip Vim 7 snapshot version 7.0131 inflating: src/README.txt inflating: src/arabic.c inflating: src/arabic.h inflating: src/ascii.h inflating: src/buffer.c . […]
Determining System Properties with Java
In this article we displayed our system properties via Tomcat. We were curious, though, how to retrieve these directly through Java. Here is how you can do this: [usr-1@srv-1 java]$ cat FirstProperties.java public class FirstProperties { public static void main(String[] args) { System.out.println(“System Information: \n”); System.out.println(“Operating System: “); System.out.println(System.getProperty(“os.name”)); System.out.println(“\nArchitecture: “); System.out.println(System.getProperty(“os.arch”)); System.out.println(“\nOperating System Version: […]
IT is, true, but define with the Microsoft Operations Framework
“It is.” is the best answer, really, my friend confided in me over a campfire when describing his and a friend’s 24 hours of trying to unravel the mysteries. I was selling CP/M computers at the time, and he was talking bigger than Information Technology. We all know that IT is as we look out […]