Update documentation

This commit is contained in:
Marcos Vallim 2019-06-26 16:45:45 -03:00
parent a2deb00451
commit c090c722a8
1 changed files with 194 additions and 192 deletions

View File

@ -33,10 +33,12 @@ sudo mount --bind /dev $HOME/live-ubuntu-from-scratch/chroot/dev
sudo mount --bind /run $HOME/live-ubuntu-from-scratch/chroot/run sudo mount --bind /run $HOME/live-ubuntu-from-scratch/chroot/run
``` ```
## Access chroot environment
``` ```
sudo chroot $HOME/live-ubuntu-from-scratch/chroot sudo chroot $HOME/live-ubuntu-from-scratch/chroot
``` ```
1. **Configure mount points**
``` ```
mount none -t proc /proc mount none -t proc /proc
@ -49,12 +51,12 @@ export HOME=/root
export LC_ALL=C export LC_ALL=C
``` ```
## Set a custom hostname 2. **Set a custom hostname**
``` ```
echo "ubuntu-live" > /etc/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
@ -68,14 +70,14 @@ deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe
EOF EOF
``` ```
## Upgrade packages if you want 4. **Upgrade packages if you want**
``` ```
apt-get update apt-get update
apt-get -y upgrade apt-get -y upgrade
``` ```
## Install and configure dbus 5. **Install and configure dbus**
``` ```
apt-get install -y systemd-sysv apt-get install -y systemd-sysv
@ -90,7 +92,7 @@ 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 6. **Install packages needed for Live System**
``` ```
apt-get install -y \ apt-get install -y \
ubuntu-standard \ ubuntu-standard \
@ -103,7 +105,7 @@ apt-get install -y \
linux-generic linux-generic
``` ```
## Graphical installer 7. **Graphical installer**
``` ```
apt-get install -y \ apt-get install -y \
ubiquity \ ubiquity \
@ -113,7 +115,7 @@ apt-get install -y \
ubiquity-ubuntu-artwork ubiquity-ubuntu-artwork
``` ```
## Install window manager 8. **Install window manager**
``` ```
apt-get install -y \ apt-get install -y \
plymouth-theme-ubuntu-gnome-logo \ plymouth-theme-ubuntu-gnome-logo \
@ -121,7 +123,7 @@ apt-get install -y \
ubuntu-gnome-wallpapers ubuntu-gnome-wallpapers
``` ```
## Install usefull applications 9. **Install usefull applications**
``` ```
apt-get install -y \ apt-get install -y \
clamav-daemon \ clamav-daemon \
@ -132,7 +134,7 @@ apt-get install -y \
nano nano
``` ```
## Install Visual Studio Code 10. **Install Visual Studio Code**
1. Download and install the key 1. Download and install the key
``` ```
@ -152,7 +154,7 @@ apt-get install -y \
apt-get install -y code apt-get install -y code
``` ```
## Install Google Chrome 11. **Install Google Chrome**
1. Download and install the key 1. Download and install the key
``` ```
@ -171,14 +173,14 @@ apt-get install -y \
apt-get install google-chrome-stable apt-get install google-chrome-stable
``` ```
## Install Java JDK 8 12. **Install Java JDK 8**
``` ```
apt-get install -y \ apt-get install -y \
openjdk-8-jdk \ openjdk-8-jdk \
openjdk-8-jre openjdk-8-jre
``` ```
## Remove unused applications 13. **Remove unused applications**
``` ```
apt-get purge -y \ apt-get purge -y \
transmission-gtk \ transmission-gtk \
@ -190,12 +192,12 @@ apt-get purge -y \
hitori hitori
``` ```
## Remove unused packages 14. **Remove unused packages**
``` ```
apt-get autoremove -y 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
``` ```
@ -226,7 +228,7 @@ apt-get autoremove -y
exit exit
``` ```
4. Unbind mount points ## Unbind mount points
``` ```
sudo umount $HOME/live-ubuntu-from-scratch/chroot/dev sudo umount $HOME/live-ubuntu-from-scratch/chroot/dev