In Linux its quite easy to get the output of a command into a variable for future use. In Windows..., well, no quite so easy.
FOR /F %%B IN ('d:\utils\date +%%Y%%m%%d-%%H%%M') DO SET DATE=%%B
The 'date' command in this examples is the Win32 GNU port of the equivalent Linux command.
For use in CMD or BAT scripts in Windows.
Configs or settings that were hard to find, or messy in getting to... for future personal reference.
Friday, June 24, 2005
Thursday, February 24, 2005
Windows OpenSSH home directory
Look in your /etc/passwd file.
You should see entries that look something like this:
depriest::43363:513:DePriest, Jason R,U-:/home/depriest:/bin/bash
You can edit the file manually and change the '/home/' entry to be whatever you wish. For instance, if I created a directory called C:\MyDirectory and wanted that to be my home directory, the same line would now read:
depriest::43363:513:DePriest, Jason R,U-:/cygdrive/c/MyDirectory:/bin/bash
[ trackback ]
You should see entries that look something like this:
depriest::43363:513:DePriest, Jason R,U-
You can edit the file manually and change the '/home/
depriest::43363:513:DePriest, Jason R,U-
[ trackback ]
Tuesday, January 11, 2005
Change the Logon Screen Wallpaper (All Windows)
Change the Logon Screen Wallpaper (All Windows) at Registry Guide for Windows
- [HKEY_USERS\.DEFAULT\Control Panel\Desktop]
Tuesday, January 4, 2005
NTLM in Firefox
Integrated NTLM authentication in internal corporate sites with Firefox.
Go to "about:config", edit network.automatic-ntlm-auth.trusted-uris and type all the allowed sites to use integrated authentication, separated by comma.
[ trackback ]
Go to "about:config", edit network.automatic-ntlm-auth.trusted-uris and type all the allowed sites to use integrated authentication, separated by comma.
[ trackback ]
HTTP Pipelining in Firefox
Firefox flies into over drive
All you've got to do is type "about:config" into your address bar, wait for it to load, then alter the following entries:
All you've got to do is type "about:config" into your address bar, wait for it to load, then alter the following entries:
- network.http.pipelining : true
- network.http.proxy.pipelining : true
- network.http.pipelining.maxrequests : 30 (meaning it will be able to make 30 requests at once.)
Tuesday, July 20, 2004
Saturday, July 17, 2004
SuperStack 3 Switch 4300/4400/4900/ SS 3 Webcache, Switch 40x0 - How to recover from a Lost password
Forgot the password for the "admin" user account and can no longer perform important management operations?
Products: SuperStack 3 Switches, SuperStack 3 Webcache, Switch 4050, Switch 4060
1.Access the Command Line Interface and enter the user name "recover" and password "recover" to place your unit in password recovery mode. The unit will remain in password recovery mode for a maximum of 30 seconds, before it returns to the CLI login prompt.
2. During the 30 seconds, perform a hard reset on the unit while the it is still in password recovery mode by switching it off, waiting a few seconds, and switching it on again.
3. When the unit has rebooted following the hard reset enter a new password for the "admin" user account.
4. Enter enable to leave password recovery enabled, or enter disable to turn it off. You are now logged in as the default "admin" user.
[ trackback ] (you need to refresh after following link... 3Com site quirks)
Products: SuperStack 3 Switches, SuperStack 3 Webcache, Switch 4050, Switch 4060
1.Access the Command Line Interface and enter the user name "recover" and password "recover" to place your unit in password recovery mode. The unit will remain in password recovery mode for a maximum of 30 seconds, before it returns to the CLI login prompt.
2. During the 30 seconds, perform a hard reset on the unit while the it is still in password recovery mode by switching it off, waiting a few seconds, and switching it on again.
3. When the unit has rebooted following the hard reset enter a new password for the "admin" user account.
4. Enter enable to leave password recovery enabled, or enter disable to turn it off. You are now logged in as the default "admin" user.
[ trackback ] (you need to refresh after following link... 3Com site quirks)
Subscribe to:
Posts (Atom)