msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

09 Dec 2011 Disable IPv6 on Ubuntu 11.10

This is a short HOWTO on disabling IP version 6 support on your ethernet devices like eth0 on Ubuntu 11.10.
I guess you can do this on earlier version of Ubuntu as well.

  • Add the following line to the end of the file /etc/sysctl.conf (as root or use sudo)
  • net.ipv6.conf.all.disable_ipv6 = 1
  • Run the following command to make this change effective immediately

    # sudo sysctl -p

    A result from this command could be like this

    net.ipv6.conf.all.disable_ipv6 = 1

    To check that IPv6 has been disabled or not, run the following command from your console window

    # ip a | grep inet

    IPv6 has been disabled if this command does not return any IPv6 addresses.

    Tags: , , , , , ,

    Posted by

    19 Sep 2011 Fix low volume issue in Ubuntu 11.04

    This post is a short howto to fix/workaround the problem with low volume in some Ubuntu 11.04 installations.
    The fix for me was to open a console window (as the user I’m logged in with) and start the alsamixer

    # alsamixer

    You will then see the alsamixer window. Use the left/right arrow keys and choose the device you would like to configure. In my case it was the headphone.

    Choose which sound card you would like to configure on the headphone by pressing the F6-key. Make your choice and press the Enter-key.

    Use your up/down arrow keys to choose the right volume for your configuration. You should have some audio playing while you configure to determine the right value.

    Press the Esc key to exit alsamixer when you have found the right volume. Your settings are persistent and will survive a reboot.

    You are now done with configuring your sound card.

    Tags: , , ,

    Posted by

    17 Apr 2011 Choosing Gnome as default Desktop in Ubuntu 11.04

    This post describes how you can change from the Unity Desktop environment that is the default desktop environment to the Gnome Desktop in Ubuntu 11.04 (Natty Narwhal) Beta.
    The desktop environment I like to use is the desktop named Ubuntu Classic and you can change to this desktop by going to (or searching for) System Settings -> System-> Admin -> Login.

    Here you can choose between

    • Ubuntu Classic (No effects)
    • Ubuntu (Safe Mode)
    • Ubuntu
    • XBMC
    • Ubuntu Classic
    • Recovery Console

    Log out of the Unity desktop after choosing Ubuntu Classic and pressing the Close button.

    You can now choose your desired desktop environment from the bottom of the screen. If you would like to use the Gnome Desktop environment like the one we are used to in Ubuntu 10.10 and earlier, just choose Ubuntu Classic and login again.

    Tags: , , , ,

    Posted by

    12 Apr 2011 Change console language i Ubuntu

    A short description on how to change the console language in Ubuntu 10.04 LTS Server but it should work on other Debian flavours as well.

    # dpkg-reconfigure console-data

    Tags: ,

    Posted by

    10 Apr 2011 Enable wireless in Ubuntu 11.04 Beta1 on a HP 8540p

    This post is a short description on how to enable the wireless interface on my HP 8540p in Ubuntu 11.04 Beta 1 (Natty Narwal).

    A little information about the wireless interface

    # lspci 
    ...
    44:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35)
    ...
    
    # lspci -n
    ...
    44:00.0 0280: 8086:4239 (rev 35)
    ...

    According to the Debian GNU/Linux device driver check page this wireless interface should use the iwlagn kernel module.

    After searching a little i found this forum thread on Ubuntuforums that described this problem quite well.
    A short description of the problem is that there is some problems with Wireless N on the iwlagn Intel drivers preventing the interface to function properly.
    The solution to the problem should also work on Ubuntu 10.04 and 10.10.

    First we determine if the iwlagn module is present on the system

    # lsmod | grep iwlagn
    iwlagn                333500  0 
    iwlcore               167503  1 iwlagn
    mac80211              294370  2 iwlagn,iwlcore
    cfg80211              178528  3 iwlagn,iwlcore,mac80211

    You can proceed if the result after running the command contains the iwlagn module

    Now we can disable the Wireless N feature in the Intel iwlagn kernel module

    # gksudo gedit /etc/modprobe.d/intel_11n_disable.conf

    Add the following line to your newly opened file

    options iwlagn 11n_disable=1

    Save and exit the file.

    Unload and load the kernel module

    # sudo modprobe -r iwlagn
    # sudo modprobe iwlagn

    Update initramfs before you perform a reboot

    # sudo update-initramfs -u

    After a reboot has been performed it’s time to check the wireless interface.

    The Wireless network state on my HP 8540p

    # sudo lshw -c network
    
      *-network DISABLED
           description: Wireless interface
           product: Centrino Advanced-N 6200
           vendor: Intel Corporation
           physical id: 0
           bus info: pci@0000:44:00.0
           logical name: wlan0
           version: 35
           serial: 00:aa:bb:cc:dd:ee
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
           configuration: broadcast=yes driver=iwlagn driverversion=2.6.38-8-generic firmware=9.221.4.1 build 25532 latency=0 link=no multicast=yes wireless=IEEE 802.11abg
           resources: irq:48 memory:d3300000-d3301fff
    

    My wireless interface was not enabled so I had to UP it myself.

    # sudo ifconfig wlan0 up
    # sudo ifconfig wlan0
    wlan0     Link encap:Ethernet  HWaddr 00:aa:bb:cc:dd:ee  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    

    Now when I perform a lshw command

    # sudo lshw -c network
      *-network
           description: Wireless interface
           product: Centrino Advanced-N 6200
           vendor: Intel Corporation
           physical id: 0
           bus info: pci@0000:44:00.0
           logical name: wlan0
           version: 35
           serial: 00:aa:bb:cc:dd:ee
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
           configuration: broadcast=yes driver=iwlagn driverversion=2.6.38-8-generic firmware=9.221.4.1 build 25532 ip=192.168.1.104 latency=0 link=yes multicast=yes wireless=IEEE 802.11abg
           resources: irq:48 memory:d3300000-d3301fff

    All I had to do now was to check “Enable Wireless” from the Network menu located on top right of the Unity window next to the clock.

    Tags: , , ,

    Posted by