#1 2015-09-18 15:40:54

codeworkx
Administrator
Registered: 2014-10-05
Posts: 84

[WIP] BBQLinux 2 GO

Boot the BBQLinux live media.

On your USB-Stick, create two partitons using gparted for example.
One for boot, another one for /.

Open terminal and become root user:

su

Password is bbqlinux

Mount the BBQLinux image and copy the contents over to your new / partiton (replace sdXn with / partiton. Example: sdb2):

mkdir -p /mnt/{img,usb}
mount -o loop /run/archiso/sfs/airootfs/airootfs.img /mnt/img
mount /dev/sdXn /mnt/usb
cp -a /mnt/img/* /mnt/usb
sync
umount /mnt/img

Chroot into your new BBQLinux system on USB-Stick:

arch-chroot /mnt/usb

Install grub bootloader (replace sdXn with boot partiton. Example: sdb1):

grub-install --target=i386-pc --force /dev/sdXn

Disable unneeded systemd services:

systemctl disable etc-pacman.d-gnupg.mount
systemctl disable pacman-init
systemctl disable prepare_livesystem

Remove livesystem prep-service:

rm -f /usr/bin/prepare_livesystem

Initialize pacman:

rm -rf /etc/pacman.d/gnupg
pacman-key --init
pacman-key --populate archlinux
pacman-key --populate bbqlinux
pacman-key --refresh-keys

Remove unneeded packages:

pacman -Rs bbqlinux-livemedia calamares-bbqlinux calamares

Add a new user (replace username with your desired username):

useradd -m -g users username

Add your new user to some default groups:

usermod -aG audio, games, lp, lpadmin, network, autologin, optical, power, scanner, shutdown, storage, sudo, video username

Set a password for your new user:

passwd username

Remove bbqlinux user:

userdel -r bbqlinux

Set a new password for the root user:

passwd root

Edit /etc/lightdm/lightdm.conf and comment:

autologin-user=bbqlinux
autologin-user-timeout=0

Edit /etc/sudoers and remove:

# installer group
 %installer ALL=(root) NOPASSWD: /usr/bin/calamar

Reboot and boot from USB-Stick.

Offline

Board footer

Powered by FluxBB