Installing Alpine on HDD overwriting everything: Difference between revisions
(added how to lbu ci to hdd) |
|||
Line 9: | Line 9: | ||
* Put the CD into the new computer and turn on the power. | * Put the CD into the new computer and turn on the power. | ||
* Wait for the text "login:" to appear, type "root" and press enter twice (blank password) | * Wait for the text "login:" to appear, type "root" and press enter twice (blank password) | ||
* | * Run the setup-alpine script to choose your keyboard, network and password options. | ||
* Type "setup-disk" and press enter. | * Type "setup-disk" and press enter. | ||
* You will be asked where to install. If you don't understand the question, press y and enter. | * You will be asked where to install. If you don't understand the question, press y and enter. | ||
The system is now installed and after a while you will see a message saying "Please reboot" | The system is now installed and after a while you will see a message saying "Please reboot" | ||
* Now you want to setup somewhere to save settings between reboots. Assuming /dev/sda3/ is your / partition, write | |||
mkdir /media/lbu | |||
vi /etc/fstab | |||
Press the letter "i", move the cursor down to the bottom of the file and type | |||
/dev/sda3 /media/lbu ext3 defaults 0 0 | |||
Press Escape, write ":wq" and press enter. Now write | |||
vi /etc/lbu/lbu.conf | |||
Press the letter "i", move the cursor down to where it says something about LBU_MEDIA. Remove the # in front and write stuff to make the line look like | |||
LBU_MEDIA=lbu | |||
Press Escape, write ":wq" and press enter. Try writing | |||
lbu ci | |||
and you should get no error messages. If you do, maybe something's wrong. | |||
Type "reboot" and press enter. You can remove the CD now, since the system is installed. Your system is ready. You can have fries with that, although there are healthier alternatives. | Type "reboot" and press enter. You can remove the CD now, since the system is installed. Your system is ready. You can have fries with that, although there are healthier alternatives. |
Revision as of 22:45, 5 October 2010
Installing Alpine to a new machine, overwriting everything on the harddisk
Warning This will erase everything on your machine's harddisk. Don't blame me if someone sues you for this, your cat dies etc. You are warned.
The following is meant to be an absolute newbie guide
- Burn the alpine iso image to a CD
- Put the CD into the new computer and turn on the power.
- Wait for the text "login:" to appear, type "root" and press enter twice (blank password)
- Run the setup-alpine script to choose your keyboard, network and password options.
- Type "setup-disk" and press enter.
- You will be asked where to install. If you don't understand the question, press y and enter.
The system is now installed and after a while you will see a message saying "Please reboot"
- Now you want to setup somewhere to save settings between reboots. Assuming /dev/sda3/ is your / partition, write
mkdir /media/lbu vi /etc/fstab
Press the letter "i", move the cursor down to the bottom of the file and type
/dev/sda3 /media/lbu ext3 defaults 0 0
Press Escape, write ":wq" and press enter. Now write
vi /etc/lbu/lbu.conf
Press the letter "i", move the cursor down to where it says something about LBU_MEDIA. Remove the # in front and write stuff to make the line look like
LBU_MEDIA=lbu
Press Escape, write ":wq" and press enter. Try writing
lbu ci
and you should get no error messages. If you do, maybe something's wrong.
Type "reboot" and press enter. You can remove the CD now, since the system is installed. Your system is ready. You can have fries with that, although there are healthier alternatives.
NOTE: If you run setup-disk before setup-alpine, the setup-alpine script won't be available to you when you reboot.
Continue Setting up your Computer
- Alpine Linux package management (How to add/remove packages on your Alpine)
- Alpine boot services (Configure a service to automatically boot at next reboot)
- Setting up a ssh-server (Using ssh is a good way to administer your box remotely)