Empower your personal web server
laitos web server suite offers the simplest way to host your personal website, receive Emails, block ads and malicious websites with a DNS server, and much more!
As a professional geek, you need Internet access whenever and wherever!
laitos connects to primitive infrastructure such as telephone, SMS, and satellite terminal network to offer reliable access to many Internet features, such as:
- Browse news, weather, and Twitter.
- Keep in touch via Email, telephone call, and SMS.
- Browse the web via a text-based JavaScript-capable browser.
- Run Linux/Windows shell commands.
- Generate 2nd factor authentication code.
- ... more apps to explore!
Highlights
- Efficient - consume as little as 15MB of disk and 30MB of memory.
- Portable - run on all flavours of Linux and Windows, both X86 and ARM.
- Independent - reliable stand-alone operation with self healing and automated maintenance.
- Hyped by Buzzwords - certified to run in any container, as well as PaaS, IaaS, *aaS.
安装:
在本地机器mac上,安装go环境。然后,
cd $GOPATH
go get -u -v github.com/HouzuoGuo/laitos
即可得到可执行文件laitos。
laitos -h
Prepare configuration
laitos components go into three categories:
- Apps - reading news and Emails, make a Tweet, ask about weather, etc.
- Daemons - web/mail/DNS servers, chat bots, etc. Many daemons offer access to apps, protected with a password PIN.
- Rich web services - useful web-based utilities hosted by the web server.
Follow the links in component list to craft your very own configuration in JSON. Keep in mind - nearly all components require configuration to be useful.
As an example, here we use laitos DNS server for a safer and ad-free web experience at home, and automatically keep the laitos server computer up-to-date with latest security patches:
{
"DNSDaemon": {
"AllowQueryIPPrefixes": [
"192.",
"10."
]
},
"Maintenance": {
"Recipients": [
"server-owner@hotmail.com"
]
},
}
Start program
Assume that latios software is in current directory, run the following command:
sudo ./laitos -config -daemons
Note that:
- Web, mail, and many other daemons usually bind to privileged ports, Run laitos using
sudo
to ensure their proper operation. - Replace
by the relative or absolute path to your configuration file. - Replace
by daemon names to start. Use comma to separate names (e.g.dnsd,smtpd,httpd
). Here are the names:dnsd
- DNS server for ad-free and safer browsing experiencehttpd
- Web server secured by TLS certificateinsecurehttpd
- Web server without TLS encryptionserialport
- Serial port communicatorsimpleipsvcd
- Simple IP servicessmtpd
- Mail serversnmpd
- Network management (program statistics) servertelegram
- Telegram messenger chat botplainsocket
- Use plain text (Telnet) over TCP and UDP to access apps.maintenance
- Automated server maintenance and program health report
- Apps are enabled automatically once they are configured in the JSON file. Some apps such as the RSS News Reader are automatically enabled via their built-in default configuration.