Skip to content

BigSlice/cursedboard

 
 

Repository files navigation

cursedboard

Ncurse based textboard for ssh.

ssh whisper.onthewifi.com

  • Shitpost in style with markup
  • Browse with arrow keys and vim style commands
  • Sqlite3 backend scaling to the moon and beyond
  • Countryball Countryletter posting
  • File Browser, Image and Text Viewer for the full multimedia experience
  • Customize your experience automatically via ssh_config
  • Fuelled by npyscreen

User settings with ~/ssh_config

   Match User bit Host whisper.onthewifi.com
       RemoteCommand jump_to_bottom=True
       RequestTTY force

Currently available settings:

  • jump_to_bottom Automaticall scroll to bottom of thread

This config is incompatible with sftp. To connect with sftp use '-F /dev/null'

SFTP Integration

Cursedboard brings its own custom configured sftp server to allow uploading files.

  1. Create /var/sftp/ and copy sftp-server.pl and make it executable.
  2. Install libnet-sftp-sftpserver-perl and libbsd-resource-perl
  3. Assuming the user 'chan' write in your config.py
SFTP_INTEGRATION = True
SFTP_ROOT_DIR = "/var/sftp/files/chan/"

  1. Adjust the paths in selector.sh to your locations
  2. Point your users 'chan' /etc/passwd entry to selector.sh.

Setup

Needs python3, npyscreen and GeoIP. Use pip3 install -r requirements or packages provided by your distribution

  1. Run git submodule init and git submodule update to get img2txt
  2. Install dependencies
  3. Change motd.py to your likening
  4. Create a dedicated unix user
  5. Copy config.py-sample to config.py and adjust settings
  6. Touch .hushlogin in the user directory to avoid an IP leak
  7. Disable TCP Forwarding for the user in sshd_config
  8. Disable the sftp Subsystem or make sure its not set to internal-sftp in sshd_config
  9. ???
  10. Comfy Posting

About

secret club fork for cursedboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.7%
  • Perl 2.0%
  • Shell 0.3%