Skip to main content

ARM-Based Fedora Server 31 Minimal on Raspberry Pi 2

ARM-Based Fedora Server 31 Minimal Download page

Follow Fedora on Raspberry Pi to get Fedora Server 31 Minimal up and running

Download the ARM-based Fedora Minimal 31 image file and burn to SD Card Transcend 16GB.

Extend the last partition (root partition) to use all free space on SD Card.

$ sudo parted
(parted) print list
(parted) select /dev/mmcblk0
(parted) print free
(parted) resizepart NUMBER END
(parted) quit
$ sudo resize2fs /dev/mmcblk0p3

Detailed output

[tuyendq@pi21 ~]$ sudo parted
GNU Parted 3.2.153
Using /dev/zram0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print list
Model: Unknown (unknown)
Disk /dev/zram0: 483MB
Sector size (logical/physical): 4096B/4096B
Partition Table: loop
Disk Flags:

Number  Start  End    Size   File system     Flags
 1      0.00B  483MB  483MB  linux-swap(v1)


Model: SD SL16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  83.9MB  79.7MB  primary  fat16        lba
 2      83.9MB  596MB   512MB   primary  ext4         boot
 3      596MB   1996MB  1401MB  primary  ext4


(parted) select /dev/mmcblk0
Using /dev/mmcblk0
(parted) print free
Model: SD SL16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
        1024B   4194kB  4193kB           Free Space
 1      4194kB  83.9MB  79.7MB  primary  fat16        lba
 2      83.9MB  596MB   512MB   primary  ext4         boot
 3      596MB   1996MB  1401MB  primary  ext4
        1996MB  15.9GB  13.9GB           Free Space

(parted)
(parted) resizepart 3 END
Warning: Partition /dev/mmcblk0p3 is being used. Are you sure you want to
continue?
Yes/No? Yes
End?  [1996MB]? 15.9GB
(parted) print free
Model: SD SL16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
        1024B   4194kB  4193kB           Free Space
 1      4194kB  83.9MB  79.7MB  primary  fat16        lba
 2      83.9MB  596MB   512MB   primary  ext4         boot
 3      596MB   15.9GB  15.3GB  primary  ext4
        15.9GB  15.9GB  31.5MB           Free Space

(parted) quit
Information: You may need to update /etc/fstab.

[tuyendq@pi21 ~]$ sudo resize2fs /dev/mmcblk0p3
[sudo] password for tuyendq:
resize2fs 1.45.3 (14-Jul-2019)
Filesystem at /dev/mmcblk0p3 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 2
The filesystem on /dev/mmcblk0p3 is now 3736428 (4k) blocks long.

[tuyendq@pi21 ~]$ sudo parted /dev/mmcblk0 print
Model: SD SL16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  83.9MB  79.7MB  primary  fat16        lba
 2      83.9MB  596MB   512MB   primary  ext4         boot
 3      596MB   15.9GB  15.3GB  primary  ext4

[tuyendq@pi21 ~]$                                          

Install which

[tuyendq@pi21 ~]$ sudo dnf install -y which
Last metadata expiration check: 0:36:53 ago on Wed 06 Nov 2019 12:58:48 AM EST.
Dependencies resolved.
==========================================================================
 Package       Architecture    Version               Repository      Size
==========================================================================
Installing:
 which         armv7hl         2.21-15.fc31          fedora          41 k

Transaction Summary
==========================================================================
Install  1 Package

Total download size: 41 k
Installed size: 76 k
Downloading Packages:
which-2.21-15.fc31.armv7hl.rpm             36 kB/s |  41 kB     00:01
--------------------------------------------------------------------------
Total                                      21 kB/s |  41 kB     00:02
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                  1/1
  Installing       : which-2.21-15.fc31.armv7hl                       1/1
  Running scriptlet: which-2.21-15.fc31.armv7hl                       1/1
  Verifying        : which-2.21-15.fc31.armv7hl                       1/1

Installed:
  which-2.21-15.fc31.armv7hl

Complete!
[tuyendq@pi21 ~]$ which dnf
/usr/bin/dnf
[tuyendq@pi21 ~]$                     

Configure wi-fi

[tuyendq@p22 ~]$ nmcli device
DEVICE  TYPE      STATE         CONNECTION
eth0    ethernet  connected     Wired connection 1
wlan0   wifi      disconnected  --
lo      loopback  unmanaged     --
[tuyendq@p22 ~]$

[tuyendq@p22 ~]$ nmcli device wifi list
IN-USE  SSID    MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
        MinhGo  Infra  10    65 Mbit/s  39      ▂▄__  WPA2
        kimnga  Infra  11    54 Mbit/s  15      ▂___  WPA1 WPA2

[tuyendq@p22 ~]$
sudo nmcli device wifi connect MinhGo password wifipasswordhere
[sudo] password for tuyendq:
Device 'wlan0' successfully activated with 'eacee722-30b1-4db3-80ff-347921912d64'.
[tuyendq@p22 ~]$ nmcli device
DEVICE  TYPE      STATE      CONNECTION
eth0    ethernet  connected  Wired connection 1
wlan0   wifi      connected  MinhGo
lo      loopback  unmanaged  --
[tuyendq@p22 ~]$

Popular posts from this blog

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Linux command: du - disk usage

Where have all my storage gone? du summarize disk usage of the set of FILEs, recursively for directories.

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'