cornpie
Posts: 92
Joined: Sun Aug 18, 2013 6:09 pm

Ad-hoc network [solved]

Thu Sep 04, 2014 7:55 pm

I'm trying to get an ad-hoc network running on the pi to use vnc on the go, but there is a part in the guide I'm using
( http://spin.atomicobject.com/2013/04/22 ... unication/ ) that tells me to add a script to the interfaces file. But, when I add it to the pre-existing script it can't read the interfaces file and when I delete it (the pre-existing script) it can't connect to wifi anymore.
What am I supposed to do?
Last edited by cornpie on Mon Sep 08, 2014 10:26 pm, edited 1 time in total.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Ad-hoc network

Thu Sep 04, 2014 8:47 pm

Can you paste your interfaces file?
There are 10 types of people: those who understand binary and those who don't.

cornpie
Posts: 92
Joined: Sun Aug 18, 2013 6:09 pm

Re: Ad-hoc network

Thu Sep 04, 2014 9:44 pm

The base script for the interfaces file (located in the directory /etc/network/) is:
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Ad-hoc network

Fri Sep 05, 2014 11:28 am

Looks fine. Post the output of wpa supplicant also, please.
There are 10 types of people: those who understand binary and those who don't.

cornpie
Posts: 92
Joined: Sun Aug 18, 2013 6:09 pm

Re: Ad-hoc network

Sat Sep 06, 2014 11:23 pm

I'm not sure what you think I am trying to do. I want to edit the interfaces file to change it to the one in the link but when I do the wifi stops working. I'm trying to figure out what I did wrong there.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Ad-hoc network

Sun Sep 07, 2014 12:53 am

Sorry, didn't read the entire question. :oops: When you say that it cannot read the interfaces file anymore. Also, when you delete the interfaces file, did you rename the backup file (per the instructions) back to the original file name. If you want to use the raspberry pi as a router, refer to these instructions (http://jacobsalmela.com/raspberry-pi-an ... -a-router/). Also remember that in order to ssh into the raspberry pi, you need to connect to the network, since it will disconnect from the one it was on.
There are 10 types of people: those who understand binary and those who don't.

cornpie
Posts: 92
Joined: Sun Aug 18, 2013 6:09 pm

Re: Ad-hoc network

Sun Sep 07, 2014 12:57 am

I'm confused by what you mean when you say delete the original file. When I messed up I would just put a new image on the sd card, but now that I think of it my way of dealing with the mess up might not have been the smartest, anyway right now I have a fresh image so I won't need to delete any messed up files.

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Ad-hoc network

Sun Sep 07, 2014 1:04 am

Above you said that you deleted the interface file. Anyways, you do know that the raspberry pi will not be able to access another network other than its own without another dongle or Ethernet?
There are 10 types of people: those who understand binary and those who don't.

cornpie
Posts: 92
Joined: Sun Aug 18, 2013 6:09 pm

Re: Ad-hoc network

Sun Sep 07, 2014 10:54 am

I said edit not delete, you can see in the guide ( http://spin.atomicobject.com/2013/04/22 ... unication/ ) what it has to be edited to. My wifi dongle can transmit as well as receive. My problem is that when I edit I do the wrong thing and end up no being able to do anything.

cornpie
Posts: 92
Joined: Sun Aug 18, 2013 6:09 pm

Re: Ad-hoc network

Mon Sep 08, 2014 9:06 pm

Wait never mind I got everything sorted out.

Return to “Troubleshooting”