I HAVE A DREAM clean install ubuntu trusty at cloudatcost

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
765
Reaction score
200
so, starting with a ubuntu vps image

log in via the console as root and add a user

Code:
adduser somethingmemorable

give them superpowers

Code:
 adduser something memorable sudo

ssh as your new created user

Code:
sudo su

log in as root and run apt-get update.

the vast majority of this will be lifted from http://pbxinaflash.com/community/th...bian-jessie-over-debian-at-cloudatcost.19606/

Code:
apt-get build-dep debian-installer
apt-get source debian-installer
apt-get install build-essential fakeroot devscripts
cd debian-installer-2010*

look familiar?

Code:
nano build/pkg-lists/netboot/amd64.cfg
#include "network-console"
ctrl+o
ctrl+x

nano /tmp/mypreseed.cfg
 
Last edited:

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
765
Reaction score
200
populate the mypreseed.cfg with the following:

Code:
d-i debian-installer/locale            string en_US
d-i debconf/priority                   select critical
d-i auto-install/enabled               boolean true
d-i netcfg/choose_interface            select eth0
d-i netcfg/disable_dhcp                boolean true
d-i netcfg/get_nameservers             string 8.8.8.8
d-i netcfg/get_ipaddress               string your cloudatcost public ip address
d-i netcfg/get_netmask                 string 255.255.255.0
d-i netcfg/get_gateway                 string your cloudatcost gateway ip address
d-i netcfg/confirm_static              boolean true
d-i netcfg/get_hostname                string xivo
d-i netcfg/get_domain                  string incrediblepbx.com
d-i network-console/password           password needstobesecure
d-i network-console/password-again     password needstobesecure
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-pc/install_devices multiselect /dev/sda
tasksel tasksel/first multiselect minimal
d-i pkgsel/include string openssh-server
d-i pkgsel/upgrade select none
popularity-contest popularity-contest/participate boolean false

save the above and then we will configure the following:

nano build/config/local

Code:
PRESEED=/tmp/mypreseed.cfg
USE_UDEBS_FROM=trusty

Code:
cd build
fakeroot make rebuild_netboot

this will take a while, when finally built,

Code:
cd dest/netboot/ubuntu-installer/amd64
mv linux /boot
mv initrd.gz /boot

nano /boot/grub/grub.cfg

and look for the first vmlinuz and initrd.img lines

change to

Code:
linux   /linux rw ramdisk_size=24000 root=/dev/rd/0
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.gz

save the above, and get ready to reboot and ssh as installer@
 
Last edited:

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
765
Reaction score
200
things of note:

you can re-use existing partitions or go root partition and swap.

there is no root login enabled by default, sudo su is your only option

this took me just under and hour on a 1 cpu, 1gb ram, 15gb ssd cloudatcost instance.
 

Members online

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top