Hello folks,
after a few weeks of reading and searching all over the internet, and doing some test of what I want to do, i gave up, and decided to come here and ask for some help / guidance.
What I am pretend to do is similar to what this gentleman "Yunpeng Han" did for his master thesis. here the link https://brage.bibsys.no/xmlui/bitstream ... sequence=1
basically I want to do the same on tp-link router tl-Mr3040 that I already have installed gargoyle, i want to add as start point the same web pages as he added to the his project, my understanding is that he first upload the gargoyle firmware. .
.quote from his thesis page26 [The
next step is to add our simple own page into the system.
The idea of gargoyle interface for OpenWrt is to do computation on the client side to make
operations faster and reduce delay. Majority of gargoyle is implemented as Javascript. Source files
for the javascript are saved at /www/js directory to provide functions. The server-side, which is
the router in our case, will do necessary scripting using haserl [18] , a very lightweight utility that
enables the embedding of linux shell script into html files. Those html/haserl scripts are saved as
*.sh files in the /www directory which manage the display of the interface with actions done by
functions described in related javascript files as *.js. Several large pages that have complex display
2
CHAPTER 4. IMPLEMENTATION
structure have template files written in html and saved as *.css, which can be directly used with the
features defined in it. For the web page structure, as header/footer/menu code is generated from the
config file in directory /etc/config/gargoyle. ] end quote
this part is where I am king of lost.. I am not sure how to do that I meant to upload the new web pages interface. No sure if is possible to do that all that job and embedded the changes on the gargoyle bin file .. maybe that is more difficult for noob like me.
the good is that the source code for his project is n the link ahead and this other part where I would like someone that love to help and teach people like me .. half lost . how to use that code .. import that code to GitHub.. in other to see more clear all the modification that this gentleman did . so i may compare to the original gargoyle web interface.. LInk to the source code-->https://code.google.com/archive/p/home-internet-cafe/
the problem is i did not find a way to import that code from codegoogle to GitHub. I downoad to my pc i was able to se some of the files that he did modified inside the folder trunk/files are 3 folders that have files that have diferent code compate to what I have in my current gargoyle version on my router..
I already installed a computer with Ubuntu to be able to compile the gargoyle.. openwrt source codes images.. I am learning all that.. but still far to do something solid.
I maybe asking too much help. but any way I would like to try see if someone is wiling to help.
thanks very much for your time. hope some one may guide me..
once again thanks..
Luisgcu
Help (home internet cafe) that someone did .
Moderator: Moderators
Re: Help (home internet cafe) that someone did .
You can achieve everything this person did using the stock interface. Is there a particular aspect you were missing, or a particular reason you wanted to copy his implementation?
If you want to compare the code, you need to "diff" the individual files.
Note that his project was based on a very early gargoyle implementation and therefore a significant amount will have changed and his code is probably increasingly irrelevant.
I would recommend modifying the files on the router while testing, and later compiling them into a new bin when happy. There are several tutorials on accessing the router.
viewtopic.php?f=8&t=8505
If you want to compare the code, you need to "diff" the individual files.
Note that his project was based on a very early gargoyle implementation and therefore a significant amount will have changed and his code is probably increasingly irrelevant.
I would recommend modifying the files on the router while testing, and later compiling them into a new bin when happy. There are several tutorials on accessing the router.
viewtopic.php?f=8&t=8505
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Help (home internet cafe) that someone did .
Hello Lantis,
thanks for your quick help.
I already learn how to get access to the router using ssh and SCP, I am familiar navigating across all the folder inside the router.
so my understanding is that the files that this gentleman modified are inside etc, usr, and www, I believe can identify all the files modified (shell and js scripts and config files) .. the question is if I just may replace the original files while connect using SCP?
2 days ago I tried that, but I was unable to copy all because I run out of space.. and some file was impossible to replace because it was write protected i guess.. or maybe in use .. ( bu the way when I did that I was able to see that I messed up the web interface, so i have do a so i did software reset to brig all back to normal..)
So now I am not sure what is your suggestion or approach that I may follow if i want to try replacing files inside those folder, i just want to see how the changes affect the web interface..
Thanks you.
thanks for your quick help.
I already learn how to get access to the router using ssh and SCP, I am familiar navigating across all the folder inside the router.
so my understanding is that the files that this gentleman modified are inside etc, usr, and www, I believe can identify all the files modified (shell and js scripts and config files) .. the question is if I just may replace the original files while connect using SCP?
2 days ago I tried that, but I was unable to copy all because I run out of space.. and some file was impossible to replace because it was write protected i guess.. or maybe in use .. ( bu the way when I did that I was able to see that I messed up the web interface, so i have do a so i did software reset to brig all back to normal..)
So now I am not sure what is your suggestion or approach that I may follow if i want to try replacing files inside those folder, i just want to see how the changes affect the web interface..
Thanks you.
Last edited by luisgcu on Wed Aug 31, 2016 9:03 am, edited 1 time in total.
Re: Help (home internet cafe) that someone did .
You have a router with limited flash space so replacing files may not go as smoothly as you hope.
Perhaps modifying the contents of the files directly rather than trying to replace the whole file will work.
Perhaps modifying the contents of the files directly rather than trying to replace the whole file will work.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
Please be respectful when posting. I do this in my free time on a volunteer basis.
Re: Help (home internet cafe) that someone did .
thanks for that tip.. i will try to do extroot, and take advantage of the USB port.. if that wasn't work , i will try to replace the ram and flash memory.. already see some tutorials on how to do that..
I will try to keep posting updates of the progress just in case someone needed.
I will try to keep posting updates of the progress just in case someone needed.