Debian

Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run.

All packages list

http://packages.debian.org/stable/allpackages

Sample service blah

File in /etc/init.d/blah with chmod 755:

   1 #! /bin/sh
   2 # /etc/init.d/blah
   3 #
   4 
   5 # Some things that run always
   6 touch /var/lock/blah
   7 
   8 # Carry out specific functions when asked to by the system
   9 case "$1" in
  10   start)
  11     echo "Starting script blah "
  12     echo "Could do more here"
  13     ;;
  14   stop)
  15     echo "Stopping script blah"
  16     echo "Could do more here"
  17     ;;
  18   *)
  19     echo "Usage: /etc/init.d/blah {start|stop}"
  20     exit 1
  21     ;;
  22 esac
  23 
  24 exit 0

Add service

Remove service

Check services status

Install Debian Wheezy 32 bit

Base Install DW (Debian Wheezy)

In Virtualbox

Installation Debian 7.5.0 amd64

Fetch and burn the ISO

Install

Install extra packages

Eclipse

Two monitors with digital output

Enable multiarch and install Skype

Resize /home folder

Debian 8.6.0

VMDebian
Linux
Debian 64 bit
4096MB
VDI type
dynamic allocation
16 GB
create
debian-8.6.0-amd64-DVD-1.iso
install
english
location other europe Portugal
default local en_us.UTF8
keyboard portuguese
hostname debian
domain name <empty>
root pass 
new user vitor
clock Lisbon
Partition, guided user entire disk LVM
scsi(0,0,0) sda
all in one partition
write
change yes
Finish partitioning
scan other cd dvd no
use net mirrors yes portugal ftp.pt.debian.org
package survey no
software to install desktop kde lxde ssh web server print server standard utils displaymanager kdm 
install grub in MBR yes /dev/sda
Finish installation continue

VBoxManage setextradata "VMDebian" "CustomVideoMode1" "1366x768x32"
Use 2 cpu cores in the VM
run guest additions 

/etc/apt/sources.list
# sid 
deb http://ftp.pt.debian.org/debian/ sid  main contrib
deb-src http://ftp.pt.debian.org/debian/ sid main contrib
apt-get update

Install debian 10 - buster on external HDD with USB adapter

ap_scan=1
ctrl_interface=/var/run/wpa_supplicant
network={
  ssid="?????????"
  scan_ssid=1
  proto=RSN WPA
  key_mgmt=WPA-PSK
  group=CCMP TKIP
  pairwise=CCMP TKIP
  psk="???????"
}

deb http://ftp.pt.debian.org/debian/ buster main contrib non-free
deb-src http://ftp.pt.debian.org/debian/ buster main contrib non-free

cd /boot/efi/EFI/
mv BOOT BOOT_bak
cp -R debian BOOT
cd BOOT
mv shimx64.efi bootx64.efi

Debian buster in VirtualBox VM

get https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-10.1.0-amd64-standard.iso
run virtualbox 
new vm
name Debian buster type linux, version debian 64 bit
ram 4096 GB
create virtual vdi 16GB dynamically allocated
settings storage, ide, choose virtual optical drive, attach iso debian-live-10.1.0-amd64-standard.iso to VM
start VM
choose debian installer 
language: english
country other, europe, portugal, default locale en_us
keyboard portuguese
hostname debian
domain name ""
root pass: 
new user: vitor
username: vitor
pwd: 
configure clock: Lisbon
partition disks: guided - use entire disk and set up LVM
use scsi3, sda
all files in one partition
write changes and configure lvm: yes
volume group to use for guided partition: 16.9 GB
write changes to disk: yes
use network mirror: yes, portugal, deb.debian.org
proxy info: blank
install grub2 in MBR: yes
install in /dev/sda
install complete, continue
reboot
choose debian gnu/linux
login with root:toor
apt update
apt install xorg wmaker xterm lightdm firefox-esr htop wmclockmon vim  docker.io  
/sbin/usermod -a vitor -G docker
service lightdm start
Inside /etc/lightdm/lightdm.conf in [Seat:*] 
add display-setup-script=setxkbmap pt 
add greeter-setup-script=setxkbmap pt 
add session-setup-script=setxkbmap pt

[LightDM] 
add display-setup-script=setxkbmap pt 
add greeter-setup-script=setxkbmap pt 
add session-setup-script=setxkbmap pt

In ~/.xsessionrc add
/usr/bin/setxkbmap pt &
/usr/bin/xterm &

Debian (last edited 2019-10-07 10:49:09 by localhost)