terça-feira, 14 de julho de 2009

Change Login Image on Leopard

Find an image and save it in your desktop as DefaultDesktop.jpg.
In the Terminal enter:
sudo mv /System/Library/CoreServices/DefaultDesktop.jpg /System/Library/CoreServices/DefaultDesktopOld.jpg

Then type:
sudo cp DefaultDesktop.jpg /System/Library/CoreServices/DefaultDesktop.jpg

sexta-feira, 12 de junho de 2009

svnX with https certificate

  1. Type "svn ls " in terminal
  2. Acept the certificate permanetly (p)
  3. svn should now be able to connect to your repository without problems.

Show Hidden Files

  1. Open Automator.app
  2. Select Run Shell Script from the list of available actions, and drag it into your workflow.
  3. Type the following code into the Run Shell Script text box:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
  1. Save as a Plugin with name " ShowHiddenFiles"
  2. Now a simply right-click and Automator > ShowHiddenFiles and the Finder will restart showing all your hidden files.
  3. Repeat the process but change "FALSE" for "TRUE" and save the new plug-in as HideHiddenFiles.

quarta-feira, 15 de abril de 2009

Coordenadas do googleMaps para GPS

  1. Escolher o local.
  2. Centrar o mapa no local pretendido (clicar com o botão direito do rato, sobre o local exacto e escolher a opção "Centrar o mapa aqui").
  3. Clicar no link "Hiperligação para esta página".
  4. Copiar o link e filtrar as coordenadas, que estão localizadas depois do conjunto de caracteres "ie=UTF8&ll=".
  5. Traduzir as coordenadas para o sistema do GPS:
  • Latitude: valor positivo -> N (Norte), valor negativo -> S (Sul).
  • Longitude: valor negativo -> W (West-Oeste), valor positivo -> E (East-Este).

sexta-feira, 6 de março de 2009

partilhar entre OSX e Ubuntu com VirtualBox

  • Com a máquina virtual desligada, selecione a máquina e vá em Settings > Shared Folders
  • Adicione um new folder, em Folder Path coloque o caminho da pasta que está na máquina host. Em Folder Name dê um nome para a pasta
  • Por exemplo "Share"
  • Clique em OK e inicialize a máquina virtual
  • No ubuntu, crie uma pasta para montar o share.
  • Por exemplo "Share"
  • Abra o terminal e digite "sudo mount -t vboxsf FolderName PathToMount"
  • FolderName é o nome que foi escolhido para a pasta no segundo passo e PathToMount é o caminho do folder criado no ubuntu.
  • Por exemplo: mount -t vboxsf Share /home/my_user_name_here/Share
Para não estar sempre a escrever o anterior:
  • in Terminal: sudo gedit /etc/fstab
  • add to the end of my fstab file
  • "Share /home/my_user_name_here/Share vboxsf defaults 0 0"

segunda-feira, 2 de março de 2009

Virtual box - Linux

Para instalar os extras:

1. Install DKMS before installing the Linux Guest Additions
• On an Ubuntu system:
sudo apt-get install dkms

No mac:
Mount the VBoxGuestAdditions.iso file as your Linux guest’s virtual CD-ROM drive

sudo find / -name VBoxGuestAdditions.iso

cp VBoxGuestAdditions.iso /Users/rromano/Desktop

selecionar na VM a imagem


2. Change to the directory where your CD-ROM drive is mounted and execute as
root:
sh ./VBoxLinuxAdditions-x86.run

---

resolution graphics modes
you can
change your setup by editing the configuration file of the X server, usually found in
/etc/X11/xorg.conf

Pastas Partilhadas:

In a Linux guest, use the following command:
mount -t vboxsf [-o OPTIONS] sharename mountpoint
Replace sharename with the share name specified with VBoxManage, and
mountpoint with the path where you want the share to be mounted (e.g.
/mnt/share). The usual mount rules apply, that is, create this directory first if
it does not exist yet.

Beyond the standard options supplied by the mount command, the following are
available:
iocharset CHARSET
to set the character set used for I/O operations (utf8 by default) and
convertcp CHARSET
to specify the character set used for the shared folder name (utf8 by default).
The generic mount options (documented in the mount manual page) apply also.
Especially useful are the options uid, gid and mode, as they allow access by
normal users (in read/write mode, depending on the settings) even if root has
mounted the filesystem.

Virtual box - Windows

Instalar Extras:
Mount the VBoxGuestAdditions.iso as your virtual CD-ROM drive

Pastas Partilhadas:
- selecionar na Virtual Box a pasta pretendida
- net use x: \\vboxsvr\sharename