Skip to content

Commit

Permalink
Updated readme with sshtoggled info
Browse files Browse the repository at this point in the history
  • Loading branch information
Praseetha-KR committed Oct 12, 2019
1 parent 15e20f9 commit 807a151
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img src="sshtogglepreferences/Resources/[email protected]" alt="logo" width="75px" height="75px" style="margin-top: 1em">
<img src="sshtoggle/sshtogglepreferences/Resources/[email protected]" alt="logo" width="75px" height="75px" style="margin-top: 1em">
<h1>sshtoggle</h1>
<h4>A MobileSubstrate tweak to start/stop SSH daemon</h4>
</div>
Expand All @@ -9,23 +9,28 @@
1. PreferenceLoader
2. Sudo

### Pre-requisites
- Edit `/etc/sudoers` to include:

```conf
mobile ALL=(ALL) NOPASSWD:/bin/launchctl
```

### Install

Get the latest version from [releases](https://github.com/Praseetha-KR/sshtoggle/releases)
`sshtoggle` tweak also has `sshtoggled` daemon dependency.

Get the latest version for both tweak & daemon from the [releases](https://github.com/Praseetha-KR/sshtoggle/releases) page

```bash
$ ssh root@<device_ip>

curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.1/in.imagineer.sshtoggle_0.0.1_iphoneos-arm.deb?raw=true -O
# daemon
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.2/in.imagineer.sshtoggled_0.0.2_iphoneos-arm.deb?raw=true -O

dpkg -i in.imagineer.sshtoggled_0.0.2_iphoneos-arm.deb\?raw\=true

launchctl load -w /Library/LaunchDaemons/in.imagineer.sshtoggled.plist


# tweak
curl -sSL https://github.com/Praseetha-KR/sshtoggle/releases/download/0.0.2/in.imagineer.sshtoggle_0.0.2_iphoneos-arm.deb?raw=true -O

dpkg -i in.imagineer.sshtoggle_0.0.1_iphoneos-arm.deb\?raw\=true
dpkg -i in.imagineer.sshtoggle_0.0.2_iphoneos-arm.deb\?raw\=true

killall -9 backboardd
```
Expand All @@ -43,8 +48,17 @@ Now SSH Toggle settings will appear in iOS Settings. You can turn OFF/ON the SSH
#### Tools:
- [theos](https://github.com/theos/theos/wiki/Installation)

#### build:
#### Initial Setup:

```
THEOS_DEVICE_IP=<ip> make package install
sudo ./scripts/setup.sh
```
> Setup script installs [fauxsu](https://github.com/DHowett/fauxsu) inside theos directory, this is equired to set ownership of generated `.deb` files from system user to `root:wheel`
#### build & install:

```
export THEOS_DEVICE_IP=<ip>
./scripts/install.sh
```

0 comments on commit 807a151

Please sign in to comment.