Audiophile Linux安装

tomosak2年前HIFI678

If you are for example going to use “/dev/sda” disk to create partition for AP-Linux, execute this commands:

# fdisk /dev/sda

 or

# cfdisk /dev/sda

#fdisk -l

To summarize, these are all commands you need to run after disk partitioning:

# mkfs.ext4 /dev/sdXX

# mount /dev/sdXX /mnt

# time cp -ax / /mnt

# arch-chroot /mnt /bin/bash

# cd /etc/apl-files

# ./runme.sh

# grub-install --target=i386-pc /dev/sdX 

# grub-mkconfig -o /boot/grub/grub.cfg

# passwd root

# ln -s /usr/share/zoneinfo/Europe/Dublin /etc/localtime

# hwclock --systohc --utc

# ./autologin.sh

# exit

# genfstab -U /mnt >> /mnt/etc/fstab

# reboot

When AP-Linux boots, open terminal. Make sure your internet is working. You can check if internet is working with:

$ ping 114.114.114.114

You should see something like this:

PING 114.114.114.114(114.114.114.114) 56(84) bytes of data.

 64 bytes from 114.114.114.114: icmp_seq=1 ttl=56 time=25.9 ms

 64 bytes from 114.114.114.114: icmp_seq=2 ttl=56 time=21.9 ms

 64 bytes from 114.114.114.114: icmp_seq=3 ttl=56 time=25.4 ms

Then become root with:

$ su

Execute these commands. First command will take a while…

# pacman-key --init

# pacman-key --populate archlinux

# pacman -Sy

Now we need to do few more tweaks. If you have installed AP-Linux on SSD disk, edit /etc/fstab file with

# nano /etc/fstab

and add ‘noatime,discard’ option. Your “/dev/sdX1” line should look like this

Example config:

/dev/sda1 / ext4 rw,noatime,discard,data=ordered 0 1

If you didn’t install AP-Linux on SSD, remove the ‘discard’ part.

/dev/sda1 / ext4 rw,noatime,data=ordered 0 1

7.本地化设置,移除对应语言前的注释符号(en_US.UTF-8 UTF-8,zh_CN.UTF-8 UTF-8)

# vi /etc/locale.gen

# locale-gen

# echo.UTF-8 > /etc/locale.conf

(如果要添加中文支持,解决歌曲名,文件名乱码等问题。可自行设置配置文件并且安装中文字体,Linux的乱码问题很多情况是因为基础系统里面没有对应的字库)

10.主机名

# echo audiophilelinux > /etc/hostname


标签: HIFILinux

相关文章

kali添加最新内核与删除多余的内核

一、添加新内核1、查看新内核 sudo apt update sudo apt-cache search linux | grep 5.18.02、安装内核头文件 sudo apt instal...

Ubuntu下安装LXDE+XRDP

1、安装无推荐软件的LXDE环境apt-get install  lxde -y12、安装XRDPapt-get install xrdp13、删除LXDE中多余的不好用的xtermapt-get purge xterm...

树莓派使用pishrink压缩备份镜像

准备一个存有要被压缩镜像的sd卡,用读卡器插入树莓派中,输入以下命令,对应插入的是哪个接口lsblk下载pishrink,pishrink是一个大佬写的压缩镜像的脚本wget   chmod +x pishrink.sh sudo mv ...

Synology群晖安装RoonServer

1,在套件中心,设置信任层级为任何发行者;2,在群晖控制面板中,高级模式,终端机和SNMP,启动SSH功能;3,使用Xshell登录SSH,用户名和密码为群晖创建的用户和密码,进入后sudo -i 输入上面的密码;4,开通root登录权限;vi /etc/ssh/sshd_config按i 修改#P...

无线鼠标键盘2.4G对码

无线鼠标键盘接收器时有丢失情况,原来只要支持2.4G协议的基本可以。以B.O.W航世 HW286鼠标键盘为例:键盘断电,按住键盘上的“ESC + Q”组合键,然后通电,一般键盘上有指示灯闪烁,这时在电脑上插上2.4G接收器,稍等一会,对码成功!鼠标断电,按住左、中、右3个组合键,然后通电,这时在电脑...

构建自己的moOde播放器

构建自己的moOde播放器

本文档解释了如何moOde-player从源代码构建包。1. Pre conditionsAssumed you performing the build from a running Raspberry Pi OS bullseye.You should have both the moode m...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。