Guides
4 min read

Unleash Your Samsung Tablet: Remote Server Access on Ubuntu

Turn an old tablet into a portable workstation - no new hardware required.


Why This Setup?

Old tablets gather dust in drawers. Instead of throwing them away, you can turn them into lightweight terminals that connect to a remote Ubuntu server - giving you a productive, portable workstation for the cost of zero new hardware.

This guide shows you how to set up a wireless connection from a Samsung tablet to a remote Ubuntu machine using VNC, so you can work from anywhere with a full desktop environment.


What You Need

Hardware

  • Samsung Tablet - Galaxy Tab S series with Android 11 or later (older tablets work too)
  • Remote Server - a desktop or laptop with:
    • 16 GB RAM (8 GB minimum)
    • Quad-core processor
    • 256 GB storage
    • Stable internet with at least 50 Mbps upload

Software

On the server:

  • Ubuntu (20.04 or later)
  • TightVNC server
  • A Dynamic DNS service account (if using residential internet)

On the tablet:

  • VNC Viewer app (from Play Store or F-Droid)
  • OpenVPN client (optional, for security)

Server Setup

1. Install the VNC Server

sudo apt update
sudo apt install tightvncserver xfce4 xfce4-goodies

2. Create a VNC Startup Script

nano ~/vnc-startup.sh

Add:

#!/bin/bash
vncserver :1 -geometry 1920x1080 -depth 24

Make it executable:

chmod +x ~/vnc-startup.sh

3. Configure the Desktop Environment

Kill any existing session and configure the startup:

vncserver -kill :1
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
nano ~/.vnc/xstartup

Add:

#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &

Make it executable:

chmod +x ~/.vnc/xstartup

4. Set a VNC Password

vncpasswd

Network Configuration

1. Dynamic DNS

If your server is on residential internet (no static IP):

  1. Create an account with a DDNS provider (No-IP, DynDNS, or DuckDNS)
  2. Install the DDNS client on your server
  3. Configure your domain name (e.g., myserver.ddns.net)

2. Router Port Forwarding

  1. Access your router admin panel (typically 192.168.1.1)
  2. Set up port forwarding: external port 5901 to internal port 5901, TCP
  3. Point it to your server's local IP address

3. Security Hardening

Do not expose VNC to the internet without protection:

# Install fail2ban for brute-force protection
sudo apt install fail2ban

# Configure firewall
sudo ufw allow 5901/tcp
sudo ufw allow ssh
sudo ufw enable

For better security, tunnel VNC through SSH instead of opening the port directly:

# From the tablet (using Termux or similar):
ssh -L 5901:localhost:5901 user@myserver.ddns.net

Then connect VNC Viewer to localhost:5901.


Tablet Configuration

1. Install VNC Viewer

Download VNC Viewer from the Play Store or F-Droid. Create a new connection:

  • Address: your-ddns-domain.net:5901 (or localhost:5901 if tunneling through SSH)
  • Picture Quality: Automatic
  • Name: Give it a recognizable name

2. Optimize Tablet Performance

For a smoother experience on older tablets:

  1. Enable Developer Options (tap Build number 7 times in Settings > About)
  2. Set Window animation scale to 0.5x or off
  3. Set Transition animation scale to 0.5x or off
  4. Enable Force GPU rendering

Daily Workflow

Starting a Session

  1. (If using VPN/SSH) Connect to your VPN or open the SSH tunnel first
  2. Launch VNC Viewer
  3. Connect to your server
  4. You now have a full Ubuntu desktop on your tablet

Tips for Productivity

  • Use a Bluetooth keyboard and mouse for a laptop-like experience
  • Adjust VNC resolution to match your tablet's screen: vncserver :1 -geometry 2560x1600 -depth 24
  • Use XFCE's panel and workspaces to organize your work
  • Keep your server updated: sudo apt update && sudo apt upgrade

Ending a Session

  1. Disconnect from VNC Viewer
  2. (Optional) Kill the VNC session on the server: vncserver -kill :1
  3. Disconnect VPN/SSH if active

Security Checklist

  • Change all default passwords
  • Use SSH tunneling instead of direct port exposure when possible
  • Enable fail2ban for brute-force protection
  • Keep Ubuntu and all packages updated
  • Monitor access logs regularly: cat ~/.vnc/*.log
  • Configure automatic backups for your server

Conclusion

This setup turns discarded hardware into a functional workstation. An old tablet becomes a portable terminal, a dusty desktop becomes a remote server - and nothing ends up in a landfill. It is a practical way to extend the life of your devices while maintaining a productive workflow from anywhere.