Update documentation
This commit is contained in:
parent
a2deb00451
commit
c090c722a8
160
README.md
160
README.md
|
@ -33,66 +33,68 @@ sudo mount --bind /dev $HOME/live-ubuntu-from-scratch/chroot/dev
|
|||
sudo mount --bind /run $HOME/live-ubuntu-from-scratch/chroot/run
|
||||
```
|
||||
|
||||
## Access chroot environment
|
||||
```
|
||||
sudo chroot $HOME/live-ubuntu-from-scratch/chroot
|
||||
```
|
||||
|
||||
```
|
||||
mount none -t proc /proc
|
||||
1. **Configure mount points**
|
||||
```
|
||||
mount none -t proc /proc
|
||||
|
||||
mount none -t sysfs /sys
|
||||
mount none -t sysfs /sys
|
||||
|
||||
mount none -t devpts /dev/pts
|
||||
mount none -t devpts /dev/pts
|
||||
|
||||
export HOME=/root
|
||||
export HOME=/root
|
||||
|
||||
export LC_ALL=C
|
||||
```
|
||||
export LC_ALL=C
|
||||
```
|
||||
|
||||
## Set a custom hostname
|
||||
```
|
||||
echo "ubuntu-live" > /etc/hostname
|
||||
```
|
||||
2. **Set a custom hostname**
|
||||
```
|
||||
echo "ubuntu-live" > /etc/hostname
|
||||
```
|
||||
|
||||
## Configure apt sources.list
|
||||
3. **Configure apt sources.list**
|
||||
|
||||
Edit /etc/apt/source.list
|
||||
Edit /etc/apt/source.list
|
||||
|
||||
```
|
||||
cat <<EOF > /etc/apt/sources.list
|
||||
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
|
||||
```
|
||||
cat <<EOF > /etc/apt/sources.list
|
||||
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
|
||||
|
||||
deb http://us.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||
deb http://us.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
|
||||
|
||||
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||
EOF
|
||||
```
|
||||
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
|
||||
EOF
|
||||
```
|
||||
|
||||
## Upgrade packages if you want
|
||||
```
|
||||
apt-get update
|
||||
4. **Upgrade packages if you want**
|
||||
```
|
||||
apt-get update
|
||||
|
||||
apt-get -y upgrade
|
||||
```
|
||||
apt-get -y upgrade
|
||||
```
|
||||
|
||||
## Install and configure dbus
|
||||
```
|
||||
apt-get install -y systemd-sysv
|
||||
5. **Install and configure dbus**
|
||||
```
|
||||
apt-get install -y systemd-sysv
|
||||
|
||||
apt-get install -y dbus
|
||||
```
|
||||
apt-get install -y dbus
|
||||
```
|
||||
|
||||
```
|
||||
dbus-uuidgen > /var/lib/dbus/machine-id
|
||||
```
|
||||
dbus-uuidgen > /var/lib/dbus/machine-id
|
||||
|
||||
dpkg-divert --local --rename --add /sbin/initctl
|
||||
dpkg-divert --local --rename --add /sbin/initctl
|
||||
|
||||
ln -s /bin/true /sbin/initctl
|
||||
```
|
||||
ln -s /bin/true /sbin/initctl
|
||||
```
|
||||
|
||||
## Install packages needed for Live System
|
||||
```
|
||||
apt-get install -y \
|
||||
6. **Install packages needed for Live System**
|
||||
```
|
||||
apt-get install -y \
|
||||
ubuntu-standard \
|
||||
casper \
|
||||
lupin-casper \
|
||||
|
@ -101,40 +103,40 @@ apt-get install -y \
|
|||
os-prober \
|
||||
network-manager \
|
||||
linux-generic
|
||||
```
|
||||
```
|
||||
|
||||
## Graphical installer
|
||||
```
|
||||
apt-get install -y \
|
||||
7. **Graphical installer**
|
||||
```
|
||||
apt-get install -y \
|
||||
ubiquity \
|
||||
ubiquity-casper \
|
||||
ubiquity-frontend-gtk \
|
||||
ubiquity-slideshow-ubuntu \
|
||||
ubiquity-ubuntu-artwork
|
||||
```
|
||||
```
|
||||
|
||||
## Install window manager
|
||||
```
|
||||
apt-get install -y \
|
||||
8. **Install window manager**
|
||||
```
|
||||
apt-get install -y \
|
||||
plymouth-theme-ubuntu-gnome-logo \
|
||||
ubuntu-gnome-desktop \
|
||||
ubuntu-gnome-wallpapers
|
||||
```
|
||||
```
|
||||
|
||||
## Install usefull applications
|
||||
```
|
||||
apt-get install -y \
|
||||
9. **Install usefull applications**
|
||||
```
|
||||
apt-get install -y \
|
||||
clamav-daemon \
|
||||
terminator \
|
||||
apt-transport-https \
|
||||
curl \
|
||||
vim \
|
||||
nano
|
||||
```
|
||||
```
|
||||
|
||||
## Install Visual Studio Code
|
||||
10. **Install Visual Studio Code**
|
||||
|
||||
1. Download and install the key
|
||||
1. Download and install the key
|
||||
```
|
||||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
|
||||
|
||||
|
@ -145,42 +147,42 @@ apt-get install -y \
|
|||
rm microsoft.gpg
|
||||
```
|
||||
|
||||
2. Then update the package cache and install the package using:
|
||||
2. Then update the package cache and install the package using:
|
||||
```
|
||||
apt-get update
|
||||
|
||||
apt-get install -y code
|
||||
```
|
||||
|
||||
## Install Google Chrome
|
||||
11. **Install Google Chrome**
|
||||
|
||||
1. Download and install the key
|
||||
1. Download and install the key
|
||||
```
|
||||
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
|
||||
```
|
||||
|
||||
2. Add the key to the repository
|
||||
2. Add the key to the repository
|
||||
```
|
||||
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
|
||||
```
|
||||
|
||||
3. Finally, Update repository and install Google Chrome.
|
||||
3. Finally, Update repository and install Google Chrome.
|
||||
```
|
||||
apt-get update
|
||||
|
||||
apt-get install google-chrome-stable
|
||||
```
|
||||
|
||||
## Install Java JDK 8
|
||||
```
|
||||
apt-get install -y \
|
||||
12. **Install Java JDK 8**
|
||||
```
|
||||
apt-get install -y \
|
||||
openjdk-8-jdk \
|
||||
openjdk-8-jre
|
||||
```
|
||||
```
|
||||
|
||||
## Remove unused applications
|
||||
```
|
||||
apt-get purge -y \
|
||||
13. **Remove unused applications**
|
||||
```
|
||||
apt-get purge -y \
|
||||
transmission-gtk \
|
||||
transmission-common \
|
||||
gnome-mahjongg \
|
||||
|
@ -188,28 +190,28 @@ apt-get purge -y \
|
|||
gnome-sudoku \
|
||||
aisleriot \
|
||||
hitori
|
||||
```
|
||||
```
|
||||
|
||||
## Remove unused packages
|
||||
```
|
||||
apt-get autoremove -y
|
||||
```
|
||||
14. **Remove unused packages**
|
||||
```
|
||||
apt-get autoremove -y
|
||||
```
|
||||
|
||||
## Cleanup the chroot environment
|
||||
15. **Cleanup the chroot environment**
|
||||
|
||||
1. If you installed software, be sure to run
|
||||
1. If you installed software, be sure to run
|
||||
```
|
||||
rm /var/lib/dbus/machine-id
|
||||
```
|
||||
|
||||
2. Remove the diversion
|
||||
2. Remove the diversion
|
||||
```
|
||||
rm /sbin/initctl
|
||||
|
||||
dpkg-divert --rename --remove /sbin/initctl
|
||||
```
|
||||
|
||||
3. Clean up
|
||||
3. Clean up
|
||||
```
|
||||
apt-get clean
|
||||
|
||||
|
@ -226,12 +228,12 @@ apt-get autoremove -y
|
|||
exit
|
||||
```
|
||||
|
||||
4. Unbind mount points
|
||||
```
|
||||
sudo umount $HOME/live-ubuntu-from-scratch/chroot/dev
|
||||
## Unbind mount points
|
||||
```
|
||||
sudo umount $HOME/live-ubuntu-from-scratch/chroot/dev
|
||||
|
||||
sudo umount $HOME/live-ubuntu-from-scratch/chroot/run
|
||||
```
|
||||
sudo umount $HOME/live-ubuntu-from-scratch/chroot/run
|
||||
```
|
||||
|
||||
## Create the CD image directory and populate it
|
||||
|
||||
|
|
Loading…
Reference in New Issue