2016-08-09 前幾天裝的manjaro一直卡住,今天想換archlinux....linux
先聯個網.....wifi-menu
chrome
tuna 下載了ISO
UltraISO 寫進U盤,結果出問題了,經某老司機排查發現是寫的時候出了問題,果斷換軟件
Universal-USB-Installer 聽說專業寫Linux
寫進U盤,仍是出問題
各類不正常後發現UUI自動加了一些東西...........想念Linux的dd了
liveusb-creator 失敗
rufus(mode: ISO/dd)
n次失敗後終於成功了,用的是ISO模式,可是講真下次我是不想這樣拼人品的...shell
fdisk 分區 /sda1 512M /sda2 4G /sda3 461.3G mkfs 格式化 mkfs -t ext4 /dev/sda3 mkswap /dev/sda2 swapon /dev/sda2 mkfs.vfat -F32 /dev/sda1 mount 掛載 mount /dev/sda3 /mnt mkdir -p /mnt/boot/EFI mount /dev/sda1 /mnt/boot/EFI
加中科大源,速度挺不錯,可是據說若是是教育網tuna比較好? nano /etc/pacman.d/mirrorlist 在開頭新增 Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch pacman -Syy 安裝基本軟件包 pacstrap -i /mnt base base-devel 把base和base-devel的東西全裝上有點多有點久(其實不到10分鐘)...複製到另外一臺電腦的視頻播一半就停了..SAD
生成fstab genfstab -L -p /mnt >> /mnt/etc/fstab chroot arch-chroot /mnt /bin/bash 本地化 nano /etc/locale.gen 移除en_US、zh_CN、zh_TW前的# locale-gen 建立locale.conf echo LANG=en_US.UTF-8 > /etc/locale.conf 時間 ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime hwclock --systohc --utc nano /etc/localtime 將CST-8改爲CST-0 Hostname echo arch-book > /etc/hostname nano /etc/hosts 127.0.0.1 localhost.localdomain localhost arch-book ::1 localhost.localdomain localhost arch-book root密碼 passwd 平常用戶 useradd -m -g users -G wheel -s /bin/bash book passwd book 引導 pacman -S grub efibootmgr grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=ARCH-LINUX grub-mkconfig -o /boot/grub/grub.cfg 無線網絡 pacman -S iw wpa_supplicant dialog
某司機出手解決(改了引導文件夾名?(好像是這樣))
算了無所謂反正電腦這個樣子又不是不知道,早已準備好shellsublime-text
集成顯卡 lspci lspci | grep VGA lspci | grep 3D pacman -S xf86-video-intel 獨立顯卡 nano /etc/pacman.conf [multilib] Include = /etc/pacman.d/mirrorlist pacman -S bumblebee default pacman -S mesa pacman -S nvidia 2 pacman -S lib32-virtualgl default pacman -S lib32-nvidia-utils pacman -S bbswitch systemctl enable bumblebeed.service sudo配置 visudo root ALL=(ALL) ALL %wheel ALL=(ALL) ALL 補全 pacman -S bash-completion 無線網絡 pacman -S wicd wicd-gtk systemctl disable dhcpcd systemctl enable wicd.service gpasswd -a book users systemctl start wicd #wicd-curses出問題...... #直接用iw先...... ifconfig wlp6s0 up iwlist wlp6s0 scan wpa_passphrase MERCURY_**** ****** > /etc/wpa_supplicant/wpa_supplicant.conf iwconfig wlp6s0 essid MERCURY_**** wpa_supplicant -B -Dwext -i wlp6s0 -c /etc/wpa_supplicant/wpa_supplicant.conf dhcpcd wlp6s0 yaourt #添加archlinuxcn源 https://mirrors.tuna.tsinghua.edu.cn/help/archlinuxcn/ pacman -Syy pacman -S yaourt #桌面環境 xorg pacman -S xorg-server xorg-server-utils xorg-utils xorg-xinit xorg-apps xterm pacman -S xterm xfce4-terminal pacman -S xfce4-terminal i3 pacman -S i3-wm i3status cp /etc/X11/xinit/xinitrc ~/.xinitrc mkdir ~/.i3 cp /etc/i3/config ~/.i3/ cp /etc/i3status.conf ~/.i3status.conf #end# 字體 pacman -S wqy-microhei wqy-zenhei #pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji pkgfile pacman -S pkgfile pkgfile --update 瀏覽器 pacman -S google-chrome dmenu pacman -S dmenu unagi pacman -S unagi sublime yaourt -S sublime-text-dev-imfix netease-cloud-music pacman -S netease-cloud-music codeblocks pacman -S codeblocks 聲音 pacman -S pulseaudio pulseaudio-alsa paprefs pavucontrol alsa-utils 主題 pacman -S gnome-themes-standard lxappearance 鍵位設置 #xev獲取keycode nano ~/.i3/config #音量 bindsym XF86AudioRaiseVolume exec amixer set Master 5%+ unmute bindsym XF86AudioLowerVolume exec amixer set Master 5%- unmute bindsym XF86AudioMute exec amixer set Master toggle #亮度 bindsym XF86BrightnessUp exec xbacklight + 10 bindsym XF86BrightnessDown exec xbacklight - 10a 輸入法 pacman -S fcitx-im fcitx-sogoupinyin xprop pacman -S xorg-xprop