LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2016, 10:06 AM   #1
RobertDepelteau
LQ Newbie
 
Registered: Dec 2015
Posts: 17

Rep: Reputation: Disabled
Wifi logs on Android Network, not on Land Based Router.


Reposting this in networking hoping to get an answer.

I bought a Rpi, finally got it working, after trying many systems. I got Raspbian loaded and tweaked a bit with remote log-in that I'm still not able to log into. My first question is I can log onto one wifi signal, my android hotspot, but not on the other the land based router. I don't understand why it would log on one, but not the other...?!?!


So why is it logging on one wifi but not the other...?

I got a "error 15" sigterm come up after it was trying to log on, after 4 way handshake established. It was reading the mac and trying to get an ip address, but kept resetting, then code 15 came up.

The other wifi logs on OK I get internet.
 
Old 01-02-2016, 12:15 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Usually it's your login/password.

If you're on wpa encryption, have you run wpa_passphrase? The format is

wpa_passphrase Essid password

It returns a chunk to put in wpa_supplicant.conf
 
Old 01-02-2016, 10:24 PM   #3
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
The usual reason for not being able to log on to a network is an incorrect password. Not always, but probably close to 99 of the time.
 
Old 01-03-2016, 10:37 AM   #4
RobertDepelteau
LQ Newbie
 
Registered: Dec 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks guys, I have the correct password, I log on with windows no prob.

I'll try this way with Business guy says: wpa_passphrase Essid password
It's wpa2 encryption, does that make a difference?
I suppose I have to log on with the command prompt since the desktop just asks for password.

OK I ran sudo wpa_passphrase Essid password
and got

ssid="Essid"
#psk="password"
psk= "A939393bunch2321of22020numbers"

Now I put 'the whole thing' into; wpa_supplicant.conf
So being a newbie, how do I get into wpa_supplicant.conf

OK I did /etc

Frustrating to be such a clutz again.

Last edited by RobertDepelteau; 01-03-2016 at 10:59 AM.
 
Old 01-03-2016, 11:16 AM   #5
RobertDepelteau
LQ Newbie
 
Registered: Dec 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Running updates and upgrades
then installing some this and that...

Lots to do...

It's nice to make progress.

Problem now I can't log in as su... I get permission denied. :?

I set the root password, log in as root, and still get permission denied when I type

/etc/network/interfaces

Last edited by RobertDepelteau; 01-03-2016 at 01:02 PM.
 
Old 01-04-2016, 02:24 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
/etc/network/interfaces is probably a directory. You can't execute a directory.
If root is not allowed to do something with a file, check the file permissions

Last edited by business_kid; 01-04-2016 at 02:25 AM.
 
Old 01-04-2016, 05:00 PM   #7
RobertDepelteau
LQ Newbie
 
Registered: Dec 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
/etc/network/interfaces is probably a directory. You can't execute a directory.
If root is not allowed to do something with a file, check the file permissions
OK I was able to get into the file, learned how to set root password. But there is something strange going on, when I click on the network image at the top right, I get a listing of all available networks, the strange thing is the first four networks show up like this, with a network signal at the end of each line.

/000///000///000///000///000///000//
/000///000///000///000///000///000///000//
/000///000///000///000///000///000///000///000//
/000///000///000///000///000///000///000///000///000///000//

After this the usual networks show up normally.
That's not normal, so I don't know what to make of this.
 
Old 01-04-2016, 06:46 PM   #8
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
You do not set the root password through /etc/network/interfaces. That has nothing at all to do with the root password.
 
Old 01-05-2016, 02:55 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
/tears hair out.

thenetworkinterfaces will probably be a list of network stuff. To set root passord, use
Sudo Passwd root
 
Old 01-05-2016, 03:30 PM   #10
RobertDepelteau
LQ Newbie
 
Registered: Dec 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi Guys,

I'm making progress fast.
I now know how to set up root password, get into files, (have yet to get into syslogs). Got mc installed, another rpi setup as a server, able to log onto it, same network, but not from another network. Got putty working, though I don't get the rpi desktop, just prompt, able to issue commands to the shell.

I think this garbage...

/000///000///000///000///000///000//
/000///000///000///000///000///000///000//
/000///000///000///000///000///000///000///000//
/000///000///000///000///000///000///000///000///000///000//

... is picked up by the antenna, perhaps routers farther away, not completely identified. They come and go, from two lines, one line or sometimes no lines at all. But they're at the beginning, on top of the list of available networks.

Then I can't log onto a known network, land based router nearby. I log onto it with Window$ no problem, but not with the rpi. So I'm perplexed...

ooops, I saw something. The network logged on for an instant, then quit. I think something killed the connection, so how do I find out more about this?

Last edited by RobertDepelteau; 01-05-2016 at 03:33 PM.
 
Old 01-05-2016, 04:53 PM   #11
RobertDepelteau
LQ Newbie
 
Registered: Dec 2015
Posts: 17

Original Poster
Rep: Reputation: Disabled
1: Where do I find syslogs?
2: Where do I insert this code?

Found this code for sigterm:

Quote:
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>

void sigterm_handler(int signal, siginfo_t *info, void *_unused)
{
fprintf(stderr, "Received SIGTERM from process with pid = u\n",
info->si_pid);
exit(0);
}

int main (void)
{
struct sigaction action = {
.sa_handler = NULL,
.sa_sigaction = sigterm_handler,
.sa_mask = 0,
.sa_flags = SA_SIGINFO,
.sa_restorer = NULL
};

sigaction(SIGTERM, &action, NULL);
sleep(60);

return 0;
}
It pops out the program responsible for the sigterm signal... I compiled a little "C" code (Hello World) and got it written in a file, and was able to run it from the shell...(Kool 8-)) the guy says it must be inserted at the start early, to catch the culprit. So it's in the boot somewhere. The call is 'sigaction()' and the program should be somewhere not too far away from the call. So I need a little help here, I'm newbie at C, though did a lot of C++ I'd say intermediate level, so not a total beginner.
 
Old 01-05-2016, 10:50 PM   #12
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Logs are in /var/log and subdirectories. As for the code, I have no idea what you're doing with that. It's C, so it goes in a C program somewhere, but I don't know what you're writing or what it's supposed to do. Compile it and run it, I suppose. It's a complete program, with a main and all. You don't provide much information.
 
Old 01-06-2016, 04:35 AM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,252

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Just being practical & pessimistic, do a backup before esting code in case it breaks something. Especially running code blocks you didnt write
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Android-based touchscreen router does home automation LXer Syndicated Linux News 0 03-23-2014 02:11 AM
LXer: Trouble's brewing in Android land LXer Syndicated Linux News 0 10-16-2013 12:03 AM
Setting up a home network wifi-ap/proxy/router etc cjreyn Linux - Networking 1 01-16-2011 10:49 AM
Linux based-router for IPv6 network syukri Linux - Newbie 2 10-02-2010 05:25 PM
cannot connect to Belkin WiFi Router from laptop network card crmpicco General 2 05-19-2007 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration