$PATH Problem

Just installed openSUSE 11.1 - when I try to run ndiswrapper or modprobe I get command not found errors.

After looking at the path variable this is what I get:

frankaz@linux-ystq:~> echo $PATH
/home/frankaz/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:

Both programs are installed, (checked the /usr/sbin folder & the /sbin folder, also made sure ndiswrapper was installed via yast)
is there any way to correct this?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, they’re installed, but no, they’re not in your path. You’re not
‘root’ so become root (sudo -i) and you should have access to these as
your PATH variable is updated to include the paths you mentioned.

Good luck.

Frankaz wrote:
> Just installed openSUSE 11.1 - when I try to run ndiswrapper or modprobe
> I get command not found errors.
>
> After looking at the path variable this is what I get:
>
> Code:
> --------------------
> frankaz@linux-ystq:~> echo $PATH
> /home/frankaz/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:
> --------------------
>
> Both programs are installed, (checked the /usr/sbin folder & the /sbin
> folder, also made sure ndiswrapper was installed via yast)
> is there any way to correct this?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJuU3EAAoJEF+XTK08PnB5fB8P/2usdsD5F6y6t87yknFMW/e6
rpiMN/JapljZkuJqNwKzl28dhpkdntgXe7+Sn8jI+6yZU+D4FMieAFpql06HWkxQ
Ku/5F/S34slU2E8sv/X7mCg4XoP9Ec/p7CPiwXN/8IDlbKcbutJUQefxLABipSW5
AacTjhPeufWzCB+r5W65HzcjQWkNdR0aWfTvQL3/KxPbLuX+eOcrbEgEzrULubff
G9U1pFuu5Vu3rPL0JKJTbzAi9l2qGjPAqy1a4t3vrEFoDYWPjP1MGf0t9t/I2KL3
/r87vmYYs8PjVNZ7u/leobERjhpxPO5FLmi/SRgP/+oS2cPcLfT8eaeX1mCUKEtd
lI0nQH0DVJIX6DV/goJOpJUa84VDemKOOimWQpreomLcWcdGqdGfdGpbHe2YBC7t
jxms9LswchDWZMsEX+UMsmG5P75Tga7h5SRZ2jZA0Jg2fiu/tq140OqU5Xx0OILh
rlah675rFxZg+BEMigxEKLLKY0UnQgB2PcEtOvGbBPCs/HjL2urncXaHzZ20dt8a
wSGQhPMSSxMis7XFP7Ywy7ThJKFLwR4IIYzCrmgXXNt+1lceIgs3Sd7FIramdJjw
fEyT7wYeV0wyBS30JCUJWfn+VIQj04ELQHcyMmhGL8WcNj71oD+LJgOSHP+ZRlVu
cq7jt0VWkFfoUXS411ql
=WL2/
-----END PGP SIGNATURE-----

if you are saying that /usr/sbin is not in your PATH variable, then you can do: $#This will set your home directory $cd $vi .bashrc It does not matter if .bashrc does not already exist. This is in case you use bash shell. You can type “echo $SHELL” and the output should be “/sbin/bash”. For “sh” the file should be .shrc. Add these lines in your .bashrc file. export PATH=$PATH:/usr/sbin Save the file and log out and log in. This change will be for the user you are logged in from. To make this changes system wide, log in as root as make these changes. Hope I got your problem right and this will help you :slight_smile:

TO go to your “home” directory type “cd” from the prompt. I had a typo in my previous post.

If you su to root user, then run “echo $PATH”, you should see /sbin /usr/sbin etc. in your PATH.
You should be able to use “sudo /sbin/modprobe” or “su root” followed by “modprobe”.

Right, using su (or sudo -i) so far I can get ndiswrapper to work, modprobe however is not…

these are the commands I use on Kubuntu to get the wireless card initialized:

sudo ndiswrapper -i sis163u.inf
sudo ndiswrapper -ma
sudo modprobe ndiswrapper

obviously I don’t need to put sudo in front as I’ve already typed in su and entered the root password.

Ndiswrapper reports this:

linux-p6o9:/home/frankaz # ndiswrapper -l
sis163u : driver installed
        device (0B3B:0163) present
linux-p6o9:/home/frankaz #
ndiswrapper -ma
module configuration information is stored in /etc/modprobe.d/ndiswrapper

all good so far…
However, running the ‘modprobe ndiswrapper’ command seems to do nothing. I get no wlan0 in the network manager, and the light on my usb dongle does not come on. Is there anything I have missed?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Make sure you ran ‘su -’ and not just ‘su’.

Good luck.

Frankaz wrote:
> ab@novell.com;1957165 Wrote:
>> Yes, they’re installed, but no, they’re not in your path. You’re not
>> ‘root’ so become root (sudo -i) and you should have access to these as
>> your PATH variable is updated to include the paths you mentioned.
>>
>> Good luck.
>>
> Right, using su (or sudo -i) so far I can get ndiswrapper to work,
> modprobe however is not…
>
> these are the commands I use on Kubuntu to get the wireless card
> initialized:
>
> Code:
> --------------------
> sudo ndiswrapper -i sis163u.inf
> sudo ndiswrapper -ma
> sudo modprobe ndiswrapper
> --------------------
>
> obviously I don’t need to put sudo in front as I’ve already typed in su
> and entered the root password.
>
> Ndiswrapper reports this:
>
> Code:
> --------------------
> linux-p6o9:/home/frankaz # ndiswrapper -l
> sis163u : driver installed
> device (0B3B:0163) present
> linux-p6o9:/home/frankaz #
> ndiswrapper -ma
> module configuration information is stored in /etc/modprobe.d/ndiswrapper
>
> --------------------
>
> all good so far…
> However, running the ‘modprobe ndiswrapper’ command seems to do
> nothing. I get no wlan0 in the network manager, and the light on my usb
> dongle does not come on. Is there anything I have missed?
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ3fpaAAoJEF+XTK08PnB5pC8QANQZ/X2kOZrllJQfnsPEDWfc
f4A09rp6gJyxT5FD1tJAZssWVOihjSAPOMSJfyCPKtzl31H1LtK/i669UvKcmWQX
AaL7+S6VowDbNbXFg0GPXPeWzddSprufzjLJ5LcXtemg7QdXZV8RnxVP6vfYmOiD
+BbJAb5NrR5HKHWsFhxk6WgBc48RG8FOON0FTPvaXkh2uQwqvAvPowzUElQ1WlPg
p5inSeX8JbwKnj2Brau5H9/OcYOOWnxUS3d3bubv3MJjJKNztehecKbYIZGOsRFw
/h6tZuSdLnp2Fhfm2CweHA9Bes1PYI72z/+lGV/dFY9rVnwFKyR83j+qvw+M8vC3
8nWLYBgFkofOz2TqIH2YVCe3eN6GTMIJzvMC6JL5kb8s+GCRzoRSdQcGvpHO3DS6
G1s+013Z5L6TWdvXeJksv2/2voEnDuJ+TTWWlMGVerwAHAbo22aKlqqE+NYFcI6A
lwE4CeAfWck/Di4My3DkSxlWWcPRNfJWAKSJbbYC9GRUBumtccW8ScYAHVKVLWBU
6nYfvcp7I5ys07TA0U27XNNRPrLlWJG/LJ3sbHlWY45PBaMs95XQe4qK7eexVQsc
CiJ1E4dh5TvCg6rhEKwbzr30/CfUA3YBDFNG5hGaUauXA5wG3vMo38NV3mPYTAp+
PpySULcfqYKtOhvxOdr2
=27/x
-----END PGP SIGNATURE-----

No difference…
modprobe is still doing nothing…:frowning:
driving me crazy tbh >:)

Just for reference - my USB WLAN chipset is the sis163u (which SIS never bothered to write a linux driver for - thanks to them for that)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The binary should be in /sbin/modprobe, or at least it is on my system.

The following command should show which package it comes from:

rpm -qf /sbin/modprobe

For me this returns: module-init-tools-3.4-70.5

Good luck.

Frankaz wrote:
> ab@novell.com;1970570 Wrote:
>> Make sure you ran ‘su -’ and not just ‘su’.
>>
>> Good luck.
>>
> No difference…
> modprobe is still doing nothing…:frowning:
> driving me crazy tbh >:)
>
> Just for reference - my USB WLAN chipset is the sis163u (which SIS
> never bothered to write a linux driver for - thanks to them for that)
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ3gbaAAoJEF+XTK08PnB5OF4P/2swizDCRj+zTTu8R3GV848S
OGa+8BtrcDbkn0XQW1Q/8y77x/3xgGUxUjgEBT98H6yz/TMUOAIxaicfr2zd4ao5
hxJbXAK9OkwCaXx3yLudsrewVKojrfacMZ0LwQ5p0EXmvD8hZZHOWFbuAcYWeTy0
x5EfbWwKThVnarOjo37sfLBIZXNO4g45HZdsUzC+C0IPT4KSf5t8LZQbLtWFOZnP
obL0vRmR0UIINRFU5HtERgChMeq/gNbdCVwQmTsJLhtPhTgWJCgtDcOMzhFaU9av
jVLviYuM4B4ezj6tEqQEtcPrqRm35w410AlPXyFNH6Dxm79FUq9Of/3z3yRXd/jV
F0Py5g8aINwss0JmRqs+/yCZarL78zMGWOlUdPgm52qGPFmo99ErUK+pTGiiGLfX
ubAz33nKflQ1aspF5Wdv02B/JewewKUcAStAaeLYXEN7eCD200fHfR6lQHvBp5WF
uHpy3zQNZU7zC4ysFRL3bYYdkuF7csoxuZikz9ES1r13/KdUiuqRVvJ0IhpmYUih
pep7dxj6Bhu7o6u3BRNu+d8ayw/Gb068ze6eXMWVut+cRJXNW39pJqfZyRmB127r
NH+VVLm5ZeQYa44PhJhIvXfuYMZq1Vog9+i+NHM+m5y0HP/k2n0wWUD5ZEu3SDYJ
kJT0ZoLmhjucGbHhkSx0
=gRZF
-----END PGP SIGNATURE-----

rpm -qf /sbin/modprobe
returns:
module-init-tools-3.4-56.10.1

I think you misunderstand, modprobe is installed, it’s just not working correctly…
btw dmesg can detect the wireless card:
usb 1-3: New USB device found, idVendor=0b3b, idProduct=0163

more infos:

ndiswrapper -v

brings up this:

utils version: '1.9', utils version needed by module: '1.9'
module details:
filename:       /lib/modules/2.6.27.21-0.1-default/weak-updates/updates/ndiswrapper.ko
version:        1.53
vermagic:       2.6.27.19-3.2-default SMP mod_unload modversions 586

Seems this could be a problem with ndiswraper in the end going by this post anyway: [opensuse] Re: [Bulk] Re: [opensuse-factory] OpenSuSE 11.1 - Ndiswrapper Troubles (SOLVED)](http://linux.derkeiler.com/Mailing-Lists/SuSE/2008-12/msg01356.html)

Question is now though how to go about correcting…

What the heck is this discussion here?

FYI, modprobe $FOO does not return anything if the command was successful, so what’s the problem?

NO output means the module ndiswrapper was loaded.

The problem is ndiswrapper in the end… I’m now looking for ways to fix it.