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