Advertisement
Brutico

Instalar Gentoo con btrfs

Dec 2nd, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.52 KB | None | 0 0
  1. # Bienvenido a la instalación de Gentoo
  2.  
  3. # Preparacion de discos
  4.  
  5. Ejecutamos: lsblk para ver las unidades conectadas
  6. Ejemplo:
  7. root@kubuntu:/home/kubuntu# lsblk
  8. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  9. loop0 7:0 0 1.7G 1 loop /rofs
  10. sda 8:0 0 465.8G 0 disk
  11. └─sda1 8:1 0 465.8G 0 part
  12. sdb 8:16 0 931.5G 0 disk
  13. └─sdb1 8:17 0 931.5G 0 part
  14. sdc 8:32 0 931.5G 0 disk
  15. └─sdc1 8:33 0 931.5G 0 part
  16. sdd 8:48 0 465.8G 0 disk
  17. ├─sdd1 8:49 0 529M 0 part
  18. ├─sdd2 8:50 0 100M 0 part
  19. ├─sdd3 8:51 0 16M 0 part
  20. └─sdd4 8:52 0 465.1G 0 part
  21. sde 8:64 1 28.7G 0 disk /cdrom
  22. ├─sde1 8:65 1 1.8G 0 part
  23. └─sde2 8:66 1 2.4M 0 part
  24. sdf 8:80 0 119.2G 0 disk
  25. └─sdf1 8:81 0 119.2G 0 part
  26. sdg 8:96 1 28.7G 0 disk
  27. └─sdg1 8:97 1 28.7G 0 part
  28.  
  29. La unidad sdf es el SDD donde vamos a instalar el sistema
  30.  
  31. root@kubuntu:/home/kubuntu# parted -a optimal /dev/sdf
  32. GNU Parted 3.2
  33. Using /dev/sdf
  34. Welcome to GNU Parted! Type 'help' to view a list of commands.
  35. (parted) mklabel gpt
  36. Warning: The existing disk label on /dev/sdf will be destroyed and all data on this disk will be lost. Do you want to continue?
  37. Yes/No? YES
  38. (parted) unit mib
  39. (parted) mkpart primary 1 513
  40. (parted) name 1 grub
  41. (parted) set 1 boot on
  42. (parted) mkpart primary 513 -1
  43. (parted) name 2 gentoo
  44. (parted) set 2 lvm on
  45. (parted) p
  46. Model: ATA Samsung SSD 840 (scsi)
  47. Disk /dev/sdf: 122104MiB
  48. Sector size (logical/physical): 512B/512B
  49. Partition Table: gpt
  50. Disk Flags:
  51.  
  52. Number Start End Size File system Name Flags
  53. 1 1.00MiB 513MiB 512MiB grub boot, esp
  54. 2 513MiB 122103MiB 121590MiB gentoo lvm
  55.  
  56. (parted) q
  57.  
  58. root@kubuntu:/home/kubuntu# cryptsetup -v -y -c aes-xts-plain64 -s 512 -h sha512 -i 5000 --use-random luksFormat /dev/sdf2
  59.  
  60. WARNING!
  61. ========
  62. This will overwrite data on /dev/sdf2 irrevocably.
  63.  
  64. Are you sure? (Type uppercase yes): YES
  65. Enter passphrase for /dev/sdf2:
  66.  
  67. Introduciomos dos passwd iguales
  68.  
  69. cryptsetup luksDump /dev/sdf2
  70. LUKS header information for /dev/sdf2
  71.  
  72. Aqui veriamos la informacion el uuid, etc
  73.  
  74. root@kubuntu:/home/kubuntu# cryptsetup luksOpen /dev/sdf2 gentoolv
  75. Enter passphrase for /dev/sdf2:
  76. Introducimos password
  77.  
  78. root@kubuntu:/home/kubuntu# pvcreate /dev/mapper/gentoolv
  79. Physical volume "/dev/mapper/gentoolv" successfully created.
  80.  
  81. root@kubuntu:/home/kubuntu# vgcreate gentoovg /dev/mapper/gentoolv
  82. Volume group "gentoovg" successfully created
  83.  
  84. root@kubuntu:/home/kubuntu# lvcreate -C y -L 16G gentoovg -n swap
  85. Logical volume "swap" created.
  86.  
  87. root@kubuntu:/home/kubuntu# lvcreate -C y -L 75G gentoovg -n root
  88. Logical volume "root" created.
  89.  
  90. root@kubuntu:/home/kubuntu# lvcreate -l +95%FREE gentoovg -n home
  91. Logical volume "home" created.
  92.  
  93. root@kubuntu:/home/kubuntu# vgchange -ay
  94. 3 logical volume(s) in volume group "gentoovg" now active
  95.  
  96. oot@kubuntu:/home/kubuntu# ls /dev/mapper/
  97. control gentoolv gentoovg-home gentoovg-root gentoovg-swap
  98.  
  99. Vericamos que se igual que arriba
  100.  
  101. root@kubuntu:/home/kubuntu# mkswap /dev/mapper/gentoovg-swap
  102. Setting up swapspace version 1, size = 16 GiB (17179865088 bytes)
  103. no label, UUID=814ae5
  104.  
  105. root@kubuntu:/home/kubuntu# swapon /dev/mapper/gentoovg-swap
  106.  
  107. root@kubuntu:/home/kubuntu# mkfs.btrfs -f /dev/mapper/gentoovg-root
  108. btrfs-progs v4.15.1
  109. See http://btrfs.wiki.kernel.org for more information.
  110.  
  111. Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
  112. Label: (null)
  113. UUID: 9b07e793-XXXXXX-XXXXX-XXXXXXXX-XXXXXX
  114. Node size: 16384
  115. Sector size: 4096
  116. Filesystem size: 75.00GiB
  117. Block group profiles:
  118. Data: single 8.00MiB
  119. Metadata: single 8.00MiB
  120. System: single 4.00MiB
  121. SSD detected: yes
  122. Incompat features: extref, skinny-metadata
  123. Number of devices: 1
  124. Devices:
  125. ID SIZE PATH
  126. 1 75.00GiB /dev/mapper/gentoovg-root
  127.  
  128. root@kubuntu:/home/kubuntu# mkfs.btrfs -f /dev/mapper/gentoovg-home
  129. btrfs-progs v4.15.1
  130. See http://btrfs.wiki.kernel.org for more information.
  131.  
  132. Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
  133. Label: (null)
  134. UUID: 5e629778-XXXXXX-XXXXX-XXXXXXXX-XXXXXX
  135. Node size: 16384
  136. Sector size: 4096
  137. Filesystem size: 26.35GiB
  138. Block group profiles:
  139. Data: single 8.00MiB
  140. Metadata: single 8.00MiB
  141. System: single 4.00MiB
  142. SSD detected: yes
  143. Incompat features: extref, skinny-metadata
  144. Number of devices: 1
  145. Devices:
  146. ID SIZE PATH
  147. 1 26.35GiB /dev/mapper/gentoovg-home
  148.  
  149. root@kubuntu:/home/kubuntu# mkdir -pv /mnt/gentoo
  150. mkdir: created directory '/mnt/gentoo'
  151.  
  152. root@kubuntu:~# mkdir -pv /mnt/gentoo/{home,boot/efi}
  153. mkdir: created directory '/mnt/gentoo'
  154. mkdir: created directory '/mnt/gentoo/home'
  155. mkdir: created directory '/mnt/gentoo/boot'
  156. mkdir: created directory '/mnt/gentoo/boot/efi'
  157.  
  158. root@kubuntu:~# mount /dev/mapper/gentoovg-root /mnt/gentoo
  159.  
  160. root@kubuntu:~# mount /dev/mapper/gentoovg-root /mnt/gentoo
  161.  
  162. root@kubuntu:~# mkfs.vfat -F 32 /dev/sdf1
  163. mkfs.fat 4.1 (2017-01-24)
  164.  
  165. root@kubuntu:~# mount /dev/sdf1 /mnt/gentoo/boot/efi
  166.  
  167. Descargamos de este link http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/
  168.  
  169. Descargar el stage3, el CONTENTS y DIGESTS.asc
  170.  
  171. cd /mnt/gentoo
  172.  
  173. wget -c http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20200205T214502Z.tar.xz
  174.  
  175. wget -c http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20200205T214502Z.tar.xz.CONTENTS
  176.  
  177. wget -c http://distfiles.gentoo.org/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20200205T214502Z.tar.xz.DIGESTS.asc
  178.  
  179. Ahora comprovamos las firmas para comprobar que esta correcto tar
  180.  
  181. root@kubuntu:/mnt/gentoo# gpg --keyserver pool.sks-keyservers.net --recv-key 2D182910
  182. gpg: directory '/root/.gnupg' created
  183. gpg: keybox '/root/.gnupg/pubring.kbx' created
  184. gpg: key BB572E0E2D182910: 13 signatures not checked due to missing keys
  185. gpg: key BB572E0E2D182910: 1 bad signature
  186. gpg: /root/.gnupg/trustdb.gpg: trustdb created
  187. gpg: key BB572E0E2D182910: public key "Gentoo Linux Release Engineering (Automated Weekly Release Key) <releng@gentoo.org>" imported
  188. gpg: no ultimately trusted keys found
  189. gpg: Total number processed: 1
  190. gpg: imported: 1
  191.  
  192. root@kubuntu:/mnt/gentoo# gpg --fingerprint 2D182910
  193. pub rsa4096 2009-08-25 [SC] [expires: 2020-07-01]
  194. 13EB BDBE DE7A 1277 5DFD B1BA BB57 2E0E 2D18 2910
  195. uid [ unknown] Gentoo Linux Release Engineering (Automated Weekly Release Key) <releng@gentoo.org>
  196. sub rsa2048 2019-02-23 [S] [expires: 2020-07-01]
  197.  
  198. root@kubuntu:/mnt/gentoo# gpg --verify stage3-amd64-*.tar.xz.DIGESTS.asc
  199. gpg: Signature made Thu 06 Feb 2020 03:04:34 AM UTC
  200. gpg: using RSA key 534E4209AB49EEE1C19D96162C44695DB9F6043D
  201. gpg: Good signature from "Gentoo Linux Release Engineering (Automated Weekly Release Key) <releng@gentoo.org>" [unknown]
  202. gpg: WARNING: This key is not certified with a trusted signature!
  203. gpg: There is no indication that the signature belongs to the owner.
  204. Primary key fingerprint: 13EB BDBE DE7A 1277 5DFD B1BA BB57 2E0E 2D18 2910
  205. Subkey fingerprint: 534E 4209 AB49 EEE1 C19D 9616 2C44 695D B9F6 043D
  206. gpg: WARNING: not a detached signature; file 'stage3-amd64-20200205T214502Z.tar.xz.DIGESTS' was NOT verified!
  207.  
  208. root@kubuntu:/mnt/gentoo# awk '/SHA512 HASH/{getline;print}' stage3-amd64-*.tar.xz.DIGESTS.asc | sha512sum --check
  209. stage3-amd64-20200205T214502Z.tar.xz: OK
  210. stage3-amd64-20200205T214502Z.tar.xz.CONTENTS: OK
  211.  
  212. Descomprimimos
  213.  
  214. root@kubuntu:/mnt/gentoo# tar xvJpf stage3-amd64-*.tar.xz --xattrs-include='*.*' --numeric-owner
  215.  
  216. Borramos las descargas
  217.  
  218. root@kubuntu:/mnt/gentoo# rm -v -f stage3-amd64-*
  219. removed 'stage3-amd64-20200205T214502Z.tar.xz'
  220. removed 'stage3-amd64-20200205T214502Z.tar.xz.CONTENTS'
  221. removed 'stage3-amd64-20200205T214502Z.tar.xz.DIGESTS.asc'
  222.  
  223. root@kubuntu:/mnt/gentoo# nano /mnt/gentoo/etc/portage/make.conf
  224. Anadir acontinuacion
  225. # ---------------------------
  226. #Instalacion <viernes 7 de febrero del 2020>
  227.  
  228. # C, C++ GCC.
  229. COMMON_FLAGS="-march=native -O2 -pipe"
  230. CFLAGS="${COMMON_FLAGS}"
  231. CXXFLAGS="${COMMON_FLAGS}"
  232. FCFLAGS="${COMMON_FLAGS}"
  233. FFLAGS="${COMMON_FLAGS}"
  234.  
  235. # Licencias acceptadas
  236. ACCEPT_LICENSE="*"
  237.  
  238. # Consulta http://www.gentoo.org/doc/en/change-chost.xml para cualquier cambio.
  239. CHOST="x86_64-pc-linux-gnu"
  240.  
  241. # Rama testing ACCEPT_KEYWORDS="~amd64", rama estable ACCEPT_KEYWORDS="amd64"
  242. # Proceesadores Intel y AMD 64-bit.
  243. ACCEPT_KEYWORDS="~amd64"
  244.  
  245. # Flags globales para plasma 5
  246. ACCEPTADAS="bluetooth elogind networkmanager policykit pulseaudio"
  247. DENEGADAS="-gnome -qt3support -qt4"
  248. #
  249. USE="${ACCEPTADAS} ${DENEGADAS}"
  250.  
  251. # Directorios de Portage.
  252. PORTDIR="/var/db/repos/gentoo"
  253. DISTDIR="/var/cache/distfiles"
  254. PKGDIR="/var/cache/binpkgs"
  255.  
  256. # Esto establece el idioma de salida de la construcción al inglés.
  257. # Por favor, mantén esta configuración intacta al reportar errores.
  258. LC_MESSAGES=C
  259.  
  260. # Encienda el registro - vea http://gentoo-en.vfose.ru/wiki/Gentoo_maintenance.
  261. PORTAGE_ELOG_CLASSES="info warn error log qa"
  262.  
  263. # Los mensajes de eco después de emerger, también se guardan en /var/log/portage/elog
  264. PORTAGE_ELOG_SYSTEM="echo save"
  265.  
  266. # Asegurar los elogs guardados en subdirectorios de categoría.
  267. # Construir paquetes binarios como un subproducto de cada emergente, una copia de seguridad útil.
  268. FEATURES="split-elog buildpkg preserve-libs"
  269.  
  270. # Opciones de X11 <quitar joystick roccat_tyon> esto es hardware mio
  271. # Mas informacion en https://wiki.gentoo.org/wiki/Xorg/Guide
  272. VIDEO_CARDS="nvidia"
  273. INPUT_DEVICES="libinput joystick roccat_tyon"
  274.  
  275. # Sitema multilib para steam y demas
  276. # Soporte de compilación para 64 bits y 32 bits. (Desmarcar "#" si compilas sin soporte a 32 bits, sino lo ignoarara)
  277. ABI_X86="64 32"
  278.  
  279. # Configuración de un Scaner mx925.
  280. SANE_BACKENDS="pixma net usb"
  281.  
  282. # Configuaracion una impresora mx925
  283. CANON_PRINTERS="mx920"
  284.  
  285. # Soporte si es posible para castellano y
  286. catalán
  287. # mas información en https://wiki.gentoo.org/wiki/Localization/Guide/es
  288. L10N="es es-ES ca ca-ES"
  289.  
  290. # Autolimpieza de PORTAGE. (es como usar emerge -c despues de emerger).
  291. AUTOCLEAN="yes"
  292.  
  293. # Compilación en memoria RAM. (compila mas rapido y castiga menos las unidades flash).
  294. # Mas informacion https://wiki.gentoo.org/wiki/Portage_TMPDIR_on_tmpfs
  295. PORTAGE_TMPDIR="/var/tmp/notmpfs"
  296. PORTAGE_TMPDIR="/var/tmp/portage"
  297.  
  298. # Opciones ejecución de PORTAGE. (Bajar -j1 si de problemas de sobrecarga).
  299. # Bajar el tiempo de compilación con jumbo-build tienes mas informacion https://forums.gentoo.org/viewtopic-t-1074724-start-0.html
  300. MAKEOPTS="-j17 -l16"
  301. EMERGE_DEFAULT_OPTS="--ask --verbose --keep-going --jobs=8 --load-average=16 --with-bdeps=y"
  302.  
  303. #------------------------------------------
  304.  
  305. root@kubuntu:/mnt/gentoo# mkdir -p -v /mnt/gentoo/etc/portage/repos.conf
  306. mkdir: created directory '/mnt/gentoo/etc/portage/repos.conf'
  307.  
  308. root@kubuntu:/mnt/gentoo# cp -v /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
  309. '/mnt/gentoo/usr/share/portage/config/repos.conf' -> '/mnt/gentoo/etc/portage/repos.conf/gentoo.conf'
  310.  
  311. nano -w /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
  312.  
  313.  
  314. [DEFAULT]
  315. main-repo = gentoo
  316.  
  317. [gentoo]
  318. location = /var/db/repos/gentoo
  319. sync-type = rsync
  320. sync-uri = rsync://rsync.gentoo.org/gentoo-portage
  321. auto-sync = yes
  322. sync-rsync-verify-jobs = 1
  323. sync-rsync-verify-metamanifest = yes
  324. sync-rsync-verify-max-age = 24
  325. sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
  326. sync-openpgp-keyserver = hkps://keys.gentoo.org
  327. sync-openpgp-key-refresh-retry-count = 40
  328. sync-openpgp-key-refresh-retry-overall-timeout = 1200
  329. sync-openpgp-key-refresh-retry-delay-exp-base = 2
  330. sync-openpgp-key-refresh-retry-delay-max = 60
  331. sync-openpgp-key-refresh-retry-delay-mult = 4
  332. sync-webrsync-verify-signature = yes
  333.  
  334. Cambiamos la linea sync-type = rsync a sync-type = webrsync
  335.  
  336. root@kubuntu:/mnt/gentoo# cp -v -L /etc/resolv.conf /mnt/gentoo/etc/
  337. '/etc/resolv.conf' -> '/mnt/gentoo/etc/resolv.conf'
  338.  
  339. root@kubuntu:/mnt/gentoo# mount -v -t proc none /mnt/gentoo/proc
  340. mount: none mounted on /mnt/gentoo/proc.
  341.  
  342. root@kubuntu:/mnt/gentoo# mount -v --rbind /sys /mnt/gentoo/sys
  343. mount: /sys bound on /mnt/gentoo/sys.
  344.  
  345. root@kubuntu:/mnt/gentoo# mount -v --rbind /dev /mnt/gentoo/dev
  346. mount: /dev bound on /mnt/gentoo/dev.
  347.  
  348. root@kubuntu:/mnt/gentoo# mount -v --make-rslave /mnt/gentoo/sys
  349. mount: /mnt/gentoo/sys propagation flags changed.
  350.  
  351. root@kubuntu:/mnt/gentoo# mount -v --make-rslave /mnt/gentoo/dev
  352. mount: /mnt/gentoo/dev propagation flags changed.
  353.  
  354. root@kubuntu:/mnt/gentoo# chroot /mnt/gentoo /bin/bash
  355.  
  356. kubuntu / # source /etc/profile
  357.  
  358. kubuntu / # export PS1="(chroot) $PS1"
  359. (chroot) kubuntu / #
  360.  
  361. (chroot) kubuntu / # emaint sync --auto
  362.  
  363. (chroot) kubuntu / # nano -w /etc/portage/repos.conf/gentoo.conf
  364.  
  365. Cambiamos la linea sync-type = webrsync a sync-type = rsync
  366.  
  367. (chroot) kubuntu / # emaint sync --auto
  368. >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
  369. * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
  370. * Refreshing keys via WKD ... [ ok ]
  371. Do you want to sync your ebuild repository with the mirror at
  372. rsync://160.116.15.34/gentoo-portage? [Yes/No] Yes
  373.  
  374. (chroot) kubuntu / # emerge --ask --verbose --oneshot portage
  375.  
  376. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  377. * Use eselect news read to view new items.
  378.  
  379.  
  380. These are the packages that would be merged, in order:
  381.  
  382. Calculating dependencies... done!
  383. [ebuild U ] sys-apps/portage-2.3.87::gentoo [2.3.84-r1::gentoo] USE="(ipc) native-extensions rsync-verify xattr -build -doc -gentoo-dev (-selinux) (-epydoc%)" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 1,022 KiB
  384.  
  385. Total: 1 package (1 upgrade), Size of downloads: 1,022 KiB
  386.  
  387. Would you like to merge these packages? [Yes/No] Yes
  388.  
  389. (chroot) kubuntu / # echo "Europe/Madrid" > /etc/timezone
  390.  
  391. (chroot) kubuntu / # emerge -v --config sys-libs/timezone-data
  392.  
  393.  
  394. Ready to configure sys-libs/timezone-data-2019c? [Yes/No] yes
  395.  
  396. * Updating /etc/localtime with /usr/share/zoneinfo/Europe/Madrid
  397.  
  398. Miramos localizacion de idioma
  399.  
  400. (chroot) kubuntu / # localedef --list-archive
  401.  
  402. En Spain es:
  403.  
  404. es_EC.utf8
  405. es_ES
  406. es_ES.iso88591
  407. es_ES.iso885915@euro
  408. es_ES.utf8
  409. es_ES@euro
  410.  
  411. (chroot) kubuntu / # nano -w /etc/locale.gen
  412.  
  413. (chroot) kubuntu / # nano -w /etc/locale.gen
  414.  
  415. # Ponemos:
  416.  
  417. es_ES ISO-8859-1
  418. es_ES.UTF-8 UTF-8
  419. es_ES@euro ISO-8859-15
  420.  
  421.  
  422. (chroot) kubuntu / # locale-gen
  423. * Generating 4 locales (this might take a while) with 16 jobs
  424. * (1/4) Generating es_ES.ISO-8859-1 ... [ ok ]
  425. * (3/4) Generating es_ES.ISO-8859-15@euro ... [ ok ]
  426. * (4/4) Generating C.UTF-8 ... [ ok ]
  427. * (2/4) Generating es_ES.UTF-8 ... [ ok ]
  428. * Generation complete
  429. * Adding locales to archive ...
  430.  
  431. (chroot) kubuntu / # locale -a
  432. locale: Cannot set LC_CTYPE to default locale: No such file or directory
  433. locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  434. locale: Cannot set LC_COLLATE to default locale: No such file or directory
  435. C
  436. C.utf8
  437. POSIX
  438. es_ES
  439. es_ES.iso88591
  440. es_ES.iso885915@euro
  441. es_ES.utf8
  442. es_ES@euro
  443.  
  444. # Como observais da error, pero lo demas esta bien. Es porque la iso esta ingles, vamos a selecionar ingles y mas tarde dejaremos el castellano (perdonar mi raton es US y no tiene la ene ni acentos)
  445.  
  446. (chroot) kubuntu / # eselect locale set "C"
  447. Setting LANG to C ...
  448. Run ". /etc/profile" to update the variable in your shell.
  449.  
  450.  
  451. (chroot) kubuntu / # env-update && source /etc/profile && export PS1="(chroot) $PS1"
  452. >>> Regenerating /etc/ld.so.cache...
  453.  
  454. (chroot) kubuntu / # nano -w /etc/conf.d/keymaps
  455.  
  456. # Use keymap to specify the default console keymap. There is a complete tree
  457. # of keymaps in /usr/share/keymaps to choose from.
  458. keymap="es"
  459.  
  460. (chroot) kubuntu / # emerge --verbose --oneshot app-portage/cpuid2cpuflags
  461.  
  462. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  463. * Use eselect news read to view new items.
  464.  
  465.  
  466. These are the packages that would be merged, in order:
  467.  
  468. Calculating dependencies... done!
  469. [ebuild N ] app-portage/cpuid2cpuflags-8::gentoo 81 KiB
  470.  
  471. Total: 1 package (1 new), Size of downloads: 81 KiB
  472.  
  473. Would you like to merge these packages? [Yes/No] yes
  474.  
  475.  
  476. chroot) kubuntu / # cpuid2cpuflags
  477. CPU_FLAGS_X86: aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3
  478.  
  479. lo copiomos al make.conf
  480.  
  481. (chroot) kubuntu / # nano -w /etc/portage/make.conf
  482.  
  483. CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3"
  484.  
  485.  
  486. (chroot) kubuntu / # touch /etc/portage/package.use/zzz_via_autounmask
  487.  
  488. (chroot) kubuntu / # emerge baselayout sys-kernel/linux-headers sys-devel/binutils sys-devel/gcc gettext virtual/libc sys-apps/texinfo zlib ncurses
  489.  
  490. # Tardara mucho no os quedeis delante del pc
  491.  
  492. (chroot) kubuntu / # nano -w /etc/portage/make.conf
  493.  
  494. Y dejamos la linea asi
  495.  
  496. ACCEPTADAS="bluetooth cryptsetup crypt elogind networkmanager policykit pulseaudio X udisk"
  497.  
  498.  
  499. (chroot) kubuntu / # emerge mirrorselect
  500.  
  501. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  502. * Use eselect news read to view new items.
  503.  
  504.  
  505. These are the packages that would be merged, in order:
  506.  
  507. Calculating dependencies... done!
  508. [ebuild N ] net-analyzer/netselect-0.4-r1::gentoo USE="ipv6" 40 KiB
  509. [ebuild N ] dev-python/six-1.14.0::gentoo USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 34 KiB
  510. [ebuild N ] dev-python/idna-2.8::gentoo PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 171 KiB
  511. [ebuild N ] dev-util/dialog-1.3.20191210:0/15::gentoo USE="nls unicode -examples -minimal -static-libs" 529 KiB
  512. [ebuild N ] dev-python/pyasn1-0.4.3::gentoo USE="-doc" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 116 KiB
  513. [ebuild N ] dev-python/ply-3.11:0/3.11::gentoo USE="-examples" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 156 KiB
  514. [ebuild N ] dev-python/chardet-3.0.4::gentoo USE="-test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 1829 KiB
  515. [ebuild N ] dev-python/PySocks-1.7.1::gentoo PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 278 KiB
  516. [ebuild N ] dev-python/ipaddress-1.0.23::gentoo PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 33 KiB
  517. [ebuild N ] dev-python/enum34-1.1.6-r1::gentoo USE="-doc" PYTHON_TARGETS="python2_7" 40 KiB
  518. [ebuild N ] virtual/python-ipaddress-1.0-r1::gentoo PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 0 KiB
  519. [ebuild N ] dev-python/pycparser-2.19-r1::gentoo USE="-test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 155 KiB
  520. [ebuild N ] virtual/python-enum34-2::gentoo PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 0 KiB
  521. [ebuild N ] dev-python/cffi-1.13.2:0/1.13.2::gentoo USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6 -python3_7 -python3_8" 450 KiB
  522. [ebuild N ] dev-python/cryptography-2.8-r1::gentoo USE="-idna -libressl -test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 493 KiB
  523. [ebuild N ] dev-python/pyopenssl-19.1.0::gentoo USE="-doc -test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 157 KiB
  524. [ebuild N ] dev-python/ndg-httpsclient-0.4.2-r1::gentoo USE="-test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7" 25 KiB
  525. [ebuild N ] dev-python/urllib3-1.25.8::gentoo USE="-brotli -doc -test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 255 KiB
  526. [ebuild N ] dev-python/requests-2.22.0::gentoo USE="ssl -socks5 -test" PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 111 KiB
  527. [ebuild N ] dev-python/ssl-fetch-0.4::gentoo PYTHON_TARGETS="python2_7 python3_6 -python3_7 -python3_8" 12 KiB
  528. [ebuild N ] app-portage/mirrorselect-2.2.6-r1::gentoo USE="ipv6" PYTHON_TARGETS="python3_6 -python3_7 -python3_8" 117 KiB
  529.  
  530. Total: 21 packages (21 new), Size of downloads: 4992 KiB
  531.  
  532. WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:
  533.  
  534. dev-libs/openssl:0
  535.  
  536. (dev-libs/openssl-1.1.1d-r3:0/1.1::gentoo, ebuild scheduled for merge) USE="asm zlib -bindist -rfc3779 -sctp -sslv3 -static-libs -test -tls-heartbeat -vanilla" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="(sse2)" conflicts with
  537. >=dev-libs/openssl-1.1.0g:0[bindist] required by (net-misc/openssh-8.0_p1-r4:0/0::gentoo, installed) USE="bindist pam pie ssl -X -X509 -audit -debug -hpn -kerberos -ldns -libedit -libressl -livecd -sctp (-selinux) -static -test -xmss" ABI_X86="(64)"
  538. ^^^^^^^
  539.  
  540.  
  541. Would you like to merge these packages? [Yes/No] yes
  542.  
  543.  
  544. (chroot) kubuntu / # mirrorselect -i -o >> /etc/portage/make.conf
  545.  
  546. Elegimos los mas cercanos
  547.  
  548. Copia de seguiradad
  549. (chroot) kubuntu / # cp -v /etc/locale.gen{,.bak}
  550. '/etc/locale.gen' -> '/etc/locale.gen.bak'
  551. (chroot) kubuntu / # cp -v /etc/conf.d/keymaps{,.bak}
  552. '/etc/conf.d/keymaps' -> '/etc/conf.d/keymaps.bak'
  553.  
  554. Emergemos el sistema completo para que cada paqueta que habia en stage 3 se compile para nuestro hardware (tardara mucho)
  555.  
  556. (chroot) kubuntu / # emerge --ask --verbose --emptytree --with-bdeps=y @world
  557.  
  558. Tenemos un error (como solucionarlo?)
  559.  
  560. Total: 36 packages (11 upgrades, 14 new, 1 in new slot, 10 reinstalls), Size of downloads: 126554 KiB
  561.  
  562. * Error: circular dependencies:
  563.  
  564. (sys-libs/pam-1.3.1_p20200128:0/0::gentoo, ebuild scheduled for merge) depends on
  565. (sys-libs/libcap-2.31:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  566. (sys-libs/pam-1.3.1_p20200128:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  567.  
  568. It might be possible to break this cycle
  569. by applying any of the following changes:
  570. - sys-libs/libcap-2.31 (Change USE: -pam)
  571. - sys-libs/pam-1.3.1_p20200128 (Change USE: -filecaps)
  572.  
  573. Note that this change can be reverted, once the package has been installed.
  574.  
  575. Note that the dependency graph contains a lot of cycles.
  576. Several changes might be required to resolve all cycles.
  577. Temporarily changing some use flag for all packages might be the better option.
  578.  
  579. The following USE changes are necessary to proceed:
  580. (see "package.use" in the portage(5) man page for more details)
  581. # required by dev-lang/spidermonkey-60.5.2_p0-r3::gentoo
  582. # required by sys-auth/polkit-0.116-r1::gentoo
  583. # required by sys-auth/elogind-243.4::gentoo[policykit]
  584. # required by sys-process/procps-3.3.16::gentoo[elogind]
  585. # required by @system
  586. # required by @world (argument)
  587. >=dev-lang/python-2.7.17-r1:2.7 sqlite
  588.  
  589. Would you like to add these changes to your config files? [Yes/No] yes
  590.  
  591. Empezamos:
  592.  
  593. (chroot) kubuntu / # etc-update
  594. Scanning Configuration files.../mnt/gentoo/hostrun
  595. The following is the list of files which need updating, each
  596. configuration file is followed by a list of possible replacement files.
  597. 1) /etc/portage/package.use/zzz_via_autounmask (1)
  598. Please select a file to edit by entering the corresponding number.
  599. (don't use -3, -5, -7 or -9 if you're unsure what to do)
  600. (-1 to exit) (-3 to auto merge all files)
  601. (-5 to auto-merge AND not use 'mv -i')
  602. (-7 to discard all updates)
  603. (-9 to discard all updates AND not use 'rm -i'): -3
  604. Replacing /etc/portage/package.use/zzz_via_autounmask with /etc/portage/package.use/._cfg0000_zzz_via_autounmask
  605. mv: overwrite '/etc/portage/package.use/zzz_via_autounmask'? yes
  606. Exiting: Nothing left to do; exiting. :)
  607.  
  608. (chroot) kubuntu / # echo -e "# error a instalar el sistema\n>=sys-libs/libcap-2.31 -pam" > /etc/portage/package.use/libcap
  609.  
  610. (chroot) kubuntu / # echo -e "# error a instalar el sistema\n>=sys-libs/pam-1.3.1_p20200128 -filecaps" > /etc/portage/package.use/pam
  611.  
  612.  
  613. (chroot) kubuntu / # emerge --ask --verbose --emptytree --with-bdeps=y @world
  614.  
  615.  
  616. Otro error:
  617.  
  618. * Error: circular dependencies:
  619.  
  620. (x11-libs/libX11-1.6.9:0/0::gentoo, ebuild scheduled for merge) depends on
  621. (x11-libs/libxcb-1.13.1:0/1.12::gentoo, ebuild scheduled for merge) (buildtime)
  622. (dev-lang/python-3.8.1:3.8/3.8::gentoo, ebuild scheduled for merge) (buildtime)
  623. (net-wireless/bluez-5.52:0/3::gentoo, ebuild scheduled for merge) (buildtime)
  624. (sys-apps/dbus-1.12.16:0/0::gentoo, ebuild scheduled for merge) (buildtime_slot_op)
  625. (x11-libs/libX11-1.6.9:0/0::gentoo, ebuild scheduled for merge) (buildtime)
  626.  
  627. It might be possible to break this cycle
  628. by applying any of the following changes:
  629. - sys-apps/dbus-1.12.16 (Change USE: -X)
  630. - dev-lang/python-3.8.1 (Change USE: -bluetooth)
  631. - net-wireless/bluez-5.52 (Change USE: +systemd)
  632.  
  633. lo solucionamos
  634.  
  635. (chroot) kubuntu / # echo -e "# error a instalar el sistema\n>=dev-lang/python-3.8.1 -bluetooth" > /etc/portage/package.use/python
  636.  
  637. (chroot) kubuntu / # emerge --ask --verbose --emptytree --with-bdeps=y @world
  638.  
  639. ponemos yes
  640.  
  641. Esperamos a que emerga 294 ebuilds que tardara lo suyo (no quedaros delante del pc)
  642.  
  643. (chroot) kubuntu / # etc-update
  644. Scanning Configuration files...
  645. The following is the list of files which need updating, each
  646. configuration file is followed by a list of possible replacement files.
  647. 1) /etc/locale.gen (1)
  648. 2) /etc/conf.d/keymaps (1)
  649. Please select a file to edit by entering the corresponding number.
  650. (don't use -3, -5, -7 or -9 if you're unsure what to do)
  651. (-1 to exit) (-3 to auto merge all files)
  652. (-5 to auto-merge AND not use 'mv -i')
  653. (-7 to discard all updates)
  654. (-9 to discard all updates AND not use 'rm -i'): -3
  655. Replacing /etc/locale.gen with /etc/._cfg0000_locale.gen
  656. mv: overwrite '/etc/locale.gen'? s
  657. Replacing /etc/conf.d/keymaps with /etc/conf.d/._cfg0000_keymaps
  658. mv: overwrite '/etc/conf.d/keymaps'? s
  659. Exiting: Nothing left to do; exiting. :)
  660. NOTE: 2 updates remaining
  661.  
  662. (chroot) kubuntu / # nano /etc/conf.d/keymaps.bak
  663. lo guardamos sin el .bak asi /etc/conf.d/keymaps
  664.  
  665. (chroot) kubuntu / # nano /etc/locale.gen.bak
  666. lo guardamos sin el .bak asi /etc/locale.gen
  667.  
  668. (chroot) kubuntu / # eselect profile set default/linux/amd64/17.1/desktop/plasma
  669.  
  670. (chroot) kubuntu / # emerge --ask --verbose --deep --with-bdeps=y --newuse --update @world
  671.  
  672. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  673. * Use eselect news read to view new items.
  674.  
  675.  
  676. These are the packages that would be merged, in order:
  677.  
  678. Calculating dependencies... done!
  679.  
  680. !!! Multiple package instances within a single package slot have been pulled
  681. !!! into the dependency graph, resulting in a slot conflict:
  682.  
  683. sys-libs/gdbm:0
  684.  
  685. (sys-libs/gdbm-1.13-r2:0/1.13::gentoo, ebuild scheduled for merge) USE="berkdb nls readline -exporter -static-libs" ABI_X86="32 (64) (-x32)" pulled in by
  686. >=sys-libs/gdbm-1.8.3:0/1.13= required by (dev-lang/perl-5.30.1:0/5.30::gentoo, installed) USE="berkdb gdbm -debug -doc -ithreads" ABI_X86="(64)"
  687. ^^^^^^^^
  688.  
  689. (sys-libs/gdbm-1.18.1:0/6::gentoo, installed) USE="berkdb nls readline -static-libs" ABI_X86="32 (64) (-x32)" pulled in by
  690. sys-libs/gdbm:0/6=[berkdb] required by (dev-lang/python-2.7.17-r1:2.7/2.7::gentoo, installed) USE="bluetooth gdbm ipv6 ncurses readline sqlite ssl (threads) (wide-unicode) xml (-berkdb) -build -examples -hardened -libressl -tk -wininst" ABI_X86="(64)"
  691. ^^^^^
  692.  
  693.  
  694. It may be possible to solve this problem by using package.mask to
  695. prevent one of those packages from being selected. However, it is also
  696. possible that conflicting dependencies exist such that they are
  697. impossible to satisfy simultaneously. If such a conflict exists in
  698. the dependencies of two different packages, then those packages can
  699. not be installed simultaneously.
  700.  
  701. For more information, see MASKED PACKAGES section in the emerge man
  702. page or refer to the Gentoo Handbook.
  703.  
  704.  
  705. !!! The ebuild selected to satisfy "sys-auth/polkit" has unmet requirements.
  706. - sys-auth/polkit-0.116-r1::gentoo USE="consolekit elogind gtk introspection kde nls pam -examples -jit (-selinux) -systemd -test" ABI_X86="(64)"
  707.  
  708. The following REQUIRED_USE flag constraints are unsatisfied:
  709. exactly-one-of ( consolekit elogind systemd )
  710.  
  711. (dependency required by "sys-auth/elogind-243.4::gentoo" [installed])
  712. (dependency required by "sys-apps/dbus-1.12.16::gentoo[elogind]" [installed])
  713. (dependency required by "net-wireless/bluez-5.52::gentoo[-systemd]" [ebuild])
  714. (dependency required by "dev-lang/python-2.7.17-r1::gentoo[bluetooth]" [installed])
  715. (dependency required by "dev-libs/libxml2-2.9.9-r3::gentoo[python_targets_python2_7,python]" [ebuild])
  716. (dependency required by "dev-libs/libxslt-1.1.33-r1::gentoo" [installed])
  717. (dependency required by "x11-libs/libxcb-1.13.1::gentoo" [ebuild])
  718. (dependency required by "x11-libs/libX11-1.6.9::gentoo" [installed])
  719. (dependency required by "x11-libs/libXt-1.2.0::gentoo" [installed])
  720.  
  721. Portage nos da otro error vamos a denagar systemd y consolekit en las uses de make.conf
  722.  
  723. (chroot) kubuntu / # nano -w /etc/portage/make.conf
  724.  
  725. DENEGADAS="-consolekit -gnome -qt3support -qt4 -systemd"
  726.  
  727.  
  728. (chroot) kubuntu / # emerge --ask --verbose --deep --with-bdeps=y --newuse --update @world
  729.  
  730. Esperamos a que emerga 239 ebuilds que tardara lo suyo (no quedaros delante del pc)
  731.  
  732. (chroot) kubuntu / # etc-update
  733. Scanning Configuration files...
  734. The following is the list of files which need updating, each
  735. configuration file is followed by a list of possible replacement files.
  736. 1) /etc/locale.gen (1)
  737. 2) /etc/conf.d/keymaps (1)
  738. Please select a file to edit by entering the corresponding number.
  739. (don't use -3, -5, -7 or -9 if you're unsure what to do)
  740. (-1 to exit) (-3 to auto merge all files)
  741. (-5 to auto-merge AND not use 'mv -i')
  742. (-7 to discard all updates)
  743. (-9 to discard all updates AND not use 'rm -i'): -3
  744. Replacing /etc/locale.gen with /etc/._cfg0000_locale.gen
  745. mv: overwrite '/etc/locale.gen'? s
  746. Replacing /etc/conf.d/keymaps with /etc/conf.d/._cfg0000_keymaps
  747. mv: overwrite '/etc/conf.d/keymaps'? s
  748. Exiting: Nothing left to do; exiting. :)
  749. NOTE: 2 updates remaining
  750.  
  751. (chroot) kubuntu / # nano /etc/conf.d/keymaps.bak
  752. lo guardamos sin el .bak asi /etc/conf.d/keymaps
  753.  
  754. (chroot) kubuntu / # nano /etc/locale.gen.bak
  755. lo guardamos sin el .bak asi /etc/locale.gen
  756.  
  757.  
  758. (chroot) kubuntu / # emerge gentoo-sources plymouth genkernel-next lvm2 pciutils usbutils gentoolkit genlop eix
  759.  
  760. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  761. * Use eselect news read to view new items.
  762.  
  763.  
  764. These are the packages that would be merged, in order:
  765.  
  766. Calculating dependencies... done!
  767. [ebuild N ] app-shells/push-2.0-r1::gentoo 3 KiB
  768. [ebuild N ] app-shells/quoter-3.0_p2-r1::gentoo 11 KiB
  769. [ebuild R ] x11-libs/libdrm-2.4.100::gentoo USE="libkms* -valgrind" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="-amdgpu (-exynos) (-freedreno) -intel -nouveau (-omap) -radeon (-tegra) (-vc4) (-vivante) -vmware" 0 KiB
  770. [ebuild N ] sys-kernel/gentoo-sources-5.5.2-r1:5.5.2-r1::gentoo USE="-build -experimental -symlink" 30 KiB
  771. [ebuild N ] dev-perl/Date-Manip-6.600.0::gentoo USE="-test" 1783 KiB
  772. [ebuild N ] app-portage/eix-0.33.9-r1::gentoo USE="nls -debug -doc -sqlite" 614 KiB
  773. [ebuild N ] app-portage/genlop-0.30.10-r2::gentoo 21 KiB
  774. [ebuild N ] app-portage/gentoolkit-0.4.7::gentoo PYTHON_TARGETS="python2_7 python3_6 -pypy3 -python3_7 -python3_8" 3131 KiB
  775. [ebuild N ] app-text/asciidoc-8.6.10_p20181016::gentoo USE="-examples -graphviz -highlight -test" PYTHON_SINGLE_TARGET="python3_6 -pypy3 -python3_7" PYTHON_TARGETS="python3_6 -pypy3 -python3_7" 564 KiB
  776. [ebuild N ] sys-apps/pciutils-3.6.4::gentoo USE="kmod udev zlib -dns -static-libs" ABI_X86="32 (64) (-x32)" 487 KiB
  777. [ebuild N ] sys-apps/usbutils-012::gentoo USE="-python" PYTHON_SINGLE_TARGET="python3_6 -python3_7" PYTHON_TARGETS="python3_6 -python3_7" 97 KiB
  778. [ebuild R ] sys-fs/lvm2-2.02.186-r2::gentoo USE="readline thin udev -device-mapper-only -lvm2create_initrd -sanlock (-selinux) -static -static-libs -systemd" 0 KiB
  779. [ebuild N ] sys-kernel/genkernel-next-70::gentoo USE="cryptsetup -dmraid -gpg -iscsi -mdadm -plymouth (-selinux)" 2348 KiB
  780. [ebuild N ] sys-boot/plymouth-0.9.4-r1::gentoo USE="gtk libkms pango (split-usr) udev -debug -gdm -static-libs" 1092 KiB
  781.  
  782. Total: 14 packages (12 new, 2 reinstalls), Size of downloads: 10173 KiB
  783.  
  784. The following USE changes are necessary to proceed:
  785. (see "package.use" in the portage(5) man page for more details)
  786. # required by sys-boot/plymouth-0.9.4-r1::gentoo[libkms]
  787. # required by plymouth (argument)
  788. >=x11-libs/libdrm-2.4.100 libkms
  789.  
  790. Would you like to add these changes to your config files? [Yes/No] yes
  791.  
  792. (chroot) kubuntu / # etc-update
  793. Scanning Configuration files...
  794. The following is the list of files which need updating, each
  795. configuration file is followed by a list of possible replacement files.
  796. 1) /etc/locale.gen (1)
  797. 2) /etc/conf.d/keymaps (1)
  798. 3) /etc/portage/package.use/zzz_via_autounmask (1)
  799. Please select a file to edit by entering the corresponding number.
  800. (don't use -3, -5, -7 or -9 if you're unsure what to do)
  801. (-1 to exit) (-3 to auto merge all files)
  802. (-5 to auto-merge AND not use 'mv -i')
  803. (-7 to discard all updates)
  804. (-9 to discard all updates AND not use 'rm -i'): -3
  805.  
  806.  
  807. (chroot) kubuntu / # emerge plymouth genkernel-next lvm2 pciutils usbutils gentoolkit genlop eix
  808.  
  809. (chroot) kubuntu / # emerge sys-kernel/linux-firmware
  810.  
  811. (chroot) kubuntu / # echo -e "# Kernel experimental para AMD RYZEN\nsys-kernel/gentoo-sources experimental" > /etc/portage/package.use/gentoo-sources
  812.  
  813. chroot) kubuntu / # emerge gentoo-sources
  814.  
  815. (chroot) kubuntu / # cd /usr/src/linux
  816.  
  817. (chroot) kubuntu /usr/src/linux # make menuconfig
  818.  
  819. Configuracion del kernel:
  820.  
  821. # Poner nombre al kernel y guardar configuracion en un archivo oculto
  822. General setup --->
  823. (-elover) Local version - append to kernel release (NEW) │ │
  824. <*> Kernel .config support
  825. [*] Enable access to .config through /proc/config.gz
  826.  
  827. # Configuracion para Ryzen amd
  828.  
  829. Processor type and features --->
  830. [*] Symmetric multi-processing support
  831. [*] AMD ACPI2Platform devices support
  832. Processor family (Opteron/Athlon64/Hammer/K8) --->
  833. (X) Opteron/Athlon64/Hammer/K8
  834. [*] Supported processor vendors --->
  835. [*] Support AMD processors (NEW)
  836. [*] SMT (Hyperthreading) scheduler support
  837. [*] Multi-core scheduler support
  838. [*] Machine Check / overheating reporting
  839. [*] AMD MCE features
  840. Performance monitoring --->
  841. <*> AMD Processor Power Reporting Mechanism
  842. [*] AMD microcode loading support
  843. Power management and ACPI options --->
  844. CPU Frequency scaling --->
  845. <*> AMD Opteron/Athlon64 PowerNow!
  846. <*> AMD frequency sensitivity feedback powersave bias
  847. Device Drivers --->
  848. Generic Driver Options --->
  849. (amd-ucode/microcode_amd_fam17h.bin) External firmware blobs to build into the kernel binary
  850. (/lib/firmware) Firware blobs root directory
  851. [*] IOMMU Hardware Support --->
  852. [*] AMD IOMMU support
  853. <*> AMD IOMMU Version 2 driver
  854. [*] Hardware Monitoring support --->
  855. [*] AMD Family 10h+ temperature sensor
  856. Processor family (MZEN) --->
  857. (X) AMD Zen
  858.  
  859. # Frecuencia del procesador
  860. Power management and ACPI options --->
  861. CPU Frequency scaling --->
  862. Default CPUFreq governor (schedutil) --->
  863.  
  864. # Virualizacion
  865. [*] Virtualization --->
  866. <*> Kernel-based Virtual Machine (KVM) support │ │
  867. < > KVM for Intel processors support (NEW) │ │
  868. <*> KVM for AMD processors support │ │
  869. [ ] Audit KVM MMU (NEW) │ │
  870. <*> Host kernel accelerator for virtio net │ │
  871. [*] Cross-endian support for vhost │ │
  872.  
  873. # configuracion blobs <Micocodigo para procesadores ryzen y driver [ara creative gama Z en mi caso ZxR >
  874. Device Drivers --->
  875. `Generic Driver Options --->
  876. Firmware loader --->
  877. (amd-ucode/microcode_amd_fam17h.bin ctefx.bin) Build named firmware blobs into the kernel binary
  878.  
  879. # Configuracion para VMWARE
  880. Device Drivers --->
  881. Misc devices --->
  882. <*> VMware VMCI Driver
  883. SCSI device support --->
  884. [*] SCSI low-level drivers --->
  885. <*> VMware PVSCSI driver support
  886. [*] Virtio drivers ---
  887. <*> PCI driver for virtio devices>
  888. <*> Virtio balloon driver
  889. <*> Virtio input driver
  890. [*] Network device support --->
  891. <*> VMware VMXNET3 ethernet driver
  892. Networking support --->
  893. Networking options --->
  894. <*> Virtual Socket protocol
  895. <*> VMware VMCI transport for Virtual Sockets
  896.  
  897. # Configuracion para vpn
  898. Device Drivers --->
  899. [*] Network device support --->
  900. <*> Universal TUN/TAP device driver support
  901.  
  902. # configuracian qemu
  903. Networking support --->
  904. Networking options --->
  905. <*> The IPv6 protocol
  906. <*> 802.1d Ethernet Bridging
  907.  
  908. # configuracian bluetooth
  909. [*] Networking support --->
  910. <M> Bluetooth subsystem support --->
  911. [*] Bluetooth Classic (BR/EDR) features
  912. <*> RFCOMM protocol support
  913. [ ] RFCOMM TTY support
  914. < > BNEP protocol support
  915. [ ] Multicast filter support
  916. [ ] Protocol filter support
  917. <*> HIDP protocol support
  918. [*] Bluetooth High Speed (HS) features
  919. [*] Bluetooth Low Energy (LE) features
  920. Bluetooth device drivers --->
  921. <M> HCI USB driver
  922. <M> HCI UART driver
  923. <*> RF switch subsystem support --->
  924. Device Drivers --->
  925. HID support --->
  926. <*> User-space I/O driver support for HID subsystem
  927.  
  928. # Configuracion de tarjeta de red (descativar todas menos la tarjeta de red que tengais)
  929. Device Drivers --->
  930. [*] Network device support --->
  931. [*] Ethernet driver support --->
  932. [*] Realtek devices
  933. <*> Realtek 8169/8168/8101/8125 ethernet support
  934.  
  935.  
  936. # Configuracion de perifericos gamer, mandos, jostick y mouse
  937. Device Drivers --->
  938. Input device support --->
  939. <*> Joystick interface
  940. [*] Joysticks/Gamepads --->
  941. <*> Classic PC analog joysticks and gamepads
  942. <*> X-Box gamepad support
  943. [*] X-Box gamepad rumble support
  944. [*] LED Support for Xbox360 controller 'BigX' LED
  945. HID support --->
  946. Special HID drivers --->
  947. <*> Corsair devices
  948. <*> Mayflash game controller adapter force feedback
  949. <*> Roccat device support
  950. <*> Sony PS2/3/4 accessories
  951. [*] Sony PS2/3/4 accessories force feedback support
  952. <*> Nintendo Wii / Wii U peripherals
  953.  
  954. # Configuar webcam, tdt y satelite
  955. Device Drivers --->
  956. <*> Multimedia support --->
  957. [*] Cameras/video grabbers support
  958. [*] Digital TV support
  959. [*] Media USB Adapters --->
  960. <*> USB Video Class (UVC)
  961. <*> Support for various USB DVB devices v2
  962. <*> Afatech AF9035 DVB-T USB2.0 support
  963.  
  964. # Configuracion nvidia
  965. Device Drivers --->
  966. <> Intel 8xx/9xx/G3x/G4x/HD Graphics
  967. [ ] Bootup logo ----
  968.  
  969. # tarjetas de sonido
  970. Device Drivers --->
  971. <*> Advanced Linux Sound Architecture --->
  972. HD-Audio --->
  973. [*] Support initialization patch loading for HD-audio
  974. <*> Build Realtek HD-audio codec support
  975. <*> Build HDMI/DisplayPort HD-audio codec support
  976. <*> Build Creative CA0132 codec support
  977. [*] Support new DSP code for CA0132 codec0
  978. (2048) Pre-allocated buffer size for HD-audio driver
  979. [*] USB sound devices --->
  980. <*> USB Audio/MIDI driver
  981.  
  982. # Configuracuion usb y ttl
  983. Device Drivers --->
  984. [*] USB support --->
  985. <*> USB Serial Converter support --->
  986. [*] USB Serial Console device support
  987. [*] USB Generic Serial Driver
  988. <*> USB Serial Simple Driver
  989. <*> USB CP210x family of UART Bridge Controllers
  990. ` <*> USB Type-C Support --->
  991. <*> Thunderbolt support ----
  992.  
  993. # Tarjetas de memoria flash
  994. Device Drivers --->
  995. <*> MMC/SD/SDIO card support --->
  996. <*> Sony MemoryStick card support --->
  997. <*> MemoryStick Pro block device driver
  998. <*> MemoryStick Standard device driver
  999.  
  1000. # Sistema de archivos
  1001. File systems --->
  1002. <*> Btrfs filesystem support
  1003. [*] Btrfs POSIX Access Control Lists
  1004. [*] Btrfs assert support
  1005. [*] Btrfs with the ref verify tool compiled in
  1006. <*> FUSE (Filesystem in Userspace) support
  1007. <*> Character device in Userspace support
  1008. CD-ROM/DVD Filesystems --->
  1009. <M> UDF file system support
  1010. DOS/FAT/NT Filesystems --->
  1011. [*] Enable FAT UTF-8 option by default
  1012. ` <*> NTFS file system support
  1013. [*] NTFS write support
  1014.  
  1015. # Encriptacion, lvm etc
  1016. Device Drivers --->
  1017. Multiple devices driver support (RAID and LVM) --->
  1018. <*> Device mapper support
  1019. <*> Crypt target support
  1020. <*> Snapshot target
  1021. <*> Mirror target
  1022. <*> Multipath target
  1023. <*> I/O Path Selector based on the number of in-flight I/Os
  1024. <*> I/O Path Selector based on the service time
  1025. Cryptographic API --->
  1026. <*> Parallel crypto engine
  1027. <*> XTS support
  1028. <*> SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)
  1029. <*> SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)
  1030. <*> SHA512 digest algorithm (SSSE3/AVX/AVX2)
  1031. -*- SHA224 and SHA256 digest algorithm
  1032. -*- SHA384 and SHA512 digest algorithms
  1033. <*> SHA3 digest algorithm
  1034. <*> Tiger digest algorithms
  1035. <*> Whirlpool digest algorithms
  1036. <*> Fixed time AES cipher
  1037. <*> AES cipher algorithms (AES-NI)
  1038. <*> Serpent cipher algorithm (x86_64/SSE2)
  1039. -*- Serpent cipher algorithm (x86_64/AVX)
  1040. <*> Serpent cipher algorithm (x86_64/AVX2)
  1041. <*> TEA, XTEA and XETA cipher algorithms
  1042. <*> Twofish cipher algorithm
  1043. -*- Twofish cipher algorithm (x86_64)
  1044. -*- Twofish cipher algorithm (x86_64, 3-way parallel) │
  1045. <*> Twofish cipher algorithm (x86_64/AVX)
  1046. <*> LZO compression algorithm
  1047. <*> LZ4 compression algorithm
  1048. <*> LZ4HC compression algorithm
  1049. <*> Zstd compression algorithm
  1050. <*> Pseudo Random Number Generation for Cryptographic modules
  1051. <*> User-space interface for hash algorithms
  1052. <*> User-space interface for symmetric key cipher algorithms
  1053. <*> User-space interface for random number generator algorithms
  1054. <*> User-space interface for AEAD cipher algorithms
  1055.  
  1056.  
  1057. # Salvamos configuracion
  1058.  
  1059. (chroot) kubuntu /usr/src/linux # make -j17
  1060.  
  1061. (chroot) kubuntu /usr/src/linux # make modules_install
  1062.  
  1063. (chroot) kubuntu /usr/src/linux # make install
  1064.  
  1065. (chroot) kubuntu ~ # emerge dev-vcs/git
  1066.  
  1067. (chroot) kubuntu ~ # nano -w /etc/portage/repos.conf/sakaki-tools.conf
  1068.  
  1069. [sakaki-tools]
  1070.  
  1071. # Various utility ebuilds for Gentoo on EFI
  1072. # Maintainer: sakaki (sakaki@deciban.com)
  1073.  
  1074. location = /var/db/repos/sakaki-tools
  1075. sync-type = git
  1076. sync-uri = https://github.com/sakaki-/sakaki-tools.git
  1077. priority = 50
  1078. auto-sync = yes
  1079.  
  1080. (chroot) kubuntu ~ # emaint sync --repo sakaki-tools
  1081.  
  1082.  
  1083. (chroot) kubuntu /usr/src/linux # emerge efitools
  1084.  
  1085. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  1086. * Use eselect news read to view new items.
  1087.  
  1088.  
  1089. These are the packages that would be merged, in order:
  1090.  
  1091. Calculating dependencies... done!
  1092. [ebuild N ] sys-boot/gnu-efi-3.0.11::gentoo USE="(-custom-cflags)" ABI_X86="32 (64)" 151 KiB
  1093. [ebuild N ] app-crypt/sbsigntools-0.9.2::gentoo 167 KiB
  1094. [ebuild N ] dev-perl/File-Slurp-9999.270.0::gentoo USE="-test" 37 KiB
  1095. [ebuild N ] app-crypt/efitools-1.9.2::sakaki USE="-libressl -static" 114 KiB
  1096.  
  1097. Total: 4 packages (4 new), Size of downloads: 468 KiB
  1098.  
  1099. Would you like to merge these packages? [Yes/No] yes
  1100. >>> Verifying ebuild manifests
  1101.  
  1102. (chroot) kubuntu ~ # emerge btrfs-progs
  1103.  
  1104. * IMPORTANT: 5 news items need reading for repository 'sakaki-tools'.
  1105. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  1106. * Use eselect news read to view new items.
  1107.  
  1108.  
  1109. These are the packages that would be merged, in order:
  1110.  
  1111. Calculating dependencies... done!
  1112. [ebuild N ] app-arch/zstd-1.4.4-r2:0/1::gentoo USE="-lz4 -static-libs" ABI_X86="32 (64) (-x32)" 1917 KiB
  1113. [ebuild N ] sys-fs/btrfs-progs-5.4.1::gentoo USE="convert zstd -doc -python -reiserfs -static -static-libs" PYTHON_SINGLE_TARGET="python3_6 -python3_7" PYTHON_TARGETS="python3_6 -python3_7" 2059 KiB
  1114.  
  1115. Total: 2 packages (2 new), Size of downloads: 3975 KiB
  1116.  
  1117. Would you like to merge these packages? [Yes/No] yes
  1118.  
  1119.  
  1120. (chroot) kubuntu ~ # genkernel --install --luks --lvm --udev initramfs
  1121.  
  1122.  
  1123. creamos fstab
  1124.  
  1125. (chroot) kubuntu ~ # blkid
  1126.  
  1127. Buscamos el sdg1 y copiamos uuid
  1128.  
  1129. (chroot) kubuntu ~ # nano /etc/fstab
  1130.  
  1131. UUID=xxxx-xxxxx /boot/efi ext4 noauto,noatime 1 2
  1132. /dev/mapper/gentoovg-root / rw,noatime,compress=lzo,ssd,discard,space_cache,inode_cache 0 1
  1133. /dev/mapper/gentoovg-home /home rw,noatime,compress=lzo,ssd,discard,space_cache,inode_cache 0 1
  1134. /dev/mapper/gentoovg-swap none swap sw 0 0
  1135. tmpfs /var/tmp tmpfs rw,nosuid,noatime,nodev,size=2G,mode=1777 0 0
  1136. tmpfs /var/tmp/portage tmpfs rw,nosuid,noatime,nodev,size=12G,mode=775,uid=portage,gid=portage,x-mount.mkdir=775 0 0
  1137.  
  1138. (chroot) kubuntu ~ # eselect locale set 7
  1139. Setting LANG to es_ES.utf8 ...
  1140. Run ". /etc/profile" to update the variable in your shell.
  1141.  
  1142.  
  1143. (chroot) kubuntu ~ # env-update && source /etc/profile && export PS1="(chroot) $PS1"
  1144. >>> Regenerating /etc/ld.so.cache...
  1145.  
  1146. # editamos nombre de la maquina
  1147.  
  1148. nano -w /etc/hosts
  1149. chroot) kubuntu ~ # nano -w /etc/conf.d/hostname
  1150.  
  1151. # Set to the hostname of this machine
  1152. hostname="elover"
  1153.  
  1154. (chroot) kubuntu ~ # nano /etc/hosts
  1155.  
  1156. # IPv4 and IPv6 localhost aliases
  1157. 127.0.0.1 localhost elover-pc
  1158. ::1 localhost elover-pc
  1159.  
  1160. (chroot) kubuntu ~ # passwd
  1161. New password:
  1162.  
  1163. # Instlamos complementos
  1164. (chroot) kubuntu ~ # emerge --ask app-admin/sysklogd sys-process/cronie sys-apps/mlocate sys-fs/dosfstools app-admin/syslog-ng
  1165.  
  1166. (chroot) kubuntu ~ # sed -i 's/threaded(yes)/threaded(no)/g' /etc/syslog-ng/syslog-ng.conf
  1167.  
  1168.  
  1169. (chroot) kubuntu ~ # sed -i 's/threaded(yes)/threaded(no)/g' /etc/syslog-ng/syslog-ng.conf
  1170.  
  1171. (chroot) kubuntu ~ # rc-update add sysklogd default
  1172. * service sysklogd added to runlevel default
  1173.  
  1174. (chroot) kubuntu ~ # rc-update add cronie default
  1175. * service cronie added to runlevel default
  1176.  
  1177. (chroot) kubuntu ~ # rc-update add NetworkManager default
  1178. * service NetworkManager added to runlevel default
  1179.  
  1180. (chroot) kubuntu ~ # crontab /etc/crontab
  1181.  
  1182.  
  1183. # instalamos grub
  1184.  
  1185. (chroot) kubuntu ~ # emerge grub
  1186.  
  1187. * IMPORTANT: 5 news items need reading for repository 'sakaki-tools'.
  1188. * IMPORTANT: 5 news items need reading for repository 'gentoo'.
  1189. * Use eselect news read to view new items.
  1190.  
  1191.  
  1192. These are the packages that would be merged, in order:
  1193.  
  1194. Calculating dependencies... done!
  1195. [ebuild N ] media-libs/libogg-1.3.4::gentoo USE="-static-libs" ABI_X86="32 (64) (-x32)" 419 KiB
  1196. [ebuild N ] media-libs/opus-1.3.1-r1::gentoo USE="-custom-modes -doc -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse" 1.016 KiB
  1197. [ebuild N ] media-libs/alsa-lib-1.2.1.2::gentoo USE="thread-safety -alisp -debug -doc -python" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_7" PYTHON_TARGETS="python2_7 python3_6 -python3_7" 981 KiB
  1198. [ebuild N ] net-libs/libasyncns-0.8-r4::gentoo USE="-debug -doc" ABI_X86="32 (64) (-x32)" 334 KiB
  1199. [ebuild N ] dev-lang/orc-0.4.31::gentoo USE="-gtk-doc -static-libs -test" ABI_X86="32 (64) (-x32)" 174 KiB
  1200. [ebuild N ] media-libs/webrtc-audio-processing-0.3.1::gentoo USE="-static-libs" ABI_X86="32 (64) (-x32)" 680 KiB
  1201. [ebuild N ] media-libs/flac-1.3.3::gentoo USE="cxx ogg (-altivec) -debug -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse" 1.020 KiB(chroot) kubuntu ~ # nano /etc/hosts
  1202. [ebuild N ] sys-libs/efivar-37:0/1::gentoo 107 KiB
  1203. [ebuild N ] media-libs/sbc-1.4::gentoo USE="-static-libs" ABI_X86="32 (64) (-x32)" 245 KiB
  1204. [ebuild N ] media-libs/speexdsp-1.2_rc3-r2::gentoo USE="-static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="sse sse2" 881 KiB
  1205. [ebuild N ] media-libs/libvorbis-1.3.6-r1::gentoo USE="-static-libs -test" ABI_X86="32 (64) (-x32)" 1.168 KiB
  1206. [ebuild N ] dev-scheme/guile-2.2.6:12/2.2-1::gentoo USE="deprecated networking nls regex threads -debug -debug-malloc" 17.708 KiB
  1207. [ebuild N ] sys-boot/efibootmgr-16::gentoo 36 KiB
  1208. [ebuild N ] media-libs/audiofile-0.3.6-r3:0/1::gentoo USE="flac -static-libs -test" ABI_X86="32 (64) (-x32)" 519 KiB
  1209. [ebuild N ] sys-devel/autogen-5.18.16-r1::gentoo USE="-libopts -static-libs" 1.033 KiB
  1210. [ebuild N ] media-libs/libsndfile-1.0.29_pre2_p20191024::gentoo USE="alsa -minimal -sqlite -static-libs -test" ABI_X86="32 (64) (-x32)" 705 KiB
  1211. [ebuild N ] media-sound/pulseaudio-13.0::gentoo USE="X alsa alsa-plugin asyncns bluetooth caps dbus elogind gdbm glib gtk ipv6 orc qt5 ssl tcpd udev webrtc-aec -doc -equalizer -gconf -jack -libressl -libsamplerate -lirc -native-headset -ofono-headset (-oss) -realtime (-selinux) -sox (-system-wide) -systemd -test -zeroconf" ABI_X86="32 (64) (-x32)" 1.858 KiB
  1212. [ebuild N ] media-plugins/alsa-plugins-1.2.1::gentoo USE="mix pulseaudio usb_stream -arcam_av -debug -ffmpeg -jack -libav -libsamplerate -oss -speex" ABI_X86="32 (64) (-x32)" 397 KiB
  1213. [ebuild N ] media-libs/libsdl-1.2.15-r9::gentoo USE="X alsa joystick opengl pulseaudio sound video xv -aalib -custom-cflags -dga -fbcon -libcaca -nas -oss -static-libs -tslib -xinerama" ABI_X86="32 (64) (-x32)" 3.829 KiB
  1214. [ebuild N ] sys-boot/grub-2.05_alpha20200110:2/2.05_alpha20200110::gentoo USE="fonts nls sdl themes truetype -device-mapper -doc -efiemu -libzfs -mount (-test)" GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32 -xen-pvh" 7.037 KiB
  1215.  
  1216. Total: 20 packages (20 new), Size of downloads: 40.140 KiB
  1217.  
  1218. Would you like to merge these packages? [Yes/No] yes
  1219.  
  1220. blkid /dev/sdf2 y copiamos PARTUUID
  1221.  
  1222. (chroot) kubuntu ~ # nano -w /etc/default/grub
  1223.  
  1224. GRUB_PRELOAD_MODULES=lvm
  1225. GRUB_ENABLE_CRYPTODISK=y
  1226. GRUB_DEVICE=/dev/ram0
  1227. GRUB_CMDLINE_LINUX="crypt_root=/dev/disk/by-partuuid/33a5f14f-XXXXXX-XXXXX-XXXX real_root=/dev/mapper/gentoovg/root rootfstype=btrfs dolvm real_init=/sbin/init real_resume=/dev/mapper/vg1-swap keymap=es quiet splash root_trim=yes"
  1228.  
  1229. (chroot) kubuntu ~ # rc-update add lvm boot
  1230. * service lvm added to runlevel boot
  1231.  
  1232. (chroot) kubuntu ~ # emerge os-prober
  1233.  
  1234. * IMPORTANT: 5 news items need reading for repository 'sakaki-tools'.
  1235. * IMPORTANT: 6 news items need reading for repository 'gentoo'.
  1236. * Use eselect news read to view new items.
  1237.  
  1238.  
  1239. These are the packages that would be merged, in order:
  1240.  
  1241. Calculating dependencies... done!
  1242. [ebuild N ] sys-fs/fuse-common-3.9.0::gentoo 1.488 KiB
  1243. [ebuild N ] sys-fs/fuse-2.9.9-r1::gentoo USE="-examples -static-libs" 1.771 KiB
  1244. [ebuild R ] sys-boot/grub-2.05_alpha20200110:2/2.05_alpha20200110::gentoo USE="device-mapper fonts mount* nls sdl themes truetype -doc -efiemu -libzfs (-test)" GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32 -xen-pvh" 0 KiB
  1245. [ebuild N ] sys-boot/os-prober-1.77::gentoo 27 KiB
  1246.  
  1247. Total: 4 packages (3 new, 1 reinstall), Size of downloads: 3.285 KiB
  1248.  
  1249. The following USE changes are necessary to proceed:
  1250. (see "package.use" in the portage(5) man page for more details)
  1251. # required by sys-boot/os-prober-1.77::gentoo
  1252. # required by os-prober (argument)
  1253. >=sys-boot/grub-2.05_alpha20200110 mount
  1254.  
  1255. Would you like to add these changes to your config files? [Yes/No] yes
  1256.  
  1257.  
  1258. (chroot) kubuntu ~ # etc-update
  1259. Scanning Configuration files...
  1260. The following is the list of files which need updating, each
  1261. configuration file is followed by a list of possible replacement files.
  1262. 1) /etc/portage/package.use/zzz_via_autounmask (1)
  1263. Please select a file to edit by entering the corresponding number.
  1264. (don't use -3, -5, -7 or -9 if you're unsure what to do)
  1265. (-1 to exit) (-3 to auto merge all files)
  1266. (-5 to auto-merge AND not use 'mv -i')
  1267. (-7 to discard all updates)
  1268. (-9 to discard all updates AND not use 'rm -i'): -3
  1269. Replacing /etc/portage/package.use/zzz_via_autounmask with /etc/portage/package.use/._cfg0000_zzz_via_autounmask
  1270. mv: ¿sobreescribir '/etc/portage/package.use/zzz_via_autounmask'? (s/n) s
  1271. Exiting: Nothing left to do; exiting. :)
  1272.  
  1273.  
  1274.  
  1275.  
  1276. grub-install --target=x86_64-efi --efi-directory=/boot/efi # para uefi
  1277. grub-install /dev/sda # para bios
  1278. grub-mkconfig -o /boot/grub/grub.cfg
  1279.  
  1280. #Creamos el usuario
  1281. useradd -m -G users,wheel,audio,video,cdrom,cdrw,usb,plugdev -s /bin/bash elover
  1282. passwd elover
  1283.  
  1284.  
  1285. #reiniciamos
  1286. exit
  1287. cd
  1288. umount -l /mnt/gentoo/dev{/shm,/pts,}
  1289. umount -R /mnt/gentoo
  1290. reboot
  1291.  
  1292. emerge sudo
  1293.  
  1294. nano /etc/sudoers
  1295.  
  1296. Desmarcamos la wheel no la wheel root
  1297.  
  1298. emerge xorg-drivers
  1299.  
  1300. eselect opegnl set nvidia
  1301. eselect opegnl set nvidia
  1302.  
  1303. reboot
  1304.  
  1305. emerge xterm twm
  1306.  
  1307. startx #si inicia todo perfecto
  1308.  
  1309. emerge plasma-meta
  1310.  
  1311. nano /etc/conf.d/xdm
  1312.  
  1313. cambiamos xdm por sddm
  1314.  
  1315. rc-update add xdm default
  1316.  
  1317. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement