Log all Putty sessions by default

Putty has a feature to log your sessions to log files. This is a handy and I use it a lot. Comes in handy when you want to roll back what you did or to simply remember a command you ran.

Session logging is not enabled by default but if you want logging enabled by default for all your sessions then here’s how.

Fire up Putty and go to the “Logging” tab. Check “Printable output” option and insert your desired log file name and location into the location field.

PuTTY Configuration_2013-03-05_22-52-01

For the log file name, Putty supports the following substitutes.

&H – Hostname
&Y – Year (yyyy)
&M – Month (mm)
&D – Day (dd)
&T – Time (hhmmss)

D:\Users\username\Dropbox\backup\putty-log\&H-&Y&M&D-&T.log

This will log all your sessions into a dropbox backup folder with the desired naming format. .i.e “hostname-20130305-132319.log”

Go to “Session” , select the “Default Settings” saved session and hit “save” to make this default for all your new sessions.

NOTE: All your previous saved sessions will need to manually updated.

Google voice and video installer error 1603

Google Voice Error 1603

 

For some stupid reason my Google hangout and voice calls stopped working on my Windows machine. Removed the Google voice plugin and tried reinstalling it and got hit with a new error “Installer error 1603”.

After some digging around the issue was narrowed down to either permissions or the windows installer service having some hangover files or registry entries from previous installs.

The fix was to run Window’s FixIt to clean up the installer. This is what it does;

  • Removes bad registry key on 64 bit operating systems.
  • Windows registry keys that control the upgrade (patching) data that become corrupted.
  • Resolves problems that prevent new programs from being installed.
  • Resolves problems that prevent programs from being completely uninstalled and blocking new installations and updates.
  • Use this troubleshooter for an uninstall only if the program fails to uninstall using the windows add/remove programs feature.

 

Download Here

microsoft_fix_it_small

 

Let me know if it work for you.

Sunlight Unicablink. Malaysia’s first GPS enable taxi booking service.

Malaysia finally gets it first GPS based taxi booking service, Unicablink. Its part of the Sunlight  Taxi group of companies.

You have 3 ways to book a cab. Call the call center at 1300-800-222, book online or through the mobile app. The mobile app is the best way and is available for both the Android and iPhone.

When a booking is made,  the nearest taxis will be notified and they can then bid on the job. Just like the cabs in SG. The company claims booking time has dropped from 20 minutes to only 5 minutes.

The next phase will be to introduce alternative payment methods. Credit / Debit cards and Touch n Go. This is something many of us are waiting for! Especially travelers.

Go grab the app on Google Play or the AppStore and take it for a spin.

What about Taxi Monger you ask? If I’m not wrong, that’s sms based and the response time is slightly longer.

I’ve yet to book a cab through Unicablink, hopefully soon. Have you tried Unicablink yet?

read more

How to set the date and time in Archlinux

Quickly set the current date and time in Archlinux.

1. Check the current time.
[root@atom ~]# timedatectl status
Local time: Mon 2013-01-21 08:57:21 MYT
Universal time: Mon 2013-01-21 00:57:21 UTC
RTC time: Mon 2013-01-21 00:57:21
Timezone: Asia/Kuala_Lumpur (MYT, +0800)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a

2. Set the correct date and time.
[root@atom ~]# timedatectl set-time "2013-01-21 00:59:00"

3. Check again, make sure the date and time looks right now.
[root@atom ~]# timedatectl status
Local time: Mon 2013-01-21 00:59:14 MYT
Universal time: Sun 2013-01-20 16:59:14 UTC
RTC time: Sun 2013-01-20 16:59:14
Timezone: Asia/Kuala_Lumpur (MYT, +0800)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: n/a

Linux How to change user UID and GID

I was running Debian for sometime and in Debian the UID starts at 1000. Now I moved to CentOS 6 and the UID starts from 500. Simply changing the UID/GID seemed like an quick way to get my file permission back in sync.

Here’s how to easily change the UID and GID for a user in Linux.

Check my current UID/GID
[root@atom ~]# id danesh
uid=500(danesh) gid=500(danesh) groups=500(danesh)

Change my UID to 1000
[root@atom ~]# usermod -u 1000 danesh

Check my UID/GID again. GID is still 500.
[root@atom ~]# id danesh
uid=1000(danesh) gid=500(danesh) groups=500(danesh)

Change the GID for my group.
[root@atom ~]# groupmod -g 1000 danesh

UID and GID now updated.
[root@atom ~]# id danesh
uid=1000(danesh) gid=1000(danesh) groups=1000(danesh)

This will update the files in your home directory with the correct UID/GID but anything outside you will have to do it yourself.

Page 8 of 176« First...«678910»203040...Last »
© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak