How to install “command-not-found” on Debian 9 and on zsh. And a interesting software “cheat” which help to learn cmd on linux.

Install “command-not-found”: 1, $sudo apt intall command-not-found 2, $sudo apt-file update $sudo update-command-not-found After above, you can use command-not-found on bash shell now. Next is zsh: Add one time in the .zshrc:  plugins=(command-not-found) Last, you can install “cheat”: sudo pip Read More …

拯救无法启动linux的方法,进入grub

ls set root=(hd0,gpt7) set prefix=(hd0,gpt7)/boot/grub/ insmod normal normal 仅仅是注册话就很简单了, efibootmgr 可以很方便地完成这个工作, # efibootmgr -c -d /dev/nvme0n1 -p X -l \\EFI\\opensuse\\shim.efi -L opensuse-secure 其中, -c 表示生成一个新的启动项; -d /dev/nvme0n1 表示该启动项对应的文件在磁盘 /dev/nvme0n1 中,如果有多个磁盘,可能后面结尾的数字就不是 1; -p X 表示启动项对应的文件在上述磁盘的第 X 个分区中; -l \\EFI\\opensuse\\shim.efi 表示该启动项对应的启动文件,其中路径是相对于 ESP Read More …

Install Freebsd on Arch Linux

1, Getting the Image File $ axel -n 8 ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/amd64/ISO-IMAGES/10.3/FreeBSD-10.3-STABLE-amd64-20160429-r298781-uefi-memstick.img 2, Write the Image # dd if=FreeBSD-10.3-STABLE-amd64-20160429-r298781-uefi-memstick.img of=/dev/sdc bs=1M conv=sync 3, Restart your pc, and choose the USB stick to boot 4, It turns out a easy GUI to install Read More …

Install Gentoo on Arch Linux

You can see it on http://www.unixmen.com/a-beginners-guide-to-install-gentoo/ and http://showerlee.blog.51cto.com/2047005/1314053 . Make sure you are the user of “root”! 1, Setting up Partitions /dev/sdXX mkfs.ext4 /dev/sdXX mkdir /mnt/gentoo mount /dev/sdXX /mnt/gentoo 2, Downloading and Extracting the Tarball axel -n 8 http://distfiles.gentoo.org/releases/amd64/autobuilds/20160505/stage3-amd64-20160505.tar.bz2 cd /home/liv/Downloads Read More …

Install Debian 8.4 on Arch Linux

You can see it on “https://www.debian.org/releases/stable/amd64/apds03.html.en” Make sure your are using user “root”. 1, mke2fs -j /dev/sdaX mkdir /mnt/debinst mount /dev/sdaX /mnt/debinst 2, pacman -S debootstrap 3, yaourt -S debian-archive-keyring 4, debootstrap –arch amd64 jessie /mnt/debinst http://mirror.bjtu.edu.cn/debian or debootstrap –arch Read More …