User Tools

Site Tools


informatica:raspberry:red_usb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:raspberry:red_usb [2022/05/17 15:09] joseinformatica:raspberry:red_usb [2022/05/18 08:12] (current) jose
Line 1: Line 1:
 Conectar a una raspberry por el cable de USB desde un portátil.  Conectar a una raspberry por el cable de USB desde un portátil. 
 +
 +https://howchoo.com/pi/raspberry-pi-gadget-mode
  
 Probaremos con raspberry 4 Probaremos con raspberry 4
Line 8: Line 10:
   1m25.225s   1m25.225s
  
-  /media/jose/rootfs/etc/dhcpcd.conf+  rootfs/etc/dhcpcd.conf
 <code> <code>
 interface usb0 interface usb0
Line 33: Line 35:
  
  
-  touch ssh+  touch boot/ssh
  
 +Añadir después de "rootwait" esto "modules-load=dwc2,g_ether"
   boot/cmdline.txt   boot/cmdline.txt
 Antes: Antes:
Line 40: Line 43:
 Después: Después:
    console=serial0,115200 console=tty1 root=PARTUUID=7d5a2870-02 rootfstype=ext4 fsck.repair=yes rootwait modules-load=dwc2,g_ether quiet init=/usr/lib/raspi-config/init_resize.sh    console=serial0,115200 console=tty1 root=PARTUUID=7d5a2870-02 rootfstype=ext4 fsck.repair=yes rootwait modules-load=dwc2,g_ether quiet init=/usr/lib/raspi-config/init_resize.sh
 +
 +
 +Para crear un usuario inicial. Después de 4 abril del 2022, se ha deshabilitado el usuario pi:
 +
 +https://downloads.raspberrypi.org/raspios_lite_armhf/release_notes.txt
 +  2022-04-04:
 +  * Default "pi" user has been removed; the first-boot wizard enforces the creation of a new user account
 +
 +Solución: https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
 +
 +Se crea el fichero: boot/userconf o boot/userconf.txt con el contenido:
 +  username:encrypted-password
 +La contraseña se encripta:
 +  echo 'mypassword' | openssl passwd -6 -stdin
  
informatica/raspberry/red_usb.1652800195.txt.gz · Last modified: 2022/05/17 15:09 by jose