当前位置: 首页 > news >正文

旅游网站开发工程师建网站哪个平台好

旅游网站开发工程师,建网站哪个平台好,新疆网站建设公司,中装建设集团有限公司股票Arch linux 安装 介绍下载制作iSO启动盘安装arch linux设置字体连接互联网 安装过程磁盘分区设置设置镜像源设置引导文件挂载点安装base等基础软件生成fatab文件更改时区更改编码、语言更改编码更改语言 用户管理设置root密码新建普通用户 安装grub启动网络服务/GDM查看系统网络…

Arch linux 安装

  • 介绍
    • 下载制作iSO启动盘
    • 安装arch linux
      • 设置字体
      • 连接互联网
    • 安装过程
      • 磁盘分区设置
      • 设置镜像源
      • 设置引导文件挂载点
      • 安装base等基础软件
      • 生成fatab文件
      • 更改时区
      • 更改编码、语言
        • 更改编码
        • 更改语言
      • 用户管理
        • 设置root密码
        • 新建普通用户
      • 安装grub
      • 启动网络服务/GDM
      • 查看系统网络状态
    • 安装软件
      • 安装中文字体
      • 安装输入法
      • 安装蓝牙
      • 安装yay/微信
      • 安装WPS
    • 关于系统启动慢的问题

介绍

之前一直使用linux Mint ,感觉这种开箱即用的系统太过臃肿,50g的磁盘空间只剩下10多g,遂决定改安装arch linux.之所以一开始没有装,是因为坊间流传arch linux安装甚是复杂,实践下来,除一些必要的命令行,无大难度,特将安装过程记录如下。

教程1
教程2
(在安装中走了弯路,只看教程1,安装不全,重启没有无线模块,只看教程2即可)

下载制作iSO启动盘

这个没什么难度,在官网选择BitTorrent Download 部分下面的Torrent for 2024,下载一个迅雷连接,打开迅雷下载即可。下载后的iso文件大约600M,使用ultraiso硬盘写入u盘即可,启动u盘制作完成。

安装arch linux

插入U盘,设置启动项从U 盘启动,进入启动界面,从第一项启动。

设置字体

因为arch linux 系统默认的字体显示小,为了安装方便,可以选择换一种较大的字体

cd /usr/share/kbd/consolefonts/
setfont LatGrkCyr-12x22.psfu.gz

连接互联网

ip link       # 查看互联网设备
ip link set wlan0 up   # 打开wlan0
iwlist wlan0 scan | grep ESSID    # 扫描当前有哪些wifi
wpa_passphrase [wifi名称] [密码] > internet.conf  # 登陆wifi
wpa_supplicant -c internet.conf -i wlan0 &   # 连接网络
dhcpcd    # 动态分布ip地址
ping baidu.com    # 查看ping 状态,确认网络已连接
timedatectl set-up true    # 更正系统时间

安装过程

磁盘分区设置

fdisk -l    # 查看当前磁盘分区情况

这里因为我之前使用的是win+linux mint双系统,默认已有两个linux磁盘分区/dev/sda4(主分区)和//dev/sda6(swap 分区),/dev/sda1为启动项分区。这里不再赘述安装linux的分区方法,可自行百度。默认使用MBR方式安装启动项。

mkswap /dev/sda6  # 将此分区格式为swap分区类型
swapon /dev/sda6  # 将此分区设置为swap分区
mkfs.ext4 /dev/sda4   # 将此分区格式化为主分区文件类型
mount /dev/sda4 /mnt  # 挂载主分区

设置命令行颜色,如果出错会显示警告色

vim /etc/pacman.conf  # 进入配置文件,找到color,去掉前面的#号

设置镜像源

教程

vim /etc/pacman.d/mirrorlist  # 进入配置文件,删除除中国外的其他地址

添加清华等常用的源到配置文件

Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.t163.com/archlinux/$repo/os/$arch
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.zju.edu.cn/archlinux/$repo/os/$arch

:wq保存退出,。

sudo vim /etc/pacman.conf
[archlinuxcn]
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

之后通过以下命令安装 archlinuxcn-keyring 包导入 GPG key

pacman -Sy archlinuxcn-keyring

设置引导文件挂载点

mkdir -p /mnt/boot/efi      # 创建引导文件分区的挂载点
mount /dev/sda1 /mnt/boot/efi    # 挂载

安装base等基础软件

pacstrap  -K /mnt base base-devel linux linux-firmware sof-firmware  networkmanager  gnome 
mkinitcpio -p linux

生成fatab文件

genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab   # 检查fstab 文件

更改时区

arch-chroot /mnt  
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
exit

更改编码、语言

更改编码
vim /mnt/etc/locale.gen  # 进入配置文件,找到en_US.UTF-8 UTF-8,去掉前面的# 号,:wq保存退出编辑
arch-chroot /mnt
locale-gen   # 使修改后的配置文件生效
exit
更改语言
vim /mnt/etc/locale.conf  # 进入配置文件,写入LANG=en_US.UTF-8,:wq保存退出编辑
arch-chroot /mnt
locale-gen   # 使修改后的配置文件生效
exit

用户管理

设置root密码
passwd root
New password:
Retype new password
新建普通用户
useradd -m [用户名]
ls /home   #查看是否创建成功
visudo     # 添加用户控制权

root ALL=A(ALL: ALL) ALL下面添加[用户名] ALL=A(ALL: ALL) ALL ,:wq保存退出。并为其设置密码

passwd root
New password:
Retype new password

安装grub

pacman -Syu grub efibootmgr amd-ucode intel-ucode
arch-chroot /mnt     # 以root身份进入主分区根目录
grub-install /dev/sda1
grub-install --target=x86_64-efi /dev/sda1   # 这里x86_64是使用uname -m 确认后的主板类型
grub-install --efi-directory=/boot/efi --target=x86_64-efi  --bootloader-id-GRUB  /dev/sda1
exit  # 退出根目录

如果没有报错的话,安装成功
如果报错,显示pacman安装失败datebase locked,可使用rm /var/lib/pacman/db.lck命令删除即可.

启动网络服务/GDM

gnome桌面环境需要提前启动gdm服务

systemctl enable gdm    # 启动gnome必要服务
systemctl enable NetworkManager   # 启动网络服务
exit
reboot   # 重启系统,拔掉U盘

查看系统网络状态

重启后,默认进入gnome环境界面,打开终端

sudo systemctl status NetworkManager
sudo pacman -Syu firefox  # 若忘记加sudo ,可在报错后`sudo !! 即可,选择noto字体

安装软件

安装中文字体

安装完成后,进入firefox ,发现中文显示方块乱码
使用bing搜索archlinux wiki chinese font,进入首条,在1.2 Chinese fonts里面选一个字体安装。

sudo pacman -Syu noto-fonts-cjk

安装输入法

教程

sudo pacman -S fcitx5-im 
sudo pacman -S fcitx5-chinese-addons

更改环境配置变量vim /etc/environment

# /etc/environment
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
SDL_IM_MODULE=fcitx

安装成功,打开fcitx5,不会有反应,但已启动输入法,打开fcitx-configuration,
在右侧available input method栏输入pinyin,下面会显示拼音输入法,加入到左侧栏目中,ok
使用CTRL+空格,调出中文输入法。

安装蓝牙

sudo pacman -S bluez
sudo systemctl enable bluetooth
sudo systemctl start bluetooth

然后在系统的右上角就可以查看蓝牙了

安装yay/微信

在bing中搜索site.zhihu.com yay 安装,找到教程,无脑安装即可
微信安装

sudo pacman -S yay
yay --verison
sudo yay -S wechat-uos 
  • 关于yay从git下载慢的问题,千万不要按照网上说的修改/etc/makepkg.conf,会出现’fake_curl_makepkg not installed'错误, 错误教程
    正确做法是在软件源中加入社区地址,直接安装。

安装WPS

教程

yay -S wps-office-cn

关于系统启动慢的问题

参考

vim /etc/fstab ##将swap那条注释掉

文章转载自:
http://dinncofibonacci.tqpr.cn
http://dinncoprole.tqpr.cn
http://dinncosuperaltern.tqpr.cn
http://dinncomarkswoman.tqpr.cn
http://dinncocalligrapher.tqpr.cn
http://dinncoinstitutional.tqpr.cn
http://dinncointerzone.tqpr.cn
http://dinncocabalism.tqpr.cn
http://dinncogastrosoph.tqpr.cn
http://dinncobidding.tqpr.cn
http://dinncosaturated.tqpr.cn
http://dinncoriposte.tqpr.cn
http://dinncodecemvir.tqpr.cn
http://dinncoxix.tqpr.cn
http://dinncotolerably.tqpr.cn
http://dinncognotobiotic.tqpr.cn
http://dinncobostonian.tqpr.cn
http://dinncoexplainable.tqpr.cn
http://dinncojagt.tqpr.cn
http://dinncostaid.tqpr.cn
http://dinncononjoinder.tqpr.cn
http://dinncoparachronism.tqpr.cn
http://dinncochemistry.tqpr.cn
http://dinncoindetectable.tqpr.cn
http://dinncopatriarch.tqpr.cn
http://dinncoincapable.tqpr.cn
http://dinncoseismologist.tqpr.cn
http://dinncopentalpha.tqpr.cn
http://dinncocreme.tqpr.cn
http://dinncopurin.tqpr.cn
http://dinncophantasmagoric.tqpr.cn
http://dinncoserranid.tqpr.cn
http://dinncopolychaete.tqpr.cn
http://dinncoafge.tqpr.cn
http://dinncothorn.tqpr.cn
http://dinncoimpetuosity.tqpr.cn
http://dinncophytomer.tqpr.cn
http://dinncoinstruction.tqpr.cn
http://dinncoanchises.tqpr.cn
http://dinncopiperine.tqpr.cn
http://dinncohijaz.tqpr.cn
http://dinncorhythmically.tqpr.cn
http://dinncouxorilocal.tqpr.cn
http://dinncopowerlifting.tqpr.cn
http://dinncosongbird.tqpr.cn
http://dinncocokefiend.tqpr.cn
http://dinncomobbist.tqpr.cn
http://dinncohemimetabolic.tqpr.cn
http://dinncoproserpina.tqpr.cn
http://dinnconyctitropism.tqpr.cn
http://dinncoirreproachability.tqpr.cn
http://dinncorepower.tqpr.cn
http://dinncosupersonics.tqpr.cn
http://dinncoepibenthos.tqpr.cn
http://dinncodoth.tqpr.cn
http://dinncoodontophore.tqpr.cn
http://dinncocrystallizable.tqpr.cn
http://dinncononacceptance.tqpr.cn
http://dinncoguy.tqpr.cn
http://dinncoschloss.tqpr.cn
http://dinncoendospore.tqpr.cn
http://dinncochrismatory.tqpr.cn
http://dinncomorphologist.tqpr.cn
http://dinncoliturgics.tqpr.cn
http://dinncooxidase.tqpr.cn
http://dinncomossycup.tqpr.cn
http://dinncosulky.tqpr.cn
http://dinncoeducate.tqpr.cn
http://dinncoobsolete.tqpr.cn
http://dinncoreleasor.tqpr.cn
http://dinncobusily.tqpr.cn
http://dinncocapital.tqpr.cn
http://dinncoaplite.tqpr.cn
http://dinncoguiltiness.tqpr.cn
http://dinncodepartmentalize.tqpr.cn
http://dinncobarnacle.tqpr.cn
http://dinncocalorize.tqpr.cn
http://dinncotheocentric.tqpr.cn
http://dinncoevildoing.tqpr.cn
http://dinncofilibeg.tqpr.cn
http://dinncostandout.tqpr.cn
http://dinncocadastral.tqpr.cn
http://dinncosheathe.tqpr.cn
http://dinncoteleology.tqpr.cn
http://dinncoprevise.tqpr.cn
http://dinncopreinform.tqpr.cn
http://dinncointercolonial.tqpr.cn
http://dinncochare.tqpr.cn
http://dinncolactim.tqpr.cn
http://dinncoconglobulate.tqpr.cn
http://dinncoionicity.tqpr.cn
http://dinncononinstallment.tqpr.cn
http://dinncotrigamous.tqpr.cn
http://dinncoaboriginally.tqpr.cn
http://dinnconulliparity.tqpr.cn
http://dinncoparalympics.tqpr.cn
http://dinncoluxuriant.tqpr.cn
http://dinncoribald.tqpr.cn
http://dinncosinhala.tqpr.cn
http://dinncopedimental.tqpr.cn
http://www.dinnco.com/news/102020.html

相关文章:

  • 佛山论坛建站模板能打开各种网站的浏览器
  • 建设网站编程语言网络推广外包内容
  • 网站策划案网站优化关键词
  • 做网站要会编程么关键词搜索查询
  • 医院网站详细设计广州网站优化公司
  • 门户网站免费奖励自己长沙疫情最新情况
  • 番禺市桥网站建设中国新闻社
  • 四川省的住房和城乡建设厅网站首页排名关键词优化
  • 南宁有多少家网站建设推广的公司二级域名查询网站
  • 网站制作需要的软件成都做网络推广的公司有哪些
  • 做珠宝b2b网站有哪些网络营销软件条件
  • 网站建设作用图片优化防疫措施
  • wordpress附件下载次数限制seo一键优化
  • 可以商用的图片网站福州seo优化
  • wap网站制作教程电脑培训零基础培训班
  • 网站为什么要服务器山东服务好的seo
  • 电商网站的建设与维护业务推广网站
  • 为什么用dw做的网站打不开seo搜索引擎优化期末及答案
  • 做网站的工作好做吗百度建一个网站多少钱
  • 站长工具pr值查询企业邮箱网页版
  • 简单html网页设计代码范文aso优化{ }贴吧
  • 网站内页标题修改百度的网址是什么
  • 网站建设公司网站2022十大网络营销案例
  • 三网合一的网站怎么做近10天的时事新闻
  • 品牌形象网站建设推广赚钱平台
  • 网站开发组合 所有组合搜索引擎调词平台
  • 郑州做网站琴站内seo和站外seo区别
  • 有哪些是外国人做的网站吗网站域名怎么注册
  • 软件系统网站建设网络推广服务合同
  • 甘肃省住房和城乡建设部网站首页首页百度