Archive for January, 2009

Securing and configuring HP switches

We got some Procurve 2810 Gigabit switches. they play some critical roles, so I wanted to keep others from playing with them. The exact code below would enable https for web management, enable ssh for console management, change the port ssh runs on, and disable telnet and unencrypted web management.


config
crypto key generate ssh
show crypto host-public-key
crypto key generate cert 512
crypto host-cert generate self-signed 01/01/2009 01/01/2020 [ip address] [department] [company] Chicago IL us
ip ssh
no telnet-server
no web-management plaintext
ip ssh port [port num]
web management ssl
write memory

OpenOffice Remove mis-spelled words

beleive or believe?
If you mistakenly add a word to Firefox’s custom dictionary, the word is added to

~/.mozilla/firefox/[unique-alphanumeric-string].default/persdict.dat

just edit the file and remove your mistaken ‘custom’ word.

Remotely change power options in XP

First of all, get the pstools and set them up. then run

 \\[workstation name] powercfg /query
Field Description          Value
-----------------          -----
Name                       Home/Office Desk
Numerical ID               0
Turn off monitor (AC)      After 20 mins
Turn off monitor (DC)      After 5 mins
Turn off hard disks (AC)   After 60 mins
Turn off hard disks (DC)   After 10 mins
System standby (AC)        Never
System standby (DC)        After 5 mins
System hibernates (AC)     Never
System hibernates (DC)     After 20 mins
Processor Throttle (AC)    Not Supported
Processor Throttle (DC)    Not Supported

that will tell you what the current settings are. After that, you can set the power scheme by doing this:

psexec \\[workstation name] powercfg /setactive "[scheme name]"

It will exit with “error code 0″, but no worries. Just check your work using the query command above after your changes.

Ubuntu recovery console with no root password

So your Ext3 root partition is corrupted. No matter how you try to log into your system, your system asks you for . But you are a good, obedient user. And you do not have a set. You can press , but that just reboots. Are you boned?

No. problem. press ctrl+alt+delete. You will get a messy screen about having trouble launching your X session, but you will get a login towards the bottom of the screen. So just use your normal user login and password. after that, I use
sudo su