oblique / create_ap

[NOT MAINTAINED] This script creates a NATed or Bridged WiFi Access Point.
BSD 2-Clause "Simplified" License
4.45k stars 1k forks source link

Starting from console it takes my one/only console away. Start on boot solution??? #262

Open humblewizard opened 7 years ago

humblewizard commented 7 years ago

I'm trying to get rid of my GUI/monitor and just use a serial port/terminal to control my server. Starting my hotspot takes over the console and I still need to talk to the server. This may be linux 101 that I don't understand.

Here is the batch I use to start the hotspot:

#!/bin/bash
echo "_password_" | sudo -S iptables -F
sudo iptables -t nat -F
sudo iptables-restore < /home/bob/iptables.save
sudo nmcli nm wifi off
sudo rfkill unblock wlan
sudo create_ap wlan0 eth0 TimeBandit

I wouldn't mind using systemd to start on boot but I don't think it does shell scripts???

humblewizard commented 7 years ago

I found SCREEN. It takes care of my immediate question. Still pretty clumsy but I don't have to have an extra monitor setting on my navstation. I need to figure out how to make that batch file run at boot.

ghost commented 7 years ago

Simple linux bash skills solve this problem.

nohup command +space+& 2>&1 /dev/null

you can google them

ghost commented 7 years ago

and

control+z bg