Wednesday 5 January 2011

How to back up your web server via the terminal in mac

This will backup your entire remote server to your local Macintosh computer. It uses the command line so it’s not for beginners.
Open a terminal window and type the following:
rsync --recursive --verbose --archive --progress --stats --size-only --dry-run yourusername@yourservername.com:folder_to_backup ~/Sites/
replace yourusername@yourservername.com:folder with the folder you want to back up from.
For me it was username@mac-host.com:public_html
This will do a practice run!! If it looks OK, repeat the command with –dry-run removed!
Here’s how to make it so you don’t need to type in your password each time you rsync to the remote machine:
  1. Open the terminal window and type ssh-keygen -t rsa
    Follow the prompts and use the defaults for the filenames it gives you. Don’t enter in a password.
  2. Go to the finder menu Go|Go to Folder and type in ~/.ssh
    You should then have two new files id_rsa and id_rsa.pub.
  3. Use your ftp program to copy id_rsa.pub into the .ssh directory in the home folder on your server machine, and rename it to authorized_keys.
Now you won’t be prompted for a password when you rsync to the server!

Monday 3 January 2011

How to share a printer from OS X to Windows XP

The Overview:

Basically you need to find two settings (Name: and Location:), they are here under printer setup in OSX:


Screen shot 2009-09-14 at 9.33.19 PM
Screen shot 2009-09-14 at 9.37.44 PM
and then you put them in here under windows XP:
It’s not exactly intuitive is it!!!
Here’s the more detailed instructions:
preferences sharing
1. In OSX go to APPLE MENU and PREFERENCES and SHARING
Screen shot 2009-09-14 at 9.31.38 PM
2. Click the box that says Printer Sharing to turn on printer sharing.
printer sharing
3. Now go into printer preferences:
Screen shot 2009-09-14 at 9.32.28 PM
4. Click on the printer you want to share and click on ‘Open Print Queue’
5. Click on the little button that says ‘printer setup’
Screen shot 2009-09-14 at 10.26.00 PM
6. Here you find the magic settings – take not of the Name: and the Location:
HINT: you may wish to change them to something short and easy like I have if they are long. You can change them – it doesn’t matter what they are.
Print Queue OSX



Now go into Windows XP.
XP add a printer
1. Select Add a printer under Printers:
add a network printer
2. Select add a network printer:
connect to printer dialog
3. The important bit – select ‘connect to this printer’ and type in slash slash location slash inkjet. (Ooh yes don’t you love windows!) like this:
It may ask for your password, but then the printer will appear!
This is windows though, even though the printer appeared, I had to reboot windows for it to actually but it did!

Saturday 1 January 2011

Information bar appears while downloading a file - Windows XP SP2

When you visit a site which uses the automatic download prompt, the Information bar appears instead of the download window. This is due to a security enhancement in Windows XP SP2 to protect the users from automatic download prompts generated by rogue websites. To download the file you need to click the Information bar and select Download file option to download the file. This is the safest workaround you can follow.
What if I don't want to see the Information Bar at all ?


To prevent the Information Bar from being displayed for a particular website (safer)
To prevent the Information bar from being displayed while downloading files, try adding the website to the Trusted Zone in Internet Options, Security dialog. Automatic Prompting for file download is enabled by default for Trusted Zone domains. You must add a website to Trusted Zone only if you know and trust the website.

To prevent the Information Bar from being displayed for all websites (use only in valid cases)
This procedure will allow Web sites to automatically prompt you when downloading files and software (bypassing the Information Bar).
  1. Open Internet Explorer.
  2. On the Tools menu, click Internet Options.
  3. On the Security tab, click Custom Level.
  4. Do one or both of the following:
     
    • To turn off the Information Bar for file downloads, in the Downloads section of the list, under Automatic prompting for file downloads, click Enable.
       
    • To turn off the Information Bar for ActiveX controls, in the ActiveX controls and plug-ins section of the list, under Automatic prompting for ActiveX controls, click Enable.

Next previous home