1
Cosmo Communicator - Linux / Re: keep keyboard backlight after closing device
« on: January 10, 2021, 06:48:54 am »
any luck with this?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
There is new Wiki page from Adam Boardman about UbuntuTouch on Cosmo: https://github.com/gemian/gemian/wiki/UBPorts
Be careful because it might be unfinished ... If you are brave and try it out, please post your "travel report".
echo "UBPorts,$MBF/Cosmo_Installer_UBPorts.sh" >> $INSTALLER_FILE
#!/system/bin/sh
PARTED="/sbin/parted_static"
MBF="/sdcard/cosmo-customos-installer"
LS="/system/bin/ls"
OUTPUT="/tmp/output.txt"
PARTITION_FILE="/tmp/part_name.txt"
INSTALLER_FILE="/tmp/installers.txt"
ERROR="/tmp/error.txt"
echo "Detect Installers..." > $OUTPUT
log () {
echo -n "$1 " >> $OUTPUT
}
execute() {
log "Running \"$1\""
R=$($1 2> $ERROR)
if [ "$?" -eq "0" ]
then
log "OK\n"
else
log "ERROR: `cat /tmp/error`\n"
fia
}
part_name() {
PART=`$PARTED /dev/block/mmcblk0 p | grep "$1 " | awk '{ print $5 }'`
if [ $PART = "ext2" ] || [ $PART = "ext4" ]
then
$PARTED /dev/block/mmcblk0 p | grep "$1 " | awk '{ print $6 }' >> $PARTITION_FILE
else
echo $PART >> $PARTITION_FILE
fi
}
# Write installer list in $INSTALLER_FILE
# Format: Name,Installer file
echo "TWRP,$MBF/Cosmo_Installer_TWRP.sh" > $INSTALLER_FILE
echo "Debian KDE/Plasma,$MBF/Cosmo_Installer_Debian_kde.sh" >> $INSTALLER_FILE
echo "Rooted Android,$MBF/Cosmo_Installer_Rooted_Android.sh" >> $INSTALLER_FILE
echo "UBPorts,$MBF/Cosmo_Installer_UBPorts.sh" >> $INSTALLER_FILE
# Write partition list in $PARTITION_FILE
# Format: partition_name
# partition_number (partition name followed by \n followed by partition_name)
rm -f $PARTITION_FILE
part_name 38
part_name 41
part_name 42
# Install root image into partition 43
execute "$DD if=$MBF/ubuntu.img of=$LINUX_ROOTFS bs=1m"
#!/system/bin/sh
PARTED="/sbin/parted_static"
DD="/system/bin/dd"
MBF="/sdcard/cosmo-customos-installer"
BOOT_PARTITION="/dev/block/mmcblk0p"
LINUX_ROOTFS="/dev/block/mmcblk0p43"
OUTPUT="/tmp/output.txt"
ERROR="/tmp/error.txt"
echo "Installing UBPorts..." > $OUTPUT
log () {
echo -n "$1 " >> $OUTPUT
}
execute() {
log "Running \"$1\""
R=$($1 2> $ERROR)
if [ "$?" -eq "0" ]
then
log "OK\n"
else
log "ERROR: `cat /tmp/error`\n"
fi
}
# Installing boot image into user-selected boot partition
execute "$DD if=$MBF/ubports-boot.img of=$BOOT_PARTITION$1 bs=1m"
# Rename partition to specific OS
execute "$PARTED /dev/block/mmcblk0 name $1 UBPorts"
# Install root image into partition 43
execute "$DD if=$MBF/ubuntu.img of=$LINUX_ROOTFS bs=1m"
Quote from: asyikcan someone kindly put a picture / link to the gemini pda case. I tried to search online but did not find one. I don't know wether i should but the case or not.Hopefully this is good enough
[ Invalid Attachment ]