Forge Tech Blog Some notes on things I really should remember

25Jan/120

Palm Recovery Mode

Palm Pre

  • Disconnect the USB cable
  • Completely power off the device (hold down the power button until the option to power off appears)
  • Remove the battery
  • Connect the USB cable and wait for the battery image to appear on the screen (or wait around 10-15 seconds)
  • Hold down the Up button on the volume rocker
  • While holding the Up button, insert the battery. The USB logo will appear on the screen
  • "Next" should now be enabled - proceed with the recovery

via WebOS Internals.

Palm Pixi

  • Open cover
  • Pull battery
  • Press power briefly
  • Put battery
  • Put cover
  • At this moment your Pixi should be still turned off
  • Press volume up and keep it pressed
  • Insert usb cable

via webOS Nation Forums.

Filed under: Phones, webOS No Comments
24Jan/120

IMAP Usage

Mailbox Checks

telnet host 143
001 login username passwd
002 select inbox
003 search to/from "name"
004 fetch msg (body[header])
005 close
006 logout

Exchange IMAP Login from Thunderbird

IMAP    Username    domain/ians/ian.smith
SMTP    Username    domain/ians

20Jan/120

Unlock Palm/HP Phones

You'll need Python and Python Serial. Download the scripts:-

Pre/Pre2/Pre3

Pre3/Veer

Get the USB Passthrough code with

pre_keygen.py

"BZ" #* on the keyboard. Enter "*#USBPASS# #*8727277# in the dialer application.

Select Diag for USB Port 1

lsusb
modprobe usbserial vendor=0x0830 product=0x8003
pre_unlock.py

Disable USB Passthrough

via Dogbert's Blog

Filed under: Phones, webOS No Comments
19Jan/120

Mac admin password without the disk

Forgotten the password on a Mac? This worked a treat on Snow Leopard.

You need to enter terminal and create a new admin account:

1. Reboot

2. Hold apple key + s key down after you hear the chime. command + s on newer Macs

3. When you get text prompt enter in these terminal commands to run through the initial setup and make a new admin account:

mount -uw /

rm /var/db/.AppleSetupDone

shutdown -h now

via Kioskea.net.

Filed under: Apple No Comments
13Jan/120

Deleting Windows Network Share

Trying to connect a drive, but have already connected as a different user?

net use * /delete /y

Filed under: Windows No Comments
12Jan/120

VMware vCenter CapacityIQ 1.5

I had some problems with this because I registered mine with the vCenter straight away. eye tee's blog entry was a revelation:

The first thing you want to configure is licensing. It’s important to configure licensing first because CapacityIQ has a bug which prevents you from configuring licensing after connecting to vCenter.

via eye tee: Installing VMware vCenter CapacityIQ 1.5.

Filed under: VMWare No Comments
10Jan/120

Management Network Redundancy Message

Irritated by the No Management Network Redundancy message?

Disable in the HA Cluster setting Advanced Options by adding "das.ignoreRedundantNetWarning" and set the value to "True"

If the error still shows select the host and click "Reconfigure for HA"

via Host currently has no management network redundancy.

Filed under: VMWare No Comments
6Jan/120

Multiple User VNC on Ubuntu

Install tightvncserver

for each user:-

  • create .vnc/xstartup (/etc/skel/.vnc)
  • run vncpasswd
  • Add user to /etc/sysconfig/vncservers and designate desktop

Check permissions on .vnc, .vnc/xstartup, .vnc/passwd

 

vncservers:-
VNCSERVERS="1:ian 2:jim 3:james 4:user4"
VNCSERVERARGS[1]="-geometry 1280x992 -depth 16"
VNCSERVERARGS[2]="-geometry 1024x768 -depth 16"
VNCSERVERARGS[3]="-geometry 1024x768 -depth 16"
VNCSERVERARGS[4]="-geometry 1024x768 -depth 16"

 

xstartup
#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid black
/usr/bin/gnome-session &

S99vncserver
#!/bin/bash -e
### BEGIN INIT INFO
# Provides:          vncserver
# Required-Start:    networking
# Default-Start:     3 4 5
# Default-Stop:      0 6
### END INIT INFO

unset VNCSERVERARGS
VNCSERVERS=""
[ -f /etc/sysconfig/vncservers ] && . /etc/sysconfig/vncservers

prog=$"VNC server"

start() {
REQ_USER=$2
echo -n $"Starting $prog: "
ulimit -S -c 0 >/dev/null 2>&1
RETVAL=0
for display in ${VNCSERVERS}
do
export USER="${display##*:}"
if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
echo "${display} "
unset BASH_ENV ENV
DISP="${display%%:*}"
export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
su ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
fi
done
}

stop() {
REQ_USER=$2
echo -n $"Shutting down $prog: "
for display in ${VNCSERVERS}
do
export USER="${display##*:}"
if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then
echo -n "${display} "
unset BASH_ENV ENV
export USER="${display##*:}"
su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
fi
done
"\n"
echo "Vncserver Stopped"
}

# See how we were called.
case "$1" in
start)
start $@
;;
stop)
stop $@
;;
restart|reload)
stop $@
sleep 3
start $@
;;
condrestart)
if [ -f /var/lock/subsys/vncserver ]; then
stop $@
sleep 3
start $@
fi
;;
status)
status Xvnc
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac

Might have got this here

Filed under: Linux No Comments
21Dec/110

VMWare Virtual Apps

The sheer variety and quanity of VMWare's management virtual appliances has been driving me potty so in this post I gather together all of the default logins. It's not over yet.

vSheild

Username: admin
Password: default

manager> enable
manager# setup

Data Recovery

Username: root
Password: vmw@re

Capacity IQ

Username: ciqadmin
Password: set on install

Filed under: VMWare No Comments
15Dec/110

Enabling Remote Access to Apple OS X

Using the command line to enable VNC on a Mac using the command line.

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all

via Ryan’s Tech Notes.

Filed under: Apple No Comments
24Oct/110

DebianChroot

  • cd /media/cryptofs
  • dd if=/dev/zero of=debian.img bs=1024 count=1048576
  • mkfs.ext3 -F -b 1024 debian.img 1048576
  • mkdir /media/ext3fs
  • mount -o loop /media/cryptofs/debian.img /media/ext3fs
  • echo "/media/cryptofs/debian.img /media/ext3fs ext3 loop 0 0" >> /etc/fstab
  • mount -a

via DebianChroot - WebOS Internals.

Filed under: TouchPad No Comments
23Oct/110

TouchPad CTRL and ESC keys

I found out how to generate ANY control character including ESC! The CTRL key is emulated by pressing and HOLDING the 't' key, waiting for the secondary keys to pop up and hitting the right-most one. It looks like "|o". It's what's called the 'thorn' symbol.To send a CTRL-x, hit the 'thorn' key then, immediately hit the 'x' key. This sends a CTRL-x.To send a CTRL-k, hit the 'thorn' key, then press 'k'.

via Using CTRL and ESC keys on TP Virtual keyboard - WORKS! - PreCentral Forums.

Filed under: TouchPad No Comments
22Oct/110

HP TouchPad Setup

Since the latest update 3.0.4 stuffed my TouchPad and the subsequent rescue with WebOSdoctor wiped loads of the preware and some of the setup from my TouchPad here are a few setup reminders.

Firstly SSL certificates for mail servers are added via the Certificate Manager under Device Info. I mailed myself the pem file.

Secondly when I went to install PreWare by connected QuickInstall it failed to connect saying I needed drivers. The drivers failed to install because there were already drivers. What to do? Turms out all I forgot was to turn developer mode on again with the Just Type code webos20090606. Note that this is lower case not mixed case as suggested in some articles.

It looks like the F15C Eagle kernel I was using hasn't been updated yet, so I've gone for UberKernel.

The restore seemed to work okay and put all of my official HP Store apps on again.

Filed under: TouchPad No Comments
6Oct/110

Port already in use when installing vCenter Server

Port 80 in use? oh what could that be? Today it was the SRSS - never come across that before.

  • Microsoft Internet Information Services IIS
  • World Wide Web Publishing Services W3SVC
  • Microsoft SQL Server Reporting Service SSRS
  • Microsoft Secure Socket Tunneling Protocol SSTP – Check that this service is not enabled automatically through group policies.
  • Microsoft Web Deployment Agent Service MsDepSvc

via VMware KB: Port already in use when installing vCenter Server.

Filed under: VMWare No Comments
26Sep/110

Cool Solaris Things

I'm studying for some Solaris certifications and here are a few things I didn't know or had forgotten that are really cool:-

prstat - like top for Solaris

/var/sadm/install/contents - all files installed by packages (grep for package name)

ptree - show which files a process is using

/var/adm/sulog - a "+" indicates success, "-" a failure

svcs -l daemon_name - show requirements for service daemon_name

prtvtoc /dev/rdsk/c1t0d0s2 - Show the partitions on the disk and mount info

cat /var/sadm/system/admin/CLUSTER - Which Solaris cluster is installed

Explanation of value returned:

SUNWCrnet Reduced Networking Core System Support
SUNWCreq Core System Support
SUNWCuser End User System Support
SUNWCprog Developer System Support
SUNWCall Entire Distribution
SUNWCXall Entire Distribution plus OEM support

Crontab entries:-

minute (0-59),
hour (0-23),
day of the month (1-31),
month of the year (1-12),
day of the week (0-6 with 0=Sunday).

fuser -cu /export/home - see who is using a file on /export/home

in.rarpd -da - listen for and display ARP packets arriving

digest -a md5 filename - generate the MD5 Sum for filename. No md5sum command here!

And my favourite from today that I'd quite forgotten about:

snoop -a

Filed under: Solaris No Comments
24Aug/110

VMWare PowerCLI

Having trouble with the system proxy? Let's turn it off

set-powercliconfiguration -proxypolicy noproxy

Connect to vCenter

connect-viserver vcenter-server

Get-VM | Get-Snapshot

Get-VM | Measure-Object

How many VM’s you have on each Host?
Get-VMHost | Select @{N=“Cluster“;E={Get-Cluster -VMHost $_}}, Name, @{N=“NumVM“;E={($_ | Get-VM).Count}} | Sort Cluster, Name | Export-Csv -NoTypeInformation c:\clu-host-numvm.csv

Command to list primary nodes on "M-Cluster"

((Get-view (Get-Cluster "M-Cluster").id).RetrieveDasAdvancedRuntimeInfo()).DasHostInfo.PrimaryHosts

Filed under: VMWare No Comments
22Aug/110

ESXi – Command Line Power on and Power Off VM

vim-cmd vmsvc/getallvms (and get the VMID for the VM)

vim-cmd vmsvc/power.on <VMID>

Filed under: VMWare No Comments
15Aug/110

Command Line Bandwidth Test

curl -o /dev/null http://download.thinkbroadband.com/1GB.zip

or

wget -O /dev/null http://download.thinkbroadband.com/1GB.zip

Filed under: Linux No Comments
12Aug/110

Crunchbang Proxy Settings

For system proxy set an environment variable to specify the proxy.

all_proxy - Shorthand for all of http_proxy, https_proxy, ftp_proxy

Added this to the Openbox autostart.sh:-

export all_proxy="http://192.168.0.1:8080"

via Creating an anonymus Crunchbang.

Filed under: Linux No Comments
11Aug/110

Linux PCMCIA Network Cards

Some things to try

Insert the card and run

pcmcia-socket-startup

Filed under: Linux No Comments
8Aug/110

ESXi File System Links

/vmfs/volumes # ls -lah /vmfs/volumes/

3c3693e8-f77a642a-1910-5c6bdcb26d3a
4da57503-03d3e3d5-02ab-001617acac43
4da57514-eda7478b-ce34-001617acac43
Hypervisor1 -> f65cb57a-0499b093-0895-3ac7192cc7ae
Hypervisor2 -> f73e2c70-b99cfb84-4eaf-8a2abd9f8f79
Hypervisor3 -> 3c3693e8-f77a642a-1910-5c6bdcb26d3a
datastore1 -> 4da57514-eda7478b-ce34-001617acac43
f65cb57a-0499b093-0895-3ac7192cc7ae
f73e2c70-b99cfb84-4eaf-8a2abd9f8f79

/vmfs/volumes # ls -lah /

altbootbank -> /vmfs/volumes/f65cb57a-0499b093-0895-3ac7192cc7ae
bootbank -> /vmfs/volumes/f73e2c70-b99cfb84-4eaf-8a2abd9f8f79
locker -> /store
productLocker -> /locker/packages/4.1.0/
scratch -> /vmfs/volumes/4da57503-03d3e3d5-02ab-001617acac43
store -> /vmfs/volumes/3c3693e8-f77a642a-1910-5c6bdcb26d3a
vmupgrade -> /locker/vmupgrade/

Filed under: VMWare No Comments
8Aug/110

Identifying disks with VMware

esxcfg-mpath -b -> generates a compact list of LUNs

esxcfg-scsidevs -l -> generates a list of LUNs

esxcfg-scsidevs -m -> generates a compact list of the LUNs

ls -alh /vmfs/devices/disks -> lists the possible targets

 

via VMware KB: Identifying disks when working with VMware ESX.

Filed under: VMWare No Comments
5Aug/110

How to install a program in Safe Mode

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\

All you have to do is to add a REG_SZ key with the service name (not the display dame) and the value data “Service” (without quotes). The service name of the Windows Installer Service is MSIService.

via Tip: How to install and uninstall a program in Safe Mode - 4sysops.

Filed under: Windows No Comments
3Aug/110

Capacity Planner : No enough Data Collected.

To add systems to a project, select "My Projects" from the "Administration" menu and click the project you want to edit

Filed under: VMWare No Comments
27Jul/110

ZFS Goodness

zpool list
zpool status

Mirror drives:
zpool create -f vms mirror /dev/dsk/c3t1d0 /dev/dsk/c3t3d0

Mirror root:
prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2 <- copy disk layout
zpool attach -f rpool /dev/dsk/c1t0d0s0 /dev/dsk/c1t1d0s0 <- mirror

zpool history <- log of events (no errors)

zfs unmount <pool>
zfs mount <pool>
zfs snapshot <pool>@snap1

zfs get com.sun:auto-snapshot

zfs set com.sun:auto-snapshot=false rpool/ROOT

 

iscsiadm list initiator-node

 

Kernel parameter for VDI on ZFS:  set zfs:zfs_arc_min = 536870912

Filed under: Solaris, Unix No Comments

Switch to our mobile site