Sunday 10 March 2013

Restore screen brightness on start-up

For HP Pavilion g6 with intel graphics, change /etc/rc.local to


#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

echo 976 > /sys/class/backlight/intel_backlight/brightness
exit 0

Wednesday 6 March 2013

mount samba share

sudo mount -t cifs //192.168.1.1/data_ro /media/network -o user=bob