Tuesday, January 8, 2013

Windows: How to "install" a new downloaded FONT

Did you download a new font and now you want to use it?
That's very easy: the only things you have to do are:

  • open your download folder (or after download in many browsers you find the option "view in folder" near the new font file)
  • right-click on the file -> copy (or cut if you don't need it in your download folder)
  • go to Computer, open the disk labelled with "(C)"
  • go to Windows, then Fonts
  • right-click in a white space of the folder and select paste
You should now view your new font in your text editor (Word or Writer).
If that doesn't work write a comment and I'll help you further.

Thursday, January 3, 2013

Install a PDF printer in 30 seconds on Ubuntu

Installing a PDF printer on Ubuntu will take no more than half minute:

  • open a Terminal (search Terminal in the Menu or CTRL+ALT+T)
  • type sudo apt-get install cups-pdf, then press Enter
  • insert your password to allow installation (it will seem you're not typing for security reasons), then press Enter again
  • wait until the installation finishes
You can now print your documents to PDF files choosing the printer named "PDF"; they will be saved by default in the folder PDF in your home.

Monday, November 12, 2012

How to use commands with options in shortcuts / at startup

Running a shell command that has some options (command -opt) at startup or with a keyboard shortcut may not work, so the only solution is to create a bash script with the desired command inside and launch the script instead.
Here is what you have to do (assuming the script will be named myscript, your command is mycomm and has option -opt):

  • in a Terminal (CTRL+ALT+T) type gedit myscript (or another editor instead of gedit)
  • copy and paste the following code inside:
    #! /bin/bash
    mycomm -opt
  • save and close
  • in the Terminal type chmod +x myscript to make it executable
  • move the file in /usr/bin to make it runnable: sudo cp -a myscript /usr/bin
  • add /usr/bin/myscript as command to the startup processes or to your customized keyboard shortcuts.