Para forçar uma checagem de disco nas suas partições linux na inicialização do sistema (Slackware):
$ touch /etc/forcefsck
Debian Like:
$ touch /forcefsck
terça-feira, 22 de dezembro de 2009
sexta-feira, 4 de dezembro de 2009
Linux: Ativando a função copiar e colar com o mouse no vim pelo X
1. Edite o arquivo de configuração do vim:
vi ou vim /usr/share/vim/vimrc
2. Localize a seguinte linha:
set mouse=a
3. Apague esta linha.
vi ou vim /usr/share/vim/vimrc
2. Localize a seguinte linha:
set mouse=a
3. Apague esta linha.
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"
segunda-feira, 1 de junho de 2009
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.
#
# 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.
quarta-feira, 13 de maio de 2009
Nova compactação e extensão de pacotes Slackware
A partir do Slackware Current, atualizei os pacotes pkgtools e slackpkg. Instalei o pacote xz-4.999.8beta-i486-1 para não ocorrer o seguinte erro:
external compression utility xz missing
external compression utility xz missing
domingo, 3 de maio de 2009
Disabling my hd noise problem (laptop)
$ hdparm -I /dev/sda | grep "Advanced power management level"
Advanced power management level: 128
$ hdparm -B254 /dev/sda
Advanced power management level: disabled
Advanced power management level: 128
$ hdparm -B254 /dev/sda
Advanced power management level: disabled
sábado, 25 de abril de 2009
Multimidia:Extracting audio
$ mplayer -dumpaudio foo.flv -dumpfile bar.mp3
or
$ ffmpeg -i foo.flv -ab 128 -ar 44100 bar.mp3
also
$ mplayer -dumpstream http://STREAM_HOST -dumpfile foobar.mp3
or
$ ffmpeg -i http://STREAM_HOST -ab 128 -ar 44100 foobar.mp3
terça-feira, 7 de abril de 2009
quinta-feira, 12 de fevereiro de 2009
quarta-feira, 7 de janeiro de 2009
Assinar:
Postagens (Atom)
Drunk Penguins

Drunk Penguins