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

domingo, 14 de dezembro de 2008

AutoComplete Eclipse

  1. Eclipse - Preferences.
  2. Java - Editor - Advanced.
  3. Select the first four boxes.

terça-feira, 4 de novembro de 2008

APPLEJACK USAGE

1. You can type 'man applejack' in a terminal window for complete usage instructions.
2. Restart your computer. When the "bong" sounds, hold down the command and s keys until you get lots of text appearing on a black screen. You are now in single user mode. If you've used the installer, you should just be able to type 'applejack' at the prompt and be on your way.
3. Auto mode: You can let the script run through its tasks automatically by typing 'applejack auto'. If you want the machine to automatically restart at the end of its tasks, use 'applejack auto restart'. You can also tell the computer to shut down automatically at the end by using the command line 'applejack auto shutdown'.
3a. Deep Auto mode: If you want to let AppleJack clean out all cache files, including the Launch Services database and any cached User Pictures, use 'applejack AUTO' instead. Use this if you still have problems booting after running AppleJack already.
4. Interactive mode: To run through just one task, or to run the script manually, type 'applejack' and then choose tasks from the menu. Running the script in interactive mode has the benefit of giving you options for working with user level cache and preference files, not just the default system level caches and preferences. To select an option, type the highlighted number or letter associated with the action, and then hit return. Whenever you enter a choice in AppleJack, you will need to hit return for that choice to take effect.
4. Corrupted preference files are moved into a directory that will mirror the original preference directory, with (Corrupt) added to the directory name. For example, corrupt preferences files found in ~/Library/Preferences will be moved to ~/Library/Preferences (Corrupt). After running AppleJack, you'll probably want to take a look at them (and most likely throw out those folders). As of version 1.4.2, AppleJack now creates a copy of the directory tree inside the (Corrupt) folder so that if any files were deeply nested inside the original preference folder, they will be placed in an identical directory hierarchy in the new (Corrupt) folder. This way, if for any reason you would want to move a preference file back, you know where it should go.
6. AppleJack has a primitive logging mechanism. It writes a journal of most of its activity to /var/log/AppleJack.log. AppleJack will automatically reset the log the next time you run it, if the file should ever reach a size somewhat over 500k.

PrintScreens MacOs

Command + Shift + 3 = Print da tela inteira

Command + Shift + 4 = Você seleciona exatamente a área que você quer fazer o print

Command + Shift + 4 + barra de espaço = Seleciona a imagem e clica em cima, faz a print da janela selecionada.

Uma dica final é que os arquivos que são salvos, são gravados na mesa, no formato PNG. Se você estiver usando um monitor estendido, o primeiro comando (da print da tela inteira) captura as duas telas e grava em dois arquivos diferentes (também publicados no desktop)

sábado, 1 de novembro de 2008

update firmware WL500

Desliga o router e retira os cabos de rede que tenhas ligado nele! Liga apenas o cabo de rede que vai do teu pc e liga-o no router na porta LAN (porta 1 por exemplo). Mantem primido o bot„o do reset e liga o cabo do power ao router, mantendo sempre primido o bot„o do reset atÈ que a luz do simbolo do power comece a piscar! Quando vires que essa luz est· a piscar, solta o bot„o do reset. A luz vai-se manter a piscar mesmo sem estares a carregar no bot„o do reset!

Abre o utilit·rio da Asus, e carrega a firmware do Tomato. Efectua o flash.