Alpine linux установка virtualbox

Install Alpine on VirtualBox

This guide describes a standard install of Alpine within a virtual computer created by Virtual Box.

Oracle VM VirtualBox runs one or more virtual x86 or AMD64/Intel64 computer (guest) within another computer (host). This allows you to install and test Alpine on your main computer almost as you would any other program.

Contents

Preparation

Install Virtual Box on host

First of all, you need to download and install Virtual Box on your host computer, either from the official homepage (for Windows, OS X or Solaris) or from your distribution’s repository (for Linux).

Virtual Box consists of two components:

  • VirtualBox platform package
  • Oracle VM VirtualBox Extension Pack

Install both and start VirtualBox, to see whether it works. If it does not, consult the VirtualBox user manual or one of the support sites for Virtual Box.

Download Alpine

Download the Virtual Alpine ISO, which is optimized for virtual systems, from the Alpine Download section. Save it in a folder where you can find it easily.

Setting up virtual PC

Start Virtual Box. You will see a mostly empty window with a couple symbols in the upper left corner. The leftmost icon is a multi jagged star, if you hold your mouse over it, the tooltip will say “New”.

Press the multi-jagged star to create a new machine. A window will pop up, asking you some questions about the virtual (guest) computer you want to run.

  1. Name: Choose any you like, for example “Alpine”.
  2. Type: Linux
  3. Version: Other Linux, either 64 bit or 32 bit. Choose 64 bit if you downloaded the x86_64 Alpine-ISO, or 32 bit if you downloaded the x86 Alpine-ISO.
  4. Use the default values for the other questions, simply click “next” or “create” till the dialogue finishes.

You will see a new entry in Virtual Box, called Alpine (or whatever name you chose during step 1 in the dialogue above). Click on it to see further information on your guest.

One of the entries should read Mass storage, and offer an IDE controller with a primary master (the virtual hard disc) and a secondary master (the virtual optical drive).

Click on the secondary master, a context menu will pop up. Choose the entry “choose image” and open the Alpine ISO you downloaded earlier.

Once that is done, click on the green start arrow on the menu bar.

Install Alpine on the virtual computer

Follow the steps described in the Installation Handbook, just as if you installed Alpine on a real PC.

Install drivers for Virtual Box

Once you successfully rebooted into the installed Alpine, there are two steps left:

These two steps install all drivers that other programs might request, and also activate several comfort functions.

источник

Это видео недоступно.

Очередь просмотра

Очередь

Установка Alpine Linux 3.9.3 (2019) на VirtualBox | Timcore

Хотите сохраните это видео?

Пожаловаться на видео?

Выполните вход, чтобы сообщить о неприемлемом контенте.

Понравилось видео?

Не понравилось?

Текст видео

Установка Alpine Linux 3.9.3 (2019) на VirtualBox | Timcore

Alpine Linux базируется на musl и BusyBox, и он является единственным независимым дистрибутивом Linux для обеспечения безопасности в общих целях. Он был разработан с учетом безопасности, а также придерживается проактивной концепцией обеспечения безопасности и использует PaX и SSP, которые предотвращают использование вредоносным программным обеспечением «дыр» в безопасности.

Кроме того, это один из самых «легких» дистрибутивов Linux, которому необходимо не более 8 МБ, а минимальная установка на диск требует не более 130 МБ свободного места.

Для управления пакетами в Alpine используется apk. И некоторых пакетов, которые Вам будут нужны, по умолчанию не будет в Alpine. Придется ставить их самостоятельно.

apk add nano
nano /etc/apk/repositories
apk update
setup-xorg-base //устанавливаем графический интерфейс
apk add alpine-desktop
apk add xfce4 //окружение
apk add thunar-volman //файловый менеджер, для работы с носителями информации
apk add faenza-icon-theme //набор тем
apk add slim //дисплейменеджер slim
rc-service dbus start //запуск сервиса системы межпроцессного взаимодействия, которая позволяет приложениям сообщаться друг с другом.
rc-update add dbus //обновление dbus
rc-service udev start //запуск сервиса управления устройствами
rc-update add udev //обновление управления устройствами
rc-update add slim //обновление экранного менеджера входа в систему
apk search vmware
apk add open-vm-tools-gtk //зависимости для виртуальной машины
rc-update add open-vm-tools //обновление зависимостей виртуальной машины
reboot

Читайте также:  Место для установки подвесного унитаза

Более подробнее в видео. Приятного просмотра!

Курс «Пентестинг веб приложений + Лаборатория пентестера»:
https://vk.com/hacker_timcore?w=produ.

Курс по OS Tails | Безопасная операционная система:
https://vk.com/market-44038255?w=prod.

Курс по языку программирования Язык «С для начинающих»:
https://vk.com/market-44038255?w=prod.

Образовательное сообщество для этичных хакеров.
Хакеры | Этичный хакинг с Михаилом Тарасовым в вконтакте:
https://vk.com/hacker_timcore

Канал в Telegram:
Этичный хакинг с Михаилом Тарасовым (Timcore):
https://t.me/timcore_hacking

Поддержи меня подпиской на канал: https://www.youtube.com/HackerTimcore.
Лайки и подписки приветствуются!

Помощь в развитии канала.
* Яндекс Деньги: 410013208686990

источник

Alpine Install: from a disc to a virtualbox machine single only

Overall description: Alpine Installation from a official disc/iso downloaded to a VirtualBox machine, where will be single OS only.

This document will guide you to install Alpine into VirtualBox virtual machine, use if you have a VirtualBox virtual machine and only wants to take a shoot into it. For others ways to install see at the Alpine_newbie_install_manual

Contents

Terminology

  • Host machine: will be your real machine with installed operating system that have installed the VirtualBox software and «will host» the target operating system, in that case Alpine.
  • Guest machine: will be your target machine where Alpine will be installed, emulated by the host operating system using the VirtualBox software installed in the real machine.
  • Reserved RAM: will be the amount of RAM that will be need to share exclusively to the virtual machine created by the VirtualBox software in the host machine, stolen from the real RAM.
  • Virtual disc: will be the storage medium device emulated as target for the emulated machine or «guest machine», where the Alpine will be installed.

Requirements

  • In the host machine we need installed the virtualbox program from VirtualBox software
  • In the host machine we need at least 1Gb of RAM, recommended 2Gb of RAM installed
  • The guest machine need 512Mb RAM, but recommended 1Gb reserved if desktop software will be installed
  • In the host machine we need installed wget or a web browser to download install medium

Preparing the medium to install

Download the source medium to install and put into your home; there’s more hardware medium sources to download, like the s390x and ppc64le, but due VirtualBox only emulates x86, x64 and arm hardware only, will list those here

The most common option to use in a virtual box obviously must be x86 due are more cheap to test and does not consumes lot of memory due the address bus are more small respect 64-bit flavor, so the downloaded iso can be a url as:

Graphical download: Just point the web browser to that url and the download of the iso file will start. A file with .iso extension type, with name like «alpine-standard-3.10.0-x86.iso» (if i386/686); will be downloaded commonly into the Download directory of your home documents filesystem.

Command line method: just open a terminal and ejecuted: wget -c -t8 —no-check-certificate http://dl-cdn.alpinelinux.org/alpine/v /releases//alpine-standard- .0-.iso , so for example:

wget -c -t8 —no-check-certificate http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86/alpine-standard-3.10.0-x86.iso

You must take care the place where you run the command, in that place will be downloaded the file.

Preparing the virtual machine to install

Start the VirtualBox software program.

Booting the Alpine ISO disc

When the machine start, you must be sure to choose the Optical drive (commonly named CD/DVD Rom drive), so the disc/iso will boot and after a while a command line shell will show you:

The setup install process

After boot up.. a command line shell of a complete ready to use Alpine will show you

  • At the login: to appear, type root and press enter.
  • Run the setup-alpine script
    • Choose your keyboard layout. If you don’t know your keyboard layout choose us. By example for most Latin American a es are enough, for Russian (an maybe Cirilyc ones) ru are enough.
    • Host name, which will be the name of your computer, a good format are pcv-alp32-virtual1 where «pcv means «PC virtual», «alp32» means «Alpine 32bit» and «virtual1» means the first virtual machine to try.
    • Choose your network card, most people can just go with the default (press enter), take in consideration that Wired connections are more stable and faster rather than Wireless connections, also at the most modern the Wireless card, the lest supported or still not well tested.
      • Most people will use DHCP, so press enter again, if you have Internet connection fro ISP most settings are just DHCP so all will be configured automatically
      • You will be asked if you want to do any manual network configuration, press enter for no
    • Type in your root password twice.
    • Choose a time zone, you can get a list by pressing ?. If you want a sub zone, e.g. Africa, type in Africa and press enter, if again you type ? and enter, it will give you a list of sub zones in Africa. By example for Venezuela the zone are «America/Caracas» .
    • Press f to choose the fastest mirror; those mirrors something for strange reason are not available in some countries. (WIP put here a good mirror that never fail)
    • Choose an SSH server, this allows you to remotely manage your machine. OpenSSH is what the big distro’s use, Dropbear is a tiny SSH replacement. Choose openssh for able to connect using command line from Unix-like systems.
    • Choose an NTP client, this keeps your machine’s time accurate using an Internet time server. Openntpd is what the big distro’s use, while Chrony is a tiny replacement.
    • Choose a disk you want to install Alpine onto, as an example, sda is the first disk in your computer.
      • Now choose how you would like to use it, for this guide, choose sys, this will install the entire OS onto your hard drive
      • You are given a final chance to back out, type in Y to continue
  • The installation is now complete and you will be asked to reboot. Type in reboot and press enter
Читайте также:  Договор на установку счетчика электрического

Finishing the installation

You cannot see a graphical window system? take easy and get calm down.. in Alpine all are made by the right way.. so if user need a desktop.. user can install a desktop follow the next: Alpine newbie apk packages or bypass and go directly to Alpine newbie desktops

For others ways to install see at the Alpine_newbie_install_manual

источник

Alpine Install: from a iso to a virtualbox machine with external disc

Overall description: Alpine Installation from a official disc/iso downloaded to a real hard disk by the usage of VirtualBox machine as the real machine, where will be single OS only.

This document will guide you to install Alpine into a real hard disk device but through the VirtualBox virtual machine acting as real machine, use if want to install to a real hard disk device externally but no way to boot it so can use in VirtualBox virtual machine . For others ways to install see at the Alpine_newbie_install_manual

Contents

Terminology

  • Host machine: will be your real machine with installed operating system that have installed the VirtualBox software and «will host» the target operating system, in that case Alpine.
  • Guest machine: will be your target machine where Alpine will be installed, emulated by the host operating system using the VirtualBox software installed in the real machine.
  • Reserved RAM: will be the amount of RAM that will be need to share exclusively to the virtual machine created by the VirtualBox software in the host machine, stolen from the real RAM.
  • External disc: will be the storage medium device attached as target for the emulated machine or «guest machine», where the Alpine will be installed.

Requirements

  • In the host machine we need installed the virtualbox program from VirtualBox software
  • In the host machine we need at least 1Gb of RAM, recommended 2Gb of RAM installed
  • The guest machine need 512Mb RAM, but recommended 1Gb reserved if desktop software will be installed
  • In the host machine we need installed wget or a web browser to download install medium

Preparing the medium origin to install

Download the source medium to install and put into your home, there’s more hardware medium sources to download, like the s390x and ppc64le, but due VirtualBox only emulates x86, x64 and arm hardware only, will list those here.

So using 3.10 version and i386 flavor the available links to download will be: http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86/alpine-standard-3.10.0-x86.iso

Graphical download: Just point the web browser to that url and the download of the iso file will start. A file with .iso extension type, with name like «alpine-standard-3.10.0-x86_64.iso» will be downloaded commonly into the Download directory of your home documents filesystem.

Command line method: in unix-like terminal execute: wget -c -t8 —no-check-certificate http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86/alpine-standard-3.10.0-x86.iso , and where you run the command, in that place/dir will be downloaded the file.

Preparing the medium target to install

Please take care of your attached devices.. for best care results only use those involved in the process, so only put the disc (that can be a USB flash, MMC card or external drive) attached, and remove all others that will no to be use. We will assume only one internal disc (that obviously cannot be removed) and one external disk attached.

Читайте также:  Apache tomcat установка в netbeans

The external disc will be detected and the operating system will create a new device representation, such like /dev/sdb commonly. In Linux systems you an detect the recently attached disk with following command:

/bin/dmesg | tail -n 50| grep ‘Attached SCSI’ | cut -d’ ‘ -f4

This will output [sde] for our example installation. Caution due that previously command only will work if you recently attached the new external disk where the system will be installed.

Later with the detection of the disk, create the representation for the VirtualBox virtual machine, the detection will be put in /dev/ parameter.. so if the disk was detect as [sde] you must use it without «[«/»]» sings, the command for creating the virtual disk will be:

VBoxManage internalcommands createrawvmdk -rawdisk /dev/sde -filename $HOME/rawdisk-sdb.vmdk

Preparing the virtual machine to install

Start the VirtualBox software program.

Booting the Alpine ISO disc

When the machine start, you must be sure to choose the Optical drive (commonly named CD/DVD Rom drive), so the disc/iso will boot and after a while a command line shell will show you:

The setup install process

After boot up.. a command line shell of a complete ready to use Alpine will show you

  • At the login: to appear, type root and press enter.
  • Run the setup-alpine script
    • Choose your keyboard layout. If you don’t know your keyboard layout choose us. By example for most Latin American a es are enough, for Russian (an maybe Cirilyc ones) ru are enough.
    • Host name, which will be the name of your computer, a good format are pcv-alp32-virtual1 where «pcv means «PC virtual», «alp32» means «Alpine 32bit» and «virtual1» means the first virtual machine to try.
    • Choose your network card, most people can just go with the default (press enter), take in consideration that Wired connections are more stable and faster rather than Wireless connections, also at the most modern the Wireless card, the lest supported or still not well tested.
      • Most people will use DHCP, so press enter again, if you have Internet connection fro ISP most settings are just DHCP so all will be configured automatically
      • You will be asked if you want to do any manual network configuration, press enter for no
    • Type in your root password twice.
    • Choose a time zone, you can get a list by pressing ?. If you want a sub zone, e.g. Africa, type in Africa and press enter, if again you type ? and enter, it will give you a list of sub zones in Africa. By example for Venezuela the zone are «America/Caracas» .
    • Press f to choose the fastest mirror; those mirrors something for strange reason are not available in some countries. (WIP put here a good mirror that never fail)
    • Choose an SSH server, this allows you to remotely manage your machine. OpenSSH is what the big distro’s use, Dropbear is a tiny SSH replacement. Choose openssh for able to connect using command line from Unix-like systems.
    • Choose an NTP client, this keeps your machine’s time accurate using an Internet time server. Openntpd is what the big distro’s use, while Chrony is a tiny replacement.
    • Choose a disk you want to install Alpine onto, as an example, sda is the first disk in your computer.
      • Now choose how you would like to use it, for this guide, choose sys, this will install the entire OS onto your hard drive
      • You are given a final chance to back out, type in Y to continue
  • The installation is now complete and you will be asked to reboot. Type in poweroff and press enter

After install the system emulated will turn off (virtual machine will goes down and close the window), now you can remove the external disk and use it in another machine (by puting into the target machine as first internal disk), or just always use the VirtualBox virtual machine with that disk.

Finishing the installation

If you try to start that installation maybe you cannot see a graphical window system? take easy and get calm down.. in Alpine all are made by the right way.. so if user need a desktop.. user can install a desktop follow the next: Alpine newbie apk packages or bypass and go directly to Alpine newbie desktops

For others ways to install see at the Alpine_newbie_install_manual

источник

Оцените статью
Авторевью
Добавить комментарий

Adblock
detector