opensuse-on-pinebookpro-gnome
Instructions for xfce about halfway down page...
Instructions: You must have more than 16G of space to write this image! Preferably 32G or larger
To write image to sdcard from a linux pc: xzcat opensuse-tumbleweed-pinebookpro- gnome-1.0.img.xz | dd bs=4M of=/dev/mmcblkX iflag=fullblock oflag=direct status=progress; sync
Because of the level of compression I used, writing this image to internal disk from pinebookpro via an os running on a sdcard to internal memory requires you unxz --threads=(max number of threads your pc processor has) -6e opensuse-tumbleweed-pinebookpro-gnome-1.0.img.xz
from a linux pc, then you can copy the disk image to the os running on pinebookpro via sdcard and enter: dd if=opensuse-tumbleweed-pinebookpro-gnome-1.0.img of=/dev/mmcblkX oflag=sync status=progress bs=32M
When you first boot, login as user "tux". The password is "susepassword". The root password is "linux".
You can change your username/password with the YaST Users tool from the applications overlay/menu Be sure to change your time and date settings with YaST Time and Date. After that, reboot and you should be good to go!
Then, you have to resize your disk to fill the remaining space. This could be done by entering:
sudo cfdisk /dev/mmcblkX
then resize your last partition. Make sure to hit write and then exit. Then enter:
sudo resize2fs /dev/mmcblkXp6
and voilia! Disk resized.
Caveats
This image boots up slowly. Especially on the first boot, give it 3-4 minutes. I'm going to play around with the kernel configuration to speed this up. I've had the same issue with my opensuse-xfce and Fedora images as well. Once you've booted up and logged in, It's smooth sailing. Also, thanks to the Manjaro team, suspend and resume is now working, so you shouldn't have to powerdown and poweron all that much! Thanks again guys!
I'm going to be adding kernel rpm's on this repo. One will be labeled "apparmor" and the other "selinux". Both could be used with this, or my fedora images. Depends on your preferences.
Apparmor is mostly in permissive mode, so to enable everything, just run:
sudo aa-enforce /etc/apparmor.d/*
and then everything will go into enforcing mode.
Because of media codec issues with openSUSE on the aarch64 platform, chromium is running in a Debian systemd-nspawn container. You'll be prompted to enter the root password either once or twice to start up chromium.
If you want to change your sudo password to your own, rather than entering the root password, enter:
sudo usermod -aG wheel,trusted,audio,video yourusername
then, switch to root user with
su -
Then,
visudo
Comment lines 68 and 69, then uncomment line 81. Reboot or login and logout again, and your sudo password will be switched to your user password, rather than the root users password.
To get audio working, type:
sudo zypper in --no-recommends xfce4-mixer
Then, unmute 'Left Headphone Mixer Left DAC' and 'Right Headphone Mixer Right DAC'.
Also, be sure to take advantage of the "opi" tool. It's similar to the AUR in arch linux. It searches for packages across all availiable repos.
Don't bother running Gnome on Xorg, it runs like garbage. Oddly enough, Fedora on pinebook pro has the inverse problem. Who knows? Anyway, hope you enjoy it!
Have a lot of fun...
-------------------------------------------------------------------------
openSUSE-on-pinebookpro
This image contains a base install of openSUSE tumbleweed with Xfce. I've tried both KDE and Xfce, and Xfce is the clear winner here. I'd estimate it runs about 50% faster than KDE.
Instructions: (If you're familiar with suse, you probably won't need the bulk of these instructions) You must have more than 16G of space to write this image! Preferably 32G or larger
To write image to sdcard from a linux pc:
xzcat opensuse-tumbleweed-pinebookpro-xfce-1.0.img.xz | dd bs=4M of=/dev/mmcblkX iflag=fullblock oflag=direct status=progress; sync
Because of the level of compression I used, writing this image to internal disk from pinebookpro via an os running on a sdcard to internal memory requires you
unxz --threads=(max number of threads your pc processor has) -9e opensuse-tumbleweed-pinebookpro-xfce-1.0.img.xz
from a linux pc, then you can copy the disk image to the os running on pinebookpro via sdcard and enter:
dd if=opensuse-tumbleweed-pinebookpro-xfce-1.0.img of=/dev/mmcblkX oflag=sync status=progress bs=32M
once you've booted up, username is root, password is linux. Then enter:
cfdisk /dev/mmcblkX
resize your last partition to use the rest of the free space, make sure to select write in cfdisk before you exit. then enter:
resize2fs /dev/mmcblkXp6
You can change root password with the passwd command, then add your own username with:
useradd -m -G wheel,users,audio,video,trusted -s /bin/bash yourusername
passwd yourusername
Then:
systemctl set-default graphical.target && systemctl isolate graphical.target
Lightdm should pop up!
Then, open a terminal and type:
sudo rcnetwork restart
sudo systemctl daemon-reload
sudo hostnamectl set-hostname "yourhostnamehere"
and connect to your wifi network. After that, open YaST Date and Time to update your time settings and you should be all set!
I'll be creating and adding kernel rpm's up here somewhat frequently. This image contains the latest kernel from the pinebook pro gitlab page. This image is also equipped with apparmor as well.
I got partitioning scheme from Daniel Thomsons debian installation script, so thank's Daniel! Anyway, there are some things I'd like to get working that I haven't been able to, such as grub intergration with u-boot and a btrfs filesystem (couldn't get it to boot). If anyone has any ideas, please let me know!
This distro has great promise for pinebook pro. You can grab source rpm's from software.opensuse.org, and build packages that aren't currently being distributed for the aarch64 format, so the sky is the limit. I'd highly recommend installing rpm devel, kernel devel, and C++ devel for this reason. That can be achieved with one command:
sudo zypper in -t pattern devel_rpm_build devel_C_C++ devel_kernel
That will grab what you need to start building source rpm's.
One caveat with opensuse is it does not ship with media codecs needed for watching/playing videos in web browsers. On the x86_64 platform you can easily grab them from the Packman repo, but they seem to have a small selection of aarch64 and noarch rpm's. I'm going to try to hunt down the needed ones/build from source, but if you're a huge youtube watcher, this probably is not the distro for you at this time.
UPDATE:
I was able to solve this issue with a bit of a workaround. Chromium for debian is now running in a systemd-nspawn container, so youtube and other media formats work as expected! All you need to do is open chromium in your applications as you normally would! The password for chromium is your root password.
UPDATE 2:
Thanks to the Manjaro guys the sleep function now works. I'm adding a script above that I've (shamefully) "borrowed" from them. Again, all credit goes to them. Just copy and paste the script or download it somewhere, run 'chmod +x sleep-fix.sh', and type 'sudo sh sleep-fix.sh'. Also, to get a better lockscreen, I'd recommend running:
sudo zypper rm xscreensaver
sudo zypper in xfce4-screensaver
Have a lot of fun...