GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - blamba-de/blamba: Blåmba - 2000's-style media library for vintage cellphones (Nokia, etc.)

BranchesTags
Open more actions menu

Latest commit

 

History

60 Commits
60 Commits

Folders and files

NameName
Last commit message
Last commit date
assets-int
assets-int
 
 
assets
assets
 
 
helper
helper
 
 
libs
libs
 
 
pages
pages
 
 
templates
templates
 
 
vendor-native
vendor-native
 
 
wap
wap
 
 
.gitignore
.gitignore
 
 
.htaccess
.htaccess
 
 
README.md
README.md
 
 
blamba_empty.sql
blamba_empty.sql
 
 
bootstrap.php
bootstrap.php
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
index.php
index.php
 
 
kannel-sms.php
kannel-sms.php
 
 
media.php
media.php
 
 
media_wap.php
media_wap.php
 
 
robots.txt
robots.txt
 
 
smpp-daemon.php
smpp-daemon.php
 
 

Repository files navigation

blamba

How to DIY host (note: level expert)

You need Kannel setup to report SMS messages to kannel-sms.php?token=TOKEN. These instructions are out of scope.

  1. Install the LAMP stack on a Debian 12 box (tip: do not forget php-curl!).
  2. Clone this repo in your /var/www/html or similar directory
  3. Install PHP Composer and run php composer.phar install
  4. make a ../config.php file with the following content:
<?php
global $config, $content_path, $userupload_path;

$config = [
	"db_hostname" => "localhost",
	"db_username" => "blamba",
	"db_password" => "SECRET",
	"db_database" => "blamba",

	// for security reasons, we want to run a sandbox with imagemagick.
	// imagemagick is a pretty complex application and so it's easier to just debootstrap a full, empty debian:
	// debootstrap --arch amd64 --include=imagemagick bookworm /opt/bookworm-imagemagick/
	"imagemagick_root" => "/opt/bookworm-imagemagick/",

	"tempdir" => "/dev/shm/blamba/",

    "use_secure_cookies" => false,

    "wap_domain" => "wap.blamba.de",

	"smpp_sender_msn" => "YOUR NUMBER HERE",
	"smpp_sender_alpha" => "Blamba",
	"sms_sender_allowlist_override" => [
	],
	"log_token" => "SECRET",
];

$content_path = realpath(__DIR__ . "/blamba-content/") . "/";
$userupload_path = realpath(__DIR__ . "/blamba-usercontent/") . "/";
  1. Add SetEnv ap_trust_cgilike_cl 1 to your Apache VirtualHost config. Content-Length header is being set by PHP. Apache2 usually doesn't trust Content-Length headers, which then results in a missing progress indication on file downloads.

  2. Add AllowOverride All in your Directory config in /etc/apache2/apache2.conf and run sudo a2enmod rewrite

  3. Make the database in MySQL CREATE DATABASE blamba;

  4. Import the database mysql -u root -p blamba <blamba_empty.sql

  5. Create a Kannel gateway in MySQL

INSERT INTO `gateways` (`id`, `name`, `enabled`, `token`, `type`, `sender_msn`, `sender_name`, `location`, `kannel_url`, `kannel_username`, `kannel_password`, `smpp_hostname`, `smpp_port`, `smpp_username`, `smpp_password`) VALUES (1, 'NAME', 1, 'SECRET', 'kannel', 'NUMBER', 'Blamba', 'Bevel', 'http://localhost:13014', 'kannel', 'SECRET', NULL, NULL, NULL, NULL);
  1. Rename the assets folder: cp -r assets-int assets
  2. Edit your URL in layout/header.html
  3. Import assets git clone https://github.com/blamba-de/blamba-content-ingest.git and copy the folders to your filesystem root
  4. Setup imagemagick in debootstrap: apt install debootstrap then debootstrap --arch amd64 --include=imagemagick bookworm /opt/bookworm-imagemagick/
  5. Install sandbox dependancies: apt install bubblewrap libseccomp-dev
  6. Compile the bubblewrap wrappers: cd /var/www/html/vendor-native/bwrap-seccomp && make
  7. Compile the ringtonetools: cd /var/www/html/vendor-native/ringtonetools && make
  8. Give PHP access to your tmp folder: chown www-data /dev/shm/blamba/

About

Blåmba - 2000's-style media library for vintage cellphones (Nokia, etc.)

Resources

Readme
Activity
Custom properties

Stars

30 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.