/l/ - The Lounge

Non board-specific discussion

[Make a Post]
[X]





Nanonymous No.11353 [D][S][L][A][C] >>11354

I'm serious: what if I wanted to create my own nano instance?
I think I would have to:
>configure Tor, set address, ports etc
>install and configure nginx
and what next? How to work with Lua script? With Tinyboard I would have to install it and run, but what about nano? I would like to just have basic knowledge of hosting hidden service (or any service).

Nanonymous No.11354 [D][U][F] >>11355
File: a3240439ff325b08f2b0312dd822e8f0b544f01de16c820157a533e87b32d2c7.jpg (dl) (185.38 KiB)

>>11353
This question is best answered with nano source code, I guess.
Like that source.lua script is what considered to be a web backend application, if I got my words right.
Anyway, industrial-grade web servers, like Apache or Nginx, have some interfaces to interact with actual applications (in our case it's a rather simple script), CGI, FastCGI, whatever.
Also that script communicates to a DB (I think it's sqlite for Nano), which is a separate application or at least some library to make actual calls to.

Anyway, I'm sorry I'm not helpful, but that's because I'm too lazy to actually read Hakase's code and because I believe I don't have to be [helpful]. This thread belongs in some sort of "what manual do I read to understand this", and that would be "Lua Reference Guide" (or something xD), "Apache Manual", "Nginx Manual", "CGI". As for onion services, again, the Tor site probably has all the information publicly available.

Nanonymous No.11355 [D]

>>11354
I wish there was script "install_nanochan.sh" where after clicking whole site would get installed and be ready to use.

Nanonymous No.11356 [D] >>11358

As someone who's hosted nanochan myself a month or so ago, what you need is a cgi capable webserver, configure it, fulfill the dependencies within the source code, and set up the hidden server. Then there's probably some environment related bugs that you have to solve by digging into the source code yourself. And when I was done, there's still some features of nanochan missing. I don't have the time to do a write-up on the steps I took, so this is all I'm gonna say on it.
And this thread belongs in /g/ faggot

Nanonymous No.11358 [D] >>11359

>>11356
It's too much work without guarantee it will work. What a shame.

Nanonymous No.11359 [D]

>>11358
maybe stop being lazy and learn stuff instead of asking for spoonfeeding

Nanonymous No.11363 [D]

It's just a CGI script.

Nanonymous No.11367 [D][U][F] >>11368
File: e57c2142bbed69282eeb47912828dbdaa2dd460dc0d08257b56c0a2e0410f645.jpg (dl) (25.96 KiB)

>download source
>download lua
<lua nano.lua
>need some module called lsqlite
>install luarocks
<luarocks install lsqlite-complete
>need to install sqlite
>install sqlite
<luarocks install lsqlite-complete
>still telling me that sqlite isn't installed
>still can't make nano.lua run
>give up
>tfw to dumb to run nanochan

Nanonymous No.11368 [D]

>>11367
The package is called "lsqlite3", not lsqlite-complete.

Nanonymous No.11369 [D] >>11387

first learn how to host your own web service so that it can't get hacked

Nanonymous No.11387 [D][U][F]
File: 8a9f89ed861943389cea88c01f1684438f63a51e39fbea28368ed542fdf93ed7.jpg (dl) (194.54 KiB)

>>11369
This. You should learn how to program, and make your own imageboard software rather than use someone else's shit.