Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1--Start Arch OS and Login to user
- 2--Build and install debootstrap package
- cd
- wget https://aur.archlinux.org/cgit/aur.git/snapshot/debootstrap.tar.gz
- wget https://aur.archlinux.org/cgit/aur.git/snapshot/debian-archive-keyring.tar.gz
- wget https://aur.archlinux.org/cgit/aur.git/snapshot/gnupg1.tar.gz
- tar zxvf debootstrap.tar.gz
- tar zxvf debian-archive-keyring.tar.gz
- tar zxvf gnupg1.tar.gz
- cd debootstrap && makepkg -is
- cd
- cd debian-archive-keyring && makepkg -is
- cd
- cd gnupg1 && makepkg -is
- cd
- rm -r debootstrap gnupg1 debian-archive-keyring debootstrap.tar.gz gnupg1.tar.gz debian-archive-keyring.tar.gz
- 3--Check partitions
- lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- sda 8:0 0 1.8T 0 disk #My_Files
- sdb 8:16 0 3.7T 0 disk #Backup
- sdc 8:32 0 465.8G 0 disk #home
- sdd 8:48 0 477G 0 disk
- |-sdd1 8:49 0 8G 0 part #swap
- |-sdd2 8:50 0 469G 0 part #Games
- sde 8:64 0 111.8G 0 disk
- |-sde1 8:65 0 1G 0 part mou #boot
- |-sde2 8:66 0 110.8G 0 part #root
- 4--Mount Partitions:
- mount -t btrfs -o ssd,noatime,discard,space_cache,compress=lzo,subvol=Debian /dev/sde2 /mnt
- mount -t btrfs -o ssd,noatime,discard,space_cache,compress=lzo,subvol=DebianHome /dev/sdc /mnt/home
- mount -t btrfs -o autodefrag,noatime,space_cache,compress-force=lzo /dev/sda /mnt/My_Files
- mount -t btrfs -o ssd,noatime,discard,space_cache,compress=lzo /dev/sdd2 /mnt/Games
- mount -t vfat /dev/sde1 /mnt/boot
- 5--Install Base System:
- /usr/sbin/debootstrap --arch amd64 jessie /mnt/ http://ftp.us.debian.org/debian
- 6--Generate File System Table:
- genfstab -U -p /mnt >> /mnt/etc/fstab
- 7--Mount the temporary api filesystems:
- cd /mnt/
- mount -t proc proc proc/
- mount --rbind /sys sys/
- mount --rbind /dev dev/
- mount -t tmpfs tmpfs tmp/
- 8--Chroot into Debian Root partition and Configure apt:
- LANG=C.UTF-8 chroot /mnt/ /bin/bash
- export PATH=/bin:/sbin:/usr/bin:/usr/sbin
- export LANG=C
- dpkg --add-architecture amd64
- apt update
- apt install debian-keyring vim
- vim /etc/apt/sources.list
- deb http://ftp.us.debian.org/debian jessie main contrib non-free
- deb-src http://ftp.us.debian.org/debian jessie main contrib non-free
- deb http://ftp.us.debian.org/debian jessie-updates main contrib non-free
- deb-src http://ftp.us.debian.org/debian jessie-updates main contrib non-free
- deb http://security.debian.org/ jessie/updates main contrib non-free
- deb-src http://security.debian.org/ jessie/updates main contrib non-free
- apt update
- 9--Configuring Locale
- apt install locales
- dpkg-reconfigure locales
- apt console-setup
- dpkg-reconfigure console-setup
- dpkg-reconfigure keyboard-configuration
- 10--Setting Timezone
- #Setting the third line of the file /etc/adjtime to “UTC” or “LOCAL” determines whether the system
- #will interpret the hardware clock as being set to UTC respective local time. The following command
- #allows you to set that.
- editor /etc/adjtime
- 0.0 0 0.0
- 0
- LOCAL
- dpkg-reconfigure tzdata
- 11--Configure Networking
- editor /etc/network/interfaces
- auto eth0
- allow-hotplug eth0
- iface eth0 inet dhcp
- 12--Set your hostname in /etc/
- echo 'hostname-here' > /etc/hostname
- 13--Set root password and create user: apt
- passwd
- #Enter the new password
- useradd -m -g users -s /bin/bash username
- passwd username
- #Enter the new password
- 14--Install a Kernel **A lil clueless here, What do you think?**
- apt install btrfs-tools
- apt-get update --fix-missing
- apt install linux-base linux-image-amd64 linux-headers-amd64
- ** I don't know what it means to update the kernel
- ** so If you have anything to add here to fix the kernel go for it
- apt install firmware-linux-free
- apt install firmware-linux
- apt install firmware-linux-nonfree
- 15--Configure the Booting Process
- mkdir -p /boot/Debian
- vim /etc/kernel/postinst.d/zz-update-efistub
- #!/bin/sh
- cp /vmlinuz-3.16.0-4-amd64 /initrd.img-3.16.0-4-amd64 /boot/Debian
- nano /boot/loader/entries/debian.conf
- title Debian
- linux /Debian/vmlinuz
- initrd /initrd.img
- options root=PARTUUID=.... rootflags=subvol=Debian rw
- chmod +x /etc/kernel/postinst.d/zz-update-efistub
- ls -la /boot/Debian/
- 16--Exit chroot, Unmount partitions and reboot
- exit
- umount -R /mnt
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement