Debian9 LXDE Install - ewsdocker/ewsdocker.github.io GitHub Wiki
Refer to the resources listed at the end of this document for a list of additional resources and articles.
In the following discussion, the computer is an AMD-64 4 x Quad-core CPU gaming system with 16 GB memory and 3 network adapters.
The system will be configured as a network bridge and server. The bridge will allow authorized traffic to pass from the Internet adapter to either one, or both, of the local network adapters, providing network traffic isolation.
Log-in as root
Or su, or sudo -s, or use sudo before restricted commands.
Download and Install Debian 9.11 Minimal Spin.
Download the latest Debian 9.11 DVD. Goto the Debian release repository at
http://www.debian.org/releases/stable/debian-installer/
and select an appropriate image for the download. The amd64-DVD-1 iso image is recommended.
For example:
http://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-9.11.0-amd64-DVD-1.iso
ONLY the first iso image in the 3-image DVD group is required if the Internet is available during installation.
When the download completes, create a boot DVD and then boot it up.
After the installation is started, when the Choose Software to Install screen appears, select the following items:
Standard system utilities
Press continue to complete the installation;
Eject the installation cd/dvd and reboot
Re-insert the original installation cd/dvd
Update the apt cache
apt update
Edit the file /etc/apt/sources.list. Comment out the cd repository, as follows:
#deb cdrom:
Modify the following line in /etc/apt/sources.list
deb http://ftp.us.debian.org/debian/ stretch main
and replace it with
deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
Update the apt cache
apt update
apt upgrade
Install utilities
apt install apt-transport-https apt apt-utils nano sudo net-tools firewalld curl wget network-manager resolvconf gdebi ssh openssh-server
Eject the cd/dvd installation disk and reboot
usermod -aG sudo <username>
Edit the /etc/NetworkManager/NetworkManager.conf file and change the managed setting to true.
[ifupdown]
managed=true
Restart the NetworkManager
systemctl restart NetworkManager
Edit the file /etc/network/interfaces, modify the enp0s3 interface definition, and configure additional interfaces, as follows:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
auto enp0s3
iface enp0s3 inet static
address 192.168.0.254
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameserver 8.8.8.8
dns-nameserver 8.8.4.4
dns-search internet.lan
auto enp0s8
iface enp0s8 inet static
address 192.168.1.254
network 192.168.1.0
netmask 255.255.255.0
auto enp0s9
iface enp0s9 inet static
address 192.168.2.254
network 192.168.2.0
netmask 255.255.255.0
Setup hostname file to set a fully-qualified-name (fqn) for the host. The Debian server will parse out the domain automatically
hostname debserver.internet.lan
Restart the NetworkManager
systemctl restart NetworkManager
127.0.0.1 localhost
192.168.0.254 debserver.internet.lan debserver
192.168.1.254 debserver.intnet.lan
192.168.2.254 debserver.hostnet.lan
Update / Upgrade the Linux Kernel.
apt update
apt upgrade
Enable firewalld
systemctl enable firewalld.service
systemctl start firewalld.service
Open some ports.
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --zone=public --permanent --add-port=8000/tcp
firewall-cmd --reload
Reboot and check the firewall status:
#sudo firewall-cmd --zone=public --list-all
public (default, active)
interfaces: enp0s3 enp0s8 enp0s9
sources:
services: http https ssh
ports: 8000/tcp
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
(optional).
apt update
apt install xorg chameleon-cursor-theme comixcursors-lefthanded comixcursors-lefthanded-opaque comixcursors-righthanded comixcursors-righthanded-opaque
reboot
(optional).
X-11 Server MUST be installed first.
- Install the Lightweight X-11 Desktop Environment, LXDE (installs openbox and lightdm)
apt-get install lxde reboot
- At the LightDM login manager, change the Desktop type from Default xsession to LXDE
(VirtualBox Guests only).
Install linux kernel support files for VirtualBox,
apt-get install dkms
Insert the VirtualBox Guest Additions DVD in the dvd drive
Change to the mounted device
cd /media/cdrom0
and run the Guest Additions Installer
sh ./VBoxLinuxAdditions.run
When it is completed, unmount / remove the VirtualBox Guest Additions DVD;
To enable access to VirtualBox resources, on a per-user basis,
usermod -aG vboxsf <user name>
Reboot.
cd to the download directory and run the following command:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Install the downloaded file
gdebi google-chrome*.deb
Cleanup.
rm *.deb
Reboot.
systemctl set-default multi-user.target
reboot
systemctl set-default graphical.target
reboot
Debian 9 Installation |
||
---|---|---|
How to install a Debian 9 (Stretch) Minimal Server | at | Howto Forge |
Installation of Debian 9 (Stretch) Minimal Server | at | TechMint |
How to install Debian 9 Stretch – Step by Step Tutorial with Screen Shots | at | Itz Geek |
Debian minimal install guide step-by-step by Arnad Satapathi | at | FixMyNix |
Debian 9 Desktop Installation |
||
Welcome to the LXDE Wiki | at | LXDE Wiki |
How to install Xfce | at | Debian Wiki |
Debian 9 Network Setup |
||
NetworkConfiguration | at | Debian Wiki |
NetworkManager | at | Debian Wiki |
FirewallD – Open a Port or Service | at | FirewallD |
Debian 9 Internet |
||
Google Chrome Web Browser Installation | at | LinuxConfig.ORG |