How to use Linux driver for USB wi-fi b/g dongle 5.3.3-4g?

Message
Author
boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

How to use Linux driver for USB wi-fi b/g dongle 5.3.3-4g?

#1 Post by boof »

I'm getting a new device with a linux driver on a CD. Pls advise how/where to install the driver. Connecting via wi-fi appears very difficult as option choices are tightly controlled, with many terms beyond my knowledge, and inconsistent labelling between devices. I HOPE I can get my Nokia C3-00 to act as a wi-fi b/g connected gateway. any configuration advice will be appreciated.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#2 Post by darkcity »

What is the name of the device you are getting?

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#3 Post by boof »

comfast n11--fleabay.au $8-

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#4 Post by darkcity »

you mean 11n?

http://www.ebay.com.au/itm/Wireless-Int ... 3a7cfcd9fd

chipset- Realtek RTL8188CU
---

A solution for Linux is posted here
http://www.solwiseforum.co.uk/showthrea ... -and-Linux

but there may be an easier why. . .

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#5 Post by starhawk »

I believe that the driver you need (rtl8192cu) is included in Slacko 533. You should be good to go, out of the box. (The included drivers CD is therefore good for a coaster, if you patch the hole in the middle with some moisture-resistant tape ;) )

I'll double check that in a few minutes, though -- got to find (or burn) that ISO to disc to find out. (I'm still only using puppy recreationally, lol. Dunno why -- it's real good stuff!)

EDIT: yep, it's there. When you go to connect...

1-Connect Wizard
2-Wired or Wireless LAN (small button)
3a-Simple Network Setup
3b-IF YOU DON'T SEE YOUR CARD, click the X on the title bar and proceed to 3c. IF YOUR CARD IS RECOGNIZED, follow the wizard and you should be able to connect and do your stuff.
3c-"TRY A DIFFERENT TOOL" (button with a red X)
4-Wired or Wireless LAN
5-Network Wizard
6-Load module (button near the bottom)
7-scroll till you see "rtl8192cu usb Realtek 8192C/8188C 802.11n USB wireless" (don't use the PCI version right above it -- that won't work!)
8-Load (button near the top, has a green check-mark on it)
9-Click through a couple boring boxes.
10-with any luck you'll now see your card there. Go back to Simple Network Setup ("Exit" button, in the bottom right corner, in Network Wizard, then... you know the rest), select your card, and do the dance.

It's a lot more complicated than it looks!

Let us know if you still have troubles.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#6 Post by boof »

Ta v much. very nice instructions-complete and understandable.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#7 Post by boof »

thx, I got the driver loaded, now I have to convince my Nokia C3-00 to connect the internet into it. I do find the lack of user control very frustrating, as so much requires special settings and knowledge I don't have. I don't know what the name of my local network is, as I don't think I've seen it yet. I certainly haven't seen any point to input the name of my phone.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#8 Post by boof »

sorry, apparently wrong device. see attachment for sales blurb and pic. Have mini cd, but it only contains a setup.exe file. device is

USB 2.0 Wireless N Wi-Fi Adaptor Dongle 802.11b/g/n

has code :

CF-WUT20N


on it.

Cannot configure it, doesn't seem to have an autoloading driver.
will not dialout on ph, tho' I THINK the network is detected. I'll spend a few hours trying to resurect my winXP machine and see if I can get the drivers from the mini CD that way. BTW mini CD has only generic labelling, nothing useful.
Attachments
KGrHqQOKkE6033WtTkBOufiUzUFQ60_35.JPG
(25.83 KiB) Downloaded 938 times

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#9 Post by boof »

I have the driver, rt3070, but it's a .tar.gz and I don't know how to install it. Seems to cycle endlessly between zipping and unzipping the archive-no installation on R or L click. I'll have a look round. I don't know how to run an exe file under puppy to install driver, as I have one which is supposed to be for linux.

Update:
I can see the *-wrap.sh files in the tar.gz. they are in a blue-grey ROX screen, and cannot be edited nor separated. The driver is from Ralink, whom have been taken over 7/1/2013. I can't upload it. This site says its empty. What do I do, please? BTW, when I tried to upload the drivers, the site locked onto my filename, couldn't edit it and I had to close the browser to release it.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#10 Post by boof »

upgraded to slacko 5.4

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#11 Post by boof »

I've unpacked the tar.gz into the /usr/bin/xarchive/wrappers directory.I have 8 files :
7za-wrap.sh; ace-wrap.sh; arj-wrap.sh; deb-wrap.sh

rar-wrap.sh; rpm-wrap.sh; tar-wrap.sh zip-wrap.sh

The tar.gz is a POSIX file(?) the .sh files are executable x-shellscript files.

How/which one should I install, pls? Obviously, these are for different distributions, but that's all I summise.

sh *-wrap.sh
gives error message
Option not supported, use one of these:
-i #info
-o archive #open
-a archive files #add
-n archive file #new
-r archive files #remove
-e archive files #extract

sh (-o & -e) *.sh do nothing,

I must be doing something wrong, what is it, pls?

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#12 Post by 01micko »

boof, you need to compile the driver. It needs the devx and the kernel sources, if using gslacko-5.4 kernel source is in the sfs manager in the setup menu. Devx is from : http://mirror.aarnet.edu.au/pub/puppylinux/puppy-5.4/

BUT, it may be a bit beyond your capability.

Can you open terminal for me please and run this command WITH the device plugged in, and I'll try the manufacturer's website and get the driver source.

Code: Select all

lsusb
Also

Code: Select all

uname -r
That tells me which kernel you have.

Thanks!
Puppy Linux Blog - contact me for access

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#13 Post by boof »

these are the makers latest drivers, AFAIK. I downloaded them from the site.
attached is sreencapture of the commands. thx BTW.
Attachments
capture18948.png
(22.86 KiB) Downloaded 861 times

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#14 Post by boof »

have Dvix now, but insufficient memory for kernel sources.

Will goto internet cafe to download and set up driver [if you will describe process sufficiently] on a live CD and store new drivers on my system flashdrive. I will also make them avail here for other to use. I'd use the ndiswrapper if I could resolve the .sh file format. I have a 5yo knoppix (or usesome other late distribution], could I use that to compile the driver?
I only have 512MB of ram, so it's not easy, but I can download Debian et al as needed at 'net cafe. if that's a valid solution.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#15 Post by boof »

got a win machine running, emailed unziped drivers to self, then tried to download them into win machine-but can't. win recognises the inf file And refuses to allow it to be manually copied anywhere from the attachment. It's a new install, & I doubt I can now afford the MB to upgrade the browser and email client. What an utter pack of rubbish!!!!


BTW, I found it almost impossible to change my ndiswrapper from an incorrect one, and although it detects my zip file and reports wrapper found, it does not have any means of installing nor unziping it. The level of automation is too great, blocking manual file operations.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#16 Post by boof »

I have loaded the driver, but it doesn't work--suspect it's an XP Vista and Win 7 driver. That takes me back to compiling my own driver from an so file, which I can now do as this win machine has 1GB ram, and can take puppy as a dual boot. I will set it up and download those compiler files. Pls give me the necessary instructions on how to use them.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#17 Post by boof »

win machine is now dual boot, with puppy slacko-5.4.

it has divx and kernel-sources installed.

please give detailed instructions on how to compile puppy drivers from .so format, as above. no wrapper can be used (all versions contain vista elements?)

thx

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#18 Post by boof »

this is the tar-wrap.sh file in txt. it is listed in ~xarchive/wrappers/. It is listed as a driver? i don't understand what does. I don't know where the driver is, nor how to use it.


#! /bin/bash
# tar-wrap.sh - bash tar wrapper for xarchive frontend
# Copyright (C) 2005 Lee Bigelow <ligelowbee@yahoo.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

# modified by technosaurus for puppy 4.4a
# added lzma and xz and changed --use-compress-program={progs} -{ajJzZ}

#110808 rerwin: Change all redirections to stderr to be appends, to protect error log.

# set up exit status variables
E_UNSUPPORTED=65

# Supported file extentions for tar
TAR_EXTS="tar"
GZIP_EXTS="tar.gz tgz"
BZIP2_EXTS="tar.bz tbz tar.bz2 tbz2"
COMPRESS_EXTS="tar.z"
XZ_EXTS="tar.xz txz"
LZMA_EXTS="tar.lzma tar.lz tlz"

# Setup awk program
AWK_PROGS="mawk gawk awk"
AWK_PROG=""
for awkprog in $AWK_PROGS; do
if [ "$(which $awkprog)" ]; then
AWK_PROG="$awkprog"
break
fi
done

# Program to wrap
TAR_PROG="tar"

# setup variables opt and archive.
# the shifting will leave the files passed as
# all the remaining args "$@"
opt="$1"
shift 1
archive="$1"
shift 1

# set up compression variables for our compression functions.
# translate archive name to lower case for pattern matching.
# use compressor -c option to output to stdout and direct it where we want
lc_archive="$(echo $archive|tr [:upper:] [:lower:])"
for ext in $GZIP_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="gzip -dc"
COMPRESS="gzip -c"
TAR_COMPRESS_OPT="-z"
fi
done
for ext in $BZIP2_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="bzip2 -dc"
COMPRESS="bzip2 -c"
TAR_COMPRESS_OPT="-j"
fi
done
for ext in $COMPRESS_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="uncompress -dc"
COMPRESS="compress -c"
TAR_COMPRESS_OPT="-Z"
fi
done
for ext in $XZ_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="xz -dc"
COMPRESS="xz -ze9c"
TAR_COMPRESS_OPT="-J"
fi
done
for ext in $LZMA_EXTS; do
if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then
DECOMPRESS="lzma -dc"
COMPRESS="lzma -ze9c"
TAR_COMPRESS_OPT="-a"
fi
done

# Command line options for prog functions
# open and extract can use tar's cmd line option
# add, new, and remove need to decompress the tar first
# do their thing, than recompress the tar.
OPEN_OPTS="$TAR_COMPRESS_OPT -tvf"
EXTRACT_OPTS="$TAR_COMPRESS_OPT -xf"
ADD_OPTS="-rf"
NEW_OPTS="-cf"
REMOVE_OPTS="--delete -f"

# Compression functions
decompress_func()
{
if [ "$DECOMPRESS" ]; then
tmpname="$(mktemp -t tartmp.XXXXXX)"
if [ -f "$archive" ]; then
$DECOMPRESS "$archive" > "$tmpname"
fi
# store old name for when we recompress
oldarch="$archive"
# change working file to decompressed tmp
archive="$tmpname"
fi
}

compress_func()
{
if [ "$COMPRESS" ] && [ "$oldarch" ]; then
[ -f "$oldarch" ] && rm "$oldarch"
if $COMPRESS "$archive" > "$oldarch"; then
rm "$archive"
fi
fi
}

# the option switches
case "$opt" in
-i) # info: output supported extentions for progs that exist
if [ ! "$AWK_PROG" ]; then
echo none of the awk programs $AWK_PROGS found >> /dev/stderr
echo extentions $EXTS ignored >> /dev/stderr
elif [ "$(which $TAR_PROG)" ]; then
for ext in $TAR_EXTS; do
printf "%s;" $ext
done
for ext in $GZIP_EXTS; do
if [ "$(which gzip)" ]; then
printf "%s;" $ext
else
echo gzip not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $XZ_EXTS; do
if [ "$(which xz)" ]; then
printf "%s;" $ext
else
echo xz not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $LZMA_EXTS; do
if [ "$(which lzma)" ]; then
printf "%s;" $ext
else
echo lzma not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $BZIP2_EXTS; do
if [ "$(which bzip2)" ]; then
printf "%s;" $ext
else
echo bzip2 not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
for ext in $COMPRESS_EXTS; do
if [ "$(which compress)" ] && [ "$(which uncompress)" ]; then
printf "%s;" $ext
else
echo compress and uncompress not found >> /dev/stderr
echo extention $ext ignored >> /dev/stderr
fi
done
else
echo command $TAR_PROG not found >> /dev/stderr
echo extentions $TAR_EXTS ignored >> /dev/stderr
fi
printf "\n"
exit
;;

-o) # open: mangle output of tar cmd for xarchive
# format of tar output:
# lrwxrwxrwx USR/GRP 0 2005-05-12 00:32:03 file -> /path/to/link
# -rw-r--r-- USR/GRP 6622 2005-04-22 12:29:14 file
# 1 2 3 4 5 6
$TAR_PROG $OPEN_OPTS "$archive" | $AWK_PROG '
{
attr=$1
split($2,ids,"/") #split up the 2nd field to get uid/gid
uid=ids[1]
gid=ids[2]
size=$3
date=$4
time=$5

#this method works with filenames that start with a space (evil!)
#split line a time and a space
split($0,linesplit, $5 " ")
#then split the second item (name&link) at the space arrow space
split(linesplit[2], nlsplit, " -> ")

name=nlsplit[1]
link=nlsplit[2]

if (! link) {link="-"} #if there was no link set it to a dash

printf "%s;%s;%s;%s;%s;%s;%s;%s\n",name,size,attr,uid,gid,date,time,link
}'
exit
;;

-a) # add to archive passed files
# we only want to add the file's basename, not
# the full path so...
decompress_func
while [ "$1" ]; do
cd "$(dirname "$1")"
$TAR_PROG $ADD_OPTS "$archive" "$(basename "$1")"
wrapper_status=$?
shift 1
done
compress_func
exit $wrapper_status
;;

-n) # new: create new archive with passed files
# create will only be passed the first file, the
# rest will be "added" to the new archive
decompress_func
cd "$(dirname "$1")"
$TAR_PROG $NEW_OPTS "$archive" "$(basename "$1")"
wrapper_status=$?
compress_func
exit $wrapper_status
;;

-r) # remove: from archive passed files
decompress_func
$TAR_PROG $REMOVE_OPTS "$archive" "$@"
wrapper_status=$?
compress_func
exit $wrapper_status
;;

-e) # extract: from archive passed files
# xarchive will put is the right extract dir
# so we just have to extract.
$TAR_PROG $EXTRACT_OPTS "$archive" "$@"
exit
;;

*) echo "error, option $opt not supported"
echo "use one of these:"
echo "-i #info"
echo "-o archive #open"
echo "-a archive files #add"
echo "-n archive file #new"
echo "-r archive files #remove"
echo "-e archive files #extract"
exit
esac

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#19 Post by boof »

Sorry. wrong thing.

I renamed the original archive as a tar file and was able to extract it.

I now believe i can make make etc the file.

boof
Posts: 579
Joined: Wed 26 Sep 2012, 22:53

#20 Post by boof »

make doesn't work, see attached.
Attachments
capture32180.png
(83.48 KiB) Downloaded 312 times
capture27788.png
(41.01 KiB) Downloaded 273 times

Post Reply