Saturday, October 14, 2006

Howto - Lexmark X1180 in Mandriva 2007

I’ve read that wasn’t done, but I got it working.

 

I’ve printed in colors in my Lexmark X1180 in Mandriva 2007.

 

Howto:

Download :  Lexmark site

$ tar xzvf CJLZ600LE-CUPS-1.0-1.TAR.gz

$ tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz

$ tar xzvf install.tar.gz

$ sudo rpm -ivh z600cups-1.0-1.i386.rpm z600llpddk-2.0-1.i386.rpm –nodeps

$ sudo service cups restart

 

And its working (just use the Z600 driver when configuring your printer).

 

 

Posted by tarrinho at 15:48:51 | Permalink | Comments (1) »

Monday, September 11, 2006

Mandriva 2007.0 (RC1) já saiu

Posted by tarrinho at 14:15:31 | Permalink | Comments (2)

Tuesday, June 27, 2006

Syslog - SElinux

CentOS 4.3 and 4.1. 

 

I’ve found myself with no logs, the /var/log/message was empty.

 

The snmpd deamon was giving me “permission denied”. What was I to do?

 

Just Stop the selinux enforcing.

 ”echo 0 > /selinux/enforce

or

Edit the  “/etc/selinux/config” and change to  “SELINUX=disabled” and “reboot?”

 

 

 

Posted by tarrinho at 12:37:40 | Permalink | Comments (2)

Tuesday, April 18, 2006

How to format in linux (FAT 32)

To format a disk (size 160 G) in Linux (FAT 32)

 

 mkdosfs -F 32 /dev/sda1

 

/dev/sda1 -> device where to find the disk 

Posted by tarrinho at 15:06:11 | Permalink | Comments (1) »

Thursday, March 30, 2006

Linux 2006 - CM

 LINUX 2006

 IV Encontro Nacional sobre Tecnologia Aberta

 30 de Março, Auditório da Lispólis

Link

 

Posted by tarrinho at 17:35:17 | Permalink | No Comments »

Friday, February 17, 2006

Remover modulo do initrd

Linux 2.6 (RedHat /CentOS 4.1)

Como remover 1 modulo do initrd?

Aconteceu-me que tinha 1 modulo (aic7xxx) a arrancar numa máquina que me bloqueava durante 20 minutos, o que fazer?

Validar que não é preciso.

“rmmod” do modulo se não der problemas, não deve ser necessário.

Para evitar o “load” do modulo no arranque da máquina fazer:

"mkdir a  
 cd a  
 gunzip -c /boot/initrd-2.6.9-11.EL.img | cpio -i -d

 **** alterar o initrd ****
 remover o modulo do lib/
 alterar o INIT (remover a linha que faz insmod do modulo)
 **** alterar o initrd ****

 find . | cpio -H newc --create --verbose | gzip -9 > /tmp/init.img "

Thanks to Nocturno.
Posted by tarrinho at 12:22:08 | Permalink | Comments (1) »

Thursday, June 9, 2005

Upgrading Mandrake 10.1 para Mandriva 10.2

Para quem teve a infeliz ideia de fazer upgrade, aqui fica um ajuda que só encontrei na cache do google.



Upgrading Mandrake Linux 10.0 to Mandriva LE2005 10.2 Linux

In February 2005, Mandrake Soft of France and Conectiva of Brazil, announced that they merged. Shortly afterwards, in April 2005, they announced that they are changing their name to Mandriva. Then they released Mandriva Limited Edition 2005 (LE2005) which is what Mandrake 10.2 should have been.

Since I have several machines at home, all running Mandrake, it was time to start the annual upgrade to stay current.

The upgrade went fine without much surprises, except for those listed below with solutions. All the existing devices seem to work well, even the sound cards that were manually configured in 10.0.

After upgrading two machine, here are the caveats to watch for:

Xorg X11 packages unreadable

On upgrading the second machine using the same CD set, the packages xorg-x11-server and xorg-x11 were not readable for some reason. Without those, X11 would not run, and therefore neither KDE (or Gnome if you are using that), and therefore, no GUI application would run. The solution was for me to download them using FTP from the command line and using the rpm -e command, removed XFree86-Server package, then using rpm -ivh installed the above two packages.

Permissions wrong on /dev/null  

The permissions on /dev/null are not correct. it is 660 (rw-rw—-). This caused many programs to not work, or to be very slow, hogging the CPU. An example is xrdb when KDE is starting up. I found out that it is trying to wite to /dev/null and failing by running strace on the process. It should be changed to 666 (rw-rw-rw-). This can be done using the command chmod 666 /dev/null from a root terminal.

devfs vs. udev 

There is a conflict between devfs and the new udev subsystem for managing removable media. This caused booting to be either very slow, or freeze up completely. Since LE2005 uses udev, you have to disable devfs. The easiest way of doing so is to boot into failsafe mode (from the boot menu) and depending on whether you are using grub or lilo edit its file as needed:

  • If you are using grub, then edit /boot/grub/menu.lst and change all devfs=mount to be devfs=nomount. If you cannot boot far enough for some reason, then you can use grub’s commands to edit the command line used for booting, so you can continue to boot, then edit the above mentioned file to make this permanent.
  • If you are using lilo, then edit /etc/lilo.conf and change all occurances of devfs=mount to be devfs=nomount. You have to run the lilo command for this”

Posted by tarrinho at 12:30:04 | Permalink | Comments (1) »

Tuesday, November 2, 2004

Extintor Unix

    Para quando o Windows dá problemas e parece que tudo vai se incendiar ->

Extintores Unix

Posted by tarrinho at 12:14:56 | Permalink | Comments Off

Monday, May 24, 2004

Windows vs Linux

Fui ao seminário :

Discussão no gildot.

Junto as minhas observações:

Sumário:

Moderador - não sabe a diferença entre shareware e opensource.
Microsoft - Falou que permite o “shared source”, que existem “parteners” que tem acesso ao codigo fonte com excepção a 4% do cogido que foi comprado a uma empresa e que tem um contracto que não permite.
IBM - Apenas mostrou gráficos que mostravam o crescimento do Linux.
Wedo - Apenas disse (na quase meia hora de apresentação) que usavam microsoft e em alguns projectos usavam algum opensource.
Rui Oliveira (Universidade do Minho) - a melhor apresentação, apresentou que não há uma melhor opção, depende do objectivo final . Finalmente alguem explicou o que era o OpenSource. Frase da apresentação :”Não é possivel recriar constantemente”

Não houve debate.

Nas perguntas, quando começaram as perguntas mais “interessantes”, que estavam a gerar debate, o moderador acabou o seminário.

Posted by tarrinho at 19:56:34 | Permalink | Comments (1) »