Allow ping with iptables

Allow incoming:

iptables -A INPUT  -p icmp --icmp-type 8 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A OUTPUT -p icmp --icmp-type 0 -m state --state ESTABLISHED,RELATED -j ACCEPT

Allow outgoing:

iptables -A OUTPUT -p icmp --icmp-type 8 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
iptables -A …
more ...

Extension ram files

I was helping my girlfriend watch some videos that she needed for a class that she was having trouble playing on her mac. Once I saw that ubuntu wasn't able to play them out of the box I looked at the extension and found a solution on ubuntu forums.

The …

more ...

Broadcom Wireless Internet Setup

So I have had this issue where my wireless card would one day suddenly disappear. I had a wireless usb so I used that for a month or so and finally I decided that I would just reinstall and see if that fixed it. It did like magic but then …

more ...


Brightness

If you want to adjust your screen brightness in Linux (Debian / Ubuntu) from the command line you can write to a file:

/sys/devices/virtual/backlight/acpi_video0/brightness

The maximum value for this variable is listed in the file:

/sys/devices/virtual/backlight/acpi_video0/max_brightness

A script can easily be …

more ...

Dual Displays

I was using awesome window manager and trying to connect an additional monitor to my computer with a vga port. A friend recommended xrandr. A quick look at the man page and you'll find:

xrandr -q

will list off all the connected display devices. I see four listed: LVDS1, HDMI1 …

more ...