Title: Sharing a Desktop Screen with an iPad while Writing LaTeX on Ubuntu 24.04 LTS (X11)
Introduction
This article provides a step-by-step guide on how to share a desktop screen with an iPad while writing LaTeX documents on Ubuntu 24.04 LTS (X11). We'll cover two applications: TextEdit (for viewing PDFs) and an iPad app (for the iPad).
Prerequisites
- Ubuntu 24.04 LTS (X11) installed on a laptop.
- An iPad with a suitable app for viewing PDFs (e.g., GoodReader, iAnnotate, or Adobe Acrobat Reader).
Steps to Share Desktop Screen
-
Install the necessary packages:
sudo apt-get update sudo apt-get install xserver-xorg-core xinit xorg-xmodmap xauth -
Create a startup script for the X server:
nano ~/.xinitrcAdd the following lines:
xset s noblank xset s off xset -dpms xset s off export DISPLAY=:0 exec xterm -geometry 80x24+10+10 -ls -title "XTerm" -
Save and close the file.
-
Create an
.Xauthorityfile:xauth generate :0 && xauth nprint :0 > ~/.Xauthority -
Start the X server:
startx -
Install and run the VNC server:
sudo apt-get install tightvncserver vncserverYou will be prompted to enter a password for the VNC server. Remember this password as you'll need it later.
-
Find the VNC server's display number:
vncserver -listNote down the display number (e.g., 5).
-
Install and run the VNC viewer on your iPad:
- Download a VNC viewer app from the App Store (e.g., RealVNC Viewer, TeamViewer, or AnyDesk).
- Launch the app and enter the IP address of your Ubuntu machine and the display number found in step 7.
- Enter the password you set for the VNC server when prompted.
Writing LaTeX Documents
-
Install TeX Live:
sudo apt-get install texlive texlive-latex-recommended -
Install a LaTeX editor (e.g., TeXstudio, TeXworks, or Kile).
-
Write your LaTeX document, compile, and view the PDF in TextEdit on your iPad via the VNC viewer.
Conclusion
With these steps, you can now share your desktop screen with an iPad while writing LaTeX documents on Ubuntu 24.04 LTS (X11). This setup allows you to view PDFs on your iPad and write LaTeX documents on Ubuntu simultaneously.
References
- Ubuntu 24.04 LTS (X11) - Official Website: https://ubuntu.com/
- TextEdit - Apple Developer Documentation: https://developer.apple.com/documentation/macos/textedit
- GoodReader - App Store: https://apps.apple.com/us/app/goodreader/id364709153
- iAnnotate - App Store: https://apps.apple.com/us/app/iannotate-pdf-reader-editor/id484575078
- Adobe Acrobat Reader - App Store: https://apps.apple.com/us/app/adobe-acrobat-reader/id347648757
- RealVNC Viewer - App Store: https://apps.apple.com/us/app/realvnc-viewer/id590359267
- TeamViewer - App Store: https://apps.apple.com/us/app/teamviewer-quick-support/id1100075907
- AnyDesk - App Store: https://apps.apple.com/us/app/anydesk-remote-desktop/id1040557874
- TeX Live - Official Website: https://www.tug.org/texlive/
- TeXstudio - Official Website: https://www.texstudio.org/
- TeXworks - Official Website: https://www.tug.org/applications/texworks/
- Kile - Official Website: https://kile.sourceforge.io/
- TightVNC Server - Official Website: https://www.tightvnc.com/download.php