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

160
README.md
View File

@ -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 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
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 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
``` ```
cat <<EOF > /etc/apt/sources.list 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 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 deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
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
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 6. **Install packages needed for Live System**
``` ```
apt-get install -y \ apt-get install -y \
ubuntu-standard \ ubuntu-standard \
casper \ casper \
lupin-casper \ lupin-casper \
@ -101,40 +103,40 @@ apt-get install -y \
os-prober \ os-prober \
network-manager \ network-manager \
linux-generic linux-generic
``` ```
## Graphical installer 7. **Graphical installer**
``` ```
apt-get install -y \ apt-get install -y \
ubiquity \ ubiquity \
ubiquity-casper \ ubiquity-casper \
ubiquity-frontend-gtk \ ubiquity-frontend-gtk \
ubiquity-slideshow-ubuntu \ ubiquity-slideshow-ubuntu \
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 \
ubuntu-gnome-desktop \ ubuntu-gnome-desktop \
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 \
terminator \ terminator \
apt-transport-https \ apt-transport-https \
curl \ curl \
vim \ vim \
nano 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 curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
@ -145,42 +147,42 @@ apt-get install -y \
rm microsoft.gpg 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 update
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
``` ```
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 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 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 update
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 \
transmission-common \ transmission-common \
gnome-mahjongg \ gnome-mahjongg \
@ -188,28 +190,28 @@ apt-get purge -y \
gnome-sudoku \ gnome-sudoku \
aisleriot \ aisleriot \
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
``` ```
rm /var/lib/dbus/machine-id rm /var/lib/dbus/machine-id
``` ```
2. Remove the diversion 2. Remove the diversion
``` ```
rm /sbin/initctl rm /sbin/initctl
dpkg-divert --rename --remove /sbin/initctl dpkg-divert --rename --remove /sbin/initctl
``` ```
3. Clean up 3. Clean up
``` ```
apt-get clean apt-get clean
@ -226,12 +228,12 @@ 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
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 ## Create the CD image directory and populate it