Saturday, May 18, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 1446  / 1 Year ago, fri, december 2, 2022, 5:34:30

I read that is possible to install Lubuntu on a 4 GB pendrive, so I would like to do the same on a 4GB virtual machine (on VirtualBox 5.2). The problem is that when I execute it, it says that there is no enough space and that 8GB are required. How can I install it?



EDIT: I'm asking a different question. How can I simulate the installation of Lubuntu on a 4GB pendrive on a virtual machine?


More From » system-installation

 Answers
1

Brute force installation from even mini.iso may fail because of not enough disk space during installation (as it needs it for both packages downloading into /var/cache/apt/archives and their extracting to root filesystem).



But you can get small viable system by proceeding with the following procedure:




  1. Install SSH server on the host



    sudo apt-get install ssh

  2. Create folder on the host for storing deb-archives inside home directory of your user (let's call him host-user)



    mkdir -p ~/Public/debs

  3. Download minimal Network Boot mini.iso


  4. Configure VM to use bridged adapter networking




    bridged networking




    and determine host IP with any method you like (from ifconfig or something).

    Let's assume it is 192.168.13.37.


  5. Boot VM from mini.iso


  6. Proceed with minimal installation (make whole disk a single partition for rootfs, and do not select huge components on the taskel package selection) and reboot VM on finish

  7. Install SSHfs client into guest



    sudo apt-get install sshfs

  8. Mount /var/cache/apt/archives from outside the VM with SSHFS from host to guest



    sudo sshfs [email protected]:/home/host-user/Public/debs /var/cache/apt/archives -o nonempty


    Note: change host-user to real username on host and 192.168.13.37 to the IP of the host.


  9. Then install the Lubuntu flavor as usual by APT but without recommended parts (to save disk space)



    sudo apt-get install lubuntu-desktop --no-install-recommends

  10. Reboot and enjoy.




As the result you will get 1 Gb free and pretty small but usable system. Install Firefox and other stuff by hand.






Notes:

1. Consider to use LTS version of the Ubuntu instead of 9-month regular version.

2. You can install almost any flavor by this method.


[#6420] Saturday, December 3, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fittecanap

Total Points: 322
Total Questions: 100
Total Answers: 105

Location: Israel
Member since Tue, Nov 17, 2020
4 Years ago
;