贴吧用户_01VyNVV microlover
关注数: 0 粉丝数: 7 发帖数: 996 关注贴吧数: 28
我的arch+lxde安装步骤,供小白复活老电脑。 因为只是老机子,加上自己懒,所以很多方面就比较随意,不过对新手来说应该够用了,总比被安装劝退好。 那么,开始吧。 1、下载iso文件,制作启动U盘,然后U盘启动选第一项进入安装环境。这一步不细说,不懂的自行百度。 2、连接无线网络。 # iwctl [iwd]# device list [iwd]# station [device] scan [iwd]# station [device] get-networks [iwd]# station [device] connect [SSID] 输入wifi密码。 [iwd]# quit 3、确认网络是否已连通,没通的重复2或自行检查网络。 # ping baidu.com 4、更新系统时间 # timedatectl set-ntp true 5、分区。不细说,懂的都懂,不懂的去找视频教程更好些。 用fdisk对硬盘进行分区,我只分了 /、/home、swap 三个分区。 /:sda1 30G swap:sda2 2G /home:sda3 剩余的空间 6、格式化 # mkfs.ext4 /dev/sda1 # mkswap /dev/sda2 # swapon /dev/sda2 # mkfs.xfs -f /dev/sda3 7、挂载 # mount /dev/sda1 /mount # mkdir /mnt/home # mount -t xfs /dev/sda3 /mnt/home 8、选择镜像 # vim /etc/pacman.d/mirrorlist 按i进入编辑模式; 在前面加入: Server = http://tieba.baidu.com/mo/q/checkurl?url=https%3A%2F%2Fmirrors.ustc.edu.cn%2Farchlinux%2F%24repo%2Fos%2F%24arch&urlrefer=00c2f34193cfab533b53c85d5ff18c48 Server = http://tieba.baidu.com/mo/q/checkurl?url=https%3A%2F%2Fmirrors.tuna.tsinghua.edu.cn%2Farchlinux%2F%24repo%2Fos%2F%24arch&urlrefer=d0da66bb0c825e51b8b2305fdd67e730 按Esc键退出编辑模式,输入 :x 保存退出。 9、安装基本包 # pacstrap /mnt base base-devel linux linux-firmware vim 10、配置fstab # genfstab -U /mnt >> /mnt/etc/fstab 检查一下生成的fstab文件是否正确 # cat /mnt/etc/fstab 11、切换到新安装的系统 # arch-chroot /mnt 新系统的镜像文件是新的,这里需要重复一下步骤8,使用国内的源。 12、设置时区 # ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 13、配置Local 1)# vim /etc/locale.gen 然后找到下面2项,去掉每项前面的#即可: en_US.UTF-8 UTF-8 zh_CN.UTF-8 UTF-8 保存并退出(:x) 2)生成locale信息: # locale-gen 3)打开/etc/locale.conf文件: # vim /etc/locale.conf 在文件的第一行加入: LANG=en_US.UTF-8 保存并退出(:x) 14、设置主机名与host 1)打开/etc/hostname文件: # vim /etc/hostname 在文件第一行输入自己设定的一个主机名(myhostname) 保存并退出(:x) 2)编辑/etc/hosts文件: # vim /etc/hosts 在文件末添加如下内容(将myhostname替换成你自己设定的主机名): 127.0.0.1localhost ::1localhost 127.0.1.1myhostname.localdomainmyhostname 保存并退出(:x) 15、设置Root密码 # passwd 密码不显示,谨慎两次输入 16、新建用户与密码 # useradd -m -G wheel username (请自行替换username为你的用户名) 注意:用户名首字母不能大写 设置密码(请自行替换username为你的用户名) # passwd username 根据提示输入两次密码就可以了,注意,这是你的用户密码,推荐与之前设置的root用户的密码不同 17、配置sudo # ln -s /usr/bin/vim /usr/bin/vi #visudo 将光标移动到: root ALL=(ALL)ALL 按 yy ,再按 p ,此时会多出一行一样的,再按 i 进入编辑,将其中一行的 root 修改成 你的用户名 ,按 Esc ,再按 :x 保存退出。 18、配置grub # pacman -S intel-ucode(AMD安装 amd-ucode ) # pacman -S grub 安装grub # grub-install --target=i386-pc /dev/sda # grub-mkconfig -o /boot/grub/grub.cfg 生成配置文件 19、安装显卡驱动 使用 pacman -Ss xf86-video 找到相应的驱动程序 再 pacman -S xxx 进行安装 我的是集成intel显卡,所以我安装的是 xf86-video-intel # pacman -S xf86-video-intel 20、安装必须的组件 # pacman -S dialog ntfs-3g lxdm lxde network-manager-applet wqy-zenhei wqy-microhei gvfs opconf file-roller unrar pulseaudio pavucontrol fcitx-im fcitx-configtool 21、开启系统相关服务 # systemctl enable lxdm # systemctl enable NetworkManager 22、顺便配置个中文环境和启用输入法 # su 你的用户名 (切换到你的账号) # cd (回到你的家目录下) # vim .xprofile 输入以下内容: export LANG=zh_CN.UTF-8 export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx" :x 保存退出。 到这里系统基本安装完毕。 输入几次 exit 退出安装环境 # reboot 重启电脑,记得拔U盘哦 重启后出来了登录界面,点击用户名,输入密码登录即可。 以上基于自己的老机子安装archlinux过程写出,不一定适用于每个人,而且以上内容写得比较匆忙,懒,也不想检查,若有什么地方不对,请吧友们指出来哦。 或是有什么更好更适合懒人的方法,也可以分享出来探讨一下。谢谢。
acer aod257 折腾装了一个星期系统,搞疲了 凌动CPU,最大支持2G内存,出厂meego操作系统。 想换windows,于是由XP开始安装。 一、XP SP3,系统装上运行几分钟后突然卡死不动,强行关机再开,问题仍旧。 二、win7原版32位,刚安装后很流畅,随后在安装驱动过程中突然卡死,随后重启坚持到驱动安装完毕,还没过几分钟再次卡死。 三、win7家庭版,正版光盘iso,仍旧在安装驱动前非常流畅,安装一个腾讯输入法后又出来卡死。 四、win7精简32位,问题跟之前一样,突然就卡死。 五、win10 ltsc,开机内存占用900m~1G,空运行系统有点不流畅,在安装浏览器过程中卡死过一次,后面虽然没有卡死,但感觉越来越卡,机子也越来越烫手,拿出工具U盘查看了一下温度,主板和CPU温度近70度。 六、archlinux,前面win10拿机子温度太高,立马换系统,中间没有关机降温,archlinux安装完后机子温度在50上下,接着安装完各种应用程序后温度下降到了45度左右。 安装win7那几次考虑到会不会是驱动和软件的问题,又下载了不同版本的驱动总裁、360驱动大师、驱动精灵等,还有几个不同的输入法,前后安装了13次win7,XP也试了3个不同版本,但都是GHOST版,至于win10,最开始的win10是装的64位版本的ltsc,还是会卡死,再换2021版的32位ltsc,也是卡死,最后一次是2019版的ltsc,虽然只卡死过一次,但机子实在是发烫厉害。再这么装下去,也怕硬盘会报废掉。 最后的总结就是,我这上网本不适合安装windows系统。 不知道你们的上网本是个什么样的情况?
第一次整debian,直接上debian11。不知道源整得对不对。 # deb cdrom:[Official Debian GNU/Linux Live 11.1.0 standard 2021-10-09T10:45]/ bullseye main #deb cdrom:[Official Debian GNU/Linux Live 11.1.0 standard 2021-10-09T10:45]/ bullseye main deb http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebian%2F&urlrefer=76c55541fae5a806944b65bff471ddab bullseye main contrib non-free deb-src http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebian%2F&urlrefer=76c55541fae5a806944b65bff471ddab bullseye main contrib non-free deb http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebiancn%2F&urlrefer=3e9c40e340c8f3c0ea59d22dd75bd2eb bullseye main deb-src http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebiancn%2F&urlrefer=3e9c40e340c8f3c0ea59d22dd75bd2eb bullseye main #deb http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fsecurity.debian.org%2Fdebian-security&urlrefer=0725a9050a0955b267c586ed336bc694 bullseye-security main non-free contrib #deb-src http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fsecurity.debian.org%2Fdebian-security&urlrefer=0725a9050a0955b267c586ed336bc694 bullseye-security main non-free contrib deb http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebian-security&urlrefer=5a444309fff177c8db4d6326bc34d5e8 bullseye-security main non-free contrib deb-src http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebian-security&urlrefer=5a444309fff177c8db4d6326bc34d5e8 bullseye-security main non-free contrib # bullseye-updates, to get updates before a point release is made; # see http://tieba.baidu.com/mo/q/checkurl?url=https%3A%2F%2Fwww.debian.org%2Fdoc%2Fmanuals%2Fdebian-reference%2Fch02.en.html%23_updates_and_backports&urlrefer=2bb5fc1e00c673b02695d613c0cc4e52 deb http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebian%2F&urlrefer=76c55541fae5a806944b65bff471ddab bullseye-updates main contrib non-free deb-src http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmirrors.ustc.edu.cn%2Fdebian%2F&urlrefer=76c55541fae5a806944b65bff471ddab bullseye-updates main contrib non-free # This system was installed using small removable media # (e.g. netinst, live or single CD). The matching "deb cdrom" # entries were disabled at the end of the installation process. # For information about how to configure apt package sources, # see the sources.list(5) manual.
1 下一页