| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # lap1sid | ||
| # Twitter: @Pixel_3a | ||
| # Email : lap1sid@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Media | ||
|
|
||
|
|
||
| #-- bluetooth --# | ||
| bluedevil | ||
| bluez | ||
| bluez-utils | ||
| pulseaudio-bluetooth | ||
|
|
||
|
|
||
| #-- audio --# | ||
| pulseaudio | ||
| plasma-pa | ||
|
|
||
|
|
||
| #-- media player --# | ||
| gwenview | ||
| vlc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # lap1sid | ||
| # Twitter: @Pixel_3a | ||
| # Email : lap1sid@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
|
|
||
| #-- boot manager --# | ||
| grub | ||
| grub-customizer | ||
| os-prober | ||
| refind-efi | ||
|
|
||
|
|
||
| #-- documents --# | ||
| man-db | ||
| man-pages | ||
|
|
||
|
|
||
| #-- game pad --# | ||
| #jstest-gtk-git | ||
|
|
||
|
|
||
| #-- linux --# | ||
| linux-atm | ||
| linux-firmware | ||
|
|
||
|
|
||
| #-- system monitor --# | ||
| ksysguard | ||
| cpu-x | ||
|
|
||
|
|
||
| #-- text editor --# | ||
| kate | ||
| nano | ||
| vim | ||
|
|
||
|
|
||
| #-- other --# | ||
| packagekit-qt5 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # lap1sid | ||
| # Twitter: @Pixel_3a | ||
| # Email : lap1sid@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # KDE Plasma 5 Desktop Environment | ||
|
|
||
|
|
||
| #-- KDE Plasma 5 base --# | ||
| plasma-meta | ||
| dolphin | ||
| konsole | ||
| kde-gtk-config | ||
| ark | ||
|
|
||
| #-- KDE Plasma 5 config --# | ||
| #alterlinux-plasmalnf | ||
|
|
||
|
|
||
| #-- KDE Plasma 5 Extensions --# | ||
| kdeplasma-addons | ||
|
|
||
|
|
||
| #-- xorg --# | ||
| gpm | ||
| xorg-server | ||
| xorg-xinit |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # lap1sid | ||
| # Twitter: @Pixel_3a | ||
| # Email : lap1sid@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Display Manager | ||
| sddm | ||
| sddm-kcm |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # | ||
| # /etc/bash.bashrc | ||
| # | ||
|
|
||
| # If not running interactively, don't do anything | ||
| [[ $- != *i* ]] && return | ||
|
|
||
| [[ $DISPLAY ]] && shopt -s checkwinsize | ||
|
|
||
| # PS1='[\u@\h \W]\$ ' | ||
| PS1='\u@\h:\w\$ ' | ||
|
|
||
| [[ -f /etc/bash_aliases ]] && source /etc/bash_aliases | ||
| [[ -f /etc/bash_functions ]] && source /etc/bash_functions | ||
|
|
||
| export EDITOR=nano |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env bash | ||
| alias ls='ls --color=auto' | ||
| alias htop='htop -d 5' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| alterlive |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Static table lookup for hostnames. | ||
| # See hosts(5) for details. | ||
|
|
||
| 127.0.0.1 localhost.localdomain localhost | ||
| ::1 localhost.lcoaldomain localhost |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,209 @@ | ||
| [Desktop Entry] | ||
| Type=Application | ||
| Version=1.0 | ||
| Name=Install Alter Linux | ||
| GenericName=Alter Linux Installer | ||
| Keywords=calamares;alter;linux;installer; | ||
| TryExec=calamares | ||
| Exec=pkexec /usr/bin/calamares | ||
| Comment=Alter Linux Installer - by Calamares | ||
| Icon=calamares | ||
| Terminal=false | ||
| StartupNotify=true | ||
| Type=Application | ||
| Categories=Qt;System; | ||
| X-AppStream-Ignore=true | ||
|
|
||
| Name[ar]=تثبيت النظام | ||
| Icon[ar]=كالامارس | ||
| GenericName[ar]=مثبت النظام | ||
| Comment[ar]=كالامارس - مثبت النظام | ||
| Name[as]=চিছটেম ইনস্তল কৰক | ||
| Icon[as]=কেলামাৰেচ | ||
| GenericName[as]=চিছটেম ইনস্তলাৰ | ||
| Comment[as]=কেলামাৰেচ — চিছটেম ইনস্তলাৰ | ||
| Name[be]=Усталяваць сістэму | ||
| Icon[be]=calamares | ||
| GenericName[be]=Усталёўшчык сістэмы | ||
| Comment[be]=Calamares — усталёўшчык сістэмы | ||
| Name[bg]=Инсталирай системата | ||
| Icon[bg]=calamares | ||
| GenericName[bg]=Системен Инсталатор | ||
| Comment[bg]=Calamares — Системен Инсталатор | ||
| Name[ca]=Instal·la el sistema | ||
| Icon[ca]=calamares | ||
| GenericName[ca]=Instal·lador de sistema | ||
| Comment[ca]=Calamares — Instal·lador de sistema | ||
| Name[da]=Installér AlterLinux | ||
| Icon[da]=calamares | ||
| GenericName[da]=AlterLinuxinstallationsprogram | ||
| Comment[da]=Calamares — AlterLinuxinstallationsprogram | ||
| Name[de]=AlterLinux installieren | ||
| Icon[de]=calamares | ||
| GenericName[de]=Installation des BetriebsAlterLinuxs | ||
| Comment[de]=Calamares - Installation des BetriebsAlterLinuxs | ||
| Name[el]=Εγκατάσταση συστήματος | ||
| Icon[el]=calamares | ||
| GenericName[el]=Εγκατάσταση συστήματος | ||
| Comment[el]=Calamares — Εγκατάσταση συστήματος | ||
| Name[en_GB]=Install AlterLinux | ||
| Icon[en_GB]=calamares | ||
| GenericName[en_GB]=AlterLinux Installer | ||
| Comment[en_GB]=Calamares — AlterLinux Installer | ||
| Name[es]=Instalar Sistema | ||
| Icon[es]=calamares | ||
| GenericName[es]=Instalador del Sistema | ||
| Comment[es]=Calamares — Instalador del Sistema | ||
| Name[et]=Paigalda süsteem | ||
| Icon[et]=calamares | ||
| GenericName[et]=Süsteemipaigaldaja | ||
| Comment[et]=Calamares — süsteemipaigaldaja | ||
| Name[eu]=Sistema instalatu | ||
| Icon[eu]=calamares | ||
| GenericName[eu]=Sistema instalatzailea | ||
| Comment[eu]=Calamares - sistema instalatzailea | ||
| Name[es_PR]=Instalar el sistema | ||
| Name[fr]=Installer le système | ||
| Icon[fr]=calamares | ||
| GenericName[fr]=Installateur système | ||
| Comment[fr]=Calamares - Installateur système | ||
| Name[gl]=Instalación do Sistema | ||
| Icon[gl]=calamares | ||
| GenericName[gl]=Instalador de sistemas | ||
| Comment[gl]=Calamares — Instalador de sistemas | ||
| Name[he]=התקנת מערכת | ||
| Icon[he]=calamares | ||
| GenericName[he]=אשף התקנה | ||
| Comment[he]=Calamares - אשף התקנה | ||
| Name[hi]=सिस्टम इंस्टॉल करें | ||
| Icon[hi]=calamares | ||
| GenericName[hi]=सिस्टम इंस्टॉलर | ||
| Comment[hi]=Calamares — सिस्टम इंस्टॉलर | ||
| Name[hr]=Instaliraj sustav | ||
| Icon[hr]=calamares | ||
| GenericName[hr]=Instalacija sustava | ||
| Comment[hr]=Calamares — Instalacija sustava | ||
| Name[hu]=Rendszer telepítése | ||
| Icon[hu]=calamares | ||
| GenericName[hu]=Rendszertelepítő | ||
| Comment[hu]=Calamares – Rendszertelepítő | ||
| Name[id]=Instal Sistem | ||
| Icon[id]=calamares | ||
| GenericName[id]=Pemasang | ||
| Comment[id]=Calamares — Pemasang Sistem | ||
| Name[is]=Setja upp kerfið | ||
| Icon[is]=calamares | ||
| GenericName[is]=Kerfis uppsetning | ||
| Comment[is]=Calamares — Kerfis uppsetning | ||
| Name[cs_CZ]=Nainstalovat systém | ||
| Icon[cs_CZ]=calamares | ||
| GenericName[cs_CZ]=Instalátor systému | ||
| Comment[cs_CZ]=Calamares – instalátor operačních systémů | ||
| Name[ja]=AlterLinuxをインストール | ||
| Icon[ja]=calamares | ||
| GenericName[ja]=AlterLinuxインストーラー | ||
| Comment[ja]=Calamares — AlterLinuxインストーラー | ||
| Name[ko]=시스템 설치 | ||
| Icon[ko]=깔라마레스 | ||
| GenericName[ko]=시스템 설치 관리자 | ||
| Comment[ko]=깔라마레스 — 시스템 설치 관리자 | ||
| Name[lt]=Įdiegti Sistemą | ||
| Icon[lt]=calamares | ||
| GenericName[lt]=Sistemos diegimas į kompiuterį | ||
| Comment[lt]=Calamares — Sistemos diegimo programa | ||
| Name[it_IT]=Installa il sistema | ||
| Icon[it_IT]=calamares | ||
| GenericName[it_IT]=Programma d'installazione del sistema | ||
| Comment[it_IT]=Calamares — Programma d'installazione del sistema | ||
| Name[mk]=Инсталирај го системот | ||
| Icon[mk]=calamares | ||
| GenericName[mk]=Системен Инсталер | ||
| Comment[mk]=Calamares - Системен Инсталер | ||
| Name[ml]=സിസ്റ്റം ഇൻസ്റ്റാൾ ചെയ്യുക | ||
| Icon[ml]=കലാമാരേസ് | ||
| GenericName[ml]=സിസ്റ്റം ഇൻസ്റ്റാളർ | ||
| Comment[ml]=കലാമാരേസ് - സിസ്റ്റം ഇൻസ്റ്റാളർ | ||
| Name[nb]=Installer AlterLinux | ||
| Icon[nb]=calamares | ||
| GenericName[nb]=AlterLinuxinstallatør | ||
| Comment[nb]=Calamares-AlterLinuxinstallatør | ||
| Name[nl]=Installeer systeem | ||
| Icon[nl]=calamares | ||
| GenericName[nl]=Installatieprogramma | ||
| Comment[nl]=Calamares — Installatieprogramma | ||
| Name[pl]=Zainstaluj AlterLinux | ||
| Icon[pl]=calamares | ||
| GenericName[pl]=Instalator AlterLinux | ||
| Comment[pl]=Calamares — Instalator AlterLinux | ||
| Name[pt_BR]=Sistema de Instalação | ||
| Icon[pt_BR]=calamares | ||
| GenericName[pt_BR]=Instalador de Sistema | ||
| Comment[pt_BR]=Calamares — Instalador de Sistema | ||
| Name[ro]=Instalează sistemul | ||
| Icon[ro]=calamares | ||
| GenericName[ro]=Instalator de sistem | ||
| Comment[ro]=Calamares — Instalator de sistem | ||
| Name[ru]=Установить систему | ||
| Icon[ru]=calamares | ||
| GenericName[ru]=Установщик системы | ||
| Comment[ru]=Calamares - Установщик системы | ||
| Name[sk]=Inštalovať systém | ||
| Icon[sk]=calamares | ||
| GenericName[sk]=Inštalátor systému | ||
| Comment[sk]=Calamares — Inštalátor systému | ||
| Name[sl]=Namesti sistem | ||
| Name[sq]=Instalo Sistemin | ||
| Icon[sq]=calamares | ||
| GenericName[sq]=Instalues Sistemi | ||
| Comment[sq]=Calamares — Instalues Sistemi | ||
| Name[fi_FI]=Asenna Järjestelmä | ||
| Icon[fi_FI]=calamares | ||
| GenericName[fi_FI]=Järjestelmän Asennusohjelma | ||
| Comment[fi_FI]=Calamares — Järjestelmän Asentaja | ||
| Name[sr@latin]=Instaliraj sistem | ||
| Name[sr]=Инсталирај систем | ||
| Icon[sr]=calamares | ||
| GenericName[sr]=Инсталатер система | ||
| Comment[sr]=Каламарес — инсталатер система | ||
| Name[sv]=Installera AlterLinux | ||
| Icon[sv]=calamares | ||
| GenericName[sv]=AlterLinuxinstallerare | ||
| Comment[sv]=Calamares — AlterLinuxinstallerare | ||
| Name[th]=ติดตั้งระบบ | ||
| Name[uk]=Встановити Систему | ||
| Icon[uk]=calamares | ||
| GenericName[uk]=Встановлювач системи | ||
| Comment[uk]=Calamares - Встановлювач системи | ||
| Name[zh_CN]=安装系统 | ||
| Icon[zh_CN]=calamares | ||
| GenericName[zh_CN]=系统安装程序 | ||
| Comment[zh_CN]=Calamares — 系统安装程序 | ||
| Name[zh_TW]=安裝系統 | ||
| Icon[zh_TW]=calamares | ||
| GenericName[zh_TW]=系統安裝程式 | ||
| Comment[zh_TW]=Calamares ── 系統安裝程式 | ||
| Name[ast]=Instalar el sistema | ||
| Icon[ast]=calamares | ||
| GenericName[ast]=Instalador del sistema | ||
| Comment[ast]=Calamares — Instalador del sistema | ||
| Name[eo]=Instali Sistemo | ||
| Icon[eo]=calamares | ||
| GenericName[eo]=Sistema Instalilo | ||
| Comment[eo]=Calamares — Sistema Instalilo | ||
| Name[ne_NP]= सिस्टम इन्स्टल गर्नुहोस् | ||
| Icon[ne_NP]=Calamares | ||
| GenericName[ne_NP]=सिस्टम इन्स्टलर | ||
| Comment[ne_NP]=Calamares - सिस्टम इन्स्टलर | ||
| Name[es_MX]=Instalar el Sistema | ||
| Icon[es_MX]=calamares | ||
| GenericName[es_MX]=Instalador del sistema | ||
| Comment[es_MX]=Calamares - Instalador del sistema | ||
| Name[pt_PT]=Instalar Sistema | ||
| Icon[pt_PT]=calamares | ||
| GenericName[pt_PT]=Instalador de Sistema | ||
| Comment[pt_PT]=Calamares - Instalador de Sistema | ||
| Name[tr_TR]=Sistemi Yükle | ||
| Icon[tr_TR]=calamares | ||
| GenericName[tr_TR]=Sistem Yükleyici | ||
| Comment[tr_TR]=Calamares — Sistem Yükleyici | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [Service] | ||
| ExecStart= | ||
| ExecStart=-/sbin/agetty --autologin %USERNAME% --noclear %I 38400 linux |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,238 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| set -e -u | ||
|
|
||
|
|
||
| # Default value | ||
| # All values can be changed by arguments. | ||
| password=alter | ||
| boot_splash=false | ||
| kernel=core | ||
| theme_name=alter-logo | ||
| rebuild=false | ||
| japanese=false | ||
| username='alter' | ||
|
|
||
|
|
||
| # Parse arguments | ||
| while getopts 'p:bt:k:rxju:' arg; do | ||
| case "${arg}" in | ||
| p) password="${OPTARG}" ;; | ||
| b) boot_splash=true ;; | ||
| t) theme_name="${OPTARG}" ;; | ||
| k) kernel="${OPTARG}" ;; | ||
| r) rebuild=true ;; | ||
| j) japanese=true;; | ||
| u) username="${OPTARG}" ;; | ||
| x) set -xv ;; | ||
| esac | ||
| done | ||
|
|
||
|
|
||
| # Check whether true or false is assigned to the variable. | ||
| function check_bool() { | ||
| local | ||
| case $(eval echo '$'${1}) in | ||
| true | false) : ;; | ||
| *) echo "The value ${boot_splash} set is invalid" >&2 ;; | ||
| esac | ||
| } | ||
|
|
||
| check_bool boot_splash | ||
| check_bool rebuild | ||
| check_bool japanese | ||
|
|
||
|
|
||
| # Delete file only if file exists | ||
| # remove <file1> <file2> ... | ||
| function remove () { | ||
| local _list | ||
| local _file | ||
| _list=($(echo "$@")) | ||
| for _file in "${_list[@]}"; do | ||
| if [[ -f ${_file} ]]; then | ||
| rm -f "${_file}" | ||
| elif [[ -d ${_file} ]]; then | ||
| rm -rf "${_file}" | ||
| fi | ||
| echo "${_file} was deleted." | ||
| done | ||
| } | ||
|
|
||
|
|
||
| # Enable and generate languages. | ||
| sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen | ||
| if [[ ${japanese} = true ]]; then | ||
| sed -i 's/#\(ja_JP\.UTF-8\)/\1/' /etc/locale.gen | ||
| fi | ||
| locale-gen | ||
|
|
||
|
|
||
| # Setting the time zone. | ||
| if [[ ${japanese} = true ]]; then | ||
| ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | ||
| else | ||
| ln -sf /usr/share/zoneinfo/UTC /etc/localtime | ||
| fi | ||
|
|
||
|
|
||
| # If rebuild is enabled, do not create users. | ||
| # This is described in detail on ArchWiki. | ||
| if [[ ${rebuild} = false ]]; then | ||
| # Creating a root user. | ||
| # usermod -s /usr/bin/zsh root | ||
|
|
||
| usermod -s /bin/bash root | ||
| cp -aT /etc/skel/ /root/ | ||
| chmod 700 /root | ||
| LC_ALL=C xdg-user-dirs-update | ||
| LANG=C xdg-user-dirs-update | ||
| echo -e "${password}\n${password}" | passwd root | ||
|
|
||
| # Allow sudo group to run sudo | ||
| sed -i 's/^#\s*\(%sudo\s\+ALL=(ALL)\s\+ALL\)/\1/' /etc/sudoers | ||
|
|
||
| # Create alter user. | ||
| # create_user <username> <password> | ||
| function create_user () { | ||
| local _password | ||
| local _username | ||
|
|
||
| _username=${1} | ||
| _password=${2} | ||
|
|
||
| set +u | ||
| if [[ -z "${_username}" ]]; then | ||
| echo "User name is not specified." >&2 | ||
| return 1 | ||
| fi | ||
| if [[ -z "${_password}" ]]; then | ||
| echo "No password has been specified." >&2 | ||
| return 1 | ||
| fi | ||
| set -u | ||
|
|
||
| useradd -m -s /bin/bash ${_username} | ||
| groupadd sudo | ||
| usermod -U -g ${_username} -G sudo ${_username} | ||
| cp -aT /etc/skel/ /home/${_username}/ | ||
| chmod 700 -R /home/${_username} | ||
| chown ${_username}:${_username} -R /home/${_username} | ||
| echo -e "${_password}\n${_password}" | passwd ${_username} | ||
| set -u | ||
| } | ||
|
|
||
| create_user "${username}" "${password}" | ||
| fi | ||
|
|
||
|
|
||
| # Set up auto login | ||
| if [[ -f /etc/systemd/system/getty@tty1.service.d/autologin.conf ]]; then | ||
| sed -i s/%USERNAME%/${username}/ /etc/systemd/system/getty@tty1.service.d/autologin.conf | ||
| fi | ||
|
|
||
|
|
||
| # Set to execute calamares without password as alter user. | ||
| cat >> /etc/sudoers << 'EOF' | ||
| alter ALL=NOPASSWD: /usr/bin/calamares | ||
| alter ALL=NOPASSWD: /usr/bin/calamares_polkit | ||
| Defaults pwfeedback | ||
| EOF | ||
|
|
||
|
|
||
| # Configure Plymouth settings | ||
| if [[ $boot_splash = true ]]; then | ||
| # Edit calamares settings for Plymouth. | ||
|
|
||
| # Use lightdm-plymouth instead of lightdm. | ||
| remove /usr/share/calamares/modules/services.conf | ||
| mv /usr/share/calamares/modules/services-plymouth.conf /usr/share/calamares/modules/services.conf | ||
|
|
||
| # Back up default plymouth settings. | ||
| # cp /usr/share/calamares/modules/plymouthcfg.conf /usr/share/calamares/modules/plymouthcfg.conf.org | ||
|
|
||
| # Override theme settings. | ||
| remove /usr/share/calamares/modules/plymouthcfg.conf | ||
| echo '---' > /usr/share/calamares/modules/plymouthcfg.conf | ||
| echo "plymouth_theme: ${theme_name}" >> /usr/share/calamares/modules/plymouthcfg.conf | ||
|
|
||
| # Apply plymouth theme settings. | ||
| plymouth-set-default-theme ${theme_name} | ||
| else | ||
| # Delete the configuration file for plymouth. | ||
| remove /usr/share/calamares/modules/services-plymouth.conf | ||
| fi | ||
|
|
||
|
|
||
| # Japanese | ||
| if [[ ${japanese} = true ]]; then | ||
| # Change the language to Japanese. | ||
|
|
||
| remove /etc/locale.conf | ||
| echo 'LANG=ja_JP.UTF-8' > /etc/locale.conf | ||
| fi | ||
|
|
||
|
|
||
| # If the specified kernel is different from calamares configuration, replace the configuration file. | ||
| if [[ ! ${kernel} = "zen" ]]; then | ||
| # initcpio | ||
| remove /usr/share/calamares/modules/initcpio.conf | ||
| mv /usr/share/calamares/modules/initcpio/initcpio-${kernel}.conf /usr/share/calamares/modules/initcpio.conf | ||
|
|
||
| # unpackfs | ||
| remove /usr/share/calamares/modules/unpackfs.conf | ||
| mv /usr/share/calamares/modules/unpackfs/unpackfs-${kernel}.conf /usr/share/calamares/modules/unpackfs.conf | ||
| fi | ||
| # Remove configuration files for other kernels. | ||
| remove /usr/share/calamares/modules/initcpio/ | ||
| remove /usr/share/calamares/modules/unpackfs/ | ||
| # Set up calamares removeuser | ||
| sed -i s/%USERNAME%/${username}/ /usr/share/calamares/modules/removeuser.conf | ||
|
|
||
|
|
||
| # Enable root login with SSH. | ||
| sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config | ||
|
|
||
|
|
||
| # Comment out the mirror list. | ||
| sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist | ||
|
|
||
|
|
||
| # Set to save journal logs only in memory. | ||
| sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf | ||
|
|
||
|
|
||
| # Set the operation when each power button is pressed in systemd power management. | ||
| sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf | ||
| sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf | ||
| sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf | ||
|
|
||
|
|
||
| # Create new icon cache | ||
| # This is because alter icon was added by airootfs. | ||
| gtk-update-icon-cache -f /usr/share/icons/hicolor | ||
|
|
||
|
|
||
| # Enable graphical. | ||
| systemctl set-default graphical.target | ||
|
|
||
|
|
||
| # Enable services. | ||
| systemctl enable pacman-init.service | ||
| systemctl enable choose-mirror.service | ||
| systemctl enable org.cups.cupsd.service | ||
| systemctl enable NetworkManager.service | ||
|
|
||
|
|
||
| # TLP | ||
| # See ArchWiki for details. | ||
| systemctl enable tlp.service | ||
| systemctl mask systemd-rfkill.service | ||
| systemctl mask systemd-rfkill.socket |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| NAME="Alter Linux" | ||
| PRETTY_NAME="Alter Linux" | ||
| ID=arch | ||
| ID_LIKE=arch | ||
| BUILD_ID=rolling | ||
| ANSI_COLOR="0;36" | ||
| HOME_URL="https://fascode.net/projects/linux/alter/" | ||
| DOCUMENTATION_URL="https://github.com/SereneTeam/alterlinux/docs/" | ||
| SUPPORT_URL="https://serenelinux.net/" | ||
| BUG_REPORT_URL="https://github.com/SereneTeam/alterlinux/issues" | ||
| LOGO=alter |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # Run mkinitcpio(8) with the given preset value | ||
| --- | ||
| # This key defines the kernel to be loaded. | ||
| # It can have the following values: | ||
| # - empty or unset, interpreted as "all" | ||
| # - the literal string "$uname" (without quotes, with dollar), | ||
| # which will use the output of `uname -r` to determine the | ||
| # running kernel, and use that. | ||
| # - any other string. | ||
| # | ||
| # Whatever is set, that string is passed as *preset* argument to the | ||
| # `-p` option of *mkinitcpio*. Take care that both "$uname" operates | ||
| # in the host system, and might not be correct if the target system is | ||
| # updated (to a newer kernel) as part of the installation. | ||
| # | ||
| # Note that "all" is probably not a good preset to use either. | ||
| # kernel: linux312 | ||
| kernel: linux-xanmod-lts | ||
|
|
||
| # Set this to true to turn off mitigations for lax file | ||
| # permissions on initramfs (which, in turn, can compromise | ||
| # your LUKS encryption keys, CVS-2019-13179). | ||
| be_unsafe: false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| # Removes a single user (with userdel) from the system. | ||
| # This is typically used in OEM setups or if the live user | ||
| # spills into the target system. | ||
| # | ||
| # The module never fails; if userdel fails, this is logged | ||
| # but the module still reports success and installation / setup | ||
| # continues as normal. | ||
| --- | ||
| # Username in the target system to be removed. | ||
| username: %USERNAME% |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| # Unsquash / unpack a filesystem. Multiple sources are supported, and | ||
| # they may be squashed or plain filesystems. | ||
| # | ||
| # Configuration: | ||
| # | ||
| # from globalstorage: rootMountPoint | ||
| # from job.configuration: the path to where to mount the source image(s) | ||
| # for copying an ordered list of unpack mappings for image file <-> | ||
| # target dir relative to rootMountPoint. | ||
|
|
||
| --- | ||
| # Each list item is unpacked, in order, to the target system. | ||
| # | ||
| # Each list item has the following **mandatory** attributes: | ||
| # - *source* path relative to the live / intstalling system to the image | ||
| # - *sourcefs* the type of the source files; valid entries are | ||
| # - `ext4` (copies the filesystem contents) | ||
| # - `squashfs` (unsquashes) | ||
| # - `file` (copies a file or directory) | ||
| # - (may be others if mount supports it) | ||
| # - *destination* path relative to rootMountPoint (so in the target | ||
| # system) where this filesystem is unpacked. It may be an | ||
| # empty string, which effectively is / (the root) of the target | ||
| # system. | ||
| # | ||
| # Each list item **optionally** can include the following attributes: | ||
| # - *exclude* is a list of values that is expanded into --exclude | ||
| # arguments for rsync (each entry in exclude gets its own --exclude). | ||
| # - *excludeFile* is a single file that is passed to rsync as an | ||
| # --exclude-file argument. This should be a full pathname | ||
| # inside the **host** filesystem. | ||
| # | ||
| # EXAMPLES | ||
| # | ||
| # Usually you list a filesystem image to unpack; you can use | ||
| # squashfs or an ext4 image. An empty destination is equivalent to "/", | ||
| # the root of the target system. The destination directory must exist | ||
| # in the target system. | ||
| # | ||
| # - source: "/path/to/filesystem.sqfs" | ||
| # sourcefs: "squashfs" | ||
| # destination: "" | ||
| # | ||
| # Multiple entries are unpacked in-order; if there is more than one | ||
| # item then only the first must exist beforehand -- it's ok to | ||
| # create directories with one unsquash and then to use those | ||
| # directories as a target from a second unsquash. | ||
| # | ||
| # - source: "/path/to/another/filesystem.img" | ||
| # sourcefs: "ext4" | ||
| # destination: "" | ||
| # - source: "/path/to/another/filesystem2.img" | ||
| # sourcefs: "ext4" | ||
| # destination: "/usr/lib/extra" | ||
| # | ||
| # You can list filesystem source paths relative to the Calamares run | ||
| # directory, if you use -d (this is only useful for testing, though). | ||
| # | ||
| # - source: ./example.sqfs | ||
| # sourcefs: squashfs | ||
| # destination: "" | ||
| # | ||
| # You can list individual files (copied one-by-one), or directories | ||
| # (the files inside this directory are copied directly to the destination, | ||
| # so no "dummycpp/" subdirectory is created in this example). | ||
| # Do note that the target directory must exist already (e.g. from | ||
| # extracting some other filesystem). | ||
| # | ||
| # - source: ../CHANGES | ||
| # sourcefs: file | ||
| # destination: "/tmp/derp" | ||
| # - source: ../src/modules/dummycpp | ||
| # sourcefs: file | ||
| # destination: "/tmp/derp" | ||
| # | ||
| # The *destination* and *source* are handed off to rsync, so the semantics | ||
| # of trailing slashes apply. In order to *rename* a file as it is | ||
| # copied, specify one single file (e.g. CHANGES) and a full pathname | ||
| # for its destination name, as in the example below. | ||
|
|
||
| #unpack: | ||
| # - source: ../CHANGES | ||
| # sourcefs: file | ||
| # destination: "/tmp/changes.txt" | ||
| # - source: src/qml/calamares/slideshow | ||
| # sourcefs: file | ||
| # destination: "/tmp/slideshow/" | ||
| # exclude: [ "*.qmlc", "qmldir" ] | ||
| # # excludeFile: /etc/calamares/modules/unpackfs/exclude-list.txt | ||
|
|
||
| unpack: | ||
| - source: "/run/archiso/bootmnt/alter/x86_64/airootfs.sfs" | ||
| sourcefs: "squashfs" | ||
| destination: "" | ||
| - source: "/run/archiso/bootmnt/alter/boot/x86_64/vmlinuz-linux-xanmod-lts" | ||
| sourcefs: "file" | ||
| destination: "/boot/vmlinuz-linux-xanmod-lts" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Alter Linux original | ||
|
|
||
|
|
||
| #-- installer --# | ||
| alterlinux-calamares | ||
| libpwquality |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # File System | ||
|
|
||
|
|
||
| btrfs-progs | ||
| dosfstools | ||
| exfat-utils | ||
| f2fs-tools | ||
| jfsutils | ||
| mtools | ||
| nfs-utils | ||
| nilfs-utils | ||
| ntfs-3g | ||
| reiserfsprogs | ||
| xfsprogs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # look and feel | ||
|
|
||
|
|
||
| # font | ||
| noto-fonts | ||
| noto-fonts-cjk | ||
| noto-fonts-emoji |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Hardware | ||
| # | ||
|
|
||
|
|
||
| #-- drivers --# | ||
| b43-fwcutter | ||
| ipw2100-fw | ||
| ipw2200-fw | ||
|
|
||
|
|
||
| #-- interface support --# | ||
| lsscsi | ||
| sg3_utils | ||
| usb_modeswitch | ||
| usbutils | ||
|
|
||
| #-- printers --# | ||
| cups | ||
| cups-pdf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Other | ||
|
|
||
|
|
||
| #-- archiver --# | ||
| unrar | ||
| unzip-iconv | ||
|
|
||
|
|
||
| #-- commandline tools --# | ||
| arch-install-scripts | ||
| bash-completion | ||
| dialog | ||
| diffutils | ||
| mc | ||
| sudo | ||
|
|
||
|
|
||
| #-- utility --# | ||
| tlp | ||
| xdg-user-dirs |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # package management | ||
|
|
||
|
|
||
| #-- cli frontend --# | ||
| aptpac | ||
| yay-bin | ||
|
|
||
|
|
||
| #-- gui frontend--# | ||
| eg-installer | ||
|
|
||
|
|
||
| #-- keyring --# | ||
| alterlinux-keyring | ||
| archlinux-keyring | ||
|
|
||
|
|
||
| #-- mirrorlist --# | ||
| alterlinux-mirrorlist |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| [General] | ||
|
|
||
| # Default adapter name | ||
| # Defaults to 'BlueZ X.YZ' | ||
| #Name = BlueZ | ||
|
|
||
| # Default device class. Only the major and minor device class bits are | ||
| # considered. Defaults to '0x000000'. | ||
| #Class = 0x000100 | ||
|
|
||
| # How long to stay in discoverable mode before going back to non-discoverable | ||
| # The value is in seconds. Default is 180, i.e. 3 minutes. | ||
| # 0 = disable timer, i.e. stay discoverable forever | ||
| #DiscoverableTimeout = 0 | ||
|
|
||
| # Always allow pairing even if there are no agent registered | ||
| # Possible values: true, false | ||
| # Default: false | ||
| #AlwaysPairable = false | ||
|
|
||
| # How long to stay in pairable mode before going back to non-discoverable | ||
| # The value is in seconds. Default is 0. | ||
| # 0 = disable timer, i.e. stay pairable forever | ||
| #PairableTimeout = 0 | ||
|
|
||
| # Use vendor id source (assigner), vendor, product and version information for | ||
| # DID profile support. The values are separated by ":" and assigner, VID, PID | ||
| # and version. | ||
| # Possible vendor id source values: bluetooth, usb (defaults to usb) | ||
| #DeviceID = bluetooth:1234:5678:abcd | ||
|
|
||
| # Do reverse service discovery for previously unknown devices that connect to | ||
| # us. For BR/EDR this option is really only needed for qualification since the | ||
| # BITE tester doesn't like us doing reverse SDP for some test cases, for LE | ||
| # this disables the GATT client functionally so it can be used in system which | ||
| # can only operate as peripheral. | ||
| # Defaults to 'true'. | ||
| #ReverseServiceDiscovery = true | ||
|
|
||
| # Enable name resolving after inquiry. Set it to 'false' if you don't need | ||
| # remote devices name and want shorter discovery cycle. Defaults to 'true'. | ||
| #NameResolving = true | ||
|
|
||
| # Enable runtime persistency of debug link keys. Default is false which | ||
| # makes debug link keys valid only for the duration of the connection | ||
| # that they were created for. | ||
| #DebugKeys = false | ||
|
|
||
| # Restricts all controllers to the specified transport. Default value | ||
| # is "dual", i.e. both BR/EDR and LE enabled (when supported by the HW). | ||
| # Possible values: "dual", "bredr", "le" | ||
| #ControllerMode = dual | ||
|
|
||
| # Enables Multi Profile Specification support. This allows to specify if | ||
| # system supports only Multiple Profiles Single Device (MPSD) configuration | ||
| # or both Multiple Profiles Single Device (MPSD) and Multiple Profiles Multiple | ||
| # Devices (MPMD) configurations. | ||
| # Possible values: "off", "single", "multiple" | ||
| #MultiProfile = off | ||
|
|
||
| # Permanently enables the Fast Connectable setting for adapters that | ||
| # support it. When enabled other devices can connect faster to us, | ||
| # however the tradeoff is increased power consumptions. This feature | ||
| # will fully work only on kernel version 4.1 and newer. Defaults to | ||
| # 'false'. | ||
| #FastConnectable = false | ||
|
|
||
| # Default privacy setting. | ||
| # Enables use of private address. | ||
| # Possible values: "off", "device", "network" | ||
| # "network" option not supported currently | ||
| # Defaults to "off" | ||
| # Privacy = off | ||
|
|
||
| # Specify the policy to the JUST-WORKS repairing initiated by peer | ||
| # Possible values: "never", "confirm", "always" | ||
| # Defaults to "never" | ||
| #JustWorksRepairing = never | ||
|
|
||
| [GATT] | ||
| # GATT attribute cache. | ||
| # Possible values: | ||
| # always: Always cache attributes even for devices not paired, this is | ||
| # recommended as it is best for interoperability, with more consistent | ||
| # reconnection times and enables proper tracking of notifications for all | ||
| # devices. | ||
| # yes: Only cache attributes of paired devices. | ||
| # no: Never cache attributes | ||
| # Default: always | ||
| #Cache = always | ||
|
|
||
| # Minimum required Encryption Key Size for accessing secured characteristics. | ||
| # Possible values: 0 and 7-16. 0 means don't care. | ||
| # Defaults to 0 | ||
| #KeySize = 0 | ||
|
|
||
| # Exchange MTU size. | ||
| # Possible values: 23-517 | ||
| # Defaults to 517 | ||
| #ExchangeMTU = 517 | ||
|
|
||
| # Number of ATT channels | ||
| # Possible values: 1-5 (1 disables EATT) | ||
| # Default to 3 | ||
| #Channels = 3 | ||
|
|
||
| [Policy] | ||
| # | ||
| # The ReconnectUUIDs defines the set of remote services that should try | ||
| # to be reconnected to in case of a link loss (link supervision | ||
| # timeout). The policy plugin should contain a sane set of values by | ||
| # default, but this list can be overridden here. By setting the list to | ||
| # empty the reconnection feature gets disabled. | ||
| #ReconnectUUIDs=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb | ||
|
|
||
| # ReconnectAttempts define the number of attempts to reconnect after a link | ||
| # lost. Setting the value to 0 disables reconnecting feature. | ||
| #ReconnectAttempts=7 | ||
|
|
||
| # ReconnectIntervals define the set of intervals in seconds to use in between | ||
| # attempts. | ||
| # If the number of attempts defined in ReconnectAttempts is bigger than the | ||
| # set of intervals the last interval is repeated until the last attempt. | ||
| #ReconnectIntervals=1,2,4,8,16,32,64 | ||
|
|
||
| # AutoEnable defines option to enable all controllers when they are found. | ||
| # This includes adapters present on start as well as adapters that are plugged | ||
| # in later on. Defaults to 'false'. | ||
| AutoEnable=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| polkit.addRule(function(action, subject) { | ||
| if (action.id == "org.blueman.rfkill.setstate" && subject.local && subject.active && subject.isInGroup("wheel")) { | ||
| return polkit.Result.YES; | ||
| } | ||
| if (action.id == "org.blueman.network.setup" && subject.local && subject.active && subject.isInGroup("wheel")) { | ||
| return polkit.Result.YES; | ||
| } | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Write the alias here. | ||
| # | ||
|
|
||
| [[ ! ${TERM} = "linux" ]] && alias ls='lsd' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # | ||
| # ~/.bash_logout | ||
| # |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # | ||
| # ~/.bash_profile | ||
| # | ||
|
|
||
| [[ -f ~/.bashrc ]] && . ~/.bashrc | ||
| [[ -f ~/.setup.sh ]] && ~/.setup.sh | ||
| [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # | ||
| # ~/.bashrc | ||
| # | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| # If not running interactively, don't do anything | ||
| [[ $- != *i* ]] && return | ||
|
|
||
|
|
||
| #-- Load scripts --# | ||
| [[ -f ~/.aliases ]] && source ~/.aliases | ||
|
|
||
|
|
||
| #-- Pass to the path --# | ||
| [[ -d ~/.bin ]] && export PATH=${PATH}:~/.bin | ||
|
|
||
|
|
||
| #-- Set prompt --# | ||
| if [[ ${TERM} = "linux" ]]; then | ||
| # No color | ||
| PS1='\u@\h:\w\$ ' | ||
| else | ||
| # ArchLinux default | ||
| # PS1='[\u@\h \W]\$ ' | ||
|
|
||
| # No color | ||
| # PS1='\u@\h:\w\$ ' | ||
|
|
||
| # Colored | ||
| # PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '] | ||
|
|
||
| # PowerLine | ||
| powerline-daemon -q | ||
| source /usr/share/powerline/bindings/bash/powerline.sh | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?><!-- -*- xml -*- --> | ||
| <moo-prefs version="1.0"> | ||
| <Prefs> | ||
| <item name="Editor/highlight_current_line" type="bool">FALSE</item> | ||
| <item name="Editor/indent_width" type="int">4</item> | ||
| <item name="Editor/open_dialog_follows_doc" type="bool">TRUE</item> | ||
| <item name="Editor/show_line_numbers" type="bool">TRUE</item> | ||
| <item name="Editor/show_spaces" type="bool">TRUE</item> | ||
| <item name="Editor/show_tabs" type="bool">TRUE</item> | ||
| <item name="Editor/show_trailing_spaces" type="bool">TRUE</item> | ||
| <item name="Editor/strip" type="bool">TRUE</item> | ||
| <item name="Editor/tab_width" type="int">4</item> | ||
| <item name="Editor/wrapping_enable" type="bool">TRUE</item> | ||
| <item name="Plugins/FileSelector/enabled" type="bool">FALSE</item> | ||
| <item name="Plugins/MooFileList/enabled" type="bool">FALSE</item> | ||
| <item name="Plugins/MooLua/enabled" type="bool">FALSE</item> | ||
| </Prefs> | ||
| </moo-prefs> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| mkdir -p ${HOME}/.config/gtk-3.0/ | ||
| touch ${HOME}/.config/gtk-3.0/bookmarks | ||
|
|
||
| source ${HOME}/.config/user-dirs.dirs | ||
|
|
||
| cat > "${HOME}/.config/gtk-3.0/bookmarks" << EOF | ||
| file://${XDG_DOCUMENTS_DIR}/ | ||
| file://${XDG_DOWNLOAD_DIR}/ | ||
| file://${XDG_MUSIC_DIR}/ | ||
| file://${XDG_PICTURES_DIR} | ||
| file://${XDG_TEMPLATES_DIR} | ||
| file://${XDG_VIDEOS_DIR} | ||
| EOF | ||
|
|
||
| rm -f ~/.setup.sh |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # | ||
| # ~/.zsh_profile | ||
| # | ||
|
|
||
| [[ -f ~/.setup.sh ]] && ~/.setup.sh | ||
| [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,85 @@ | ||
| #-- Alias --# | ||
| if [[ -f .aliases ]]; then | ||
| source .aliases | ||
| fi | ||
|
|
||
|
|
||
| #-- Completion --# | ||
| if [ -e /usr/local/share/zsh-completions ]; then | ||
| fpath=(/usr/local/share/zsh-completions $fpath) | ||
| fi | ||
| autoload -U compinit | ||
| compinit -u | ||
|
|
||
|
|
||
| #-- Key --# | ||
| # create a zkbd compatible hash; | ||
| # to add other keys to this hash, see: man 5 terminfo | ||
| typeset -A key | ||
|
|
||
| key[Home]=${terminfo[khome]} | ||
|
|
||
| key[End]=${terminfo[kend]} | ||
| key[Insert]=${terminfo[kich1]} | ||
| key[Delete]=${terminfo[kdch1]} | ||
| key[Up]=${terminfo[kcuu1]} | ||
| key[Down]=${terminfo[kcud1]} | ||
| key[Left]=${terminfo[kcub1]} | ||
| key[Right]=${terminfo[kcuf1]} | ||
| key[PageUp]=${terminfo[kpp]} | ||
| key[PageDown]=${terminfo[knp]} | ||
|
|
||
| # setup key accordingly | ||
| [[ -n "${key[Home]}" ]] && bindkey "${key[Home]}" beginning-of-line | ||
| [[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line | ||
| [[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode | ||
| [[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char | ||
| [[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-history | ||
| [[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-history | ||
| [[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char | ||
| [[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char | ||
| [[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" beginning-of-buffer-or-history | ||
| [[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" end-of-buffer-or-history | ||
|
|
||
| # Finally, make sure the terminal is in application mode, when zle is | ||
| # active. Only then are the values from $terminfo valid. | ||
| if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then | ||
| function zle-line-init () { | ||
| printf '%s' "${terminfo[smkx]}" | ||
| } | ||
| function zle-line-finish () { | ||
| printf '%s' "${terminfo[rmkx]}" | ||
| } | ||
| zle -N zle-line-init | ||
| zle -N zle-line-finish | ||
| fi | ||
|
|
||
|
|
||
| #-- Do not sound --# | ||
| setopt nolistbeep | ||
| setopt nolistbeep | ||
|
|
||
|
|
||
| #-- Save history. --# | ||
| HISTFILE=~/.zsh_history | ||
| HISTSIZE=100000 | ||
| SAVEHIST=100000 | ||
| setopt share_history | ||
|
|
||
|
|
||
| #-- Make colors available --# | ||
| autoload -Uz colors | ||
| colors | ||
|
|
||
|
|
||
| #-- Pass to the path --# | ||
| [[ -d ~/.bin ]] && export PATH="~/.bin:${PATH}" | ||
|
|
||
|
|
||
| #-- PROMPT --# | ||
| if [[ ${TERM} = linux ]]; then | ||
| PROMPT='%B%F{red}%(?..%? )%f%b%B%F{red}%n%f%b@%m %B%40<..<%~%<< %b%# ' | ||
| else | ||
| powerline-daemon -q | ||
| source /usr/share/powerline/bindings/zsh/powerline.zsh | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,247 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| set -e -u | ||
|
|
||
|
|
||
| # Default value | ||
| # All values can be changed by arguments. | ||
| password=alter | ||
| boot_splash=false | ||
| kernel=core | ||
| theme_name=alter-logo | ||
| rebuild=false | ||
| japanese=false | ||
| username='alter' | ||
|
|
||
|
|
||
| # Parse arguments | ||
| while getopts 'p:bt:k:rxju:' arg; do | ||
| case "${arg}" in | ||
| p) password="${OPTARG}" ;; | ||
| b) boot_splash=true ;; | ||
| t) theme_name="${OPTARG}" ;; | ||
| k) kernel="${OPTARG}" ;; | ||
| r) rebuild=true ;; | ||
| j) japanese=true;; | ||
| u) username="${OPTARG}" ;; | ||
| x) set -xv ;; | ||
| esac | ||
| done | ||
|
|
||
|
|
||
| # Check whether true or false is assigned to the variable. | ||
| function check_bool() { | ||
| local | ||
| case $(eval echo '$'${1}) in | ||
| true | false) : ;; | ||
| *) echo "The value ${boot_splash} set is invalid" >&2 ;; | ||
| esac | ||
| } | ||
|
|
||
| check_bool boot_splash | ||
| check_bool rebuild | ||
| check_bool japanese | ||
|
|
||
|
|
||
| # Delete file only if file exists | ||
| # remove <file1> <file2> ... | ||
| function remove () { | ||
| local _list | ||
| local _file | ||
| _list=($(echo "$@")) | ||
| for _file in "${_list[@]}"; do | ||
| if [[ -f ${_file} ]]; then | ||
| rm -f "${_file}" | ||
| elif [[ -d ${_file} ]]; then | ||
| rm -rf "${_file}" | ||
| fi | ||
| echo "${_file} was deleted." | ||
| done | ||
| } | ||
|
|
||
|
|
||
| # Enable and generate languages. | ||
| sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen | ||
| if [[ ${japanese} = true ]]; then | ||
| sed -i 's/#\(ja_JP\.UTF-8\)/\1/' /etc/locale.gen | ||
| fi | ||
| locale-gen | ||
|
|
||
|
|
||
| # Setting the time zone. | ||
| if [[ ${japanese} = true ]]; then | ||
| ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | ||
| else | ||
| ln -sf /usr/share/zoneinfo/UTC /etc/localtime | ||
| fi | ||
|
|
||
|
|
||
| # If rebuild is enabled, do not create users. | ||
| # This is described in detail on ArchWiki. | ||
| if [[ ${rebuild} = false ]]; then | ||
| # Creating a root user. | ||
| # usermod -s /usr/bin/zsh root | ||
|
|
||
| usermod -s /bin/bash root | ||
| cp -aT /etc/skel/ /root/ | ||
| chmod 700 /root | ||
| LC_ALL=C xdg-user-dirs-update | ||
| LANG=C xdg-user-dirs-update | ||
| echo -e "${password}\n${password}" | passwd root | ||
|
|
||
| # Allow sudo group to run sudo | ||
| sed -i 's/^#\s*\(%sudo\s\+ALL=(ALL)\s\+ALL\)/\1/' /etc/sudoers | ||
|
|
||
| # Create alter user. | ||
| # create_user <username> <password> | ||
| function create_user () { | ||
| local _password | ||
| local _username | ||
|
|
||
| _username=${1} | ||
| _password=${2} | ||
|
|
||
| set +u | ||
| if [[ -z "${_username}" ]]; then | ||
| echo "User name is not specified." >&2 | ||
| return 1 | ||
| fi | ||
| if [[ -z "${_password}" ]]; then | ||
| echo "No password has been specified." >&2 | ||
| return 1 | ||
| fi | ||
| set -u | ||
|
|
||
| useradd -m -s /bin/zsh ${_username} | ||
| groupadd sudo | ||
| usermod -U -g ${_username} -G sudo ${_username} | ||
| cp -aT /etc/skel/ /home/${_username}/ | ||
| chmod 700 -R /home/${_username} | ||
| chown ${_username}:${_username} -R /home/${_username} | ||
| echo -e "${_password}\n${_password}" | passwd ${_username} | ||
| set -u | ||
| } | ||
|
|
||
| create_user "${username}" "${password}" | ||
| fi | ||
|
|
||
|
|
||
| # Set up auto login | ||
| if [[ -f /etc/systemd/system/getty@tty1.service.d/autologin.conf ]]; then | ||
| sed -i s/%USERNAME%/${username}/ /etc/systemd/system/getty@tty1.service.d/autologin.conf | ||
| fi | ||
|
|
||
|
|
||
| # Set to execute calamares without password as alter user. | ||
| cat >> /etc/sudoers << 'EOF' | ||
| alter ALL=NOPASSWD: /usr/bin/calamares | ||
| alter ALL=NOPASSWD: /usr/bin/calamares_polkit | ||
| Defaults pwfeedback | ||
| EOF | ||
|
|
||
|
|
||
| # Configure Plymouth settings | ||
| if [[ $boot_splash = true ]]; then | ||
| # Edit calamares settings for Plymouth. | ||
|
|
||
| # Use lightdm-plymouth instead of lightdm. | ||
| remove /usr/share/calamares/modules/services.conf | ||
| mv /usr/share/calamares/modules/services-plymouth.conf /usr/share/calamares/modules/services.conf | ||
|
|
||
| # Back up default plymouth settings. | ||
| # cp /usr/share/calamares/modules/plymouthcfg.conf /usr/share/calamares/modules/plymouthcfg.conf.org | ||
|
|
||
| # Override theme settings. | ||
| remove /usr/share/calamares/modules/plymouthcfg.conf | ||
| echo '---' > /usr/share/calamares/modules/plymouthcfg.conf | ||
| echo "plymouth_theme: ${theme_name}" >> /usr/share/calamares/modules/plymouthcfg.conf | ||
|
|
||
| # Apply plymouth theme settings. | ||
| plymouth-set-default-theme ${theme_name} | ||
| else | ||
| # Delete the configuration file for plymouth. | ||
| remove /usr/share/calamares/modules/services-plymouth.conf | ||
| fi | ||
|
|
||
|
|
||
| # Japanese | ||
| if [[ ${japanese} = true ]]; then | ||
| # Change the language to Japanese. | ||
|
|
||
| remove /etc/locale.conf | ||
| echo 'LANG=ja_JP.UTF-8' > /etc/locale.conf | ||
| fi | ||
|
|
||
|
|
||
| # If the specified kernel is different from calamares configuration, replace the configuration file. | ||
| if [[ ! ${kernel} = "zen" ]]; then | ||
| # initcpio | ||
| remove /usr/share/calamares/modules/initcpio.conf | ||
| mv /usr/share/calamares/modules/initcpio/initcpio-${kernel}.conf /usr/share/calamares/modules/initcpio.conf | ||
|
|
||
| # unpackfs | ||
| remove /usr/share/calamares/modules/unpackfs.conf | ||
| mv /usr/share/calamares/modules/unpackfs/unpackfs-${kernel}.conf /usr/share/calamares/modules/unpackfs.conf | ||
| fi | ||
| # Remove configuration files for other kernels. | ||
| remove /usr/share/calamares/modules/initcpio/ | ||
| remove /usr/share/calamares/modules/unpackfs/ | ||
| # Set up calamares removeuser | ||
| sed -i s/%USERNAME%/${username}/ /usr/share/calamares/modules/removeuser.conf | ||
|
|
||
|
|
||
| # Enable root login with SSH. | ||
| sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config | ||
|
|
||
|
|
||
| # Comment out the mirror list. | ||
| sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist | ||
|
|
||
|
|
||
| # Set to save journal logs only in memory. | ||
| sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf | ||
|
|
||
|
|
||
| # Set the operation when each power button is pressed in systemd power management. | ||
| sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf | ||
| sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf | ||
| sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf | ||
|
|
||
|
|
||
| # Create new icon cache | ||
| # This is because alter icon was added by airootfs. | ||
| gtk-update-icon-cache -f /usr/share/icons/hicolor | ||
|
|
||
|
|
||
| # Enable graphical. | ||
| systemctl set-default graphical.target | ||
|
|
||
|
|
||
| # Disable services. | ||
| # To disable start up of lightdm. | ||
| # If it is enable, Users have to enter password. | ||
| systemctl disable lightdm | ||
| if [[ ${boot_splash} = true ]]; then | ||
| systemctl disable lightdm-plymouth.service | ||
| fi | ||
|
|
||
|
|
||
| # Enable services. | ||
| systemctl enable pacman-init.service | ||
| systemctl enable choose-mirror.service | ||
| systemctl enable org.cups.cupsd.service | ||
| systemctl enable NetworkManager.service | ||
|
|
||
|
|
||
| # TLP | ||
| # See ArchWiki for details. | ||
| systemctl enable tlp.service | ||
| systemctl mask systemd-rfkill.service | ||
| systemctl mask systemd-rfkill.socket |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| #!/usr/bin/env bash | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| set -e -u | ||
|
|
||
|
|
||
| # Default value | ||
| # All values can be changed by arguments. | ||
| password=alter | ||
| boot_splash=false | ||
| kernel=core | ||
| theme_name=alter-logo | ||
| rebuild=false | ||
| japanese=false | ||
| username='alter' | ||
|
|
||
|
|
||
| # Parse arguments | ||
| while getopts 'p:bt:k:rxju:' arg; do | ||
| case "${arg}" in | ||
| p) password="${OPTARG}" ;; | ||
| b) boot_splash=true ;; | ||
| t) theme_name="${OPTARG}" ;; | ||
| k) kernel="${OPTARG}" ;; | ||
| r) rebuild=true ;; | ||
| j) japanese=true;; | ||
| u) username="${OPTARG}" ;; | ||
| x) set -xv ;; | ||
| esac | ||
| done | ||
|
|
||
|
|
||
| # Delete file only if file exists | ||
| # remove <file1> <file2> ... | ||
| function remove () { | ||
| local _list | ||
| local _file | ||
| _list=($(echo "$@")) | ||
| for _file in "${_list[@]}"; do | ||
| if [[ -f ${_file} ]]; then | ||
| rm -f "${_file}" | ||
| elif [[ -d ${_file} ]]; then | ||
| rm -rf "${_file}" | ||
| fi | ||
| echo "${_file} was deleted." | ||
| done | ||
| } | ||
|
|
||
|
|
||
| # Replace wallpaper. | ||
| if [[ -f /usr/share/backgrounds/xfce/xfce-stripes.png ]]; then | ||
| remove /usr/share/backgrounds/xfce/xfce-stripes.png | ||
| ln -s /usr/share/backgrounds/alter.png /usr/share/backgrounds/xfce/xfce-stripes.png | ||
| fi | ||
| [[ -f /usr/share/backgrounds/alter.png ]] && chmod 644 /usr/share/backgrounds/alter.png | ||
|
|
||
|
|
||
| # Bluetooth | ||
| rfkill unblock all | ||
| systemctl enable bluetooth | ||
|
|
||
|
|
||
| # Update system datebase | ||
| dconf update |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Disk management | ||
|
|
||
|
|
||
| baobab | ||
| clonezilla | ||
| ddrescue | ||
| dmraid | ||
| fsarchiver | ||
| gnome-disk-utility | ||
| gparted | ||
| gptfdisk | ||
| hdparm | ||
| lvm2 | ||
| mdadm | ||
| partclone | ||
| parted | ||
| partimage | ||
| sdparm | ||
| smartmontools | ||
| testdisk |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # look and feel | ||
|
|
||
|
|
||
| # font | ||
| noto-fonts | ||
| noto-fonts-cjk | ||
| noto-fonts-emoji | ||
|
|
||
|
|
||
| # icon | ||
| # paper-icon-theme | ||
| inverse-icon-theme-blue-git | ||
|
|
||
|
|
||
| # theme | ||
| # materia-gtk-theme | ||
| arc-gtk-theme |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Internet | ||
|
|
||
|
|
||
| #-- chat --# | ||
| irssi | ||
|
|
||
|
|
||
| #-- connection --# | ||
| dhclient | ||
| dhcpcd | ||
| dnsutils | ||
| ndisc6 | ||
| netctl | ||
| networkmanager | ||
| network-manager-applet | ||
| ppp | ||
| pptpclient | ||
| rp-pppoe | ||
| wvdial | ||
|
|
||
|
|
||
| #-- client --# | ||
| # lftp | ||
| ntp | ||
| openssh | ||
| wget | ||
|
|
||
|
|
||
| #-- mail client --# | ||
| thunderbird | ||
| # mailspring | ||
|
|
||
|
|
||
| #-- server --# | ||
| darkhttpd | ||
| dnsmasq | ||
|
|
||
|
|
||
| #-- web browser --# | ||
| chromium | ||
| # elinks | ||
|
|
||
|
|
||
| #-- wireless --# | ||
| crda | ||
| iwd | ||
| wireless-regdb | ||
| wireless_tools | ||
| wpa_supplicant | ||
|
|
||
|
|
||
| #-- vpn --# | ||
| openconnect | ||
| openvpn | ||
| vpnc | ||
| xl2tpd | ||
|
|
||
|
|
||
| #-- other tools --# | ||
| ethtool | ||
| gnu-netcat | ||
| # nmap | ||
| rsync | ||
| tcpdump |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # This package list will only be installed if the Japanese option is enabled. | ||
| # | ||
| # Japanese package | ||
|
|
||
| # fcitx config | ||
| alterlinux-fcitx-conf | ||
|
|
||
| # fcitx | ||
| fcitx-im | ||
| fcitx-configtool | ||
| fcitx-mozc | ||
|
|
||
|
|
||
| # other | ||
| libreoffice-still-ja |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Display Manager | ||
|
|
||
|
|
||
| lightdm | ||
| lightdm-webkit2-greeter | ||
| lightdm-webkit2-theme-alter | ||
| # lightdm-gtk-greeter | ||
| # lightdm-slick-greeter | ||
| # lightdm-settings |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Media | ||
|
|
||
|
|
||
| #-- bluetooth --# | ||
| blueman | ||
| bluez | ||
| bluez-utils | ||
| pulseaudio-bluetooth | ||
|
|
||
|
|
||
| #-- audio --# | ||
| pavucontrol | ||
| pulseaudio | ||
|
|
||
|
|
||
| #-- media player --# | ||
| viewnior | ||
| vlc |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # This package list will only be installed if the Japanese option is disabled. | ||
| # |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
|
|
||
| #-- archiver --# | ||
| xarchiver | ||
|
|
||
|
|
||
| #-- GVFS --# | ||
| gvfs | ||
| gvfs-smb | ||
|
|
||
|
|
||
| #-- boot manager --# | ||
| grub | ||
| grub-customizer | ||
| os-prober | ||
| refind-efi | ||
|
|
||
|
|
||
| #-- documents --# | ||
| man-db | ||
| man-pages | ||
|
|
||
|
|
||
| #-- game pad --# | ||
| jstest-gtk-git | ||
|
|
||
|
|
||
| #-- linux --# | ||
| linux-atm | ||
| linux-firmware | ||
|
|
||
|
|
||
| #-- system monitor --# | ||
| gnome-system-monitor | ||
| cpu-x | ||
|
|
||
|
|
||
| #-- pacman --# | ||
| pamac-gtk | ||
|
|
||
|
|
||
| #-- shell --# | ||
| lsd | ||
| powerline | ||
| zsh | ||
| zsh-completions | ||
|
|
||
| #-- text editor --# | ||
| medit | ||
| nano | ||
| vim | ||
|
|
||
|
|
||
| #-- other --# | ||
| # etcher-bin | ||
| libreoffice | ||
| tlpui |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # | ||
| # Alter Linux package list | ||
| # | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
| # Xfce4 Desktop Environment | ||
|
|
||
|
|
||
| #-- xfce4 base --# | ||
| exo | ||
| garcon | ||
| gnome-keyring | ||
| thunar | ||
| thunar-volman | ||
| tumbler | ||
| xfce4-appfinder | ||
| xfce4-notifyd | ||
| xfce4-screenshooter | ||
| xfce4-session | ||
| xfce4-settings | ||
| xfce4-terminal | ||
| xfce4-panel | ||
| xfce4-power-manager | ||
| xfconf | ||
| xfdesktop | ||
| xfwm4 | ||
| xfwm4-themes | ||
|
|
||
|
|
||
| #-- xfce4 config --# | ||
| alterlinux-xfce-conf | ||
|
|
||
|
|
||
| #-- xfce4 plugins --# | ||
| thunar-archive-plugin | ||
| thunar-media-tags-plugin | ||
| thunar-vcs-plugin | ||
| xfce4-calculator-plugin | ||
| xfce4-clipman-plugin | ||
| xfce4-docklike-plugin-git | ||
| xfce4-pulseaudio-plugin | ||
| xfce4-whiskermenu-plugin | ||
|
|
||
|
|
||
| #-- xorg --# | ||
| gpm | ||
| xorg-server | ||
| xorg-xinit |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,244 @@ | ||
|
|
||
| ## Alter Linux - A Japanese-made Arch Linux-derived OS that aims to be usable by anyone | ||
|
|
||
|  | ||
|
|
||
| [](../LICENSE) | ||
| [](https://www.archlinux.org/) | ||
| [](https://git.archlinux.org/archiso.git/tag/?h=v43) | ||
| [](https://github.com/SereneTeam/alterlinux/releases) | ||
|
|
||
| **日本人の方へ**:こちらに日本語版があります。 | ||
|
|
||
| | [日本語](README_jp.md) | [English](README.md) | | ||
| |:-----:|:-----:| | ||
|
|
||
| ## Overview | ||
|
|
||
| Alter Linux is a new OS developed based on Arch Linux. | ||
| Combining a sophisticated UI with Xfce4 and a package management tool complete with a GUI, anyone can easily use the latest OS at high speed. | ||
| Check the [project board](https://github.com/orgs/SereneTeam/projects/2) for the latest status of AlterLinux. | ||
|
|
||
| ## Branch | ||
| The main branches are: Other branches are temporary or used for specific purposes. | ||
| The previously used Japanese branch has been removed. | ||
|
|
||
| | [master](https://github.com/SereneTeam/alterlinux/tree/master) | [dev-stable](https://github.com/SereneTeam/alterlinux/tree/dev-stable) | [dev](https://github.com/SereneTeam/alterlinux/tree/dev) | | ||
| |:-----:|:-----:|:-----:| | ||
| | Most stable. Bug fixes may be delayed. | It is updated regularly. Relatively stable, with the latest features and fixes. | Always updated. There may be many issues left. | | ||
|
|
||
| ## If you want to give an opinion or impression | ||
| If AlterLinux doesn't start, is hard to use, or has any software you want to install by default, feel free to post it to [issues](https://github.com/SereneTeam/alterlinux/issues). | ||
| We are soliciting opinions from various users to make AlterLinux better. | ||
|
|
||
| ##Twitter account | ||
| The latest status of Alter Linux is posted on Twitter from time to time. From time to time, we also conduct surveys on future policies. | ||
|
|
||
| ### Official | ||
| The following accounts are official. | ||
| - [Alter Linux](https://twitter.com/AlterLinux) | ||
| - [SereneLinux Global](https://twitter.com/SereneLinux) | ||
| - [SereneLinux JP](https://twitter.com/SereneDevJP) | ||
|
|
||
| ### Developer | ||
| Link to Twitter of main development members. | ||
| All comments made on this account are not official SereneTeam statements and are solely for the developer. | ||
|
|
||
| <h5 align="center">Development</h5> | ||
| <p align="center"> | ||
| <b><a><a href="https://twitter.com/Hayao0819"><img src="https://avatars1.githubusercontent.com/u/32128205" width="100px" /></a></b> | ||
| <b><a><a href="https://twitter.com/Pixel_3a"><img src="https://avatars0.githubusercontent.com/u/48173871" width="100px" /></a></b> | ||
| <b><a><a href="https://twitter.com/yangniao23"><img src="https://avatars0.githubusercontent.com/u/47053316" width="100px" /></a></b> | ||
| <b><a><a href="https://twitter.com/yamad_linuxer"><img src="https://avatars1.githubusercontent.com/u/45691925" width="100px" /></a></b> | ||
| </p> | ||
|
|
||
|
|
||
| <h5 align="center">Design</h5> | ||
| <p align="center"> | ||
| <b><a><a href="https://twitter.com/tukutuN_27"><img src="https://0e0.pw/5yuH" width="100px" /></a></b> | ||
| </p> | ||
|
|
||
| ## Repositories and software | ||
| If you use the AlterLinux repository, you need to add a key. See Preparing for a build. | ||
|
|
||
| ### Repositories | ||
| GitHub repositories that were used before are no longer used. Currently [this server](https://xn--d-8o2b.com/repo/) is the latest repository. | ||
|
|
||
|
|
||
| ### Software | ||
| Most packages are official packages or published on the AUR, but some are not in either. The source code of such packages and links to PKGBUILD are listed below. | ||
| If you need a binary file, access [the AlterLinux repository](https://xn--d-8o2b.com/repo/alter-stable/x86_64/). | ||
|
|
||
| Source code | PKGBUILD | ||
| --- | --- | ||
| [alterlinux-calamares](https://github.com/SereneTeam/alterlinux-calamares) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/unstable/calamares) | ||
| [alterlinux-fcitx-conf](https://github.com/SereneTeam/alterlinux-fcitx-conf) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-fcitx-conf) | ||
| [alterlinux-keyring](https://github.com/SereneTeam/alterlinux-keyring) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-keyring) | ||
| [alterlinux-mirrorlist](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-mirrorlist) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-mirrorlist) | ||
| [alterlinux-wallpapers](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-wallpapers) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-wallpapers) | ||
| [alterlinux-xfce-conf](https://github.com/SereneTeam/alterlinux-xfce-conf) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-xfce-conf) | ||
|
|
||
| ## build | ||
|
|
||
| The following procedure is for building with the actual machine ArchLinux. | ||
|
|
||
| ### Preparation | ||
|
|
||
| There are two ways to build, using Arch Linux on the actual machine and building on Docker. | ||
| The options of `build.sh` are common. | ||
|
|
||
| ```bash | ||
| git clone https://github.com/SereneTeam/alterlinux.git alterlinux | ||
| cd ./alterlinux/ | ||
| ``` | ||
| AlterLinux includes a script to easily add keys. | ||
|
|
||
| ```bash | ||
| sudo ./add-key.sh --alter | ||
| ``` | ||
|
|
||
| #### Build on real machine | ||
| When building with an actual machine, it is necessary to build in an ArchLinux environment. | ||
| Install the necessary packages for the build. | ||
|
|
||
| ```bash | ||
| sudo pacman -S --needed git arch-install-scripts squashfs-tools libisoburn dosfstools lynx archiso | ||
| ``` | ||
| Then download the source code. | ||
|
|
||
| ```bash | ||
| git clone https://github.com/SereneTeam/alterlinux.git | ||
| cd alterlinux | ||
| ./build.sh | ||
| ``` | ||
|
|
||
|
|
||
| #### Build on container | ||
| If you build on Docker, please refer to [this procedure](en/DOCKER.md). | ||
|
|
||
| ### build.sh options | ||
|
|
||
| #### Basic | ||
| Please execute as it is. | ||
| The default password is `alter`. | ||
| Plymouth has been disabled. | ||
| Default compression type is `zstd`. | ||
|
|
||
|
|
||
| #### Options | ||
| Purpose | Usage | ||
| --- | --- | ||
| Enable boot splash | -b | ||
| Change kernel | -k [kernel] | ||
| Change the username | -u [username] | ||
| Change the password | -p [password] | ||
| Japanese | -j | ||
| Change compression method | -c [comp type] | ||
| Set compression options | -t [comp option] | ||
| Specify output destination directory | -o [dir] | ||
| Specify working directory | -w [dir] | ||
|
|
||
|
|
||
| ##### Example | ||
|
|
||
| To build under the following conditions: | ||
|
|
||
| - Enable Plymouth | ||
| - The compression method is `gzip` | ||
| - The kernel is `linux-lqx` | ||
| - The password is `ilovearch` | ||
|
|
||
| ```bash | ||
| ./build.sh -b -c "gzip" -k "lqx" -p 'ilovearch' stable | ||
| ``` | ||
|
|
||
|
|
||
| #### Channel | ||
| Channels switch between packages to install and files to include. | ||
| This mechanism allows you to build various versions of AlterLinux. | ||
| The supported channels as of March 21, 2020 are: | ||
|
|
||
| Name | Purpose | ||
| --- | --- | ||
| xfce | This is the default channel that uses Xfce4 for the desktop environment and adds various software. | ||
| plasma | This is an edition with Plasma and Qt apps. Currently in development and not stable. | ||
| arch | It has only a minimal GUI and installer, and after installation it has a minimal ArchLinux. This is an ArchLinux installer. | ||
|
|
||
|
|
||
| #### About the kernel | ||
| The following types of kernels are currently supported: If unspecified, the normal `linux` kernel will be used. | ||
| Make sure to include the `foo` part of` linux-foo` in the `-k` option. For example, `linux-lts` contains` lts`. | ||
|
|
||
| Below are the supported values and kernels.The description of the kernel is from [ArchWiki](https://wiki.archlinux.org/index.php/Kernel). | ||
|
|
||
| Name | Feature | ||
| --- | --- | ||
| ck | linux-ck contains patches to improve system response. | ||
| lts |Long term support (LTS) Linux kernel and modules from the core repository. | ||
| lqx | Distro kernel alternative built using Debian configuration and ZEN kernel source for desktop multimedia games. | ||
| rt | With this patch, almost all of the kernel can be run in real time. | ||
| zen | linux-zen is the wisdom of kernel hackers. It is the best Linux kernel for everyday use. | ||
|
|
||
|
|
||
| ##### About compression type | ||
| See the `mksquashfs` help for compression options and more options. | ||
| As of February 12, 2019, `mksquashfs` supports the following methods and options. | ||
|
|
||
| ``` | ||
| gzip | ||
| -Xcompression-level <compression-level> | ||
| <compression-level> should be 1 .. 9 (default 9) | ||
| -Xwindow-size <window-size> | ||
| <window-size> should be 8 .. 15 (default 15) | ||
| -Xstrategy strategy1,strategy2,...,strategyN | ||
| Compress using strategy1,strategy2,...,strategyN in turn | ||
| and choose the best compression. | ||
| Available strategies: default, filtered, huffman_only, | ||
| run_length_encoded and fixed | ||
| lzma (no options) | ||
| lzo | ||
| -Xalgorithm <algorithm> | ||
| Where <algorithm> is one of: | ||
| lzo1x_1 | ||
| lzo1x_1_11 | ||
| lzo1x_1_12 | ||
| lzo1x_1_15 | ||
| lzo1x_999 (default) | ||
| -Xcompression-level <compression-level> | ||
| <compression-level> should be 1 .. 9 (default 8) | ||
| Only applies to lzo1x_999 algorithm | ||
| lz4 | ||
| -Xhc | ||
| Compress using LZ4 High Compression | ||
| xz | ||
| -Xbcj filter1,filter2,...,filterN | ||
| Compress using filter1,filter2,...,filterN in turn | ||
| (in addition to no filter), and choose the best compression. | ||
| Available filters: x86, arm, armthumb, powerpc, sparc, ia64 | ||
| -Xdict-size <dict-size> | ||
| Use <dict-size> as the XZ dictionary size. The dictionary size | ||
| can be specified as a percentage of the block size, or as an | ||
| absolute value. The dictionary size must be less than or equal | ||
| to the block size and 8192 bytes or larger. It must also be | ||
| storable in the xz header as either 2^n or as 2^n+2^(n+1). | ||
| Example dict-sizes are 75%, 50%, 37.5%, 25%, or 32K, 16K, 8K | ||
| etc. | ||
| zstd | ||
| -Xcompression-level <compression-level> | ||
| <compression-level> should be 1 .. 22 (default 15) | ||
| ``` | ||
|
|
||
| ## Documents | ||
| - [About packages](jp/PACKAGE.md) | ||
| - [How to build on docker](en/DOCKER.md) | ||
| - [How to add supporting a new kernel.](jp/KERNEL.md) | ||
|
|
||
| ## If you cannot start | ||
| You can disable the boot animation and boot to see the logs. | ||
| Boot from the disk and select `Boot Alter Linux without boot splash (x86_64)`. | ||
|
|
||
|
|
||
| ## About SereneTeam and developers | ||
| SereneTeam is a development team for a Linux distribution composed primarily of junior and senior high school students. Almost all are Japanese and there are a total of 24 members. | ||
| [SereneLinux](https://serenelinux.com) based on Ubuntu has been developed and released. | ||
| Utilizing our know-how, we are working on the development of Alter Linux, which is the first OS in Arch Linux to be developed in Japan. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,252 @@ | ||
|
|
||
| ## Alter Linux - 誰でも使えることを目標にした日本製でArch Linux派生のOS | ||
|
|
||
|  | ||
|
|
||
| [](../LICENSE) | ||
| [](https://www.archlinux.org/) | ||
| [](https://git.archlinux.org/archiso.git/tag/?h=v43) | ||
| [](https://github.com/SereneTeam/alterlinux/releases) | ||
|
|
||
| | [日本語](README_jp.md) | [English](README.md) | | ||
| |:-----:|:-----:| | ||
|
|
||
| ## 概要 | ||
|
|
||
| Alter LinuxはArch Linuxをベースに開発されている新しいOSです。 | ||
| Xfce4による洗練されたUIとGUIで完結するパッケージ管理ツールを兼ね備え、誰でも簡単に高速で最新のOSを使用できます。 | ||
| AlterLinuxの最新の状況は[プロジェクトボード](https://github.com/orgs/SereneTeam/projects/2)を確認してください。 | ||
|
|
||
| ## ブランチ | ||
| 主要なブランチは以下のとおりです。これ以外のブランチは一時的なものや特定の用途で使われているものです。 | ||
| 以前に使用されていたJapaneseブランチは削除されました。 | ||
|
|
||
| [master](https://github.com/SereneTeam/alterlinux/tree/master) | [dev-stable](https://github.com/SereneTeam/alterlinux/tree/dev-stable) | [dev](https://github.com/SereneTeam/alterlinux/tree/dev) | ||
| --- | --- | --- | ||
| 最も安定しています。バグの修正などは遅れる場合があります。 | 定期的に更新されます。比較的安定していて、最新の機能や修正を利用できます。 | 常に更新されます。問題が多数残っている場合があります。 | ||
|
|
||
| ## 意見や感想について | ||
| もしAlterLinuxが起動しなかったり、使いにくかったり、標準でインストールしてほしいソフトウェアがあったら、遠慮なく[Issue](https://github.com/SereneTeam/alterlinux/issues)に投稿して下さい。 | ||
| 私達はAlterLinuxをより良いものにするために様々なユーザーの意見を募集しています。 | ||
|
|
||
| ## Twitter アカウント | ||
| Alter Linuxの最新の状況は随時Twitterで発信しています。時々、今後の方針についてのアンケートなども行っています。 | ||
|
|
||
| ### 公式 | ||
| 以下は公式のアカウントです。 | ||
| - [Alter Linux](https://twitter.com/AlterLinux) | ||
| - [SereneLinux Global](https://twitter.com/SereneLinux) | ||
| - [SereneLinux JP](https://twitter.com/SereneDevJP) | ||
|
|
||
| ### 開発者 | ||
| 主な開発メンバーのTwitterへのリンクです。 | ||
| このアカウントで行われたすべての発言はSereneTeamの公式ではなく、開発者個人の見解です。 | ||
|
|
||
| <h5 align="center">開発担当</h5> | ||
| <p align="center"> | ||
| <b><a><a href="https://twitter.com/Hayao0819"><img src="https://avatars1.githubusercontent.com/u/32128205" width="100px" /></a></b> | ||
| <b><a><a href="https://twitter.com/Pixel_3a"><img src="https://avatars0.githubusercontent.com/u/48173871" width="100px" /></a></b> | ||
| <b><a><a href="https://twitter.com/yangniao23"><img src="https://avatars0.githubusercontent.com/u/47053316" width="100px" /></a></b> | ||
| <b><a><a href="https://twitter.com/yamad_linuxer"><img src="https://avatars1.githubusercontent.com/u/45691925" width="100px" /></a></b> | ||
| </p> | ||
|
|
||
|
|
||
| <h5 align="center">デザイン担当</h5> | ||
| <p align="center"> | ||
| <b><a><a href="https://twitter.com/tukutuN_27"><img src="https://0e0.pw/5yuH" width="100px" /></a></b> | ||
| </p> | ||
|
|
||
| ## リポジトリとソフトウェア | ||
|
|
||
| ### 鍵の追加 | ||
| AlterLinuxのリポジトリを使用する場合は鍵を追加する必要が有ります。ビルドの準備を参照して下さい。 | ||
|
|
||
| ### リポジトリ | ||
| 以前まで使用されていたGitHubのリポジトリは現在は使用されていません。現在は[こちらのサーバ](https://xn--d-8o2b.com/repo/)が最新のリポジトリです。 | ||
|
|
||
|
|
||
| ### ソフトウェア | ||
| ほとんどのパッケージは公式パッケージか、AUR上に公開していますが、一部のものはどちらにもありません。そのようなパッケージのソースコードとPKGBUILDへのリンクを以下に記載します。 | ||
| バイナリファイルが必要な場合は[AlterLinuxリポジトリ](https://xn--d-8o2b.com/repo/alter-stable/x86_64/)にアクセスして下さい。 | ||
|
|
||
| ソースコード | PKGBUILD | ||
| --- | --- | ||
| [alterlinux-calamares](https://github.com/SereneTeam/alterlinux-calamares) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/unstable/calamares) | ||
| [alterlinux-fcitx-conf](https://github.com/SereneTeam/alterlinux-fcitx-conf) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-fcitx-conf) | ||
| [alterlinux-keyring](https://github.com/SereneTeam/alterlinux-keyring) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-keyring) | ||
| [alterlinux-mirrorlist](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-mirrorlist) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-mirrorlist) | ||
| [alterlinux-wallpapers](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-wallpapers) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-wallpapers) | ||
| [alterlinux-xfce-conf](https://github.com/SereneTeam/alterlinux-xfce-conf) | [PKGBUILD](https://github.com/SereneTeam/alterlinux-pkgbuilds/tree/master/stable/alterlinux-xfce-conf) | ||
|
|
||
|
|
||
|
|
||
| ## ビルド | ||
|
|
||
| 以下の手順は、実機のArchLinuxでビルドするためのものです。 | ||
|
|
||
| ### 準備 | ||
|
|
||
| ビルドは実機のArch Linuxを利用する方法とDocker上でビルドする方法があります。 | ||
| `build.sh`のオプションは共通です。 | ||
|
|
||
| ```bash | ||
| git clone https://github.com/SereneTeam/alterlinux.git alterlinux | ||
| cd ./alterlinux/ | ||
| ``` | ||
| AlterLinuxには鍵を簡単に追加するスクリプトが含まれています。 | ||
|
|
||
| ```bash | ||
| sudo ./add-key.sh --alter | ||
| ``` | ||
|
|
||
| ### 実機でビルドする | ||
| 実機でビルドする場合はArchLinux環境でビルドする必要があります。 | ||
| ビルドに必要なパッケージをインストールして下さい。 | ||
|
|
||
| ```bash | ||
| sudo pacman -S --needed git arch-install-scripts squashfs-tools libisoburn dosfstools lynx archiso | ||
| ``` | ||
| そしてソースコードをダウンロードしてください。 | ||
|
|
||
| ```bash | ||
| git clone https://github.com/SereneTeam/alterlinux.git | ||
| cd alterlinux | ||
| ``` | ||
|
|
||
| #### ビルドウィザード | ||
| 実機で直接ビルドする場合、wizard.shを使用して簡単に思い通りの設定でビルドできます。bashで書かれていますのでターミナルから実行してください。 | ||
| 「はい」か「いいえ」の質問は`y`か`n`で応えてください。数値を入力する場合は半角で入力してください。 | ||
|
|
||
| ```bash | ||
| ./wizard.sh | ||
| ``` | ||
|
|
||
| ### コンテナ上でビルドする | ||
| Dockerでビルドする場合は、[この手順](jp/DOCKER.md)を参照してください。 | ||
|
|
||
| ### build.shのオプション | ||
|
|
||
| #### 基本 | ||
| 通常はウィザードを使用してください。 | ||
| デフォルトパスワードは`alter`です。 | ||
| lymouthは無効化されています。 | ||
| デフォルトの圧縮方式は`zstd`です。 | ||
|
|
||
| ```bash | ||
| ./build.sh <options> <channel> | ||
| ``` | ||
|
|
||
| #### オプション | ||
| 用途 | 使い方 | ||
| --- | --- | ||
| ブートスプラッシュを有効化 | -b | ||
| カーネルを変える | -k [kernel] | ||
| ユーザ名を変える | -u [username] | ||
| パスワードを変更する | -p [password] | ||
| 日本語にする | -j | ||
| 圧縮方式を変更する | -c [comp type] | ||
| 圧縮のオプションを設定する | -t [comp option] | ||
| 出力先ディレクトリを指定する| -o [dir] | ||
| 作業ディレクトリを指定する | -w [dir] | ||
|
|
||
|
|
||
| #### 例 | ||
| 以下の条件でビルドするにはこのようにします。 | ||
|
|
||
| - Plymouthを有効化 | ||
| - 圧縮方式は`gzip` | ||
| - カーネルは`linux-lqx` | ||
| - パスワードは`ilovearch` | ||
|
|
||
| ```bash | ||
| ./build.sh -b -c "gzip" -k "lqx" -p 'ilovearch' xfce | ||
| ``` | ||
|
|
||
|
|
||
| #### チャンネルについて | ||
| チャンネルは、インストールするパッケージと含めるファイルを切り替えます。 | ||
| この仕組みにより様々なバージョンのAlterLinuxをビルドすることが可能になります。 | ||
| 2020年3月21日現在でサポートされているチャンネルは以下のとおりです。 | ||
| 名前 | 目的 | ||
| --- | --- | ||
| xfce | デスクトップ環境にXfce4を使用し、様々なソフトウェアを追加したデフォルトのチャンネルです。 | ||
| plasma | PlasmaとQtアプリを搭載したエディションです。 現在開発中で、安定していません。 | ||
| arch | 最小限のGUIとインストーラーのみを搭載し、インストール後は最小限のArchLinuxになります。つまりこれはArchLinuxのインストーラーです。 | ||
|
|
||
|
|
||
| #### カーネルについて | ||
| カーネルは現在、以下の種類がサポートされています。未指定の場合は通常の`linux`カーネルが使用されます。 | ||
| `-k`のオプションは必ず`linux-foo`の`foo`の部分を入れてください。例えば`linux-lts`の場合は`lts`が入ります。 | ||
|
|
||
| 以下はサポートされている値とカーネルです。カーネルの説明は[ArchWiki](https://wiki.archlinux.jp/index.php/%E3%82%AB%E3%83%BC%E3%83%8D%E3%83%AB)を引用しています。 | ||
|
|
||
| 名前 | 特徴 | ||
| --- | --- | ||
| ck | linux-ck にはシステムのレスポンスを良くするためのパッチが含まれています。 | ||
| lts | coreリポジトリにある長期サポート版 (Long term support, LTS) の Linux カーネルとモジュール。 | ||
| lqx | デスクトップ・マルチメディア・ゲーム用途に Debian 用の設定と ZEN カーネルソースを使ってビルドされたディストロカーネル代替 | ||
| rt | このパッチを使うことでカーネルのほとんど全てをリアルタイム実行できるようになります。 | ||
| zen | linux-zenはカーネルハッカーたちの知恵の結晶です。日常的な利用にうってつけの最高の Linux カーネルになります。 | ||
|
|
||
| ##### 圧縮方式について | ||
| 圧縮方式と詳細のオプションは`mksquashfs`のヘルプを参照してください。 | ||
| 2019年2月12日現在で、`mksquashfs`が対応している方式とオプションは以下の通りです。 | ||
|
|
||
| ``` | ||
| gzip | ||
| -Xcompression-level <compression-level> | ||
| <compression-level> should be 1 .. 9 (default 9) | ||
| -Xwindow-size <window-size> | ||
| <window-size> should be 8 .. 15 (default 15) | ||
| -Xstrategy strategy1,strategy2,...,strategyN | ||
| Compress using strategy1,strategy2,...,strategyN in turn | ||
| and choose the best compression. | ||
| Available strategies: default, filtered, huffman_only, | ||
| run_length_encoded and fixed | ||
| lzma (no options) | ||
| lzo | ||
| -Xalgorithm <algorithm> | ||
| Where <algorithm> is one of: | ||
| lzo1x_1 | ||
| lzo1x_1_11 | ||
| lzo1x_1_12 | ||
| lzo1x_1_15 | ||
| lzo1x_999 (default) | ||
| -Xcompression-level <compression-level> | ||
| <compression-level> should be 1 .. 9 (default 8) | ||
| Only applies to lzo1x_999 algorithm | ||
| lz4 | ||
| -Xhc | ||
| Compress using LZ4 High Compression | ||
| xz | ||
| -Xbcj filter1,filter2,...,filterN | ||
| Compress using filter1,filter2,...,filterN in turn | ||
| (in addition to no filter), and choose the best compression. | ||
| Available filters: x86, arm, armthumb, powerpc, sparc, ia64 | ||
| -Xdict-size <dict-size> | ||
| Use <dict-size> as the XZ dictionary size. The dictionary size | ||
| can be specified as a percentage of the block size, or as an | ||
| absolute value. The dictionary size must be less than or equal | ||
| to the block size and 8192 bytes or larger. It must also be | ||
| storable in the xz header as either 2^n or as 2^n+2^(n+1). | ||
| Example dict-sizes are 75%, 50%, 37.5%, 25%, or 32K, 16K, 8K | ||
| etc. | ||
| zstd | ||
| -Xcompression-level <compression-level> | ||
| <compression-level> should be 1 .. 22 (default 15) | ||
| ``` | ||
|
|
||
| ## ドキュメント | ||
| - [パッケージリストについての注意](jp/PACKAGE.md) | ||
| - [Docker上でビルドする方法](jp/DOCKER.md) | ||
| - [新しいカーネルを追加する方法](jp/KERNEL.md) | ||
|
|
||
| ## 起動できない場合 | ||
| ブート時のアニメーションを無効化してブートし、ログを確認することができます。 | ||
| ディスクから起動し、`Boot Alter Linux without boot splash (x86_64)`を選択して下さい。 | ||
|
|
||
|
|
||
| ## SereneTeamと開発者について | ||
| SereneTeamは主に中高生で構成されたLinuxディストリビューションの開発チームです。ほぼ全員が日本人で、メンバーは合計で24人います。 | ||
| Ubuntuをベースとした[SereneLinux](https://serenelinux.com)を開発、公開しています。 | ||
| 私達はそのノウハウを活かし、Alter Linuxの開発に取り組んでいます。 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ## Docker | ||
| Please go in the Linux environment where docker is installed. | ||
|
|
||
| ```bash | ||
| git clone https://github.com/SereneTeam/alterlinux.git | ||
| cd alterlinux | ||
| sudo ./docker-build.sh | ||
| ``` | ||
|
|
||
| ### About build options | ||
| Options can be selected by rewriting the CMD column of Dockerfile. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| ## チャンネルとは | ||
| チャンネルは、イメージファイルに含めるためのファイル(airootfs)やインストールするパッケージ、実行するスクリプトなどを簡単に切り替えられるように作られたAlterLinux独自の仕組みです。 | ||
|
|
||
| 初期ではパッケージの切り替えしかできませんでしたが、現在は大幅に仕様が変更されています。 | ||
|
|
||
| 以下は2020年3月26日チャンネルの仕様です。 | ||
|
|
||
|
|
||
| ## スクリプトにチャンネルを認識させる | ||
| スクリプトがチャンネルを認識する条件は以下のとおりです。 | ||
|
|
||
| - `channel`内にチャンネル名のディレクトリがある | ||
| - そのディレクトリが空ではない | ||
|
|
||
| 空のディレクトリを作成したり、別の場所に作成してもスクリプトは認識しません。 | ||
|
|
||
|
|
||
| ## それぞれのチャンネルの仕様 | ||
| それそれのチャンネルは2つのディレクトリがあります。`airootfs`と`packages`です。 | ||
| `airootfs`ディレクトリはパッケージをインストールし`mksquashfs`を実行する直前に`/`を上書きします。 | ||
| `packages`ディレクトリはインストールするパッケージのリストを記述したテキストファイルを格納します。 | ||
|
|
||
|
|
||
| ### `airootfs` | ||
| このディレクトリ内を`/`としてファイルを配置して下さい。全てのファイルの権限はなるべく引き継がれるようになっています。 | ||
|
|
||
| #### customize_airootfs.sh | ||
| 各チャンネルの`airootfs`で、`/root/customize_airootfs_<チャンネル名>.sh`といゆファイルが配置された場合、ビルドスクリプトは、`customize_airootfs.sh`が実行された後に実行します。 | ||
| もしrootfsの設定を変更したい場合、このファイルを作成して下さい。 | ||
|
|
||
| #### | ||
|
|
||
|
|
||
| ### `packages` | ||
| このディレクトリ内に配置された、ファイル名が`.x86_64`で終わるがパッケージリストとして読み込まれます。 | ||
| 1行で1つのパッケージとして扱い、`#`から始まる行はコメントとして扱われます。 | ||
|
|
||
| パッケージ名やパッケージリストのファイル名に空白文字や全角文字を含めると正常に動作しない可能性があります。 | ||
|
|
||
| 一部、パッケージリストに記述してはいけないパッケージが有ります。 | ||
| 詳細は[こちら](packages.md)を参照して下さい。 | ||
|
|
||
|
|
||
| #### 特殊なパッケージリスト | ||
| 特殊なパッケージリストとして、`jp.x86_64`と`non-jp.x86_64`があります。 | ||
| `-j`オプションによって日本語が有効化されている時、スクリプトは`jp.x86_64`を読み込みます。 | ||
| 反対に日本語が有効化されていない場合、スクリプトは`non-jp.x86_64`を使用します。 | ||
|
|
||
|
|
||
| ## 特殊なチャンネル | ||
| 特殊なチャンネルとして`share`チャンネルがあります。`share`チャンネルは指定されたチャンネルに関わらず使用される共有チャンネルです。 | ||
| `share`はその他のチャンネルと同じ構造をしていますが、`share`単体をチャンネルとして指定してビルドすることはできません。 | ||
| 全てのチャンネルでインストールされる基本パッケージや共通のファイルなどをここに追加します。 | ||
|
|
||
| `airootfs`でファイルが重複した場合、`share`のファイルは上書きされます。例えば`xfce`チャンネルでは`share`の`/root/customize_airootfs.sh`を上書きしています。 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ## Docker | ||
| dockerがインストール済みのLinux環境で行ってください。 | ||
|
|
||
| ```bash | ||
| git clone https://github.com/SereneTeam/alterlinux.git | ||
| cd alterlinux | ||
| sudo ./docker-build.sh | ||
| ``` | ||
| ### ビルドオプションについて | ||
| DockerfileのCMD欄を書き換えることでオプションが選べます。 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,58 +1,55 @@ | ||
| ## 新しいカーネルに対応させる | ||
|
|
||
| Alter Linuxを新しいカーネルに対応させる手順です。ここでは`linux-fooo`を追加する手順を説明します。実際に行う場合はこの文字を置き換えてください。 | ||
| リポジトリには2種類のパッケージを追加する必要があります。カーネル本体とheadersパッケージです。 | ||
|
|
||
|
|
||
| ### 1.リポジトリを作成する | ||
|
|
||
| `build.sh`はカーネルをpacmanを利用してインストールしようとします。もしあなたが公式リポジトリに無いカーネルを追加したい場合はまずはpacmanのリポジトリを作成してください。 | ||
| リポジトリはGitHubを利用して簡単に作成できます。 | ||
|
|
||
| ### 2.カーネル一覧に追加する | ||
|
|
||
| `kernel_list`にカーネル名を追記してください。`build.sh`に渡された値が正しいかどうかはこの変数を利用して判定されます。 | ||
| リストに追加する値は`linux-`の後の文字です。今回の場合は`fooo`になります。 | ||
|
|
||
| ```bash | ||
| echo "fooo" >> ./system/kernel_list | ||
| ``` | ||
|
|
||
| ### 3.ファイルを作成する | ||
| そのカーネル用のファイルを6つ作成する必要があります。以下はカーネルの一覧です。 | ||
| 「既存のファイルを名前を変えてコピーし、カーネルへのパスを修正する」という方法が最も簡単です。 | ||
| ファイル名は`fooo`に置き換えてあります。 | ||
|
|
||
| 1. syslinux/pxe/archiso_pxe-fooo.cfg | ||
| 2. syslinux/pxe-plymouth/archiso-fooo.cfg | ||
| 3. syslinux/sys/archiso_sys-fooo.cfg | ||
| 4. syslinux/sys-plymouth/archiso_sys-fooo.cfg | ||
| 5. efiboot/loader/entries/cd/archiso-x86_64-cd-fooo.conf | ||
| 6. efiboot/loader/entries/usb/archiso-x86_64-usb-fooo.conf | ||
| 7. airootfs/usr/share/calamares/modules/unpackfs/unpackfs-fooo.conf | ||
| 8. airootfs/usr/share/calamares/modules/initcpio/initcpio-fooo.conf | ||
|
|
||
| #### 1と2のファイル | ||
|
|
||
| 7行目、18行目、29行目のパスを変更してください。 | ||
|
|
||
| #### 3と4のファイル | ||
|
|
||
| 7行目のパスを変更してください。 | ||
|
|
||
| #### 5と6のファイル | ||
|
|
||
| 2行目のパスを変更してください。 | ||
|
|
||
| #### 7のファイル | ||
| 95行目、97行目のパスを変更してください。 | ||
|
|
||
| #### 8のファイル | ||
| 18行目のパスを変更してください。 | ||
|
|
||
| ### 4.プルリクエストを送る | ||
| [ここ](https://github.com/SereneTeam/alterlinux/pulls)へプルリクエストを投稿してください。 | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| ## Notes on package list | ||
|
|
||
| Some packages are added automatically and do not need to be written. The following is a list. | ||
|
|
||
| - haveged | ||
| - intel-ucode | ||
| - amd-ucode | ||
| - mkinitcpio-nfs-utils | ||
| - nbd | ||
| - efitools | ||
|
|
||
| The following packages are installed depending on the situation, and should not be added. | ||
|
|
||
| - plymouth theme package specified in config | ||
| - plymouth | ||
| - linux kernel | ||
| - linux headers | ||
| - broadcom-wl | ||
| - broadcom-wl-dkms |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| title Alter Linux archiso x86_64 UEFI CD | ||
| linux /EFI/archiso/vmlinuz-linux-xanmod-lts.efi | ||
| initrd /EFI/archiso/intel_ucode.img | ||
| initrd /EFI/archiso/amd_ucode.img | ||
| initrd /EFI/archiso/archiso.img | ||
| options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| title Alter Linux archiso x86_64 UEFI CD | ||
| linux /EFI/archiso/vmlinuz-linux-xanmod.efi | ||
| initrd /EFI/archiso/intel_ucode.img | ||
| initrd /EFI/archiso/amd_ucode.img | ||
| initrd /EFI/archiso/archiso.img | ||
| options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| title Alter Linux archiso x86_64 UEFI USB | ||
| linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-xanmod-lts | ||
| initrd /%INSTALL_DIR%/boot/intel_ucode.img | ||
| initrd /%INSTALL_DIR%/boot/amd_ucode.img | ||
| initrd /%INSTALL_DIR%/boot/x86_64/archiso.img | ||
| options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Yamada Hayao | ||
| # Twitter: @Hayao0819 | ||
| # Email : hayao@fascone.net | ||
| # | ||
| # (c) 2019-2020 Fascode Network. | ||
| # | ||
|
|
||
| title Alter Linux archiso x86_64 UEFI USB | ||
| linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-xanmod | ||
| initrd /%INSTALL_DIR%/boot/intel_ucode.img | ||
| initrd /%INSTALL_DIR%/boot/amd_ucode.img | ||
| initrd /%INSTALL_DIR%/boot/x86_64/archiso.img | ||
| options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% |