TheOldNet.com is a website that lets users browse the internet like it was the 90's again. It uses the Internet Archive Way Back Machine and strips out all moderns code to allow vintage computers to participate.
TheOldNet.com BBS allows users of the Commodore 64 combined with a WIFI Modem to experience text based web browsing of TheOldNet.com.
This BBS was build upon the amazing work of the PETSCII-BBS project sblendorio/petscii-bbs
The current state of the project is a text only browser with the ability to follow links. Future hope are for a image transcoder that reduces high resolution images down to low resolution PETSCII graphics.
There are two additional features:
- A BBS directory/phonebook. It retrives information from the C64 BBS Outpost website and displays the phonebook on the BBS
- Real time chat. Unlike BBS's which were usually single tenant (one phone line). This BBS is multitenant and there is a basic chat room.
--Original Readme---------------------------------------------------------------------------------------------------------
A Java framework for building highly customizable PETSCII-enabled BBSes, accessible from 8-bit Commodore computers
This framework provides base classes for build your own BBS in PETSCII mode, accessibile through:
- a Commodore 64 with a RR-NET compatible card, running KipperTerm
- a Commodore 64 with a WiFi modem card, running CCGMS
- a Commodore 64/128 with a 1541Ultimate, running UltimateTerm
- an Ultimate 64, running UltimateTerm
- a Commodore 64 with an Easy Flash 3 (with CCGMS-EF) + a PC running EF3USB
- a common PC/Mac running SyncTerm (ConnectionType=Telnet, ScreenMode=C64)
- Java Development Kit (JDK) and JRE version 1.7+
- A machine that will act as server
- Knowledge of Java language (compiler version 1.7+)
- BASIC TCP/IP concepts
- Knowledge of PETSCII encoding
Let's suppose to build a very simple BBS that asks your name welcomes you. The basic operation is to extend PetsciiThread class implementing doLoop() method, such as:
public class WelcomeBBS extends PetsciiThread {
// NEVER forget default (empty) constructor
public WelcomeBBS() {}
@Override
public void doLoop() throws Exception {
// clear screen
cls();
println("This is your brand-new BBS");
println();
print("Enter your name: ");
// flush output
flush();
// clear input buffer
resetInput();
String name = readLine();
println();
println("Welcome, " + name + "!");
println("Press a key to exit");
flush();
readKey();
}
}
this piece of code is enough to create a fully-functional but pretty simple BBS. The result will look like this:
All you have to do now is to build and run the BBS on your server, ready to be called by a PETSCII-enabled terminal client. Let's see how to do it in the following sections.
Once you have written your own BBS as an extension of PetsciiThread class, simply build the fat jar with this command:
mvn package
The build process will result in the file petscii-bbs-1.0-SNAPSHOT.jar, it will be found in the target directory. So you can run it with:
java -jar target/petscii-bbs-1.0-SNAPSHOT.jar
Running the server with no parameters, a help screen will be displayed:
usage: target/petscii-bbs-1.0-SNAPSHOT.jar
-b,--bbs <arg> Run specific BBS (mandatory - see list below)
-h,--help Displays help
-p,--port <arg> TCP port used by server process (default 6510)
-t,--timeout <arg> Socket timeout in millis (default 60 minutes)
List of available BBS:
* ...
* WelcomeBBS
So we can rename the -jar file in bbs.jar, and the basic syntax for running our sample BBS is:
java -jar bbs.jar -b WelcomeBBS
by default, the port where the service will run is 6510 and the timeout is 3600000 milliseconds (1 hour). We can change those parameters with -p and -t switches:
java -jar bbs.jar -b WelcomeBBS -p 8088 -t 7200000
(so the port will be 8088 with a timeout of 2 hours)
This .jar is intended to be a server process: it has to run all time. So, it's a good thing to run it in background if you use a UNIX shell using nohup command with bash "&" operator:
nohup java -jar bbs.jar -b WelcomeBBS &
It's VERY important not to forget the final & symbol to keep it running. After launching that, you can logoff from your server.
It's a plain process, so use plain ps and kill commands. If this jar is the only one running on your server, this command will do the work:
killall java
You can study the sample BBSes (all classes that extend PetsciiThread) in the package eu.sblendorio.bbs.tenants as example of complete task. The package includes some proxies for accessing WordPress sites through Commodore 64 and a two classic strategy games (tic-tac-toe and connect-4)
- bbs.sblendorio.eu - port 6510
- bbs.retrocampus.com - port 8086
Thanks to:
- Brian W. Howell for the tic-tac-toe AI
- Jatin Thakur for the connect-4 AI.