Mais um tutorial ensinando como criar uma máquina virtual Debian dentro do Debian.
Não testei o tutorial para Ubuntu, mas o principio é o mesmo.
Entendendo a idéia geral, você poderá testar qualquer distribuição em uma máquina virtual antes de colocar na sua máquina real.
= Configurando rede =
Vamos chamar a máquina virtual de “guest” e a máquina real de “host”. Uma coisa legal de fazer é conectar o guest ao host e fazer com que o guest possa navegar na internet.
Do lado host será criada uma interface tap0, que só irá aparecer quando a máquina virtual estiver funcionando. No guest a interface de ree será eth0. A máquina virtual(guest) vai passar navegar usando a interface da máquina real(host) que está conectada a web.
WEB <============> (eth0) HOST (tap0) <=============> GUEST (eth0)
Para que isto seja possívél, será necessário fazer algumas configurações na sua máquina.
== qemu-ifup ==
Neste arquivo definimos qual vai ser o ip do host na interface tap0.
Configure o arquivo /etc/qemu-ifup , como abaixo:
#!/bin/sh
sudo -p “Password for $0:” /sbin/ifconfig $1 192.168.0.1
== network_forward.sh ==
Adicione o script network_forward.sh aos seus executáveis. Este script server para compartilhar rede com a guest.
Criar o arquivo /usr/local/bin/network_forward.sh com os comandos abaixo:
Carregar o modulo de aceleração kqemu:
modprobe kqemu
Se o kqemu não estiver instalado, deve ter pra apt-get ou então usa o module-assistant (m-a).
Crie um disco do tamanho de 2Gb:
qemu-img create debian_etch.img 2G
Agora é só dar o boot e instalar como se estivesse instalando seu computador:
sudo network_forward.sh
sudo qemu -net tap -net nic -boot d -cdrom debian-40r1-i386-CD-1.iso -hda debian_etch.img
Algumas explicações:
network_forward.sh -> vai compartilhar rede com a máquina virtual(guest)
-net tap -net nic -> server para ativar a rede no emulador
-boot d -> informa ao emulador que o boot deve ser dado pelo cdrom(debian-40r1-i386-CD-1.iso)
-cdrom debian-40r1-i386-CD-1.iso -> informa que o cdrom contem o disco de instalação do debian(debian-40r1-i386-CD-1.iso)
-hda debian_etch.img -> informa que o disco a ser usado será o arquivo debian_etch.img
Lembre de configurar a interface de rede de modo manual, sendo o IP= 192.168.0.2 netmask= 255.255.255.0 gateway= 192.168.0.1 .
Ao terminar da instalação, a máquina virtual vai reiniciar e então você terá que alterar o parametro de boot para -boot c. Deste modo o guest irá dar o boot pelo disco.
sudo qemu -net tap -net nic -boot c -cdrom debian-40r1-i386-CD-1.iso -hda debian_etch.img
Algumas explicações:
-boot c -> informa ao emulador que o boot deve ser dado pelo disco(debian_etch.img)
Caso você queria montar o disco da maquina virtual, lembre de desligar a máquina virtual. Para montar o disco do guest devemos levar em consideração o offset causado pelo grub:
mkdir mnt sudo mount -o loop,offset=32256 debian_cd.img mnt
A few weeks ago I found a site that helps you to download mp3 file using their music search engine. It’s very easy. Just write the music or artist name.
Após o Dia D aqui em Manaus recebi um email comentando sobre o problema de documentos/tutoriais sobre o OLPC em português.
Acredito que o primeiro passo para quem está afim de entrar no projeto e colaborar é aprendar a emular o XO dentro de seu desktop. Abaixo seguem os passos.
* Make sure any old partitions from the storage device are unmounted. * Do this as the super user / root * Replace /dev/sdb with the device file of the USB storage device. The images do contain a partition table and boot loader, so make sure to write to the device and not a partition on the device (e.g. not /dev/sdb1) * The USB storage device must be 1024 MB or larger. All existing data will be lost.
Now you should be able to boot the OLPC operating system off the USB storage device. “
During the boot you will find the problem with the VGA video. Solution below.
“Problem:External monitor reported “Video mode not supported”.
Solution: Using serial port console, change “1200×900″ to “1024×768″ in /etc/X11/xorg.conf and comment out “cp -f /dev/X11/geode-xorg.conf /etc/X11/xorg.conf” in /etc/init.d/olpc-configure for X-window to start properly on an external 1024×768 monitor/ATest board. “
cd ~ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.bz2 tar -xvjf linux-2.6.22.tar.bz2
Compile kernel :
cd linux-2.6.22 # inside kernel tree make defconfig # make default configuration make menuconfig # add what you want to use make # compile kernel make modules # compile modules make modules_install INSTALL_MOD_PATH=/mnt # install modules in filesystem
== Booting ==
Umount filesystem:
umount /mnt
Detach loopback device:
losetup -d loop_device
Done! You can run QEMU using the following command:
Hi all, I configured my Debian laptop(Dell Latitude D600) and helped a friend (Henry Vieira) with some tricks to configure desktop effects in his Ubuntu laptop(Dell Latitude D600). It’s a total of 2 tricks. You can find many howtos in the web, these are some tricks that took me a good time to understand and find.
Some drivers are not supported by ATI anymore, this video card is a case. So, you can use the open driver. It’s very simple.
sudo rmmod fglrx sudo modprobe radeon
Replace fglrx for radeon in /etc/modules for next boot.
Change the driver in your Xorg configuration(/etc/X11/xorg.conf).
Replace :
Driver “fglrx” for Driver “radeon”
Restart your X server (ctrl+alt+backspace) and check if DRI is working.
glxinfo | grep direct libGL warning: 3D driver claims to not support visual 0x4b direct rendering: Yes
Second – problem with resolution ———————————-
Problem:
************************************************************** * Beryl system compatibility check * **************************************************************
Detected xserver : AIGLX
Checking Display :0.0 …
Checking for XComposite extension : passed (v0.3) Checking for XDamage extension : passed Checking for RandR extension : passed Checking for XSync extension : passed
Checking Screen 0 …
Checking for GLX_SGIX_fbconfig : passed Checking for GLX_EXT_texture_from_pixmap : passed Checking for non power of two texture support : passed Checking maximum texture size : failed
Root window size (1400/1050) is bigger then maximum texture size (1024×1024)
Solution :
Replace default depth in your xorg.conf :
cat /etc/X11/xorg.conf | grep DefaultDepth
#DefaultDepth 24 DefaultDepth 16
Restart your X server and it’s going to work fine.
Some additional configurations are necessary to start up compiz-fusion. I don’t remeber all, but my xorg.conf is below.
My xorg.conf:
cat /etc/X11/xorg.conf
# xorg.conf (xorg X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the xorg.conf manual page. # (Type “man xorg.conf” at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg
### ATI DRIVER #Section “Device” # Identifier “ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]“ # Driver “ati” # Option “AGPMode” “8″ # Option “AccelMethod” “EXA” #only “XAA” is supported for some of the cards with “experimental” 3d acceleration # Option “ColorTiling” “on” ## Option “EnablePageFlip” “true” #only works with accelmethod “XAA” # Option “AccelDFS” “true” #seemed to speed things up using EXA acceleration # Option “TripleBuffer” “true” #This *might* help if you use something like Beryl and have slow video playback. # Option “DynamicClocks” “on” #This is for laptop users, it saves energy when in battery mode. # BusID “PCI:1:0:0″ #EndSection
Hi all, I simple proble that came with debian is nautilus configuration. The default configuration does not come with browser mode visualization. You can easily define it executing the steps below.
Open configuration editor: Applications –> System Tools –> Configuration Editor