You are not logged in.

#1 2016-12-29 10:48:24

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

Alpine Linux

I am in the process of testing Alpine linux in the hope of building an ArchBang like iso in the future.

Just some notes on using Alpine and installing. Once iso has booted you simply login a root (no password required)

Run

# setup-alpine

and follow onscreen menus...

One thing to note Alpine does need a working network connection to install, either ethernet or as I found it can setup a wireless connection.

I ran a 'sys' install (hard drive), there is no need to set up partitions installer will do that for you. 

After a few minutes you are ready to reboot.

Once in your new install might be worth starting wpa_supplicant service if you are running a wireless connection.

rc-update add wpa_supplicant

(reboot was needed to get things running)

Right time to get updated and X running

# apk update
# apk upgrade # get system up to date
# setup-xorg-base
# apk add xterm jwm nano  # using jwm for example 
# apk -vv search xf86-video # find a video driver for your system

Start dbus (if not already running)

# rc-service start dbus
# rc-update add dbus # from boot

Test X

# xinit /usr/bin/jwm

Some stats

alpine:~$ df -hT
Filesystem           Type            Size      Used Available Use% Mounted on
devtmpfs             devtmpfs       10.0M         0     10.0M   0% /dev
shm                  tmpfs         753.6M     15.1M    738.6M   2% /dev/shm
/dev/sda3            ext4           69.9G   1006.7M     65.3G   1% /
tmpfs                tmpfs         150.7M    292.0K    150.4M   0% /run
df: /sys/kernel/security: Permission denied
cgroup_root          tmpfs          10.0M         0     10.0M   0% /sys/fs/cgroup
/dev/sda1            ext4           92.8M     14.7M     71.2M  17% /boot
alpine:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          1507        157       1350         48         10         99
-/+ buffers/cache:         47       1459
Swap:         3013          0       3013
alpine:~$ sudo blkid
/dev/sda1: UUID="3275e4c4-c8c9-4d0b-8fde-82a5375131a2" TYPE="ext4" PARTUUID="7f35e339-01"
/dev/sda2: UUID="a64e165e-b011-42a4-bc02-f227d6ec3a94" TYPE="swap" PARTUUID="7f35e339-02"
/dev/sda3: UUID="0d53505d-ab43-454f-8186-4cd7f91c3e0c" TYPE="ext4" PARTUUID="7f35e339-03"
alpine:~$ 

Some service stats

alpine:~$ rc-status 
Runlevel: default
 dbus                                                                                                                                                                                                                                                               [  started  ]
 crond                                                                                                                                                                                                                                                              [  started  ]
 sshd                                                                                                                                                                                                                                                               [  started  ]
 acpid                                                                                                                                                                                                                                                              [  started  ]
 lxdm                                                                                                                                                                                                                                                               [  started  ]
 udev-postmount                                                                                                                                                                                                                                                     [  started  ]
 wpa_supplicant                                                                                                                                                                                                                                                     [  started  ]
 openntpd                                                                                                                                                                                                                                                           [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 sysfs                                                                                                                                                                                                                                                              [  started  ]
 fsck                                                                                                                                                                                                                                                               [  started  ]
 root                                                                                                                                                                                                                                                               [  started  ]
 localmount                                                                                                                                                                                                                                                         [  started  ]
 klogd                                                                                                                                                                                                                                                              [  started  ]
 networking                                                                                                                                                                                                                                                         [  started  ]
Dynamic Runlevel: manual

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

Offline

#2 2016-12-29 12:07:31

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

Re: Alpine Linux

And did I tell you Alpine has a pacman package wink

alpine:~$ load pacman
(1/16) Installing libattr (2.4.47-r4)
(2/16) Installing libacl (2.2.52-r2)
(3/16) Installing libarchive (3.2.2-r0)
(4/16) Installing libgpg-error (1.24-r0)
(5/16) Installing libassuan (2.4.3-r0)
(6/16) Installing libcap (2.25-r1)
(7/16) Installing pinentry (1.0.0-r0)
Executing pinentry-1.0.0-r0.post-install
(8/16) Installing libgcrypt (1.7.5-r0)
(9/16) Installing libksba (1.3.4-r0)
(10/16) Installing db (5.3.28-r0)
(11/16) Installing libsasl (2.1.26-r8)
(12/16) Installing libldap (2.4.44-r3)
(13/16) Installing npth (1.2-r0)
(14/16) Installing gnupg (2.1.17-r0)
(15/16) Installing gpgme (1.6.0-r0)
(16/16) Installing pacman (4.2.1-r1)
Executing busybox-1.25.1-r1.trigger
OK: 646 MiB in 238 packages
alpine:~$ 

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

Offline

#3 2016-12-29 17:33:20

once
Member
Registered: 2011-03-13
Posts: 126

Re: Alpine Linux

Mr Green wrote:

And did I tell you Alpine has a pacman package wink

And did I tell you Alpine has a Rpi supported wink

Offline

#4 2016-12-31 04:32:28

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

Re: Alpine Linux

Managed to build a basic iso (alpine-rescue) need to work adapting scripts to allow ArchBang like modifications. I need to add two things overlay of configs and a customize script.

Interesting to note Alpine does supply a desktop iso (not one I could see in their downloads) might be worth building and uploading for users to test wink


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

Offline

#5 2017-01-05 10:19:50

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

Re: Alpine Linux

So I tried to build alpine-desktop (without any changes to packages) and it works. Turns out alpine already has an overlay function. Basically you create a tar file with all modifications and build iso with it. Have an issue with network-extras not being included (which makes networking a little difficult). The amazing thing is that with an xfce4 desktop and firefox iso weighs in at 248mbs!! wink

Will keep you posted


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

Offline

#6 2017-01-26 14:29:53

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

Re: Alpine Linux

Well good news bad news. Overlay function in ISO scripts calls for a tar.gz package from a hosted site, not a problem in itself but as yet have had no luck in getting it to work. My plan now it is overlay during build in the same way archiso scripts do. My other major problem is that some of the required apk packages are not loading during boot, something I am trying to figure out.


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

Offline

#7 2017-01-31 13:45:28

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

Re: Alpine Linux

So after some head scratching I have now got apkovl (configuration overlay) working. Also have many of the missing packages required live installed. For the first time I managed to get jwm running if only without and keyboard or mouse control. Still lots of work to do but progress may be faster now...


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

Offline

#8 2017-02-04 03:58:04

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

Re: Alpine Linux

Once I can get jwm to autologin then i may have something to upload, still not fully up to speed on alpine 'world' file.

Todo:

live user password
theme including background
addition of useful applications


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

Offline

Board footer

Powered by FluxBB