最近发现一个Linux发行版比较小巧好用,ArchLinux,就实验一把将ArchLinux装进U盘里,随时备用。 下面是装置的记载。 1.rufus.exe写入 分区计划和目的系统类型 MBR分区计划,用于BIOS或UEFI的计算机 创建一个系统盘运用 ISO镜像,选中archlinux-2017.04.01-x86_64.iso 2. 查看无线网卡 -> iw dev 列出无线网卡 3. 设置无线网卡 ->wifi-menu wlp3s0 no network found 4. 没发现Wifi网卡,检查ArchLinux的Wifi系统使能开关 rfkill list 3:phy0: Wireless LAN Soft blocked: yes Hard blocked: no 5. 翻开系统Wifi开关 rfkill unblock 3 6. 检查系统Wifi使能开关能否关闭 rfkill list 3:phy0: Wireless LAN Soft blocked: no Hard blocked: no 7. 衔接Wifi wifi-menu wlp3s0 呈现wifi界面,输入wifi密码 8. 查看wifi网卡及IP地址 ifconfig 呈现wlp3s0 9. 测试网络连通状态 ping www.baidu.com 64 bytes from 220.181.112.244 (220.181.112.244): icmp_seq=1 ttl=57 time=20.1ms 64 bytes from 220.181.112.244 (220.181.112.244): icmp_seq=2 ttl=57 time=23.5ms 10. 查看待装置的U盘 fdisk -l 找到两个u盘 /dev/sdb /dev/sdc umount /dev/sdb target is busy 系统装置的u盘 umount /dev/sdc not mounted 待装置的目的盘 11. 格式化U盘,树立ext4文件系统 mkfs.ext4 /dev/sdc1 12.Mount mount /dev/sdc1 /mnt 13. 开端装置 pacstrap /mnt base 开端装置 14. 切换root arch-chroot /mnt 15. 装置Grub工具 pacman -S grub 16. 装置Grub到U盘 grub-install /dev/sdc 17. 生成Grub配置文件 grub-mkconfig -o /boot/grub/grub.cfg 18. 退出 exit 19. 重启 reboot 20. 进入ArchLinux -----------重启进入装置ok的U盘,进入Archlinux ArchLinux的基本配置 21.root 运用root用户登录,无密码 22.ifconfig 发现没有ifconfig命令 23.netctl 24. netctl list 25.ip link 查看网卡状态,找到无线网卡 26.cd /etc/netctl/examples 27.cp ethenet-dhcp ../nic123 28. netctl list 能够看到nic123 29. netctl start nic123 30. ping www.baidu.com 能平通 31.pacman -S net-tools //装置网络工具,包含ifconfig ArchLinux装置ScreenFetch 32.pacman -S screenfetch 33.vi /etc/bash.bashrc 在最后加上 if [ -f /usr/bin/screenfetch ]; then screenfetch; fi echo "tianchunhui's linux disk!" 34. ok 至此,ArchLinux的霸气Logo开机在命令行就出来,效果见文章首页贴图。 装置tftp 1.pacman -S tftp-hpa 2. vi /etc/conf.d/tftpd modify default server path: /userdata/tftp 3..systemctl start tftpd.service 4. ps -e |grep -i tfptd check tftpd is running uboot: tftp 0x9000 test.txt 装置nfs 1.pacman -S nfs-utils include nfs-server nfs-clinet 2.ps -e |grep nfs 3.systemctl start nfs-server.service 4.ps -e |grep nfs 5.vi /etc/exprots set path 个人原创,转载请注明转载自RD之家,网址:www.rdzhijia.com KeoLinux |
|Archiver|手机版|小黑屋|个人研发笔记
京ICP备18037383号-1
GMT+8, 2022-5-27 14:35
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.