create_ap icon indicating copy to clipboard operation
create_ap copied to clipboard

Start on Boot

Open Rondoshiva opened this issue 7 years ago • 12 comments

First Great Toll ( for me Beginner)

Can Somebody tell me how i Start a on every Boot a Ap without Internet sharing?

I dont Unstrstand how I write my Conifg Files create_ap -n wlan0 MyAccessPoint MyPassPhrase in systemd

Thx

Rondoshiva avatar Mar 01 '17 17:03 Rondoshiva

Really a great tool. Saved me a lot of trouble.

I'm using create_ap in a similar way to yours in that's what I did to Start ist on every Boot:

  1. Maybe backup old config file (/etc/create_ap.conf)
  2. Create a config with create_ap -n wlan0 MyAccessPoint MyPassPhrase --mkconfig /etc/create_ap.conf
  3. Start the systemd service systemctl start create_ap
  4. Enable the service for start on Boot systemctl enable create_ap

AnianZ avatar Apr 06 '17 13:04 AnianZ

I think @AnianZ 's response should be added to the main README.

mustafababil avatar May 31 '17 08:05 mustafababil

@mustafababil It already is inside the readme: https://github.com/oblique/create_ap#start-service-immediately

You can edit the config file yourself at /etc/create_ap which is all self explaining similar to the command line parameters. Nothing to add here.

NicoHood avatar May 31 '17 13:05 NicoHood

@NicoHood I do agree with @mustafababil that this would be a well suited addition readme. Perfectly fit for the section you referenced.

Currently the readme doesn't mention anything about how to create configuration files or more importantly the default config file location.

I was in search of just those items when I happened upon this issue. I found those points in @AnianZ response immensely helpful. Saved me time.

roark avatar Jun 08 '17 14:06 roark

agreed, having a section on creating a persistent config would be helpfull!

Gibbz avatar Aug 05 '17 04:08 Gibbz

really will help - now it is not clear how to start AP with your settings on boot

PoMkaNik avatar Jan 14 '18 09:01 PoMkaNik

@Well I have added @AnianZ config to my Local README file :) Thanks @AnianZ

azak00 avatar Apr 17 '18 14:04 azak00

@AnianZ you are the king, I can finally get rid of an extra keyboard and mouse on my desk, now that the AP starts on boot thanks to your info I can just ssh into my raspberry. Thanks!

ivanfremn avatar Aug 12 '18 20:08 ivanfremn

I wanted to start the access point with no internet sharing and with static IP and auto start it at boot, so that the client devices can access the web server running on the linux.

To auto start the access point, some expert on this platform stated the following method.

edit /usr/lib/systemd/system/create_ap.service

Change “ExecStart” ,E.g: ExecStart=/usr/bin/create_ap -g My_Static_IP -n My_network_interface My_SSID --daemon --config /etc/create_ap.conf

then,execute the following command:

systemctl daemon-reload systemctl enable create_ap.service systemctl start create_ap.service

It worked fine and on every reboot, I am getting the AccessPoint but the client devices that try to connect to the access point do not get the correct IP but some random 169.xx.xx.xx series IP address with no subnet mask mentioned. When i open the terminal and just type Sudo Bash and type my root password, immediately the client devices get the correct (desired) IP addresses i.e. 192.168.100.xx
Somehow the service is not loading as a root user. I am using LXDE desktop environment on Ubuntu 18.04.2 with kernal 4.4.167-1138 (Ayufan build ). What modification and where i should do , to make the create_ap load with root privileges for all the services it is using in the background to create the access point .. Time is critical .. please help ..

hearthrob avatar Mar 27 '19 11:03 hearthrob

AnianZ , u are a life saveeeer <3

Thank you so much, I literally have searched for that every f*** web page on the internet. and noting!

till, I found this, thanks again you saved me, and I sign up on github just to write you this. I swear

Ed-09 avatar Mar 29 '20 03:03 Ed-09

@Ed-09 Maybe you should read the readme first, before searching online. What is missing here exactly? https://github.com/oblique/create_ap#start-service-immediately

NicoHood avatar Apr 23 '20 19:04 NicoHood

@NicoHood What is missing ? The mustafabil response... Start the service required to edit /etc/create_ap.conf or why bother editing manually a file when a command can do it quickly ?

KianoJ avatar Jul 18 '20 09:07 KianoJ