please choosego to mobile | Continue to access the PC version
View: 20403|Reply: 15

Orange-PI PC - Wifi problems

[Copy link]

3

threads

41

posts

152

credits

Registered member

Rank: 2

credits
152
Published in 2016-1-2 07:52:26 | Show all floors |Read mode
Hello!

First of all thanks for this little but nice comunity, it's being very helpful with many things about the little board I bought a month ago.

But I couldn't solve the problem about the wifi. Since my model has no wireless built-in I have to use a dongle, but I've tried 5 different ones I have and 3 are detected and 2 need firmware. Anyways, I will focus with the ones it detects because I can get my wifi but I can't connect to it. I can't connect to any wifi it detects because when I click on a wifi network it makes a hint like it was going to connect but quickly disconnects. It takes like 1/4 second or less, it is quite fast. I tried either with Debian and Lubuntu 15.04, and my image and script are the ones for Orange-PI PC, and everything else is working flawlessly (mouse, keyboard, ethernet, sound, video, etc), and everything is new fresh installed, so I don't know what's wrong with this particular thing.

I can use ethernet for updating and downloading new things but my plan is to use it in other room so I would need wifi.

Thanks for your help in advance!

18

threads

303

posts

9867

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9867
Published in 2016-1-2 21:20:44 | Show all floors
If you can see the Wifi SSID then you are good to go.  Press CTRL+ALT+T and input below command, then input your wifi password.
  1. sudo nmcli -a d wifi connect
Copy code


3

threads

24

posts

184

credits

Registered member

Rank: 2

credits
184
Published in 2016-1-4 04:02:57 | Show all floors
I have a problem with sudo. Seem like it not recognize "sudo"
Look at this.

orangepi@OrangePI:~$ sudo nmcli -a d wifi connect
>>> /etc/sudoers: syntax error near line 1 <<<
sudo: error de análisis en /etc/sudoers cerca de la línea 1
sudo: no valid sudoers sources found, quitting
sudo: no se puede inicializar la política de plugin
orangepi@OrangePI:~$

I have checked with "sudo -s" in order to change root without success. The only way to login as sudo is ctrl+alt+f1 -->user:root,  passwordrangepi

3

threads

44

posts

1224

credits

Gold member

Rank: 6Rank: 6

credits
1224
Published in 2016-1-5 09:28:41 | Show all floors
You may need to add yourself to the sudo group. Do it from a root terminal.

3

threads

41

posts

152

credits

Registered member

Rank: 2

credits
152
 Author| Published in 2016-1-6 08:58:16 | Show all floors
jacer replied at 2016-1-2 21:20
If you can see the Wifi SSID then you are good to go.  Press CTRL+ALT+T and input below command, the ...

I fear the problem is beyond that.

nmcli is the same as doing it through mouse clicks, but from terminal. I tried it anyways, but it keeps "connecting" forever. The network manager icon keeps with the connecting animation doing rounds and nothing more. It is not related with the wifi dongle, since it happens with all of them. The strange thing is that everytime the system boots Ethernet interface is requesting a connection, even without cable plugged, and it lasts forever as well, till I manually disconnect it.

I smell that Uimage is causing the trouble, I feel it. I tried all Uimages from other versions of Orange-Pi without success.

Is there a chance of a new Lubuntu 15.10? maybe it will fix the problem, but I'm still unsure about it.

Thank you.

3

threads

24

posts

184

credits

Registered member

Rank: 2

credits
184
Published in 2016-1-8 06:03:54 | Show all floors
Edited by tranki at 2016-1-8 06:06
phreon replied at 2016-1-5 09:28
You may need to add yourself to the sudo group. Do it from a root terminal.

I have make this:
root@OrangePI:~# gpasswd -a orangepi sudo
Adding user orangepi to group sudo
root@OrangePI:~# sudo -s
>>> /etc/sudoers: syntax error near line 1 <<<
sudo: parse error in /etc/sudoers near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin


The problem still goes on. However now I can change by using "su orangepi" or "su root".
Laboris' images  with "sudo -s" works properly.


3

threads

44

posts

1224

credits

Gold member

Rank: 6Rank: 6

credits
1224
Published in 2016-1-8 23:29:33 | Show all floors
From a terminal:

>sudo adduser <username> sudo

If you can't do it from a terminal log in as root and do it from there.

# adduser <username> sudo

3

threads

24

posts

184

credits

Registered member

Rank: 2

credits
184
Published in 2016-1-10 20:04:41 | Show all floors
root@OrangePI:~# adduser orangepi sudo
bash: adduser: command not found
root@OrangePI:~# useradd orangepi sudo
bash: useradd: command not found

As you can see I've checked "adduser" and "useradd" without none result.

3

threads

44

posts

1224

credits

Gold member

Rank: 6Rank: 6

credits
1224
Published in 2016-1-10 22:02:44 | Show all floors

You should be root to run adduser, so type 'su -' first. I see you are running as root.

Then try to locate the adduser commmand with 'which adduser' (here it return /sbin/adduser but it could be else where depending on your linux flavor).

Once you'll have finded the location, use the full path of the command to launch it, e.g. '/sbin/adduser', just in case the location wouldn't be in $PATH.

Last resort, if you really think you don't have that command, run (as root) 'updatedb' (takes a while), then 'locate addusr' to check.

5

threads

354

posts

2715

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2715
Published in 2016-1-10 22:09:44 | Show all floors
@tranki
Which distro you use?
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list