Skip to main content

Posts

Showing posts from 2011

Guide to logging in using ssh without a password

The trick here is to understand which side is the client and which is the server. Pretty simple in concept, but the reality is a little different. You copy the public key of the client user to the server user's .ssh directory in the authorised keys. The server user only needs a .ssh directory http://linuxproblem.org/art_9.html There is also this guide http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/ There is also this one http://serverfault.com/questions/398/why-wont-automatic-login-through-ssh-with-authorized-keys-work And this seems to be the real fix... chmod 0600 ~/.ssh/authorized_keys

Reverse mapping ssh problem

See this link  http://www.electrictoolbox.com/reverse-mapping-possible-break-in-ssh/ However, for me, it was simply solved by entering the reverse name and it's corresponding IP in the hosts file of the client machine that was attempting the connection.

Host Keys in different Virtual Machines

Vendor Host Key Products VMware Ctrl+Alt (Windows and Linux) ESX, ESXi, Workstation, Server, Player, Ace VMware Ctrl-Cmd (Mac) Fusion Microsoft Right Alt Virtual Server 2005 R2, Hyper-V, Virtual PC 2007 Citrix Ctrl+Alt XenServer Virtual Iron Ctrl+Alt Virtual Iron 4.x KVM Right Ctrl KVM, Qemu Sun xVM Right Ctrl xVM Server, VirtualBox Parallels Ctrl+Alt (Windows) Workstation Parallels Ctrl+Option(Alt) (Mac) Workstation

Javascript Form Validation

It's real simple. All you need to do is call a javascript function in a html  " onsubmit " in the form tag as a javascript return, like this       <form method="post" action="dosomething.php" onsubmit="return validateForm();"> If the code completes ok, the form is then sent to the page listed in "action" http://www.w3schools.com/js/js_form_validation.asp If the function specified in the onsubmit returns false, then the form is not sent to the page mentioned in action.

Shared Care Mental Health Program on the axe

     

Access VBA Connection String

Make sure to include the ADO 2.1 References  This is the command to establish a connection to the current Access database in VBA. Set conn = CurrentProject.Connection Set objRec = New ADODB.Recordset Read Only Connection: objRec1.Open strSQL, conn Write Connection:  objRec2.Open strSQL, conn, adOpenForwardOnly, adLockOptimistic

so I remember how to use the GPS in the bloody work car.

Quick Guide to use the Navigation and Radio ALWAYS PULL OVER TO THE SIDE OF THE ROAD IF ENTERING OR CHANGING INFORMATION INTO THE SYSTEM. When the ignition to the vehicle is activated “turning the car on” the navigation screen may automatically appear, if not, you will need to press the “on” button located on the dashboard (red button). It will take a few seconds to register the GPS and start the program Select “Navigation” on the touch screen Select “Find” on the touch screen Select either “Find Address” or “Favourites” (GPNSW Sydney office) is entered in favourite for your return home now select the row that you need to change, ie Australia won’t need to be touched, however if you are traveling outside of NSW then you will need to select this row and update. Do the same for the city, street and number Once you are happy that the destination is correct then select “Set as Destination” If you get out of the navi program either by choice or by accident ie changing the band

Pauls Mac Tips

How to stop macs from writing DS_store entries on network drives http://support.apple.com/kb/HT1629 Force Quit Option / Command / Esc Showing the full path in Finder To display the full path in the Finder title in Leopard, open Terminal.app and run: $ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES then $ osascript -e 'tell app "Finder" to quit' Then relaunch the Finder from the dock. To undo: $ defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO How to flush the dns cache (works for 10.5 and above) dscacheutil -flushcache  

chkconfig in debian

In Centos and other Redhat variants, I have come to love chkconfig. When I changed to Debian, I was in for a shock, there is no chkconfig. However, in Debian there are two tools that are even better 1) sysv-rc-conf  and 2) update-rc.d

Command Here PowerToy

I've been tryuing to remember where I downloaded that damn command here powertoy. I finally found it again, at Microsoft, http://windows.microsoft.com/en-US/windows/downloads/windows-xp There's also TweakUI etc... Plus, my other favourite is www.sysinternals.com

Creating an additonal IP in Debian

It's extremely simple, but there are two things you need to note 1) make sure you have it set in auto 2) The ip details themselves The file is at /etc/network/interfaces after editing the file, restart the network /etc/init.d/networking restart An example of auto.. auto lo eth0 eth0:1 eth0:2 eth0:3 eth1 iface eth0 inet static         address x.x.x.x         netmask x.x.x.x         network x.x.x.x         broadcast x.x.x.x         gateway x.x.x.x         # dns-* options are implemented by the resolvconf package, if installed         dns-nameservers x.x.x.x         dns-search XX_name.com.local iface eth0:1 inet static         address x.x.x.x         netmask x.x.x.x

Some multi monitor management software

Others that I need to look at - Synergy - MultiMon - Hydravision - eyefinity Review at http://lifehacker.com/5519833/five-best-tools-for-managing-your-multi+monitor-setup http://realtimesoft.com/ultramon/ I like it, it has monitor profiles, a little clunky. However,it misses a clock on the smart task bar, start button and application shortcuts on a taskbar.  Some of the things I really like about Displayfusion are missing, but it has the ability to save the position of desktop icons - which I thing is critical, monitor profiles, and turning monitors off. http://www.9xmedia.com/ Similar to Ultramon, but much more expensive http://www.displayfusion.com/ This is probably the best, but it lacks some important features. It misses.. Being able to save the position of icons Have monitor profiles  Able to disconnect monitors  Can't minimise the desktop on one monitor only I like Start button on each monitor Able to fix applications on additional taskbars Resize a

Nokia E70 Reset Code

I needed to do full reset of my Nokia Mobile phone. A full reset can be started by entering *#7370# and entering a pin, normally 12345. This may delete everything off the phone. A soft reset by entering *#7780#, and the pin