Commit Graph

77 Commits

Author SHA1 Message Date
Pranav Jerry 3354584045
updated installation instructions for debian
dasbus is now in debian repos. We no longer need to install it with pip
2022-09-13 10:12:04 +05:30
Pranav Jerry 72dda12d7b
renaming to pybatmesh
pybatmesh better describes the project and does not attract the
attention of caged investigation agencies, like it probably would have
before. I probably left traces of the original name somewhere, so this
commit will likely be followed by other commits to erase all traces of
the previous name
2022-07-23 15:58:32 +05:30
Pranav Jerry 38d0aa8ab5
not maintained anymore
If anyone is interested to takeover naxalnet, see #8
2022-02-04 12:51:07 +05:30
Pranav Jerry 5e58df0b71
temporary fix for #25
Uses multithreading.Process instead of GLib.timeout_add()

The moment I finished writing this part, I found out the only problem
with my previous commit was that I had setup the timeout _after_ calling
the blocking function wait_for_change instead of before it.

Although this version (with Process) works, I'm reverting to the
previous version and swapping the two lines (which I had tested and
found to work)

And in case you have read upto the previous line you should also know I
fixed some code in the README

TL;DR: I have proven once again I am an idiot
2021-11-29 14:36:59 +05:30
Pranav Jerry 28de9570b5
updated minimum debian version in README.md
I have added a comment on #20 about this
2021-11-08 21:20:24 +05:30
Pranav Jerry 009f6364cd
add xmpp channel to README.md and HACKING.md 2021-10-31 20:18:56 +05:30
Pranav Jerry a09ababd06
removed telegram group
We could use something else instead
2021-10-30 21:57:41 +05:30
Pranav Jerry 9749cf0c00
added telegram group and something else in README
Added Briar to the list in internet shutdown
2021-10-30 21:54:43 +05:30
Pranav Jerry 542347eac7 Updated use cases in README.md 2021-10-30 13:06:13 +00:00
Pranav Jerry 26a907d907
updated readme, changelog
prepare to merge to master
2021-10-22 13:20:09 +05:30
Pranav Jerry 295fde3f0b
added override service for wpa_supplicant
This probably isn't working like we want
2021-10-22 12:54:52 +05:30
Pranav Jerry c4933378ff
quick fix for #21
Added a couple of lines in the README until #21 is closed.
2021-10-22 11:02:53 +05:30
Pranav Jerry 0a85c465ee
added features section in README.md
And added some more info on adding bug reports.
See issue #20.
2021-10-15 16:05:06 +05:30
Pranav Jerry e56ff40495
improved documentation 2021-10-08 22:28:01 +05:30
Pranav Jerry 3b3644e107
updated install guide for Fedora in README.md
systemd-resolved is used by default, so there is no need to install it
in rawhide.
2021-10-06 19:27:32 +05:30
Pranav Jerry 65e1906753
added Makefile rule to build rpm
And updated README with the details. There is probably something missing
in the Fedora installation section
2021-10-05 15:04:19 +05:30
Pranav Jerry 6acd7084f2
made README better
Added info on how to check requirements
2021-10-05 12:06:50 +05:30
Pranav Jerry 61a96ea3b3
updated documentation and some other changes
Made messages printed in Makefile more understandable. Removed full path
of naxalnet from the systemd service. Now you can start naxalnet even if
it is installed in /usr/local/bin, if systemd allows (I have not tested
it). Many comments were made to respect the 80 chars per line rule.
And, of course, added some political commentary to insult the global
superpower (superpower in terms of money, military and something else I
forgot). And removed MANIFEST.in, which probably haven't changed anything.
2021-10-02 14:13:53 +05:30
Pranav Jerry a7304a986b
turn off all wifi devices at exit
This makes things easier to maintain, or so I hope.

Added more comments in files in systemd-networkd, made CHANGELOG.md
better, and updated the README.
2021-09-29 15:14:13 +05:30
Pranav Jerry c8f032a3d0
couple of changes, see full commit message
* make will now build every time naxalnet/__init__.py is changed.
* Changed content related to online classes in README.md. It seems online
  classes are a luxury even in urban areas in some parts of India.
* Added argument -V as alias for --verbose
2021-09-11 22:42:08 +05:30
Pranav Jerry 2a8930ce00
remove ipfs url from README.md
I don't use IPFS anymore. If anyone if willing to maintain a copy of
this repo on ipfs, send me an email.

Small change in CHANGELOG, and edited comments in systemd service.
And added a docstring to setup.py so the editor won't complain of
missing docstring anymore.
2021-09-10 11:42:18 +05:30
Pranav Jerry f9c969d233
updated README.md
Now that naxalnet is a daemon, there was some things which didn't make
sense anymore. So they were removed.
2021-09-08 15:52:14 +05:30
Pranav Jerry c638de4c9c
updated README, added pyproject.toml 2021-09-08 11:57:10 +05:30
Pranav Jerry ca1e721c9e
fixed logging issue and another bug
There was a problem with indentation which made the line starting adhoc
not being run at all.
Updated CHANGELOG
Moved some things to other places
log.py is back! It isn't needed, but it doesn't do any harm anyway.
2021-09-07 18:45:11 +05:30
Pranav Jerry ee341d6967
updated README.md
Made the requirements more clear
2021-09-04 20:00:00 +05:30
Pranav Jerry 3774076e03
updated README
Added new dependency python-systemd
2021-09-04 18:37:30 +05:30
Pranav Jerry 4db6d9457f
improved README, more logging 2021-09-04 11:53:08 +05:30
Pranav Jerry 09ea47e609
fixed typo in README.md 2021-08-23 10:52:08 +05:30
Pranav Jerry be8de69b73
updated README and Makefile
Added uninstall as dependency for purge in Makefile.
Changed pkexec and pkcon to sudo and apt and dnf
2021-08-19 12:03:20 +05:30
Pranav Jerry 7e0fe5ef4c
many changes -- see full commit message
The config file is now installed as /etc/naxalnet/naxalnet.conf.example
by default.
make uninstall now does not ask for confirmation. Added rule purge in
Makefile.
Updated the README.
Changed order of stop commands in service file.
Updated setup.cfg and docstrings.
2021-08-18 17:33:46 +05:30
Pranav Jerry 274f08cded
added install instructions for fedora and ubuntu
May not work, I have not tested it.
2021-08-18 15:34:07 +05:30
Pranav Jerry cf54edf9b9
updated README
Changed order of services to stop in section Stopping the service. This
is because while stopping naxalnet, the ExecStopPost line says to delete
two interfaces. But just before it is run, networkd is stopped. Running
the command will again start networkd, which is not what we need.
2021-08-16 21:32:57 +05:30
Pranav Jerry d18160c46c
disabled buffering in python
Buffering makes the systemd journal not show the logs at the right time.
And changed the systemd service file so that the new batman and bridge
interfaces are deleted when naxalnet.service is stopped. Also simplified
the Stopping section in the README because of this change.
2021-08-16 18:56:17 +05:30
Pranav Jerry 397269823d
almost ready for merge
* Improved CHANGELOG, README, HACKING
* Added naxalnet.conf containing default values. This will be installed
along with the package.
2021-08-15 15:02:28 +05:30
Pranav Jerry d7a9edc1e8
many changes -- read full commit
* Improved docstrings, README
* Added argument --version and its implementation
* Added "uninstall" rule to Makefile and added it in the README
* Updated CHANGELOG
* Cleaned up code

I've probably forgot something so we can't merge to master yet.
And we still have to add installation instructions for ubuntu and fedora
2021-08-14 22:00:07 +05:30
Pranav Jerry fe146b7a0d
added implementation of --print-wifi
And added it to the README.
Cleaned up the docstring in naxalnet/__main__.py
2021-08-13 12:30:30 +05:30
Pranav Jerry b50d0e3656
made README and HACKING.md more readable 2021-08-13 11:32:42 +05:30
Pranav Jerry 90464f0304
made how it works section more legible in README.md 2021-08-10 13:20:27 +05:30
Pranav Jerry e24ff03e0c
Updated how it works section in README.md 2021-08-09 21:46:10 +05:30
Pranav Jerry 2f97bab5cf
changed README.md
Changed the section on internet shutdowns.
Let's see if anyone actually reads the README in source form.
2021-08-09 20:06:57 +05:30
Pranav Jerry a798ac8051
improved README.md
And added a new argument (not implemented) in scripts.py
2021-08-09 12:54:41 +05:30
Pranav Jerry fb4b11b9fd
added link to internetshutdowns.in in README.md 2021-08-08 22:20:05 +05:30
Pranav Jerry df73f94018
Added alt text to some links in README.md
And removed a sentence in manual installation section
2021-08-02 18:26:14 +05:30
Pranav Jerry 3d63ddd2d2
Fixed typo in README.md
Forgot a space after comma
2021-08-02 18:13:32 +05:30
Pranav Jerry f55fc74ad4
added PYTHON variable in Makefile
This should be used if the python executable is not python3 in your
distro.

I would like to express my displeasure to the Government of India for
not including me in the list of targets for Pegasus, even though I'm
convinced I am a threat to the sovereignty and integrity of the nation
2021-08-01 16:58:48 +05:30
Pranav Jerry 16dff8bb49
added support for arguments
Try naxalnet --help to see help
2021-07-30 17:56:33 +05:30
Pranav Jerry 946d20a72c
Fixed typo and improved README (again) 2021-07-29 22:44:01 +05:30
Pranav Jerry 7b7ce8044b
improved README
Let's see if anyone reads the comments :)
Changed python to python3 in Makefile
2021-07-29 22:36:53 +05:30
Pranav Jerry 5068250ad6
added link to HACKING.md in README.md 2021-07-26 16:08:36 +05:30
Pranav Jerry 86042b9852
uncommented IPNS address 2021-07-26 12:48:45 +05:30