Showing posts with label Ubuntu Gusty. Show all posts
Showing posts with label Ubuntu Gusty. Show all posts

Wednesday, February 13, 2008

Setup network interfaces file

I'll just analyze how to setup a network interface. In this case it's a wireless lan with hidden essid and static ip. Let's open the interfaces file:

root@ubuntu:~# gedit /etc/network/interfaces


We will found inside something like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

Now let's add the following lines:

auto ath0
iface ath0 inet static
wireless-essid myEssid
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

And last but not least let's restart the network:

root@ubuntu:~# /etc/init.d/networking restart



Thursday, January 24, 2008

How to enable speed step on core 2 duo

Before starting we have to discover which governors are avaiable for our processor:

$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors

The output should be something like this:

powersave ondemand conservative performance

Considering that in Ubuntu Gusty scaling is supported directly by the kernel we will to do nothing else than load the following modules:

cpufreq_conservative
cpufreq_ondemand
cpufreq_powersave
acpi-cpufreq

To do this we have to add the previous lines to the modules file:

$ sudo gedit /etc/modules

Now we can reboot the machine and enjoy the speed stepping. To set a specif governor we can type
cpufreq-selector -g {governor}, here there is an example:

$ cpufreq-selector -g ondemand

We can also add the CPU frequency scaling monitor. To do this right click on the top panel and select Add to panel. Now we can drag & drop the gnome applet. To be able to change the governor from the applet we have to type the following command:

$ sudo chmod +s /usr/bin/cpufreq-selector