/episodethree/ - Episode Three
Worth the weight!
(for post/file deletion)
Sun, June 16, 2019 20:18 PM
Hi! I see you have done lots of work on GoChan- its really nice. All the new chans are too complicated with 100000 unwanted and unused options. GoChan is simple, not overly complicated for the user which is awesome.
SO- I am looking to switch from lynxchan to gochan. I can make any type of server on digital ocean hosting. I have never used golang yet- can you say what type of server would be best to start, and then how to install GoChan on it?
Tue, June 18, 2019 05:29 AM
If you already have a server, that should be good enough. Gochan doesn't really require a whole lot, and since it's a native executable (plus templates and static served files) you don't need to have PHP or ImageMagick/gd installed like most other imageboards. You only need to install Go(lang) if you're going to be building it from source, as with any other compiled program.
The latest release requires MySQL but the latest commit to the GitHub repo added support for PostgreSQL and SQLite. I'm currently creating a new build script to handle some of the changes so if you are going to switch, I'd wait for the 2.8 release. I should be able to finish it today.
Unfortunately, I don't have a way for you to "translate" your lynxchan database schema to a gochan compatible one so you'll be effectively starting from scratch.
For installation, it's fairly simple. At the moment it requires that you have a SQL user and database ready (unless you're using SQLite, in which case you just need to specify where the database file should go).
Then copy or move gochan.example.json to gochan.json. if you're using MySQL, set "DBtype" to "mysql" in gochan.json. If you're using PostgreSQL, set it to "postgresql", or if you're using SQLite, set it to "sqlite3".
If you're using MySQL or PostgreSQL and are connecting to your SQL server via a URL, set "DBhost" to (for example), "tcp(127.0.0.1:3306)". If you're connecting through a UNIX socket, set it to (for example) "unix(/var/run/mysqld/mysqld.sock)". Or if you're using SQLite, just set it to the path of the database file. If it doesn't already exist, it will be created when gochan is first run.
When you first start gochan, it will create an admin user and a /test/ board. From there, you can create new boards at http://yoursite.com/manage?action=boards and new staff members at http://yoursite.com/manage?action=staff
For security reasons, you should probably create a new administrator account and delete the default one.
Tue, June 25, 2019 00:02 AM
- (1.37 MB , 1080x1080, 13bca2d851559db53b7d7ff63e784c432c475baa58b176fc0460bef05b1c8bc5.png)
Ugh... i could not figure it out. Any chance you could make an install tutorial for dummies? It would help people new to Go like me. I would pay you whatever you want to make the tutorial.
Wed, June 26, 2019 22:38 PM
Sorry you're having trouble. I've been meaning to write a full installation tutorial and/or installation script to make it easier. You normally shouldn't need to install Go unless you want to contribute to development, and if you're unfamiliar with Go, you probably won't be able to get much done.
How far did you get, and what error(s) are you seeing?