Search This Blog

Friday, July 27, 2012

CD/DVD printing

HP Photosmart D5360 - $380 2008
HP Photosmart C5280 - 2007

EPSON Artisan 730 All-in-One Printer $199.99
EPSON Artisan 1430 Inkjet Printer $219.99
EPSON Artisan 837 All-in-One Printer $199.99
EPSON Stylus Photo R2000 Inkjet Printer $319.99
EPSON Stylus Photo R2880 Inkjet Printer $499.99


EPSON Stylus Photo R3000 Inkjet Printer $649.99

Canon PIXMA MG5320 Color Ink-jet - Printer / copier / scanner $80
Canon Pixma MG8220 $210
Canon Pixma MG6220 $134

Tuesday, July 24, 2012

Cron setup for cygwin

########################################
# Cron configuration in Windows
########################################

$ cron-config 
Do you want to install the cron daemon as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ ] ntsec

You must decide under what account the cron daemon will run.

If you are the only user on this machine, the daemon can run as yourself.
   This gives access to all network drives but only allows you as user.
To run multiple users, cron must change user context without knowing
  the passwords. There are three methods to do that, as explained in
  http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1
If all the cron users have executed "passwd -R" (see man passwd),
  which provides access to network drives, or if you are using the
  cyglsa package, then cron should run under the local system account.
Otherwise you need to have or to create a privileged account.
  This script will help you do so.
Do you want the cron daemon to run as yourself? (yes/no) yes

* If cron run multiple users, it needs to change user context; therefore, the user passwords need to be kept in a place, which the service can access.

See http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1 for details. 

* passwd -R: enter password to store it in the registry for later usage by services to be able to switch to this user context with network credentials.


* If the cron daemon needs to run under the local system account, say no for the question above.

Please enter the password for user 'user': 
Reenter: 
Running cron_diagnose ...
WARNING: You do not currently have a crontab file.

... no problem found.


Do you want to start the cron daemon as a service now? (yes/no) yes

OK. The cron daemon is now running.

In case of problem, examine the log file for cron,

/var/log/cron.log, and the Windows event log (using /usr/bin/cronevents)
for information about the problem cron is having.

Examine also any cron.log file in the HOME directory

(or the file specified in MAILTO) and cron related files in /tmp.

If you cannot fix the problem, then report it to cygwin@cygwin.com.

Please run the script /usr/bin/cronbug and ATTACH its output
(the file cronbug.txt) to your e-mail.

WARNING: PATH may be set differently under cron than in interactive shells.

         Names such as "find" and "date" may refer to Windows programs.


$ net start cron
The requested service has already been started.

More help is available by typing NET HELPMSG 2182.


$ crontab -e


Following script runs script.sh every noon.


0 12 * * * /home/user/program/script.sh


cron.log can be found out in ~.


Remove cron service


net stop cron

sc delete cron

########################################
# Cron debugging in Windows
########################################

1. cat /Var/log/cron.log
2. cronevents.exe

Monday, July 9, 2012

SVN setup with Cygwin and sshd

1. SSH setup

2. Create svn repository
svnadmin create /home/svn

3. If you want to restore the repository from another location
svnadmin load /home/svn < [dumpfile-name]

4. Test
svn list svn+ssh://user@[ip address]/home/svn

5. If you want to use another port but standard ssh port '22', it is strongly suggested to edit '.ssh/config'.
Example of the content in '.ssh/config' with ssh port '515'

host localhost
        Hostname localhost
        Port 515

6. For TortoiseSVN, you may want to edit SSH client with new port configuration. In the 'Network', you can fill SSH client with the following:

"C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe" -P 515

Ref.  

SVN Repository setup


Typical repository setup for SVN

trunk
the main line of development, the leading edge, where developers usually commit their regular changes.

tags
a collection of snapshots of the trunk (or a branch) at a user-defined point in time, for instance release day.

branches
active variations of the project compared to the trunk (or even another branch). This is useful when working out a (big) change that needs to be coordinated in a team or when using a single working-copy for the work with the changeproject is not feasible.

Friday, July 6, 2012

Hide account from any interface in Windows 7

1. Create the following key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList

2. Add DWORD (32-bit) Value using account name with its value '0'

3. If you want it to show up, it needs to be set as '1'

4. If you hide your main account so that you can't log in, you need to log in with another account and use root command 'runas.exe.'

Create another command prompt with the following command, and run 'regedit' there.

runas /user:root cmd

Add an existing user into localgroup in Windows

example.
net localgroup Administrators username /add

Blog Archive