Please login or register.

Login with username, password and session length
Pages: 1 ... 10 11 [12] 13 14 ... 17

Author Topic: Different platforms for X10 on the Raspberry Pi  (Read 58199 times)

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10512
  • I don't work for X10, I use it successfuly!
Re: Different platforms for X10 on the Raspberry Pi
« Reply #165 on: September 26, 2018, 02:30:56 PM »

You can't use a Windows text editor for Linux files, it always adds extra characters somewhere though in my experience is usually at the end of the file. I had assumed you were using your Linux machine to edit the file.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Different platforms for X10 on the Raspberry Pi
« Reply #166 on: September 26, 2018, 02:40:10 PM »

Your nano command let me see the two blocks on first line;  let me edit them out.  using vi command did not show them so I could not edit them out.

but I cannot make the long command to run wpa_supplicant manually to work - at least last try after your nano it did not complain - just said it could not understand a line too long or something...

still no wifi tho.  just rebooted...  iwconfig shows it is not connected...

Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Different platforms for X10 on the Raspberry Pi
« Reply #167 on: September 26, 2018, 02:42:23 PM »

You can't use a Windows text editor for Linux files, it always adds extra characters somewhere though in my experience is usually at the end of the file. I had assumed you were using your Linux machine to edit the file.

my understanding was we made wpa_supplicant.conf file in test editor in windows and copied it to \boot directory on the Sd card along with a blank ssh file.  is this wrong?
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10512
  • I don't work for X10, I use it successfuly!
Re: Different platforms for X10 on the Raspberry Pi
« Reply #168 on: September 26, 2018, 02:43:44 PM »

probably best to delete the file and recreate using nano I had to do this with some scripts I created in Windows. they didn't show any extra characters but there must have been something added I couldn't see.
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Different platforms for X10 on the Raspberry Pi
« Reply #169 on: September 26, 2018, 03:11:12 PM »

just spent an hour trying to edit this stupid file into what I want.  finally seems root is editing it and things I do have no effect anymore.

now it also says there is a swap file with same name in use...

I will go read up on NANO to see how to use it properly and find a command to delete a file to start over.

I did sudo nano wpa_supplicant.conf and backspaced all out for blank screen.  then manually typed it all back in.  then hit control O to save it?  seemed to.  but then using head to look at it, it writes the country=US and part of next line then overrights them with just the end of that line and no more printed.

this is killing me.

no, gui version won't help as it still will rely on this dang file that I cannot seem to get on my sd card properly.
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10512
  • I don't work for X10, I use it successfuly!
Re: Different platforms for X10 on the Raspberry Pi
« Reply #170 on: September 26, 2018, 03:16:53 PM »

I never had to create that file using the GUI for my Zero W.  It auto wrote it for me I assume when I configured the wi-fi.

 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Different platforms for X10 on the Raspberry Pi
« Reply #171 on: September 26, 2018, 03:33:56 PM »

Mike if you look back at Post 69 and 73 you will see why I mentioned both the fact that your wpa_supplicant.conf file could have special characters and by using Nano you could avoid this. I mention this for good reason as you can now see.

The supplicant should only have the text that was outlined to you, no more no less. It could have saved you a lot of time and effort here.

If you were confident enough to proceed in Terminal we could now get you connected.
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Different platforms for X10 on the Raspberry Pi
« Reply #172 on: September 26, 2018, 03:56:09 PM »

I may go back to trying NOOBS install now that I have mouse and keyboard...

I did:
cd /etc/wpa_supplicant
dir               to verify the file was there
rm wpa_supplicant.conf
DIR              to verify it was gone

then sudo nano wpa_supplicant.conf
manually typed it all in again...
no clue how to save it so hit ctl-O and had to type in the name again
ctl-X to quit.

try to see it with:

ls -l wpa_supplicant.conf        nothing
head wpa_supplicant.conf       nothing
nano wpa_supplicant.conf        says "file wpa_supplicant.conf is unwritable"

hhahaha!!   THIs is enough to cause one to go INSANE!!!!!!!!!!!!!!!!!

maybe I should not be changing the file in this directory?
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Different platforms for X10 on the Raspberry Pi
« Reply #173 on: September 26, 2018, 04:01:20 PM »

I may go back to trying NOOBS install now that I have mouse and keyboard...

I did:
cd /etc/wpa_supplicant
dir               to verify the file was there
rm wpa_supplicant.conf
DIR              to verify it was gone

then sudo nano wpa_supplicant.conf
manually typed it all in again...
no clue how to save it so hit ctl-O and had to type in the name again
ctl-X to quit.

try to see it with:

ls -l wpa_supplicant.conf        nothing
head wpa_supplicant.conf       nothing
nano wpa_supplicant.conf        says "file wpa_supplicant.conf is unwritable"

hhahaha!!   THIs is enough to cause one to go INSANE!!!!!!!!!!!!!!!!!

maybe I should not be changing the file in this directory?

You can't just delete the wpa_supplicant.conf and add a new one. You must reimage the SD card if it was incorrectly created and executed.
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Different platforms for X10 on the Raspberry Pi
« Reply #174 on: September 26, 2018, 04:05:59 PM »

actually there is a wpa_supplicant command in /sbin that will rewrite it from the .conf file...

I am now trying using nano to write the file and blank SSH into /boot directory and reboot...
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Different platforms for X10 on the Raspberry Pi
« Reply #175 on: September 26, 2018, 04:08:49 PM »

When you finally get Raspbian Lite installed, login at the terminal and type sudo raspi-config, scroll through the menu until you find the wireless setup option. You can configure your wireless from there.
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Different platforms for X10 on the Raspberry Pi
« Reply #176 on: September 26, 2018, 04:10:46 PM »

actually there is a wpa_supplicant command in /sbin that will rewrite it from the .conf file...

I am now trying using nano to write the file and blank SSH into /boot directory and reboot...

Did you see how easy it is to do without having to use the supplicant file once you are logged in. Just posted above. This technique will autoscan all available networks and allow you to see what network you want to log into. Simple.
« Last Edit: September 26, 2018, 04:12:25 PM by petera »
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Different platforms for X10 on the Raspberry Pi
« Reply #177 on: September 26, 2018, 04:36:43 PM »

When you finally get Raspbian Lite installed, login at the terminal and type sudo raspi-config, scroll through the menu until you find the wireless setup option. You can configure your wireless from there.

NOPE.

I was there this morning once I got keyboard action.  Does not work!  THAT IS MY PROBLEM!@^%URG

Of course I can pick network then pick enter SSID and pw - it opens a window that says simply  "cannot access wpa_supplicant"

THIS IS WHAT I AM TRYING TO FIX. 

If  you look at a working pi you will see the wpa_supplicant.conf put into /boot moves to /etc/wpa_supplicant directory.  there it can be viewed.

When it works, it also  makes a directory as pointed to in the conf file itself under /var/run named wpa_suppliment.   

I am not getting that /var/run directory made.  I can type iwconfig and see there is no network setup.  It is not setting up wlan0 at all.
Logged

petera

  • PI Expert
  • Hero Member
  • ******
  • Helpful Post Rating: 27
  • Posts: 1751
Re: Different platforms for X10 on the Raspberry Pi
« Reply #178 on: September 26, 2018, 04:37:44 PM »

I may go back to trying NOOBS install now that I have mouse and keyboard...

I did:
cd /etc/wpa_supplicant
dir               to verify the file was there
rm wpa_supplicant.conf
DIR              to verify it was gone

then sudo nano wpa_supplicant.conf
manually typed it all in again...
no clue how to save it so hit ctl-O and had to type in the name again
ctl-X to quit.

try to see it with:

ls -l wpa_supplicant.conf        nothing
head wpa_supplicant.conf       nothing
nano wpa_supplicant.conf        says "file wpa_supplicant.conf is unwritable"

hhahaha!!   THIs is enough to cause one to go INSANE!!!!!!!!!!!!!!!!!

maybe I should not be changing the file in this directory?

.

You can't just delete the wpa_supplicant.conf and add a new one. You must reimage the SD card if it was incorrectly created and executed.

Mike, you cannot edit system files using Nano. You need to sudo nano at all times. Sudo gives you the correct permissions
« Last Edit: September 26, 2018, 04:41:24 PM by petera »
Logged

mike

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 1057
Re: Different platforms for X10 on the Raspberry Pi
« Reply #179 on: September 26, 2018, 04:44:38 PM »

it tells me if I forget to use sudo.  I am well past that stuff.

I can type in a perfect wpa_supplicant.conf file to either /boot or /etc/wpa_supplicant directories, it moves them, it just does not use them to configure wlan0 so I have no wifi.

NOOBS tomorrow.   this is rediculous
Logged
Pages: 1 ... 10 11 [12] 13 14 ... 17
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.