andronix.docs
Pre-2.0 archive

Old Install Guides

VNC, sound and phone-storage instructions for distros installed before Andronix 2.0 and for the Classic Modded OS editions.

These instructions are for distros installed before Andronix 2.0, and for the Classic Modded OS editions. They use the old scripts, log you in as root, and need some manual setup that Andronix 2.0 now does for you. For a current install, see VNC, Sound and Phone storage.

VNC on an old install

This section is for the Classic Modded OS editions and for distros installed with the pre-2.0 installer, which use the old VNC scripts. It doesn't apply to new installs. See Installs from before Andronix 2.0.

On an old install, vncserver-start asks for a resolution, and vncserver-stop asks for a port number: enter 1 and press Enter.

These instructions assume that you have started your distro and are inside the distro shell (not the Termux shell).

Setting a resolution on an old install

To set your preferred resolution, open the VNC start script by running:

nano /usr/local/bin/vncserver-start

Then change the last line of the file to:

vncserver -name remote-desktop -geometry 1920x1080 :1
You can replace 1920x1080 with your desired resolution.

Save the file by pressing ctrl + x, then y, and finally Enter.

How to change resolution permanently in Modded OS /Ubuntu 19

To change the resolution permanently, run the following command in the distro's shell:

nano /usr/local/bin/vnc

Then replace the second line with:

LD_PRELOAD=/lib/aarch64-linux-gnu/libgcc_s.so.1 vncserver -localhost no -depth 24 -name remote-desktop -geometry 1920x1080 :$PORT
You can replace 1920x1080 with your desired resolution. Then restart (or start) the VNC server.

When you're done, press Ctrl+X, type Y and press Enter. The next time you start the VNC server, choose the first option, Start vnc-server with autodetect/dynamic resolution.

VNC on other devices (old install)

You can access the distro running on your phone from any other device on your network.

First, make sure both devices are on the same network. If you don't have access to Wi-Fi, turn on the hotspot on the device running Linux and connect the other device to it. Once both devices are on the same network, run the following command inside the distro's shell:

nano /usr/local/bin/vncserver-start

Now change the last line to:

vncserver -name remote-desktop -geometry 1920x1080 -localhost no :1
If you're using an Arch-based distro such as Manjaro, or Arch Linux itself, use the following line instead:
vncserver -name remote-desktop -geometry 1920x1080 -localhost :1

When you're done, open a new Termux session (swipe in from the left edge to open the sidebar for more options) and type:

ip a

Copy the WLAN IP address (e.g. 192.168.xx.xx). On the other device, connect to this IP address with port number 1 (e.g. 192.168.xx.xx:1).

Sound on an old install

These steps are for distros installed with the pre-2.0 installer.

Follow these steps in order to enable sound output:

Close Distro

If your distro is running, close it by running exit inside Termux. Skip this step if your distro isn't running.

exit

Run Commands

Run the following command in Termux (not inside Linux):

pkg install wget && wget https://andronixos.sfo2.cdn.digitaloceanspaces.com/OS-Files/setup-audio.sh && chmod +x setup-audio.sh && ./setup-audio.sh

Start PulseAudio Server

Start the PulseAudio server:

pulseaudio --start

Storage on an old install

These steps are for distros installed with the pre-2.0 installer. On Andronix 2.0, the start script no longer needs editing; see Storage on a new install.

Termux Session

First, open a new Termux session (swipe from the left edge to the right) and type:

termux-setup-storage

Termux will now ask for Storage permission. Allow the Storage permission.

Open Start File

Once that's done, type:

nano start-(distroname).sh
Make sure to replace (distroname) with your specific distro name.

Now look for this line:

#command+=" -b /sdcard"

Edit

If you find it, remove the leading # so the line reads:

command+=" -b /sdcard"

Add the line

If you can't find the line, add the line above as shown in the screenshot below.


image

Save

When you're done, press Ctrl+X, then Y, and then Enter. Now start your Linux system and run cd /. You should see a folder named sdcard, which means you have successfully mounted your internal storage.

On this page