SHARE
TWEET

Arch Deepin

a guest Oct 12th, 2019 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ####################################
  2. ########### TECLADO PT-BR ##########
  3. ####################################
  4. loadkeys br-abnt2
  5.  
  6. ## Verificando UEFI
  7. ls /sys/firmware/efi
  8.  
  9. ####################################
  10. ### CREATE & PARTITION THE DRIVE ###
  11. ####################################
  12.  
  13. # cfdisk
  14. # lsblk (to check)
  15. --------------------------------
  16. ## BIOS - MBR ##
  17. cfdisk /dev/sda
  18. => tipo DOS
  19.  
  20. # Linux para / e home
  21. # Linux Swap para swap
  22. gravar
  23. sair
  24. --------------------------------
  25. ## UEFI - GPT ##
  26. cfdisk /dev/sda
  27. => tipo GPT
  28.  
  29. # EFI system partition - 512mb /boot
  30. # Linux para / e home
  31. # Linux Swap para swap
  32. gravar
  33. sair
  34.  
  35. #############################
  36. ### FORMAT THE FILESYSTEM ###
  37. #############################
  38.  
  39. fdkisl -l
  40.  
  41. --------------------------------
  42.  
  43. ## UEFI /boot ##
  44. mkfs.fat -F32 /dev/sda1
  45.  
  46. ## raiz /
  47. mkfs.ext4 /dev/sdaX
  48. mount /dev/sdaX /mnt
  49.  
  50. ## montando o home
  51. mkfs.ext4 /dev/sdaX
  52. mkdir /mnt/home
  53. mount /dev/sdaX /mnt/home
  54.  
  55. ## swap
  56. mkswap /dev/sdaY
  57.  
  58. ## montando swap
  59. swapon /dev/sdaY
  60.  
  61. ## montando UEFI /boot
  62. mkdir /mnt/boot
  63. mkdir /mnt/boot/efi
  64. mount /dev/sda1 /mnt/boot/efi
  65.  
  66. --------------------------------
  67.  
  68. ## BIOS ##
  69.  
  70. ## raiz /
  71. mkfs.ext4 /dev/sdaX
  72. mount /dev/sdaX /mnt
  73.  
  74. ## montando o home
  75. mkfs.ext4 /dev/sdaX
  76. mkdir /mnt/home
  77. mount /dev/sdaX /mnt/home
  78.  
  79. # swap
  80. mkswap /dev/sdaY
  81.  
  82. # montando swap
  83. swapon /dev/sdaY
  84.  
  85.  
  86. #############################
  87. ######### INTERNET ##########
  88. #############################
  89.  
  90. ping -c4 google.com
  91.  
  92. # dhcpcd interface_rede
  93. ## ver interface => ip addr show
  94.  
  95. # wifi-menu -o
  96.  
  97. ## ver quais redes tem: iwconfig
  98.  
  99.  
  100. ################################
  101. ## CREATE CLOSEST MIRROR LIST ##
  102. ################################
  103.  
  104. # pacman -Sy
  105. # pacman -S reflector rsync
  106. # reflector --latest 10 --age 24 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
  107.  
  108. nano /etc/resolv.conf
  109. nameserver 8.8.8.8
  110. nameserver 8.8.4.4
  111.  
  112.  
  113. #####################################
  114. ## INSTALL ARCHLINUX BASE PACKAGES ##
  115. #####################################
  116.  
  117. # pacstrap -i /mnt base base-devel
  118.  
  119.  
  120. #####################################
  121. ## CONFIGURE FSTAB AND CHROOT /MNT ##
  122. #####################################
  123.  
  124. # genfstab -U -p /mnt >> /mnt/etc/fstab
  125. # cat /mnt/etc/fstab
  126. # arch-chroot /mnt /bin/bash
  127.  
  128.  
  129. ######################################
  130. ## CONFIGURE LANGUAGE AND LOCATION  ##
  131. ######################################
  132.  
  133. ## pacman -S nano
  134. # nano /etc/locale.gen
  135.  
  136. uncomment your locale:
  137. pt_BR.UTF-8
  138.  
  139. locale-gen
  140. echo LANG=pt_BR.UTF-8 > /etc/locale.conf
  141. export LANG=pt_BR.UTF-8
  142.  
  143. ####################################
  144. ########### TECLADO PT-BR ##########
  145. ####################################
  146.  
  147. # nano /etc/vconsole.conf
  148.  
  149. KEYMAP=br-abnt2
  150. FONT=
  151. FONT_MAP=
  152.  
  153. ########################
  154. ## SET YOUR TIME ZONE ##
  155. ########################
  156.  
  157. # ln -s /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
  158.  
  159. # hwclock --systohc --utc
  160.  
  161. ## se der arquivo existente, basta remover => rm /etc/localtime
  162.  
  163.  
  164. ##############################
  165. ## CONFIGURE THE REPOSITORY ##
  166. ##############################
  167.  
  168. # nano /etc/pacman.conf
  169.  
  170. Uncomment the lines:
  171. [multilib] and
  172. include = /etc/pacman.d/mirrorlist
  173.  
  174. ## add for fun
  175. ILoveCandy
  176.  
  177.  
  178. ############################
  179. ## SET HOSTNAME & NETWORK ##
  180. ############################
  181.  
  182. # echo yourhostname > /etc/hostname
  183. # nano /etc/hosts (127.0.1.1    myhostname.localdomain  myhostname)
  184. # systemctl enable dhcpcd
  185.  
  186. ###########################################
  187. ## SET ROOT PASSWORD AND CREATE NEW USER ##
  188. ###########################################
  189.  
  190. # passwd
  191. # useradd -m -g users -G wheel -s /bin/bash yourname
  192. # passwd yourname
  193.  
  194.  
  195. #############################################################################################
  196. ## ALLOW THE USERS IN WHEEL GROUP TO BE ABLE TO PREFORMANCE ADMINISTRATIVE TASKS WITH SUDO ##
  197. #############################################################################################
  198.  
  199. # pacman -S nano
  200. # EDITOR=nano visudo
  201. nano /etc/sudoers
  202. Uncomment the line:
  203. %wheel ALL=(ALL)
  204.  
  205.  
  206. ##################################### Install util packages ??????????????????????
  207. ## Internet ##
  208. pacman -S
  209. wireless_tools
  210. wpa_supplicant
  211. dialog
  212. dosfstools
  213. mtools
  214. networkmanager
  215. ## rtlwifi_new-extended-dkms --> driver wifi notebook
  216. linux-firmware
  217.  
  218.  
  219. ######################################
  220. ## INSTALL AND CONFIGURE BOOTLOADER ##
  221. ######################################
  222.  
  223. ## pacman -S mkinitcpio linux ##
  224.  
  225. # mkinitcpio -p linux
  226.  
  227. --------------------------------------
  228. ## BIOS ##
  229.  
  230. # pacman -S grub intel-ucode   (amd-ucode )
  231. # grub-install /dev/sda
  232.  
  233. # grub-mkconfig -o /boot/grub/grub.cfg
  234.  
  235. --------------------------------------
  236. ## UEFI ##
  237.  
  238. # pacman -S grub-efi-x86_64 efibootmgr intel-ucode   (amd-ucode )
  239.  
  240. ## montando UEFI /boot
  241. mkdir /boot
  242. mkdir /boot/efi
  243. mount /dev/sda1 /boot/efi
  244. lsblk # to check if everything is mounted correctly
  245.  
  246. # grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Arch --recheck
  247.  
  248. # grub-mkconfig -o /boot/grub/grub.cfg
  249.  
  250. --------------------------------------
  251. ## dual boot ##
  252. # pacman -S os-prober
  253.  
  254.  
  255. #######################################
  256. ## UNMOUNT THE PARTITIONS AND REBOOT ##
  257. #######################################
  258.  
  259. # systemctl enable NetworkManager.service
  260.  
  261. # exit
  262. # umount -R /mnt
  263. # reboot
  264.  
  265. Login to your archlinux!!
  266.  
  267.  
  268. ##################################### Config
  269.  
  270.  
  271. ####################
  272. ### VIDEO DRIVER ###
  273. ####################
  274.  
  275. ## virtualbox ##
  276. # sudo pacman -S virtualbox-guest-utils virtualbox-guest-modules-arch mesa mesa-libgl
  277.  
  278. ## Nvidia ##
  279. # sudo pacman -S nvidia nvidia-settings nvidia-utils lib32-nvidia-utils opencl-nvidia lib32-opencl-nvidia
  280.  
  281. ## AMD ##
  282. # sudo pacman -S mesa xf86-video-amdgpu
  283.  
  284. ## Intel ##
  285. sudo pacman -S xf86-video-intel libgl mesa
  286.  
  287. ## gnome-boxes ##
  288. sudo pacman -S spice-vdagent
  289.  
  290.  
  291. #################
  292. ### INSTALL X ###
  293. #################
  294.  
  295. # sudo pacman -S xorg-server xorg-xinit xorg-apps
  296.  
  297.  
  298. #####################################
  299. ### INSTALL A DESKTOP ENVIRONMENT ###
  300. #####################################
  301.  
  302. # sudo pacman -S deepin deepin-extra xdg-user-dirs file-roller unrar fuseiso
  303.  
  304. #############
  305. ### SOUND ###
  306. #############
  307.  
  308. # sudo pacman -S alsa-utils pavucontrol pulseaudio-alsa alsa-firmware alsa-plugins pulseaudio
  309.  
  310.  
  311. #################################
  312. ### INSTALL A DISPLAY MANAGER ###
  313. #################################
  314.  
  315. # sudo pacman -S lightdm
  316.  
  317. # sudo systemctl enable lightdm.service
  318.  
  319. ######### sudo systemctl enable NetworkManager.service
  320.  
  321. # Reboot
  322.  
  323. #########################
  324. ### CREATE A SWAPFILE ###
  325. #########################
  326.  
  327. # fallocate -l 4G /swapfile
  328.  
  329. # chmod 600 /swapfile
  330.  
  331. # mkswap /swapfile
  332.  
  333. # echo '/swapfile none swap sw 0 0' | tee -a /etc/fstab
  334.  
  335. #########################
  336. ###### CONFIG EXTRA #####
  337. #########################
  338.  
  339. ## Bluetooth ##
  340. # sudo pacman -S bluez blueman bluez-utils pulseaudio-bluetooth
  341. ## Agora inicie o módulo btusb:
  342. # sudo modeprobe btusb
  343. ## Habilitar e iniciar o serviço de bluetooth:
  344. # sudo systemctl enable bluetooth && sudo systemctl start bluetooth
  345.  
  346. -------------------------------------------------------
  347. ## Serviço de impressão ##
  348. # pacman -S ghostscript cups gsfonts gutenprint libcups hplip system-config-printer
  349. # systemctl enable org.cups.cupsd.service
  350. # systemctl start org.cups.cupsd.service
  351.  
  352. -------------------------------------------------------
  353. ## Firewall GUFW ##
  354. # pacman -S gufw
  355. Iniciar e ativar GUFW durante a incialização:
  356. # ufw enable
  357. # systemctl enable ufw.service
  358.  
  359. -------------------------------------------------------
  360. ## notebook ##
  361. pacman -S acpi acpid xf86-input-synaptics
  362. sudo systemctl enable acpid.service
  363.  
  364. -------------------------------------------------------
  365. ## aur ##
  366. sudo pacman -S git go
  367. git clone https://aur.archlinux.org/yay.git &&
  368. cd yay &&
  369. makepkg -si
  370.  
  371. ## SE DER PROBLEMA ##
  372. # echo -e "[archlinuxfr]\nSigLevel = Never\nServer=http://repo.archlinux.fr/\$arch" >> /etc/pacman.conf
  373.  
  374. -------------------------------------------------------
  375.  
  376. #########################
  377. ####### OPCIONAL ########
  378. #########################
  379.  
  380. ## FIX EFI bootloader Virtualbox ##
  381. sudo mkdir /boot/efi/EFI/BOOT
  382.  
  383. After that, copy GRUB bootloader to this directory and give it a different name:
  384.  
  385. sudo cp /boot/efi/EFI/GRUB/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFI
  386.  
  387. To be even safer, we can also create a startup script for EFI:
  388.  
  389. sudo nano /boot/efi/startup.nsh
  390.  
  391. In Nano editor, add these lines:
  392.  
  393. bcfg boot add 1 fs0:\EFI\GRUB\grubx64.efi "My GRUB bootloader"
  394.  
  395.  
  396. ## users folders ##
  397. # pacman -S xdg-user-dirs
  398. $ xdg-user-dirs-update
  399.  
  400. ## teclado pt-BR no X ##
  401. # localectl set-x11-keymap br abnt2
  402.  
  403. ## net applet ##
  404. # pacman -S network-manager-applet
  405.  
  406. ## Virtualbox Host ##
  407. pacman -S virtualbox-host-modules-arch
  408.  
  409. ## lightdm ##
  410. pacman -S lightdm
  411. nano /etc/lightdm/lightdm.conf
  412. => descomenta e acrescente
  413. greeter-session=lightdm-deepin-greeter
  414. OBS: Não sessão [Seat:*]
  415.  
  416. systemctl enable lightdm.service
  417. systemctl start lightdm.service
  418.  
  419. ## driver vesa ##
  420. pacman -S xf86-video-vesa
  421.  
  422. ##################################### systemd target
  423. ## gráfico ##
  424. systemctl set-default graphical.target
  425.  
  426. ## texto ##
  427. systemctl set-default multi-user
  428. #####################################
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top