This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
easy installation script #287
Open
itsdarklikehell
wants to merge
19
commits into
oblique:master
Choose a base branch
from
itsdarklikehell:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bba7485
Create install.sh
itsdarklikehell a58e267
Update install.sh
itsdarklikehell af87c0f
Update install.sh
itsdarklikehell 0523b4a
Update install.sh
itsdarklikehell c5f0bdc
Update install.sh
itsdarklikehell bf817b0
Update README.md
itsdarklikehell 011b42d
Update README.md
itsdarklikehell 49e94c1
Update install.sh
itsdarklikehell 2883498
Update install.sh
itsdarklikehell cc81e09
modified: install.sh
53c3387
modified: install.sh
d01a6fd
modified: install.sh
7c229d5
Update install.sh
itsdarklikehell 12fd288
Update install.sh
itsdarklikehell 4f36056
Update install.sh
itsdarklikehell 20b6edc
Update install.sh
itsdarklikehell de81db0
Update install.sh
itsdarklikehell 7c94d36
Update install.sh
itsdarklikehell bdd3d1d
modified: install.sh
itsdarklikehell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
BSSID="h0tsp0t" | ||
WPA2PASS="supersecretpassword" | ||
DEPS="git build-essential bash util-linux procps hostapd iproute iw haveged dnsmasq isc-dhcp-server net-tools iptables" | ||
|
||
#################################################### | ||
### create_ap installation script made by rizzo ### | ||
#################################################### | ||
|
||
echo "installing dependencies" | ||
sudo apt-get install $DEPS | ||
|
||
cd ~ | ||
echo "cloning create_ap git" | ||
git clone https://github.com/itsdarklikehell/create_ap | ||
cd create_ap | ||
echo "installing create_ap from git clone" | ||
sudo make install | ||
|
||
echo "Please enter the internet interface (eth0, wlan0 or wlxxxxxxxxxx): " | ||
read INTER | ||
echo "Please enter the hotspot interface (wlan0 or wlxxxxxxxxxx): " | ||
read APFC | ||
echo "Please enter the BSSID network name: " | ||
read BSSID | ||
echo "Please enter the WPA2 Password to use: " | ||
read WPA2PASS | ||
|
||
#uncomment this to manually start create_ap with the $BBSID and $WPA2PASS provided at the start of this script | ||
cd ~/create_ap | ||
sudo create_ap $APFC $INTER $BSSID $WPA2PASS | ||
echo "" | ||
echo "there should now be a network called $BSSID on $APFC connected with $INTER now." | ||
read -rsp $'Press enter to continue...\n' | ||
|
||
echo "edit /etc/create_ap.conf to make a static config" | ||
echo "please make sure to set the right values." | ||
read -rsp $'Press enter to continue...\n' | ||
sudo nano /etc/create_ap.conf | ||
|
||
#uncomment this to make create_ap start at boot" | ||
echo "making create_ap start at boot" | ||
read -rsp $'Press enter to continue...\n' | ||
sudo systemctl enable create_ap | ||
|
||
#uncomment this to start create_ap with systemctl | ||
echo "starting create_ap now (with settings from /etc/create_ap.conf)" | ||
read -rsp $'Press enter to continue...\n' | ||
sudo systemctl start create_ap | ||
echo "if all succedded there should now be a network with the supplied config in /etc/create_ap.conf" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't want to pull this into oblique's repo :)