Updates:

Similar topics mod installed, currently shown at the end of a topic

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Mark Greaves (PCNetSpec)

#221
Installing from source?... failed to build because something is missing?

There is a tool (part of the apt group of tools) called apt-file that helps you find which package contains the missing file.

I was recently trying to install k3b 2.0.0 (from source files, as it isn't available in the repos yet), the build failed... part of the output was:
QuoteCMake Error at /usr/share/cmake-2.8/Modules/FindKDE4.cmake:98 (MESSAGE):
  ERROR: cmake/modules/FindKDE4Internal.cmake not found in
  /home/mark/.kde/share/apps;/usr/share/kde4/apps

I wondered how was the best way get the FindKDE4Internal.cmake file and install it.

The answer was to install apt-file:
sudo apt-get install apt-file
update its cache:
apt-file update
then search for the package that contains FindKDE4Internal.cmake:
apt-file search FindKDE4Internal.cmake

Apt-find output a single line:
Quotekdelibs5-dev: /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake
(this tells you which package contains the file, and the path where it will be installed)

So the kdelibs5-dev package contained the file I needed... I installed it:
sudo apt-get install kdelibs5-dev
And the k3b 2.0.0 source files built properly.

When building from source, this is a VERY handy tool for finding missing files.

HINT: Install apt-file from the command line (not synaptic), then update its cache (again from the command line)... when I tried to install it from synaptic, it attempted to update its cache and failed with a message about not being able to start a child process.

Credit must go to this article:
http://www.linuxjournal.com/content/apt-file-locate-missing-package-files (http://www.linuxjournal.com/content/apt-file-locate-missing-package-files)
#222
First generate a xorg.conf.new file...

(you're going to end up with no GUI until you restart X, so you might want to print this off)

To generate xorg.conf.new you need to switch to a virtual console using the key-combo Ctrl+Alt+F1

You will then need to log-in with your username and password

First make sure you are in your home directory
cd ~

Now execute the following commands:
This will stop X.
sudo service gdm stop

Now generate an xorg.conf file:
sudo Xorg -configure
(remember Linux IS case sensitive)

This has generated the file xorg.conf.new in your home directory

Now restart X:
sudo service gdm start

Your desktop GUI will start again...Next backup your /etc/X11/xorg.conf file (if there is one)
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak

Then move xorg.conf.new from your home directory to the /etc/X11/ directory, and rename it xorg.conf
sudo cp ~/xorg.conf.new /etc/X11/xorg.conf

Now open the /etc/X11/xorg.conf file in gedit:
sudo gedit /etc/X11/xorg.conf
and, add the following 2 lines to the end of the Section "Device" section, just above the EndSection line
QuoteOption      "DRI" "False"
   Option      "AccelMethod" "EXA"
so it looks like this
QuoteOption      "DRI" "False"
   Option      "AccelMethod" "EXA"
EndSection
and save.

Next I added the xorg-edgers Launchpad PPA to my repositories... which will update the radeon drivers (and DRI) with "tweaked" versions.

BE AWARE these are not "official" packages and are applied "at your own risk", but they worked flawlessly for me.

More info here (read first):
https://launchpad.net/~xorg-edgers/+archive/ppa?field.series_filter=karmic (https://launchpad.net/~xorg-edgers/+archive/ppa?field.series_filter=karmic)

If you want to try them (in karmic or higher)... in a terminal:
sudo add-apt-repository ppa:xorg-edgers/ppa
then:
sudo apt-get update
then run update manager

Now reboot.

I was expecting 2D performance to improve, but I also expected disabling DRI would give me a 3D performance "hit"... in reality I ended up with MUCH faster 2D performance, including smooth youtube and flashplayer video for the first time ever :) , but 3D performance also improved :) ... although it's still no games machine ;)
#223
Linux Support / Can I create a LAN repository
May 19, 2010, 02:53:56 PM
If I'm installing Ubuntu on multiple networked PC's, is there any way I can download packages and updates to just one machine and get the rest to check its cache for needed files before going online to get the same files... seems a bit wasteful in both storage and time for multiple machines to each have copies of the same packages in their /var/cache/apt/archives/ directories.

ie. can one machine (or NAS) be used as a repository that gets checked for packages by ALL machines first, but if they aren't there... then they go online to a normal repo for them.

Or put another way... Can ALL machines "share" a /var/cache/apt/archives/ directory.
(and if so, what about the lock file)

I know I could "manually" copy the files to the other machines (leaving the lock file), but it would be nice if it was an automatic process.

This could potentially save hours, particularly during an upgrade.
#224
By far the easiest way to get your 3G USB dongle to connect would be to use the gnome network manager (see here (http://linuxforums.org.uk/linux-tips-tricks/setting-up-a-3g-dongle-from-the-ubuntu-network-manager/)), or gnome-ppp... but I will also give directions for wvdial (for non gnome users).

If you are running the Gnome desktop... open a terminal, and type:
nm-connection-editor
Select the "Mobile Broadband" tab, Add, and follow the instructions.
See here:
http://linuxforums.org.uk/linux-tips-tricks/setting-up-a-3g-dongle-from-the-ubuntu-network-manager/ (http://linuxforums.org.uk/linux-tips-tricks/setting-up-a-3g-dongle-from-the-ubuntu-network-manager/)
or
http://old.linux.co.uk//docs/center/how-to/recommended-3g-netbook-solution (http://old.linux.co.uk//docs/center/how-to/recommended-3g-netbook-solution)




or
Install gnome-ppp from your package manager, or with the command
sudo apt-get install gnome-ppp
start gnome-ppp from your menu or with the command
gnome-ppp
click "Setup", then "Detect", and enter the settings for your provider from below. (if needed)




Right, wvdial... this should work for everyone that has wvdial installed... so if you haven't, install it NOW from your package manager.

I'm going to give the instructions for the "3" UK 3G dongle (Huawei E122), but they should work for most, if not all 3G dongles... settings for other carriers (networks) can be found at the bottom of this tutorial.

First we need to detect the modem, so plug in your 3G USB Dongle... Open a terminal and type:
sudo wvdialconf
Hit enter, and see if it detects your modem... you should get an output similar to this:
QuoteEditing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan< *1>: S0   S1   S2   S3
ttyUSB0: Device or resource busy
Modem Port Scan< *1>: USB0
WvModem< *1>: Cannot get information for serial port.
ttyUSB1< *1>: ATQ0 V1 E1 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 Z -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1< *1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1< *1>: Speed 9600: AT -- OK
ttyUSB1< *1>: Max speed is 9600; that should be safe.
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
The highlighted bit is what we are after (/dev/ttyUSB1)

Now as root, edit /etc/wvdial.conf so that it reads:
Quote[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Username = three
Password = three
Modem = /dev/ttyUSB1
Dial Command = ATDT
Baud = 9600

[Dialer three]
Init2 = ATZ
Init3 = ATQ0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","3internet"
ISDN = 0
Modem = /dev/ttyUSB1
Modem Type = Analog Modem
Baud = 460800
Then to connect... from a terminal:
sudo wvdial three
Hit enter.
Ctrl+C will close the connection.

IMPORTANT
if the bit in bold writing during detection reads something other than /dev/ttyUSB1, change both Modem = lines in wvdial.conf to reflect this.

3G SETTINGS FOR OTHER CARRIERS

The /etc/wvdial.conf contents for a T-mobile dongle should read:
Quote[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB1
ISDN = 0
Phone = *99#
Password = user
Username = user

[Dialer TMobile]
Init2 = ATZ
Init3 = ATQ0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","general.t-mobile.uk"
ISDN = 0
Modem = /dev/ttyUSB1
Modem Type = Analog Modem
Baud = 460800
Then to connect... from a terminal:
sudo wvdial TMobile
Hit enter.
Ctrl+C will close the connection.

IMPORTANT
if the bit in bold writing during detection reads something other than /dev/ttyUSB1, change both Modem = lines in wvdial.conf to reflect this.

The /etc/wvdial.conf contents for an O2 dongle should read:
Quote[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Baud = 9600
Modem = /dev/ttyUSB1
ISDN = 0
Phone = *99#
Password = password
Username = mobileweb
Dial Command = ATDT

[Dialer O2]
Init2 = ATZ
Init3 = ATQ0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","mobile.o2.co.uk"
ISDN = 0
Modem = /dev/ttyUSB1
Modem Type = Analog Modem
Baud = 460800
Then to connect... from a terminal:
sudo wvdial O2
Hit enter.
Ctrl+C will close the connection.

IMPORTANT
if the bit in bold writing during detection reads something other than /dev/ttyUSB1, change both Modem = lines in wvdial.conf to reflect this.

The /etc/wvdial.conf contents for an Orange 3G dongle should read:
Quote[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Username = orange
Password = orange
Modem = /dev/ttyUSB1
Dial Command = ATDT
Baud = 9600

[Dialer orange]
Init2 = ATZ
Init3 = ATQ0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","3internet"
ISDN = 0
Modem = /dev/ttyUSB1
Modem Type = Analog Modem
Baud = 460800
Then to connect... from a terminal:
sudo wvdial orange
Hit enter.
Ctrl+C will close the connection.

IMPORTANT
if the bit in bold writing during detection reads something other than /dev/ttyUSB1, change both Modem = lines in wvdial.conf to reflect this.

The /etc/wvdial.conf contents for a Vodafone 3G dongle should read:
Quote[Dialer Defaults]
Init1 = ATZ
Modem Type = Analog Modem
New PPPD = yes
Modem = /dev/ttyUSB1
ISDN = 0
Phone = *99#

[Dialer vodafone]
Username = web
Password = web
Baud = 460800
Stupid Mode = 1
Init2 = ATV1
Init3 = at+cops=3,2
Init4 = AT+CGDCONT=1,"IP","pp.internet"
Phone = *99#
ISDN = 0
Modem Type = Analog Modem
Then to connect... from a terminal:
sudo wvdial vodafone
Hit enter.
Ctrl+C will close the connection.

IMPORTANT
if the bit in bold writing during detection reads something other than /dev/ttyUSB1, change the Modem = line in wvdial.conf to reflect this.

If I've got something wrong or forgotten anything, feel free to add comments and settings :)
#225
I used Ubuntu 10.04 (Lucid), on which all the needed apps where available in the repos... also (FYI) I used a Mac OSX 10.5 (Leopard) .dmg, but I can see no reason this shouldn't work with a 10.6 (Snow Leopard) .dmg, 10.04 (Tiger) .dmg, or for that matter... any other OSX .dmg image.

[EDIT]

Anyone using this tutorial to install OS X 10.7 Lion may want to take a look at the info in this posting:
http://ubuntuforums.org/showthread.php?p=11924128#post11924128 (http://ubuntuforums.org/showthread.php?p=11924128#post11924128)
or the last but one posting here:
http://ubuntuforums.org/archive/index.php/t-1969841.html (http://ubuntuforums.org/archive/index.php/t-1969841.html)

[END EDIT]

To install OSX from a .dmg image from within Linux, and without access to a 'working' Mac or a 'Mac OS X Installation DVD'... First you are going to need to install gparted, hfsplus, hfsutils, hfsprogs, and dmg2img...

sudo apt-get install gparted hfsplus hfsutils hfsprogs dmg2img

Next fire up gparted, and create 2 HFS+ PRIMARY partitions, one has to be a minimum of 8gb (or larger) and the other needs to be a minimum 30gb (or larger).

IMPORTANT - You MUST create 2 (or more) primary HFS+ partitions (see bottom).

(From here on I'm going to assume you have a .dmg file in your home directory called image.dmg)

Now you need to convert the .dmg to an .img:
dmg2img image.dmg image.img

You now have a mountable image, BUT it is a hybrid disk image... If you mount it now, all you will have access to is the first partition which does not have the installation files... They are in a hidden HFS+ partition within this image... an HFS+ partition starts with 1024 reserved bytes (for boot code), followed by the volume header... we're going to search for that header then subtract 1024 bytes to find the beginning of the partition.
The first 4 bytes of the volume header are a signature and a version number... "H+" followed by version 4 (or "HX" followed by 5 for HFSX). So we need to look for the following hex sequence in the image - "48 2b 00 04" for HFS+ (or "48 58 00 05" for HFSX)... the storage blocks here will probably be at a block boundary and have an address that ends with "0x00"

So in a terminal:
hexdump -C image.img | grep "48 2b 00 04"
now wait... this search may take a while.

I got:
0001d600  48 2b 00 04 00 00 01 00  48 2b 4c 78 00 00 00 00  |H+......H+Lx....|

My block number is "0001d600", and it ends with "00" so it's my volume header block (you need to use the number you get). However the partition starts 1024 bytes before that address, so you'll need to use an online hex converter:

http://www.statman.info/conversions/hexadecimal.html (http://www.statman.info/conversions/hexadecimal.html)

(I'm going to convert the hex address 'I' got...  YOU need to use the hex address you got)
convert 0001d600 from hex to decimal = 120320
now subtract 1024
120320 - 1024 = 119296

Now use losetup to setup the .img as a block device starting with an offset of 119296:
sudo losetup -o 119296 /dev/loop0 image.img
(be sure to use YOUR offset, not mine)
Now that the loop device is setup, all you need to do is mount it:
sudo mkdir /mnt/tmp
sudo mount -t hfsplus /dev/loop0 /mnt/tmp/


You should now have access to all the Installation files inside the image (in the /mnt/tmp directory)... Copy EVERYTHING (as root) to the 8gb HFS+ partiton you created earlier.

Now you need to find out where on the hard drive this 8gb partition is located... fire up gparted again, and  count the active partitions from left to right... mine was on the First Physical Drive, 3rd active partition. (remember this)

You will need to edit (as root) the
/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
file (on the 8gb partition), and set a kernel flag to point to this partition... i used gedit, but any text editor will do.

Look for the lines:
<key>Kernel Flags</key>
<string></string>


I changed them to:
<key>Kernel Flags</key>
<string>rdisk0s3</string>

but you will need to change rdisk0s3 to wherever YOUR 8gb partition is located.

rdisk0s3 = First Physical Hard Drive, 3rd partition (so another example would be rdisk1s2 = second HDD, 2nd partition)

Where:- rdisk0 = First HDD, rdisk1 = Second HDD etc.
and s1 = First partition, s2 = Second partition etc.


save the file.

Reboot, and after the 'Start' sound, hold down the 'Option' key (aka - Alt) and select one of the EFI partitions... if you selected the correct one... Voila... the OSX installer will start.
If you selected the wrong one, you will get a 'No Entry' logo displayed, just reboot, and select the other EFI partition.

Now you can either install OSX, or use the Mac OSX Disk Utility and your .dmg file, to create a bootable installation DVD, USB pendrive, USB Hard Drive etc.

Have fun :)

If you wondered why you needed the second 30gb partition... probably because the installer NEEDS to see another HFS+ partition... deleting the Linux partition with a gparted LiveCD and creating an HFS+ one in its place would probably work (but the rdiskXsY string would need adjusting)... but if you don't create one you WILL get a mach_kernel panic when you boot to the 8gb partition... you CAN install to this partition though, or install over the Linux partition.

I can't condone the use of this 'How To' for installing OSX on a hackintosh. ;)

.
#226
Linux Support / Extracting partitions from IMG
April 28, 2010, 06:28:28 PM
I've got an (.img) image of a DVD that contains multiple partitions, and I need to extract a 'particular' partition to sda4 (or a directory) on the HDD.

parted, which should display the  start and end points of the partitions (which I would need for dd) just reports:
QuoteThe Driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes
Ignore/Cancel
If I ignore I get an error... and I can find no way of forcing it to use a block size of 2048... if I enter:
sudo parted /path/to/img bs=2048
Then tell it to 'print', it ignores the bite size argument (with above error)... if i put bs=2048 before the path, it says it's not a file.

If i dd the image to a partition:
sudo dd ~/image.img /dev/sda4 bs=2048
then mount sda4... all I can see is (what I'm guessing is) the FIRST partition, although All  8gb is reported by dd as being written... and sda4, although it WILL mount is reported by gparted as 'unknown' file system.

I need to either extract partition4 of the .img, or write partiton4 to sda4 on the HDD.

Or just find out the start and end points of the partitions within the .img

Any Ideas?
#227
General Discussion / Nintendo 64 Boy [Portable N64]
April 21, 2010, 10:33:58 AM
This kid has 'some' skill set... If he doesn't end up working for some hardware manufacturer it will be a travesty, For a home made project this is seriously impressive.

64 Boy - Portable Nintendo64 (http://www.geeky-gadgets.com/64-boy-portable-n64-mod-20-04-2010/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+geeky-gadgets+(Geeky+Gadgets))

Watch the video
#228
To set up a Dial-Up connection:
If you have a working internet connection, install gnome-ppp from the synaptic package manager.
once installed go to:
Menu -> Internet -> GNOME PPP
or
open a terminal and type:
gnome-ppp
And enter your dial-up details.

If you don't have the correct permissions to use gnome-ppp... open a terminal and enter:
sudo adduser YOURUSERNAME dip
sudo adduser YOURUSERNAME dialout

[make sure you replace YOURUSERNAME with your Linux login name]

==========================+++++=========================

If you NEED to set up dial-up, and you don't have a working internet connection so can't install gnome-ppp, follow these instructions:

1) Open a terminal and type:
sudo pppconfig
Select 'Create a connection'... fill in all the information and save... (remember what you put in the provider field, you will need this info later)

2) In a terminal type:
sudo adduser YOURUSERNAME dip
sudo adduser YOURUSERNAME dialout
sudo touch /etc/resolv.conf
sudo touch /etc/ppp/options

[make sure you replace YOURUSERNAME with your Linux login name]

3) Reboot.

4) In a  terminal type
pon YOURPROVIDERNAME
Replace YOURPROVIDERNAME with the provider name you entered in pppconfig... This should start the modem dialing.

5) Whilst connected to the net, open a terminal and type:
sudo apt-get update
sudo apt-get install gnome-ppp


6) To end the internet session, In a terminal type:
poff

:) from now on use - Menu -> Internet -> GNOME PPP to connect :)
#229
Linux Tips & Tricks / Batch Resize in The GIMP
April 10, 2010, 11:26:38 PM
If you use the GIMP, and want to resize a LOT of pictures in one go... install gimp-plugin-registry then follow these instructions:

Start Gimp. Access the Batch file plugin via the Filters > Batch > Batch Process menu

If you want to resize and output to a different directory, make sure you change the settings on ALL 4 of the following tabs, BEFORE selecting 'Start' (by default it will output to the same directory and convert to BMP)

Input tab - Select files to add to the batch
Resize tab - Select the size you want (and enable)
Output tab - Select file type (BMP, JPG etc.)
Rename tab - Select dir (directory for output)

It can do a lot more than just resize... Turn, Blur, Colour, Resize, Crop, Sharpen and Rename... or any combination of these.

More info here:
http://ulyssesonline.com/2008/09/22/batch-resize-images-with-gimp (http://ulyssesonline.com/2008/09/22/batch-resize-images-with-gimp)/
#230
BE AWARE
For kernels >= 2.6.35 make sure you read the the EDIT.

If you want to know which kernel you are using, open a terminal and enter:
uname -r
(if it's greater than, or equal to 2.6.35, be sure to follow the instructions in the EDIT.




In Ubuntu 9.10 (Karmic), Ubuntu 10.04 (Lucid), and Ubuntu 10.10 (Maverick) there is an issue with USB Wireless N adapters based on the Ralink RT2870 chip.
The issue seems to be that 2 (conflicting?) driver modules are loaded... rt2870sta and rt2800usb... resulting in no wireless access.

The solution is to blacklist the rt2800usb module if it is loaded.

To see if they are both loaded, enter this in a terminal:
sudo lsmod | grep rt28
if they are both loaded, blacklist the rt2800usb module by opening the /etc/modprobe.d/blacklist.conf file (as root)
sudo gedit /etc/modprobe.d/blacklist.conf

and add the line:

blacklist rt2800usb

then save the file and reboot.

If after rebooting you can now 'see' the network, but it will not accept a WPA key (WEP seems fine)... you need to recompile the driver with WPA support... the driver can be found here:

2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 (http://eng.ralinktech.com.tw/license_us.php?n=2&p=0&t=U0wyRnpjMlYwY3k4eU1ERXdMekEzTHpBNUwyUnZkMjVzYjJGa05ETTVOalU0TXpVeU5pNWllakk5UFQweU1ERXdYekEzTURsZlVsUXlPRGN3WDB4cGJuVjRYMU5VUVY5Mk1pNDBMakF1TVM1MFlYST1D) (you can enter 'any' name and email)
or
Ralink Linux Driver Page (http://eng.ralinktech.com.tw/en/Products/support.php?sn=501)
(HINT - change the files extension to tar.gz before unpacking... for some reason it comes up as an invalid bz2 archive, but unpacks properly as a tar.gz)

Before compiling - you are going to need to install build-essential, and linux-headers-generic.
sudo apt-get update && sudo apt-get install build-essential linux-headers-generic

If you use WPA/WPA2 encryption, you will have to change the lines
HAS_WPA_SUPPLICANT=n
and
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n

in:
/os/linux/config.mk
(inside the unpacked driver)

to
HAS_WPA_SUPPLICANT=y
and
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

Once you have changed these to =y and saved the config.mk file...

[EDIT]
Newer kernels >= 2.6.35 will fail to compile (make) the driver because the driver makes use of the functions usb_buffer_alloc() and usb_buffer_free() which were renamed in kernel 2.6.35 .. so if during the next (make && make install) step it fails with this error:

Quotemake[2]: *** [/home/mark/Desktop/RT2870/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/home/mark/Desktop/RT2870/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'
make: *** [LINUX] Error 2
or similar.

The fix is to cd to the driver source directory (eg. 2010_0709_RT2870_Linux_STA_v2.4.0.1), and run the following 3 commands which will clean the build directory and replace the old calls with the new ones:

make clean
find . -name \*.[ch] -exec grep usb_buffer_alloc "{}" ";" -exec sed -i 's/usb_buffer_alloc/usb_alloc_coherent/g' "{}" ";"
find . -name \*.[ch] -exec grep usb_buffer_free "{}" ";" -exec sed -i 's/usb_buffer_free/usb_free_coherent/g' "{}" ";"

(hitting enter after each line)

Or, I've uploaded a pre-modified version of the driver that WILL compile on kernels >= 2.6.35 here:
2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 (http://bit.ly/eZHx0J)

Then carry on with the "sudo su" and "make && make install", as per the instructions below.
[END EDIT]

To compile and install, open a terminal and enter:
sudo su
make && make install

It is important here not to use "sudo" alone, but "sudo su" because with sudo for some reason the installation script fails to create the necessary files and folders.

Now, while still root modprobe the driver module:
modprobe rt2870sta

Give it a minute to create the ra0 device node, and network manager should now be able to display all visible wireless networks in your area, meanwhile you can stop being root.
exit

Make sure that ra0 is up and running as it's supposed to:
iwconfig

and check for a section similar to:
Quotera0 RT2870 Wireless ESSID:"" Nickname:"RT2870STA"
Mode:Managed Frequency=2.412 GHz Access Point:
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=100/100 Signal level:-29 dBm Noise level:-71 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

To make sure the module is loaded after a reboot, add it to the /etc/modules file:
sudo sh -c 'echo rt2870sta >> /etc/modules'

Your wireless card should now be working (it may require a reboot first)... Use network manager to set your WEP/WPA(2) key, and connect to your network.




Further info can be found at the following URLs:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/460323 (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/460323)

http://www.linuxquestions.org/questions/linux-hardware-18/d-link-dwa-140-802-11n-usb-with-ralink-rt2870-chispet-driver-probs-635827/ (http://www.linuxquestions.org/questions/linux-hardware-18/d-link-dwa-140-802-11n-usb-with-ralink-rt2870-chispet-driver-probs-635827/)

http://swiss.ubuntuforums.org/showthread.php?t=1382798 (http://swiss.ubuntuforums.org/showthread.php?t=1382798)
#231
Has anybody ever managed to get 3D acceleration working on an old ATI mobility Radeon 7000 IGP (IGP 340M)?
#232
I've been asked if I know of any good Ubuntu specific, or generic Linux books or text that might be of use to someone who is proficient on M$ Windows but fairly new to the Linux world and wants some instructive text on the 'inner workings' of Linux and how to advance his knowledge and skills.

So far I've found these

Ubuntu Pocket Guide and Reference
which is a free PDF download, can be found here:
http://www.ubuntupocketguide.com/download/ubuntupocketguide-v1-1.zip (http://www.ubuntupocketguide.com/download/ubuntupocketguide-v1-1.zip)

and an old 2007 version of the Official Ubuntu Book
which is a free PDF download, can be found here
http://www.zareason.com/ubuntubook/The%20Official%20Ubuntu%20Book%20pdf.zip (http://www.zareason.com/ubuntubook/The%20Official%20Ubuntu%20Book%20pdf.zip)
(Originally available from the Ubuntu Docteam) found here: http://ubuntuforums.org/archive/index.php/t-493780.html (http://ubuntuforums.org/archive/index.php/t-493780.html)

[EDIT]
Getting started with Ubuntu 10.04 (Lucid Lynx)
http://ubuntugeek.tradepub.com/?p=w_ubun01&w=d&u=0800422202011278459407&e=bWFya0BwY25ldHNwZWMuY28udWs= (http://ubuntugeek.tradepub.com/?p=w_ubun01&w=d&u=0800422202011278459407&e=bWFya0BwY25ldHNwZWMuY28udWs=)
or
http://ubuntu-manual.org/downloads (http://ubuntu-manual.org/downloads)

[EDIT-2]
Rute User's Tutorial and Exposition (http://rute.2038bug.com/index.html.gz) (online)
or Download (http://rute.2038bug.com/rute.html.tar.bz2) it in html format... unpack it, then open the index.html file in a browser.

[EDIT-3]
Introduction to Linux - A Hands on Guide - by Machtelt Garrels (PDF) (http://tldp.org/LDP/intro-linux/intro-linux.pdf)
or
Introduction to Linux - A Hands on Guide - by Machtelt Garrels (HTML) (http://tldp.org/LDP/intro-linux/html/)

[EDIT-4]
Getting started with Ubuntu 11.10 (Oneiric Ocelot)
http://ubuntu-manual.org/downloads (http://ubuntu-manual.org/downloads)

[EDIT-5]
There's a good online book for learning the Linux command line here:
http://linuxcommand.org/ (http://linuxcommand.org/)
(thanks for that one salparadise)

But I would appreciate any other suggestions, free or commercial, online or printed, but they must be legal.

Please make sure any links you post are 'legal'... Thank you.
#233
[This is a previous posting from someone else, that I'll later respond to]

Hi all just started using Ubuntu 9.10 today and to be honest it's hard moving away from Windows but hey it's going well apart from finding anti-malware, anti-virus and firewalls online that can be installed could someone in very basic terms (as i'm not great with pc's) tell me how i can get them please.
#234
[This is a previous posting from someone else, that I'll later respond to]

I'm unsure which distribution of Linux that's installed on my computer, how do I find out which version of linux it is beyond the GNU Linux info given? Or is that all there is to it.
#235
[This is a previous posting from someone else, that I'll later respond to]

I start from the position that I am not in any way a computer expert!  I have bought a new desktop that came with Windows XP Professional pre-loaded. I have successfully (I hope!)  downloaded the latest version of Ubuntu and installed it on my computer in a separate area.

My question is: Is it possible to have a short cut between Windows and Ubuntu and vice versa on the desktop or do I have to shut down the system and then choose Windows or Ubuntu when it restarts?  If the answer is other than 'no' please put it in simple English so that an aged pensioner can understand it!!
#236
[This is a previous posting from someone else, that I'll later respond to]

I got a netbook/notebook for my Daughters xmas and can't access web pages wi'out having flash player. I have no clue whatsoever with the linux os so you will have to make it simple as possible!!! I can get it downloaded onto the comp but have no clue what to do with it once i've got it, also whatversion to download. There seem to be about 4 different ones, .tar.gz i think and others. All help greatfully appreciated Thanks in advance Thomas.
#237
[This is a previous posting from someone else, that I'll later respond to]

Hi All

I was advised to get a Canon printer to work with my recently acquired Linux System, Gloria. The drivers were found and installed and all was well for a while. However the printer decided to stop printing after a couple of days. It comes up with an Error message `Cups` missing filter. Some where along the line I have seen mentioned, that it requires `pstocanonij driver`. Can anyone tell me where to find the `missing bits` and how to install them?
#238
Frequently Asked Questions / 3G Mobile Broadband Dongle
February 18, 2010, 07:54:37 PM
[This is a previous posting from someone else, that I'll later respond to]

I've just bought a secondhand Acer Aspire ONE A110 and a neat little guy it is to.
I'm running this out of the box using 'Linpus Lite V.1.0.15.E' and I want to use the 3G slot for Internet access using three (3 moblie).

Do I have the right Linux OS to do this?

If so how?

If not, which one and how do I install it?