Outils pour utilisateurs

Outils du site


public:install_debian_pc_wihout_ethernet

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
public:install_debian_pc_wihout_ethernet [2018/07/06 17:31] pcoudercpublic:install_debian_pc_wihout_ethernet [2020/03/31 17:41] (Version actuelle) pcouderc
Ligne 1: Ligne 1:
 === Install debian PC without ethernet === === Install debian PC without ethernet ===
 +
 +Slim laptops arrive now without ethernet but only wifi, so that internet may not be initially available...
  
 == Create an USB debian install disk == == Create an USB debian install disk ==
-Create a USB debian install disk with main packets in it, that is not the internet version, as internet will not be initially available. To do that prepare a list of needed package, including wifi driver if it is known. For exemple start from a running similar machine and :+Create a USB debian install disk with main packets in it, that is not the internet version, as internet will not be initially available.  
 <code> <code>
-apt install simple-cdd +dd if=debian......iso of=/dev/sdZ bs=4M status=progress
-mkdir build_dir +
-cd build_dir +
-dpkg --get-selections >package-list +
-vim package-list +
-mkdir profiles +
-grep -e '\<install$' package-list | awk '{print $1};' >profiles/my-profile.downloads+
 </code> </code>
-Update my-profile.downloads to include more packages if needed.+Add a 3rd partition for various uses on /dev/sdZ3
  
-Create config file my-cdd.config :+ 
 +== Install basic == 
 + 
 +- Standard install on debian, add EFI partition (512M), and remaining in btrfs partition mounted on / 
 + 
 +To install more packets from USB /dev/sda1:
 <code> <code>
-debian_mirror="http://ftp2.fr.debian.org/debian/" +mount  /dev/sda1 /media/cdrom
-mirror_components="main contrib non-free" +update /apt/sources.list with : 
-profiles="my-profile" +deb  [trusted=yes] file:/media/cdrom/ stretch  main 
-auto_profiles="my-profile"+apt update 
 +apt install vim
 </code> </code>
-Create the CD with :+ 
 + 
 +== Install networking == 
 + 
 +First check that network is available with : 
 <code> <code>
-build-simple-cdd --conf ./my-cdd.conf +ip a
-dd bs=4M if=xxx.iso of=/dev/sdb1 && sync+
 </code> </code>
  
 +To get the type of wifi available :
  
 +<code>
 +lspci -nn | grep -i network
 +</code>
  
-== Standard install == +Find the "good" driver (in some .deb maybe non-free), install it from apt, or maybe from an USB key with : 
-- Standard install on debian, add EFI partition (512M), and remaining in a btrfs partition mounted on /+<code> 
 +dpkg -i firmware-xxx 
 +</code> 
 +Get information and check it is in use with : 
 +<code> 
 +ip a 
 +iwconfig 
 +    et si nécessaire : 
 +ip link set dev wlan0 up 
 +iwlist scan     
 +</code>
  
-- add the USB in /etc/fstab (here /dev/sda1, found with "fdisk -l")+ 
 +Install networking with creating etc/systemd/network/wlp1s0.network
 <code> <code>
-/dev/sda1 /media/cdrom  iso9660 user,noauto           0+[Match] 
 +Name=wlp1s0 
 + 
 +[Network] 
 +DHCP=yes
 </code> </code>
 +then /etc/wpa_supplicant/wpa_supplicant-wlp1s0.conf
 +<code>
 +ctrl_interface=/var/run/wpa_supplicant
  
-Use apt-cdrom+network={ 
 +        ssid="" 
 +#       ssid="NETGEAR-3D"    note : "" ok for any open network 
 +        pririty=9 # necessary to force its use when   key_mgmt=NONE 
 +        key_mgmt=NONE 
 +
 +## generated by wpa_passphrase [ ssid ] [ passphrase ] >> /etc/wpa_supplicant/wpa_supplicant-wlp1s0.conf 
 +network={ 
 +        ssid="PCmobile" 
 +        #psk="1234567890" 
 +        psk=c157baf19d12458176ced86fcb08fbe7c3704ef8ac3a4782392cae3b19cdf365 
 +
 + 
 +</code> 
 +If a default domain is needed ("search domain" in old resolv.conf) set it in /etc/systemd/resolved.conf :
 <code> <code>
-apt-cdrom -d=/aptoncd-mountpoint add +[Resolve] 
-apt update +#DNS
-apt install vim...+#FallbackDNS= 
 +Domains=couderc.eu
 </code> </code>
  
-- Install networking +Then : 
 +<code> 
 +systemctl stop networking.service 
 +systemctl disable networking.service 
 +systemctl enable systemd-networkd 
 +systemctl enable wpa_supplicant@wlp1s0 
 +systemctl enable systemd-resolved 
 +systemctl start systemd-networkd 
 +systemctl start wpa_supplicant@wlp1s0 
 +systemctl start systemd-resolved 
 +ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf 
 +</code> 
 + 
 + 
 + 
public/install_debian_pc_wihout_ethernet.1530898310.txt.gz · Dernière modification : 2018/07/06 17:31 de pcouderc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki