Archive

Archive for the ‘debian’ Category

Dia D – Samurai Debian

Texto enviado por Davyd Smelk para a lista de email Debian-AM
“”"
O Termo Samurai foi criado pelos Japoneses com a intenção de
caracterizar um perfil seleto de guerreiros. Estes guerreiros eram
escolhidos ao nascer e treinados durante a infância e adolescência para
que desempenhassem da melhor forma possível suas atividades quando
atingissem a maior idade.

O treinamento dos Samurais envolvia um alto nível de conhecimento em
artes marciais, mas acima de tudo, um nível ainda mais elevado de auto-
conhecimento.

A tarefa dos Samurais era e ainda é muito complexa, pois eles são
treinados para proteger e servir ao povo, mesmo que isto implique em
sacrificar sua vida.

Samurais são mais que pessoas, são guerreiros que lutam dia após dia
para proteger e construir um futuro melhor para o seu povo.

E é com esta visão que escolhemos o tema do Dia D 2007, como uma
homenagem a todos os desenvolvedores e colaboradores que dedicam suas
vidas em um trabalho voluntário, a cada tempo vago em que podiam está
cuidando de seus interesses pessoais mas preferem lutar por um futuro
livre.

O Samurai Debian simboliza a força de uma verdadeira comunidade, e por
isto digo aos que fazem parte desta comunidade que não desistam, e aos
que ainda não fazem, que juntem-se nós nessa luta pela liberdade
digital.

Samurai Debian 2007 – UEA / Escola Superior de Tecnologia – 18/08/2007

“”"

Achei legal a idéia Davyd.

Categories: debian, olpc, pessoal Tags:

HOWTO: Debian Qemu (running Debian inside Debian)

==Building Debian Images for QEMU==

Install qemu and debootstrap:

apt-get install qemu debootstrap

Create image (replace “image.raw” with image filename and with image size. Eg. 1G):

qemu-img create image.raw size

Associate image file with a loopback device:

losetup.orig -f # take note of the filename returned
losetup.orig loop_device image.raw # replace with name returned above

Create a ext2 filesystem on the image:

mke2fs loop_device

Mount the image:

mkdir -p /mnt
mount loop_device /mnt

Run debootstrap to install the Debian system :

debootstrap etch /mnt ftp://ftp.de.debian.org/debian/

Create a basic /mnt/etc/fstab on the image so the init scripts do not complain:

proc /proc proc defaults 0 0
/dev/hda / ext2 defaults,errors=remount-ro 0 1

== Compile kernel ==

Download and uncompress kernel source :

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:

qemu -hda image.raw -kernel ~/linux-2.6.22/arch/i386/boot/bzImage -append “root=/dev/hda”

Wrote by:

Anderson Lizardo
Francisco Alecrim (INDT)

== Connecting host<->guest ==

Recompile the kernel with the network drivers available. I don’t remember the correct option, so active all in :

-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> Ethernet (10 or 100Mbit) (NET_ETHERNET [=y])

Define ip used by host(real machine) in (/etc/qemu-ifup) :

#!/bin/sh
sudo -p “Password for $0:” /sbin/ifconfig $1 192.168.0.1

Boot up your virtual system again adding(-net tap -net nic)

sudo qemu -net tap -net nic -hda image.raw -kernel ~kernel/tree/linux-linus-2.6/arch/i386/boot/bzImage -append “root=/dev/hda”

Define the ip and route used by guest(virtual machine):

ifconfig eth0 182.168.0.2 netmask 255.255.255.0
route add default gw 192.168.0.1

Test it:

ping 192.168.0.1

Define DNS servers:

scp 192.168.0.1:/etc/resolv.conf /etc/resolv.conf

That’s it!!

Categories: debian, dica Tags:

Ubuntu / Debian : dell d600 desktop effects ( 1400 x 1050 )

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.

First – Direct Rendering
———————————-

lspci | grep ATI

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R250 [Mobility FireGL 9000] (rev 02)

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

Section “ServerLayout”
Option “AIGLX” “on”
Identifier “Default Layout”

# Default screen (best)
Screen “Default Screen”

# Dual head
#Screen 0 “Screen0″ 0 0
#Screen 1 “Screen1″ LeftOf “Screen0″
#Option “Xinerama” “true”

InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”
InputDevice “Synaptics Touchpad”
EndSection

### GENERIC
Section “Files”
EndSection

Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc104″
Option “XkbLayout” “us”
EndSection

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2″
Option “Emulate3Buttons” “true”
EndSection

Section “InputDevice”
Identifier “Synaptics Touchpad”
Driver “synaptics”
Option “SendCoreEvents” “true”
Option “Device” “/dev/psaux”
Option “Protocol” “auto-dev”
Option “HorizScrollDelta” “0″
EndSection

### RADEON DRIVER
Section “Device”
Identifier “ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]“
Driver “radeon”
BusID “PCI:1:0:0″
Option “RenderAccel” “True”
Option “AddARGBGLXVisuals” “True”
Option “DisableGLXRootClipping” “True”
Option “XAANoOffscreenPixmaps”
### DUAL HEAD MERGEFB
#Option “MonitorLayout” “LVDS , TMDS”
#Option “CRT2Position” “RightOf”
#Option “MetaModes” “1400×1050-1280×1024″
#Option “MergedXinerama” “on”
#Option “MergedNonRectangular” “true”
#Option “MergedFB” “true”
#Option “MergedFB” “true”
#Option “MetaModes” “1400×1050-1280×1024″
#Option “MergedDPI” “100 100″
#Option “CRT2Position” “LeftOf”
#Option “DesktopSetup” “horizontal” #Enable Big Desktop
#Option “Mode2″ “1280×1024″ #Resolution for second monitor
#Option “DesktopSetup” “LVDS,AUTO” #the types of monitors that is connected LVDS = LCD, CRT, AUTO
#Option “EnablePrivateBackZ” “yes” #Enable 3d support
#Option “HSync2″ “65″ #This sets the horizontal sync for the secondary display.
#Option “VRefresh2″ “60″ #This sets the refresh rate of the secondary display.
EndSection

Section “Monitor”
Identifier “Generic Monitor”
Option “DPMS”
HorizSync 28-70
VertRefresh 43-60
EndSection

Section “Screen”
Identifier “Default Screen”
Device “ATI Technologies Inc Radeon R250 [Mobility FireGL 9000]“
Monitor “Generic Monitor”
#DefaultDepth 24
DefaultDepth 16
SubSection “Display”
Modes “1400×1050″
EndSubSection
EndSection

Section “Extensions”
Option “Composite” “Enable”
EndSection

Section “ServerFlags”
Option “AIGLX” “on”
EndSection

Section “DRI”
Mode 0666
EndSection

### 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

### DUAL HEAD XINERAMA
Section “Monitor”
Identifier “Monitor0″
Option “DPMS” “true”
HorizSync 28-70
VertRefresh 43-60
EndSection

Section “Monitor”
Identifier “Monitor1″
Option “DPMS” “true”
HorizSync 28-70
VertRefresh 43-60
EndSection

Section “Device”
Identifier “ati0″
#Driver “ati”
#Option “MonitorLayout” “LVDS, CRT”
Screen 0
BusID “PCI:1:0:0″
Driver “radeon”
BusID “PCI:1:0:0″
Option “RenderAccel” “True”
Option “AddARGBGLXVisuals” “True”
Option “DisableGLXRootClipping” “True”
Option “XAANoOffscreenPixmaps”
EndSection

Section “Device”
Identifier “ati1″
#Driver “ati”
Option “MonitorLayout” “LVDS, CRT”
Screen 1
BusID “PCI:1:0:0″
Driver “radeon”
BusID “PCI:1:0:0″
Option “RenderAccel” “True”
Option “AddARGBGLXVisuals” “True”
Option “DisableGLXRootClipping” “True”
Option “XAANoOffscreenPixmaps”
EndSection

Section “Screen”
Identifier “Screen0″
Device “ati0″
Monitor “Monitor0″
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1400×1050″ “1280×1024″ “1024×768″ “800×600″ “640×480″
EndSubSection
EndSection

Section “Screen”
Identifier “Screen1″
Device “ati1″
Monitor “Monitor1″
DefaultDepth 24
SubSection “Display”
Depth 24
#Modes “1400×1050″ “1280×1024″ “1024×768″ “800×600″ “640×480″
Modes “1280×1024″ “1024×768″ “800×600″ “640×480″
EndSubSection
EndSection

:)

I recommend you to test compiz-fusion instead of beryl.

Important links:
https://help.ubuntu.com/community/RadeonDriver
http://www.howtoforge.com/ubuntu_feisty_beryl_ati_radeon

Thanks Henry!!!

Categories: debian, dica Tags:

HOWTO: minimo debian olpc

Hi all,
A few months ago I posted about some tests with Minimo and OLPC. Now,a tutorial about Minimo on Debian OLPC is available.

Feel free!!!!

Categories: debian, dica, olpc Tags:

debian: nautilus browser mode


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

Defining default configuration:

apps –> nautilus –> preferences –> always_use_browser

Categories: debian, dica Tags:

debian olpc developer: officially

Hi all,

Now I’m officially a debian olpc developer. :)

http://alioth.debian.org/projects/debian-olpc/

Commits soon!!

Categories: debian, olpc, pessoal Tags:

debian: desktop configuraton

Hi all,
Yesterday I found a great configuration to my desktop.

GTK2 Theme: MacOS-X Aqua

Icons: Nuvola

Wallpaper: Aqua Tux

I removed the default icons as you can see on my last post.

Great success !!!

Categories: debian, dica Tags:

Howto: Gnome: Desktop : Remove icons from the desktop


You can’t just right-click and delete the icons on the Gnome desktop in Debian and Debian based distros.

To do this,

Press ALT+F2 and run the gconf-editor

Then navigate Apps/Nautilus/Desktop

Now just uncheck the items that you don’t want to appear on the desktop.

Simple as that, and instant.


From : RichBarna

http://modfree.org/forum/index.php?topic=41.0;prev_next=prev

Categories: debian, dica Tags:

debian firefox 2

good tutorial about firefox in debian. I tested with Debian/SID and it works fine.

http://www.linuxforums.org/forum/debian-linux-help/80445-howto-install-firefox-2-various-plugins-debian-etch.html

Categories: debian, dica Tags:

Compiz Fusion

Compiz and Beryl are together now and we’re waiting for great results soon.

I’m using Compiz-fusion in my laptop and works great!!!!

;)

Categories: debian, dica Tags: