Logging into a Linux machine from a flip phone over Bluetooth (2020)

Lobsters Hottest News

Summary

Demonstrates how to log into a Linux machine from a Samsung Rugby 4 flip phone using the Blue Term MIDlet over a Bluetooth serial connection, and run commands such as ls and htop.

<p><a href="https://lobste.rs/s/4d7o9o/logging_into_linux_machine_from_flip">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 08/14/26, 05:28 AM

TL;DR: This demo shows how to use the "Blue Term" MIDlet to log into a Linux machine from a Samsung Rugby 4 flip phone over Bluetooth serial, and run commands like `ls`, `htop`, `uname`, and `df`. ## Overview Today's topic is: how to log into your Linux machine from an ordinary flip phone via Bluetooth. The tool used is a MIDlet named **Blue Term**. According to its documentation, it is a very basic Bluetooth terminal for J2ME devices. It has only been tested on Nokia phones, but it works great on this **Samsung Rugby 4**, which was shown in a previous video. The whole setup is divided into two parts: the Linux machine side and the phone side. ## Linux-side setup On the Linux machine, two files need to be created: `login.sh` and `bluetoothio.sh`. The author has already created them and changed permissions to make both executable. ### login.sh `login.sh` opens a getty instance for logging into the console. The specific configuration is: - Baud rate: 38,400 - Data bits: 8 - Channel: rfcomm0 - Configuration: ANSI ### bluetoothio.sh `bluetoothio.sh` actually executes `login.sh`, and it also does another thing: it listens for incoming Bluetooth connections on the rfcomm0 interface, and then connects using channel 1. When ready to establish the connection, the author runs: ``bash bluetoothio.sh login.sh `` ## Phone-side setup On the phone side, a quick change needs to be made to the software in order to connect to this Linux machine. The change is to set the Bluetooth address to the one of this Linux tablet. The author discovered the address with `hcitool dev` and modified that piece of text in `blueterm.chat`. After the modification, copy `blueterm.chat` and `blueterm.jar` to the phone and install them. Then run the MIDlet, accept the Bluetooth connection, and you'll see the login prompt and be able to use it normally. ## Connection process Before starting the demo, the author made a few checks on another monitor: - Make sure there is no running getty instance to avoid interfering with the connection. - Make sure everything is properly configured in the Blueman Bluetooth manager. The check results show: there is no getty instance already occupying rfcomm0; it's already paired with `b780a`, which is the Samsung Rugby 4. You can see its corresponding Bluetooth address. This connection will be established through the **Serial Port Profile**, and you'll see it in Blue Term's text box. Then, the author opened `bluetoothio.sh` and `login.sh` on the Linux machine, and then opened Blue Term. The screen showed "Waiting for connection on channel one". Next, the author turned to the flip phone, zoomed in on the screen as much as possible, and tapped **Start**. The connection was established successfully. Text scrolled across the screen. The author entered the login name; the password was not displayed. Sending input is fast, with about a 60-second timeout. After the input was sent, the login succeeded, and the author marveled: > Look, we're logged in. Look, text is flowing across the screen. Imagine a wireless serial connection — pure serial over Bluetooth. ## Practical use After logging in, the author cleared the contents of the input box so as not to expose the password, and then started running some commands. ### ls The first command is `ls`, to list all files and folders in the home directory. The author said this may not be great for entering text, but you can see the output. It looks black and white. ### Setting stty Before running htop, the author first set `stty`, sending the number of rows and columns: ``bash stty rows ... `` After sending the input, the screen was cleared via menu 3, and then htop was run. ### htop `htop` can show running processes, but the refresh rate is a bit slow, and the colors aren't ideal. Still, you can see the process list. The author tried sending SIGINT (Ctrl-C) or pressing `q` to quit, and SIGINT seems to have worked. ### uname -a Next, running `uname -a` shows the kernel version: `` 4.15.0-112-generic `` The author commented that you might need a magnifying glass to read this, but it's nice for quickly checking things. ### df Another quick lookup command is `df`. The author points out that you could use this connection for very quick status checks, although the refresh rate is indeed quite slow. ## Summary and thoughts This demo shows that a flip phone can act as a small Linux console, perhaps for checking system properties, or running a quick script to display sensor data, radio output, or — in the author's case — viewing ADS-B output from anywhere. The author hopes you enjoyed the video and the tiny font, thanks you for watching, reminds you to like and subscribe, and welcomes comments in the comment section. Finally, happy Wednesday, and take care. Source: Logging into a Linux machine from a flip phone over Bluetooth (2020) (https://www.youtube.com/watch?v=eETHOyuSiMA)

Similar Articles

Computer use on the phone itself: a 2B model that operates Android apps (4 minute read)

TLDR AI

Opposable 推出可在 Android 手机本地运行的 GUI 智能体:使用 4-bit 量化的 GUI-Owl 1.5 2B 模型(基于 Qwen3-VL,Alibaba Mobile-Agent 团队出品),通过 llama.cpp 在设备上直接读屏并操作任意应用,无需服务器。通过裁剪状态栏、丢弃平坦背景图像 token 等优化,Mac M2 CPU 上单步耗时从 10.6 秒降至 7.3 秒,且在 36 屏测试集上精度不降。

My server is a phone now

Hacker News Top

The author replaces a Hetzner VPS with a CMF Phone 1 running Termux as a home server, detailing the pitfalls of installing postmarketOS and ultimately using Android with Termux, runit, Tailscale, and Caddy to host web apps like Surf and a finance tracker.