forked from dinooz/denos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03_denos_chroot_cinnamon.sh
48 lines (36 loc) · 1.23 KB
/
03_denos_chroot_cinnamon.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# DenOS - Debian Linux build from scratch with Debootstrap#
# Bernardino Lopez [ [email protected] ]
# 11.27.18
# 03_denos_chroot.sh - Customize your Distro
# As root in chroot. Execute the script in a Terminal
# ./03_denos_chroot_lxde.sh
# export LIVE_BOOT=LIVE_BOOT64
source ./denos_config.txt
# Set Hostname
echo $DISTRO_HOSTNAME > /etc/hostname
apt-cache search linux-image
apt-get update && \
apt-get install -y --no-install-recommends \
linux-image-amd64 \
live-boot \
systemd-sysv
apt-get install -y --no-install-recommends \
network-manager net-tools wireless-tools wpagui \
curl openssh-server openssh-client \
xserver-xorg-core xserver-xorg xinit xterm \
screenfetch screen lxterminal vim iputils-ping \
cinnamon-desktop-environment \
psmisc htop nmap firefox-esr wget git ca-certificates \
nano && \
apt-get clean
#echo "exec cinnamon-session" > /root/.xinitrc
#chmod 755 /root/.xinitrc
#echo "user-session=cinnamon" >> /etc/lightdm/lightdm.conf
echo -e "127.0.0.1\tlocalhost" > /etc/hosts
echo -e "127.0.0.1\t$DISTRO_HOSTNAME" >> /etc/hosts
# Create live user
#useradd -m live -s /bin/bash
# Change user live password to : newpassword
#echo 'live:live' | chpasswd
passwd root
exit