2020/8/8
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-10.5.0-amd64-DVD-1.iso cat debian-10.5.0-amd64-DVD-1.iso > /dev/sdx sync
# dmesg |grep 816 ;#r8168,r8169が表示されたら注意 [ 1.040711] pci 0000:01:00.0: [10ec:8168] type 00 class 0x020000 [ 4.228161] tsc: Refined TSC clocksource calibration: 1048.034 MHz [ 6.138606] libphy: r8169: probed [ 6.139204] r8169 0000:01:00.0 eth0: RTL8168h/8111h, f4:b5:20:1e:db:b2, XID 54100800, IRQ 27 [ 6.139210] r8169 0000:01:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko] [ 6.328206] r8169 0000:01:00.0 enp1s0: renamed from eth0 [ 11.510654] r8169 0000:01:00.0: firmware: failed to load rtl_nic/rtl8168h-2.fw (-2) [ 11.510662] r8169 0000:01:00.0: Direct firmware load for rtl_nic/rtl8168h-2.fw failed with error -2 [ 11.510673] r8169 0000:01:00.0 enp1s0: unable to load firmware patch rtl_nic/rtl8168h-2.fw (-2) [ 11.510996] Generic PHY r8169-100:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=r8169-100:00, irq=IGNORE) [ 11.622991] r8169 0000:01:00.0 enp1s0: Link is Down [ 14.628418] r8169 0000:01:00.0 enp1s0: Link is Up - 1Gbps/Full - flow control rx/tx # lspci|grep 816 ;#RTL8168が表示されたらドキドキ 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15) # lsmod |grep 816 ;#r8169が表示されたらアウト r8169 90112 0 libphy 77824 3 r8169,realtek
#cat /etc/apt/sources.list #non-freeを追記 deb http://deb.debian.org/debian/ buster main non-free deb-src http://deb.debian.org/debian/ buster main contrib non-free
#apt -y install firmware-realtek r8168-dkms apt -y install firmware-realtek; #r8168-dkmsをインストールするとNICを見失うことがある rmmod r8169 ;nmcli c up enp1s0 ;#NICが停止します。停止したNICをアクティブにする reboot ;再起動して正しいドライバを読むことを確認
apt -y install chrony systemctl start chronyd;systemcrl status chronyd chronyc sources; sleep 10;chronyc sources設定(/etc/chrony/chrony.conf)はそのままでもよいが、NTPサーバを指定することもできる。
#pool 2.debian.pool.ntp.org iburst server 177.177.177.177 iburst server ntp.tohoku.ac.jp iburst server 133.243.238.242 iburst server 133.243.238.243 iburst server 133.243.238.244 iburst
apt-cache search chromium apt install -y chromium-l10n
#/etc/ssh/sshd_configを修正 sed -e 's/#Port 22/Port 2222/' -i /etc/ssh/sshd_config sed -e 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' -i /etc/ssh/sshd_config echo "alias ssh='ssh -p 2222'">> ~/.bashrc echo "alias sftp='sftp -P 2222'">> ~/.bashrc echo "alias scp='scp -P 2222'">> ~/.bashrc
apt -y install tree eog dnsutils evince openssh-client apt -y install fonts-ipaexfont fonts-ipaexfont-gothic fonts-ipaexfont-mincho fonts-ipamj-mincho apt -y remove telenet nano
mkdir -p ~/.local/share/applications sed -e 's/gtk-execute/exec/' /usr/share/applications/xfce4-run.desktop > ~/.local/share/applications/xfce4-run.desktop