These are chat archives for Nithmr/ProxyHelper

21st
Jun 2016
Utkarsh Raj
@clearnote01
Jun 21 2016 16:06
Duty update: ProxyHelper broke my OS!! While I was hacking around trying to fix the automatic run issue, the script ended up deleting my environment PATH. And turn out sudo requires PATH to work at all, so I thought a restart would fix this, but turns out it won't BOOT at all. So eventually I had to boot from USB and edit environment file to get my OS to boot.
Akarshit Wal
@Akarshit
Jun 21 2016 16:08
o_O
Akshendra Pratap Singh
@akshendra
Jun 21 2016 16:08
So it's working now, your system?
Utkarsh Raj
@clearnote01
Jun 21 2016 16:08
Well, so it was a terrible instance of what could go wrong when you give sudo access to a script. While the master in ProxyHelper should not cause any issue, I think I'll have to recheck them... all the regex... so this kind of thing would never happen to anyone
Yeah, I had to boot from USB and edit environment file ;-;
Akarshit Wal
@Akarshit
Jun 21 2016 16:10
OK cool
Let me know when you have a working system(from the HD)
Utkarsh Raj
@clearnote01
Jun 21 2016 16:11
HD?
Akarshit Wal
@Akarshit
Jun 21 2016 16:11
hard disk
Utkarsh Raj
@clearnote01
Jun 21 2016 16:11
btw... I sent a pull req with...
the latest torpinger modifications, you can accept it
Akarshit Wal
@Akarshit
Jun 21 2016 16:12
OK cool merging it right now.
Utkarsh Raj
@clearnote01
Jun 21 2016 16:12
i am on it now. i booted on USB andd edited env file on HD. and voila! it booted up all right! thankfully X D
Akarshit Wal
@Akarshit
Jun 21 2016 16:13
I think we have fixed #9 then
Do you currently have some task to work on?
Utkarsh Raj
@clearnote01
Jun 21 2016 16:15
Yeah the current commit fixed it all right, you can close
#9
Akarshit Wal
@Akarshit
Jun 21 2016 16:16
Do you currently have some task to work on?
Utkarsh Raj
@clearnote01
Jun 21 2016 16:16
Well, as I said torping currently doesn't start automatically like parallel_pinging, I was trying to fix that, when I broke my system...
Well, yes, but I could handle another task
Akarshit Wal
@Akarshit
Jun 21 2016 16:17
OK cool then all the best with that.
Utkarsh Raj
@clearnote01
Jun 21 2016 16:17
Automatic running is not going that good
What should we add next ? : ]
Akarshit Wal
@Akarshit
Jun 21 2016 16:17
OK if you have any doubts you can tell us. We might try looking into it.
Utkarsh Raj
@clearnote01
Jun 21 2016 16:18
Well, I think i can do it... with some patience it might resolve : ]
I think I can multitask, is there another feature you suggest?
which I can work on?
Akarshit Wal
@Akarshit
Jun 21 2016 16:21
OK so the next task is #11
It might be a interesting task
The basic idea should be to store the version of the software on the server and on start download that file, match the version
And if the version is found out be old, then the PH needs to be updates.
To update just clone the code from github, remove the .git file, give the permission to the new script, run the new script, delete the old script from the new script.
Utkarsh Raj
@clearnote01
Jun 21 2016 16:23
cool
doesn't seem to be a tough task
the only issue would be making
it run automatically
Akarshit Wal
@Akarshit
Jun 21 2016 16:24
It seems really cool to me. Lot things to learn
Utkarsh Raj
@clearnote01
Jun 21 2016 16:25
I think this routine should be performed int the
proxy_setter script itself, so after we have set proxy in environment
Akarshit Wal
@Akarshit
Jun 21 2016 16:25
Meanwhile I will be making a list of software we need to explicitily set proxy for(like git, npm, etc.) so that whenever we change the proxy, proxies for these are also exported.
Utkarsh Raj
@clearnote01
Jun 21 2016 16:25
all the update will take place
Yeah!!!! that would be great
and later we can try to tunnel git,etc through tor network as well
cool
Akarshit Wal
@Akarshit
Jun 21 2016 16:26
make a different script for this and call this from the proxy_setter, beacuse me might decide to give the option to the user to turn off the auto update
Yes we can try that too.
Utkarsh Raj
@clearnote01
Jun 21 2016 16:27
nice
btw learning version control would be interesting...
like how it compares, etc... looks nice : ]
Akarshit Wal
@Akarshit
Jun 21 2016 16:28
You don't need to learn Git at all for this
Utkarsh Raj
@clearnote01
Jun 21 2016 16:29
umm??
i didn't get you
Akarshit Wal
@Akarshit
Jun 21 2016 16:30
For what are you planning to use git here ?
Utkarsh Raj
@clearnote01
Jun 21 2016 16:33
Nah, I was just talking that git,npm, etc tools should have auto config for tor setting as well
Akarshit Wal
@Akarshit
Jun 21 2016 16:34
OK I though you were planning on using that to somehow merge the codes on update instead of downloading and deleting.
Utkarsh Raj
@clearnote01
Jun 21 2016 16:35
nah, that is over complication of this... : P
though I really don't hv any idea how to version control..
like how to compare installed version with version on github... etc
google.com for the rescue hehe
Akarshit Wal
@Akarshit
Jun 21 2016 16:36
Haha ya for sure.
Utkarsh Raj
@clearnote01
Jun 21 2016 19:24
Automatic tor pinging in the background works now (...finally!)
I will be doing some work on README now, for better presentation of the project and its features : )
Akarshit Wal
@Akarshit
Jun 21 2016 19:32
What was the problem?
Utkarsh Raj
@clearnote01
Jun 21 2016 21:22
Nithmr/ProxyHelper#14
I don't know... it was some limitation of if-up.d (??) I was running the torpinging script from another bash script and didn't work, but then I completely isolated torpinging from proxy_set and it... just worked!
Btw, I made README a hell lot nicer!!!
Please review the pull request : )
Utkarsh Raj
@clearnote01
Jun 21 2016 21:29
Also... There are some typos here, will fix that later