quinta-feira, 15 de outubro de 2009

Slackware: Summer 2009/2010

#!/bin/bash

cat << EOF > /usr/share/zoneinfo/Brazil/summer2009.zic
Rule Brazil 2009 only - Oct 18 00:00 1 S
Rule Brazil 2010 only - Feb 21 00:00 0 -

Zone Brazil/East -3:00 Brazil BR%sT
EOF

zic /usr/share/zoneinfo/Brazil/summer2009.zic

cat /etc/localtime > /etc/localtime.copy && \
rm /etc/localtime && \
ln -s /usr/share/zoneinfo/Brazil/East /etc/localtime

quarta-feira, 30 de setembro de 2009

sexta-feira, 18 de setembro de 2009

terça-feira, 1 de setembro de 2009

MD300

São necessários os módulos:

$ /sbin/modprobe usbnet (CONFIG_USB_USBNET=m)
$ /sbin/modprobe cdc_ether (CONFIG_USB_NET_CDCETHER=m)
$ /sbin/modprobe cdc_wdm (CONFIG_USB_WDM=m)
$ /sbin/modprobe cdc_acm (CONFIG_USB_ACM=m)

Adicionar a seguinte regra ao udev:

$ cat << EOF > /etc/udev/rules.d/50-md300.rules
ACTION!="add", GOTO="3G_End"
BUS=="usb", SYSFS{idProduct}=="d0cf", SYSFS{idVendor}=="0fce", PROGRAM="/bin/sh -c 'echo 3 > /sys/%p/device/bConfigurationValue'"
LABEL="3G_End"
EOF

$ sh /etc/rc.d/rc.udev restart

terça-feira, 28 de julho de 2009

Mouse and Keyboard don't work in Xorg

Xorg error:

config/hal: couldn't initialise context: (null) ((null))

So, add to Server Section:

Option "AllowEmptyInput" "false"

sexta-feira, 15 de maio de 2009

An unexpected error has been detected by Java Runtime Environment

I start eclipse I get this message almost immediately after choosing a Workspace and the main eclipse window loads:

#
# An unexpected error has been detected by Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xb2ca598b, pid=5465, tid=3086076112
#
# Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing linux-x86)
# Problematic frame:
# C [libswt-mozilla-gtk-3452.so+0x1098b]
#
# An error report file with more information is saved as:
# /path/to/hs_err_pid5465.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

So, I downgrade seamonkey to version 1.1.13 and this solved my problem.

Drunk Penguins

Drunk Penguins
Drunk Penguins