If you make changes to /etc/profile and want them to take effect immediately without rebooting, run the script using . ./profile (assuming the file has execute flag set, if not chmod +x profile to set it).
Blacklisting incoming sites using iptables
Use this command to add an ip address to be blocked by iptables:
<code> iptables -I INPUT -s x.x.x.x -j DROP iptables -I INPUT -s x.x.x.x -j LOG </code>
This example inserts a rule at the top of the table to block all incoming requests from ip x.x.x.x, and then inserts a second rule at the top to first log any connection attempts from this address (before they are blocked).
To see what rules are currently configured, use: iptables -L
For more info, see this entry in the O’Reily Linux Hacks book.
Enabling Sleep on a laptop with Ubuntu
To enable sleep mode on a laptop with Ubuntu, edit the /etc/default/acpi-support file and uncomment the ACPI_SLEEP line at the top of the file which is commented out by default.
Configuring ATI Radeon Linux drivers on Ubuntu
Download the ATI Radeon drivers ‘fglrx’ from the Synaptic Package Manager.
Edit /etc/X11/xorg.conf:
Add to ‘Section “Module”‘: Load “GLCore”
In ‘Section “Device”‘ change “ati” to “fglrx”
After restaring, check output in glxinfo – direct rendering should be ‘yes’ and ‘renderer string’ should show ‘MOBILITY/RADEON 9000 DDR Generic’
Initially I had errors running glxinfo – this post here explains the problem and provides a fixed (older?) .so file to replace one in the lates fglrx dirver.
