Void Linux

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
musa
Posts: 709
Joined: Tue Aug 23, 2011 7:58 pm

Re: Void Linux

Post by musa »

Hi.
Is there a root password in Void?
thanks
Peter
AmigaX1000
Follow me on twitter @basjoo_dk
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

musa wrote: Wed Nov 16, 2022 3:31 pm Hi.
Is there a root password in Void?
thanks
Peter
Peter,

You can change the root password with “sudo passwd”.

Have a nice day.

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
musa
Posts: 709
Joined: Tue Aug 23, 2011 7:58 pm

Re: Void Linux

Post by musa »

Hi Christian
Thanks
Peter
AmigaX1000
Follow me on twitter @basjoo_dk
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

Please note: Void PPC is EOL so we have to be careful with installing and updating of packages.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

FYI
Wicknix wrote: Better hurry and install the packages you want. The void ppc repo could get taken offline any day now. Even the old ppc maintainer doesnt know the exact date as its not his server. Otherwise it really is a nice OS. Install octo-xbps for a gui package installer. Makes finding stuff much easier.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

Hi All,

The latest Void disk image has a boot and a root partition. I was able to mount the root partition from the disk image and copy it to a new disk image with the following commands:

Code: Select all

tar zxvf void-live-powerpc-20220129.img.tar.gz

Code: Select all

ls -ltr


Output:

Code: Select all

-rw-r--r-- 1 christian christian 8036285952 29. Jan 2022  void-live-powerpc-20220129.img

Code: Select all

fdisk -lu void-live-powerpc-20220129.img


Output:

Code: Select all

Disk void-live-powerpc-20220129.img: 7,48 GiB, 8036285952 bytes, 15695871 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd0a60bb8

Device                          Boot  Start      End  Sectors  Size Id Type
void-live-powerpc-20220129.img1        2048   473087   471040  230M  6 FAT16
void-live-powerpc-20220129.img2      473088 15693823 15220736  7,3G 83 Linux
Calculate the offset from the start of the image to the partition start

Sector size * Start = (in the case) 512 * 473088 = 242221056

Code: Select all

bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
512 * 473088
242221056
quit
Mount it on /dev/loop0 using the offset.

Code: Select all

sudo losetup -o 242221056 /dev/loop0 void-live-powerpc-20220129.img

Code: Select all

sudo fsck -fv /dev/loop0
Output:

Code: Select all

fsck from util-linux 2.38.1
e2fsck 1.46.6-rc1 (12-Sep-2022)
Pass 1: Checking inodes, blocks, and sizes
Inode 30261 extent tree (at level 2) could be narrower.  Optimize<y>? yes
Inode 30322 extent tree (at level 2) could be narrower.  Optimize<y>? yes
Inode 30660 extent tree (at level 2) could be narrower.  Optimize<y>? yes
Inode 30695 extent tree (at level 2) could be narrower.  Optimize<y>? yes
Inode 30739 extent tree (at level 2) could be narrower.  Optimize<y>? yes
Inode 30785 extent tree (at level 1) could be narrower.  Optimize<y>? yes
Inode 30874 extent tree (at level 1) could be narrower.  Optimize<y>? yes
Inode 30903 extent tree (at level 1) could be narrower.  Optimize<y>? yes
Inode 30907 extent tree (at level 1) could be narrower.  Optimize<y>? yes
Inode 30908 extent tree (at level 1) could be narrower.  Optimize<y>? yes

Inode 153472 extent tree (at level 1) could be shorter.  Optimize<y>? yes
Pass 1E: Optimizing extent trees
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

void: ***** FILE SYSTEM WAS MODIFIED *****

      175735 inodes used (36.94%, out of 475776)
         288 non-contiguous files (0.2%)
          27 non-contiguous directories (0.0%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 163035/24/5
     1476045 blocks used (77.58%, out of 1902592)
           0 bad blocks
           1 large file

      134534 regular files
       13777 directories
           0 character device files
           0 block device files
           0 fifos
         690 links
       27415 symbolic links (12663 fast symbolic links)
           0 sockets
------------
      176416 files

Code: Select all

sudo mount /dev/loop0 /mnt

Code: Select all

ls /mnt
Output:

Code: Select all

bin  boot  dev  etc  home  lib  lib32  lost+found  media  mnt  opt  proc  root  run  sbin  sys  tmp  usr  var

Code: Select all

sudo umount /mnt

Code: Select all

sudo dd if=/dev/loop0 of=void-live-powerpc-20230317.img


Output:

Code: Select all

15222783+0 Datensätze ein
15222783+0 Datensätze aus
7794064896 Bytes (7,8 GB, 7,3 GiB) kopiert, 83,3552 s, 93,5 MB/s

Code: Select all

/sbin/fsck.ext4 void-live-powerpc-20230317.img
Output:

Code: Select all

e2fsck 1.46.6-rc1 (12-Sep-2022)
void: clean, 175735/475776 files, 1476045/1902592 blocks

I increased the Void root disk image:

Code: Select all

qemu-img resize void-live-powerpc-20230317.img +5G

Code: Select all

/sbin/fsck.ext4 -f void-live-powerpc-20230317.img
Output:

Code: Select all

e2fsck 1.46.6-rc1 (12-Sep-2022)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
void: 175735/475776 files (0.2% non-contiguous), 1476045/1902592 blocks

Code: Select all

resize2fs void-live-powerpc-20230317.img


Output:

Code: Select all

resize2fs 1.46.6-rc1 (12-Sep-2022)
Resizing the filesystem on void-live-powerpc-20230317.img to 3213567 (4k) blocks.
The filesystem on void-live-powerpc-20230317.img is now 3213567 (4k) blocks long.

We have copied the root partiton from the Void disk image to a new image and increased it.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

Hi All,

I was able to update Void in the root disk image yesterday. I think, this is the last Void disk image. Please change to Fienix in the future.

New:
  • Noboot disk image (image without boot partition)
  • Fbdev is pre-configured
  • Renamed the libglamoregl.so to libglamoregl.so.bak
  • Yaru themes
  • Arctic Fox 40.1
  • Pale Moon 31.2
Download: void-live-powerpc-20230317.img.tar.gz (md5sum: 9e663d6045ffc24e58b7adbd4b9c9629)

If you want to enable hardware acceleration manually, then edit the file /etc/X11/xorg.conf. Change the "driver" from fbdev to radeon.

Please test it.

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

Configure the language (locales) in Void PPC

  1. Choose your language:

    Code: Select all

    sudo vim /etc/default/libc-locales

    Code: Select all

    sudo xbps-reconfigure -f glibc-locales
  2. Replace the locale with yours in the file /etc/locale.conf
  3. Logout and then login again

BTW, here is a screenshot of the Void Installer in action:

Image
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

Important:

TRIM will not be activated automatically if Void runs on an SSD.
SSD TRIM enables an operating system to inform a NAND flash solid-state drive (SSD) which data blocks it can erase because they are no longer in use. The use of TRIM can improve the performance of writing data to SSDs and contribute to longer SSD life.
I tested fstrim manually today and it works.

I installed cronie and created a cron job for fstrim.

Screenshot with further information:

Image

Thanks to Roland for the hint.

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9319
Joined: Fri Mar 23, 2012 7:58 am

Re: Void Linux

Post by xeno74 »

Image

Hi All,

There isn't a TV card software available for Void PPC. Therefore I created a TVtime package for Void PPC today.

Download: TVtime_1.0.11_linux-powerpc.tar.gz

Installation:
  1. Unpack the package and create the directory /usr/share/tvtime with the following command:

    Code: Select all

    sudo mkdir /usr/share/tvtime
  2. After that copy the font tvtimeSansBold.ttf to the directory /usr/share/tvtime/ with the following command:

    Code: Select all

    sudo cp usr/share/tvtime/tvtimeSansBold.ttf /usr/share/tvtime/
  3. Then you can start TVtime with ./tvtime.
Image

Image
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply