Debian_12_on_imac_2017/README.md
2025-07-31 19:42:32 +08:00

149 lines
3.8 KiB
Markdown

# Debian 12 in Imac 2017
### Installare l'installer su pen drive
caricare la versione iso di debian 12 e installarlo in una chiavetta utilizzando Balena-Etcher
### Autorizzare lo user per lavorare come su (sudoers)
su
nano /etc/sudoers
inserire questa riga con user lo user che vuoi che abbia i privilegi di root
user ALL=(ALL:ALL) ALL
uscita da su
exit
### Installare sound su linux Debian 12 in un iMac 18.2 (late 2017)
sudo apt-get install linux-headers-$(uname -r)
sudo apt install build-essential
sudo apt install git
git clone http://forgit.patachina.it/Fabio/snd-hda-codec-cs8409.git
cd snd-hda-codec-cs8409
make
sudo make install
fare il reboot
deriva da [git link](https://github.com/egorenar/snd-hda-codec-cs8409)
### Installare tutti i pacchetti per Debian 12
copiare il file per un backup
sudo cp /etc/apt/sources.list .
editare sources.list
sudo nano /etc/apt/sources.list
cancellare tutto e inserire
deb https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware
deb https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
# deb-src https://ftp.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware
deb https://security.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
# deb-src https://security.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
fare update e upgrade
sudo apt update
sudo apt upgrade
## Installare mesa (accellerazione grafica)
sudo apt-get install mesa-utils
verificare con
glxinfo
con
glxinfo | grep OpenGL
dovrebbe risultare qualcosa del tipo
OpenGL vendor string: Intel Open Source Technology Center # The manufacturer
OpenGL renderer string: Mesa DRI Intel(R) Haswell Desktop # The type of the chip
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.2 # The OpenGL version fully supported, here 3.3 thanks to Mesa 10.3.2 .
OpenGL core profile shading language version string: 3.30 # The GLSL version fully supported
con il comando si verifica accellerazione 3D
glxinfo | grep rendering
dovrebbe dare
direct rendering: Yes
per vedere i frame per secondo
glxgears -info
## Installare l'ultima versione di mesa
sudo apt install -t bookworm-backports mesa-vulkan-drivers
## Verificare webcam
1. con l'uso del comando lsusb
```sh
lsusb | grep -E -i 'camera|webcam|video'
```
2. Usando v4l2-ctl
installare
sudo apt-get install v4l-utils
verificare con
v4l2-ctl --list-devices
si può anche guardare i vari nodi
v4l2-ctl -d /dev/video0 --all
3. usando l'applicazione con il comando
cheese
## Bootloader nel disco corretto
usare questo comando per vedere dove è installato
df
```sh
Filesystem 1K-blocks Used Available Use% Mounted on
udev 8091944 0 8091944 0% /dev
tmpfs 1627184 1768 1625416 1% /run
/dev/sdb2 489634808 7081020 457608280 2% /
tmpfs 8135912 0 8135912 0% /dev/shm
tmpfs 5120 12 5108 1% /run/lock
/dev/nvme0n1p1 306472 78560 227912 26% /boot/efi
tmpfs 1627180 84 1627096 1% /run/user/1000
```
per spostarlo su /dev/sdb1
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi /dev/sdb1
e poi
sudo update-grub