Помоги мне с установкой oasis linux, я новичек. У меня UEFI компьютер с 2 дисками:…
- User
Помоги мне с установкой oasis linux, я новичек. У меня UEFI компьютер с 2 дисками: первый — NVMe на котором установлен debian 12, второй — полностью пустой xvdi, куда я и хочу установить oasis. Мой часовой пояс — Екатернбург. У меня 16 гб озу поэтому раздел подкачки создавать не имеет смысла. Подробно опиши разбиение диска на разделы и монтирование. Вот .md файл вики oasis lilnux:
Prerequisites
To build oasis, you need a POSIX system with following tools:
- C toolchain for both host and target system
- target toolchain must support
#include_next
- target toolchain must support
- curl
- git
- gzip (or compatible tool)
- lua
- ninja
- zic
On a Debian-based system, you'll need to install a few packages.
sudo apt install bison curl git ninja-build lua5.2 paxIf you plan to build desktop and multimedia components as well, you'll need a few more.
sudo apt install libwayland-dev libpng-dev nasmYou'll also need a toolchain targeting musl libc. I recommend musl-cross-make if you want to build your own. If not, you can grab one from musl.cc.
curl -O http://musl.cc/x86_64-linux-musl-cross.tgz zcat x86_64-linux-musl-cross.tgz | pax -r PATH=$PATH:$PWD/x86_64-linux-musl-cross/binYou should make sure that your git config has a set user and email (for applying patches).
git config --global user.name $MYNAME git config --global user.email $MYEMAILInstallation
These instructions use some references to environment variables. You are meant to replace those with appropriate values for your system.
EDITOR: Your text editor (e.g.vim).DRIVE: Your target disk device (e.g.sda).ROOTPART: Your / partition device (e.g.sda2).BOOTPART: Your /boot partition device (e.g.sda1).TIMEZONE: Your timezone (e.g.US/Pacific).ROOT: Mounted root filesystem for target.
First, prepare a root directory for oasis at
$ROOT. You should mount any sub-filesystems you want at this time (for example,/boot).cd $ROOT git clone -c 'core.sharedRepository=group' https://github.com/oasislinux/oasis.git src/oasis git init --template src/oasis/template cd src/oasisNext, configure
config.luato your liking.cp config.def.lua config.lua $EDITOR config.luaA typical install involves writing filesystem objects to your
/repository, so make sure to update therepotable inconfig.luaaccordingly.repo={ path='../..', flags='', tag='tree', branch='oasis', }Generate the ninja build files.
lua setup.luaBuild oasis.
ninja commitMerge built system into root repository.
cd $ROOT git config branch.master.remote . git config branch.master.merge oasis git merge ./libexec/applypermsYou may want to include a toolchain.
git remote add toolchain https://github.com/oasislinux/toolchain.git git fetch toolchain '--depth=1' git config --add branch.master.merge toolchain/master git merge --allow-unrelated-historiesPrepare your
/etcdirectory.(cd /tmp && curl -LO https://github.com/oasislinux/etc/archive/master.tar.gz) zcat /tmp/master.tar.gz | pax -r -s ',^etc-[^/]*,etc,' ./libexec/applyperms -d etc rm etc/.permsIt is possible to maintain your
/etcdirectory with git just as/(setoasis.root=..), but this is not recommended since perp uses the VTX bit to keep track of active services, and merge conflicts or permission errors could have disastrous side-effects.Set up your system configuration.
ln -s ../share/zoneinfo/$TIMEZONE etc/localtime cat >>etc/fstab <<EOF /dev/$ROOTPART / ext4 rw,relatime 0 1 /dev/$BOOTPART /boot ext2 rw,relatime,noauto 0 0 EOF touch var/log/lastlogConfigure
/etc/rc.localto do any necessary initialization for your system (e.g. keymap, networking). This script runs during boot before startingperp. You may also want to make changes to/etc/profile.$EDITOR etc/rc.local $EDITOR etc/profileThe default root password is
oasis. If you would like to choose something else before booting into the system, you shouldchrootinto the new filesystem and runpasswd.Kernel
Build/obtain a kernel. By convention, install it at
/boot/linux.For an oasis-specific kernel build procedure, see [[Kernel]].
Bootloader
Feel free to install any bootloader you want.
syslinux
syslinux is one option that is easy and convenient. On Debian-based systems, you can install
extlinux.sudo apt install extlinuxFor a BIOS system:
mkdir $ROOT/boot/syslinux extlinux --install $ROOT/boot/syslinux dd if=/usr/lib/EXTLINUX/mbr.bin of=/dev/$DRIVE bs=440 cat >$ROOT/boot/syslinux/syslinux.cfg <<EOF PROMPT 1 TIMEOUT 50 DEFAULT oasis LABEL oasis LINUX ../linux APPEND root=/dev/$ROOTPART init=/bin/sinit ro EOFOn an oasis system, if installed,
mbr.bincan be found at/lib/syslinux/bios/mbr.bin.Don't forget to make sure your boot partition is marked bootable!
efibootmgr
If your system uses UEFI and you built your kernel with
CONFIG_EFI_STUB=y, you can useefibootmgrto set up a new boot entry.efibootmgr -c -d /dev/$DRIVE -p $BOOTPARTNUM -l /linux -L oasis "root=/dev/$ROOTPART init=/bin/sinit ro"You might also want to enable
efibootmgrin yourconfig.lua.Initial setup
Some common administration tasks are described in [[Administration]].
- C toolchain for both host and target system
Assistant
Здравствуйте! Я помогу вам с установкой Oasis Linux на ваш компьютер.
Поскольку вы новичок, я постараюсь объяснить все шаги максимально подробно.
- Создание разделов диска:
Перед началом установки Oasis Linux вам нужно разделить ваш второй диск (xvdi) на несколько разделов. Вы можете использовать инструменты, такие как
gpartedилиcfdisk, для создания разделов.Вам нужно создать следующие разделы:
- /boot (размер около 500 МБ, тип раздела -
ext2илиext4) - этот раздел будет содержать ядро и загрузчик. - / (размер зависит от ваших потребностей, но попробуйте начать с 20-30 ГБ, тип раздела -
ext4) - основной раздел файловой системы Oasis Linux. - swap (размер зависит от количества памяти, но обычно рекомендуется размер равной вашей оперативной памяти, тип раздела -
Linux swap) - этот раздел используется для кэширования и подкачки.
После создания разделов вам нужно их монтировать.
- Монтирование разделов:
Монтируйте раздела на нужных местах в вашей файловой системе. Для этого можно использовать команды
mount.- Монтирование раздела /boot:
sudo mkdir /mnt/boot sudo mount /dev/xvdi1 /mnt/boot- Монтирование раздела /:
sudo mkdir /mnt/oasis sudo mount /dev/xvdi2 /mnt/oasis- Если вы создали раздел подкачки, монтируйте его так:
sudo mkswap /dev/xvdi3 sudo swapon /dev/xvdi3- Установка Oasis Linux:
Теперь, когда вы разделили диск и монтировали нужные разделы, вы можете перейти к установке Oasis Linux.
- Скачайте исходный код Oasis Linux с помощью команды
git.
cd /mnt/oasis git clone https://github.com/oasislinux/oasis.git- Затем, скомпилируйте и установите Oasis Linux:
cd oasis ./bootstrap.sh make install- Настройка системы:
Теперь, когда Oasis Linux успешно установлен, вам нужно настроить систему.
-
Установите ядро и загрузчик. Вы можете использовать
syslinuxилиefibootmgrв зависимости от того, используется ли UEFI или BIOS. -
Создайте файлы конфигурации для ядра и загрузчика.
-
Установите необходимые пакеты и программы.
После этого ваша система будет готова к использованию.
Надеюсь, этот гайд поможет вам успешно установить Oasis Linux на свой компьютер. Если у вас возникнут какие-либо вопросы или проблемы, не стесняйтесь задавать их!
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.