= EeePc900-RebuildModules = '''''The script provided on this page makes the assumption that you have access to the internet most likely through a wired connection. If not you will need to manually download the packages on a different machine and use a memory stick or card to get access to them on your EeePC.''''' If you have one of the Ubuntu distributions on your EeePC 900 the wifi and camera modules will need to be rebuilt. I will provide a script that will do this for you and explain what is being done in the script. '''''The network detection code is not quite done yet, but other than that it works fine.''''' [[attachment:eeepc900install.sh]] The arguments that can be passed to this script are: {{{ $ ./eeepc900install.sh -h Usage: ./eeepc900install.sh -[dn] --[help] }}} Where: * -d -- Download packages * -n -- Noop (Nothing evasive happens to your machine.) * -h -- Help * --help -- Ya think maybe help? If you don't have a network connection you will need to make a directory named {{{eeepc900}}} and put your previously downloaded packages in it, then run the script with no arguments specified. The script is broken up in five sections: making a working directory, downloading the latest versions of the code, compiling and installing the modules, and modifying the environment. When the first {{{sudo}}} command is executed you will need to type in your password. Below is an explanation of what the script will do assuming you have a network connection. == Make a working directory == * First the {{{eeepc900}}} directory and all its contents are deleted. If for some reason you want to keep it, rename or copy it somewhere else before running the script. * Make the {{{eeepc900}}} directory. * Change into this directory. == Download latest versions == * Get the latest version of the 0.10.5.6 release of madwifi. * Uncomment this line to get the latest hotkey package. (Not actually needed when a kernel is updated.) * Get the latest version of the linux-uvc webcam module. == Compile and install packages == * Make and install the madwifi modules. (The install process creates a new directory named {{{2.6.24.3}}} in {{{/lib/modules}}} the new modules are buried in here, so the script needs to copy them into the location where {{{modprobe}}} will find them. * Uncomment these lines if you want to upgrade the hotkey package. * Make and install the webcam module. (This install process will also use the same directory {{{2.6.24.3}}} that the madwifi module made and this script also copies the module from here to the default module directory tree.) Note: I have never tried to update the hotkey package. The last command {{{#sudo sh -c 'echo eeepc-acpi >> /etc/modules'}}} will probably not be needed if you have already had the hotkey package installed. == Modify the environment == * Remove any start up scripts in the {{{/etc/rc[0-6].d}}} directories. * Modify the {{{/etc/default/linux-restricted-modules-common}}} configuration file to blacklist the {{{ath_hal}}} module. * Remove the {{{2.6.24.3}}} directory tree in the {{{/lib/modules}}} path. == Load the modules == The script just runs modprobe on {{{uvcvideo}}} and {{{ath_pci}}}. However you should reboot to be sure everything comes up properly.