Skip to content

mdukat/manual-apt-cdrom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use:

1. Specify what packages You need, enter them in "packages" file

 1a. If you want to create image on other OS than target, create sources.list file and enter target source repositories
 
 1b. If you want the script to remove downloaded files, and only leave ISO image, execute:
 
  touch clean
 
2. Execute build script, it will build ISO image with all the packages needed for installation

!!! Make sure you have enough space on HDD !!!

3. Burn ISO on CD

4. On other machine, mount the CD, for example:

 mount -o loop /dev/sr0 /media/cdrom

5. Add cdrom path to sources.list: 

 deb [trusted=yes] file:/media/cdrom ./

6. Update apt lists:

 sudo apt update

7. Install your packages:

 sudo apt install nvidia-384 nvidia-cuda-toolkit



Notes on nvidia drivers on older Ubuntu:

You have to manually disable nouveau. To do this, create file /etc/modprobe.d/blacklist-nouveau.conf

 blacklist nouveau
 options nouveau modeset=0

And then regenerate the initramfs

 sudo update-initramfs -u
 sudo reboot



Notes for script itself:

Script will remove i386 packages, and download amd64 packages by default. If you need other architecture, modify the script!

About

Build CD-ROM image with specified apt packages and their dependencies

Resources

Stars

Watchers

Forks

Languages