sexta-feira, 4 de dezembro de 2009
quinta-feira, 3 de dezembro de 2009
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
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
Java: GTK look and feel for Netbeans
/path_where_netbeans_are_installed/bin/netbeans \
--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel
--laf com.sun.java.swing.plaf.gtk.GTKLookAndFeel
sexta-feira, 18 de setembro de 2009
X11 screenshot with ImageMagick
$ /usr/bin/import -display localhost:0.0 -window root screenshot_filename.jpg
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
$ /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"
config/hal: couldn't initialise context: (null) ((null))
So, add to Server Section:
Option "AllowEmptyInput" "false"
Assinar:
Postagens (Atom)
Drunk Penguins
Drunk Penguins