You are not logged in.

#1 2016-03-15 03:47:19

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Quick install

You can if you wish follow the wonderful Obarun guide for a manual install

http://www.obarun.org/wiki/install.html

Notes:

Manual Install

1. arch-install-scripts are already shipped with ArchBang (skip this step)

5. Not sure what this is for, might be more that obarun uses runit rather than systemd (I skipped this step)

If you wish to change/add a new user then mvuser script is in /root folder run like this

sudo ./root/mvuser

It creates a new user and password, then moved ablive files and configs to new user.

Why do this? Installation is very quick you are up and running in a matter of minutes...

Generally find installers suck! they are very limited, go out of date very quickly as arch changes constantly, inflexible (you are forced to follow/install/setup), can be very complicated and slow!!!

Been wanting to remove abinstall installer for quite some time sad

You will find script and short guide in our wiki

http://wiki.archbang.org/index.php?title=Quick_Install


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#2 2016-03-15 23:31:20

eric
Member
Registered: 2015-07-10
Posts: 240
Website

Re: Quick install

a advise, change

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

by

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

(changed on my page too). This is avoid a duplication if you run the script several times.


Obarun : free to control your system

Offline

#3 2016-03-16 00:52:41

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Quick install

Missed that one...will edit thanks


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#4 2016-03-16 03:20:34

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Quick install

Great collaboration you two; my compliments and thanks to Eric!!


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#5 2016-03-16 04:24:41

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Quick install

Think rsync might be a better option than cp, might improve speed of install a little.

Most of the work can be done post install, things like keyboard layout, hostname, locales, timezone, new user

Need to create a new wiki guide for quick install at some point.

Options are endless but I think less if far more in this case.


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#6 2016-03-20 06:42:11

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Quick install

Post install:

Stop pacman-init.service (you can then use /opt/archbang/arch-keys to create new ones)

Change /etc/hostname

sudo nano /etc/hostname

Edit /etc/hosts with new hostname

sudo nano /etc/hosts

Move ablive to a new username

sudo /root/mvuser

Change root password

sudo passwd

Edit mirrorlist for best server

sudo nano /etc/pacman.d/mirrorlist

#timezone /etc/localtime

Keyboard layout (desktop and console)

 nano ~/.config/openbox/autostart #  remove '#'  setxkbmap <keyboard> &

Locales

sudo nano /etc/locales.gen # uncomment locale required then run:
sudo locale-gen

Network connection either wired or wireless, configured via system tray icon

Add base-devel and packer!

sudo /opt/archbang/packer-install

Get system up to date, add packages and desktops of your choice...

sudo pacman -Syyu

Hope I did not forget anything wink


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#7 2016-03-23 02:59:32

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Quick install

Have made a quick fix for bootloader in script, should work now without need to edit syslinux.cfg.


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#8 2016-03-23 11:04:57

eric
Member
Registered: 2015-07-10
Posts: 240
Website

Re: Quick install

the link at the end doesn't work

may be a verification of mountpoint can be good like this

if ! mountpoint -q /mnt; then
        echo "blablabla not valid"
        exit 1
fi

just in case of user doesn't mount the device in /mnt.(never trust user smile)


Obarun : free to control your system

Offline

#9 2016-03-24 00:31:52

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Quick install

Will add test for mounted device, might add to our installer as well. Thanks... wink


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#10 2016-03-25 05:16:05

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Quick install

Small update

#!/bin/bash
# basic quick install script based on obarun manual install
# ::preface install target device is mounted and has filesystems created to /mnt::
#
# by Mr Green & eric
#

# Device is mounted?
[[ ! mountpoint -q /mnt ]] && usage

# Are we root?
[[ ${EUID} -ne 0 ]] && usage

# Variables
ACM="arch-chroot /mnt"
ROOT_DEV=$(df | grep -w /mnt | awk {'print $1'})

usage(){
    echo "You need to be root and device must be mounted to /mnt"
    exit 1
}

echo ":: Please wait, copying live root image to /mnt ::"
cp -ax / /mnt

echo "Add kernel to new install..."
cp -vaT /run/archiso/bootmnt/arch/boot/$(uname -m)/vmlinuz /mnt/boot/vmlinuz-linux

echo "Create /etc/fstab..."
genfstab -U -p /mnt > /mnt/etc/fstab

echo "Rebuild boot image..."
${ACM} /usr/bin/mkinitcpio -p linux

echo "Add syslinux bootloader..."
${ACM} /usr/bin/syslinux-install_update -iam
sed -i "s|/dev/sda[0-9]|${ROOT_DEV}|g" /mnt/boot/syslinux/syslinux.cfg

echo "Clean new install..."
rm /mnt/etc/mkinitcpio-archiso.conf
rm -r /mnt/etc/initcpio

echo "::Install complete::"

Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB