This repository contains three types of kernel images:
kernel-qemu-4..-buster are the most recent images, which are compatible with Raspbian Buster and Stretch. To use these images, you’ll need a compiled device tree file (.dtb) which is also contained in this repository. Use versatile-pb-buster.dtb for Buster, or use versatile-pb.dtb for Stretch. Unless you are positive you need a different kernel, the most recent of these images is probably what you want.
kernel-qemu-4..-stretch are images compatible with Raspbian Stretch and Jessie. To use these images, you’ll need the versatile-pb.dtb file which is also contained in this repository.
kernel-qemu-4.4.*-jessie are images compatible with Raspbian Jessie and Wheezy.
kernel-qemu-3.10.25-wheezy is the original image from xecdesign.com, which is compatible with Raspbian Wheezy only.
Device Boot Start End Sectors Size Id Type 2021-12-02-raspios-buster-armhf-lite.img1 8192 532479 524288 256M c W95 FAT32 (LBA) 2021-12-02-raspios-buster-armhf-lite.img2 532480 5783551 5251072 2.5G 83 Linux
Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
Command (m for help): d Partition number (1,2, default 2): 2
Partition 2 has been deleted.
Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): p Partition number (2-4, default 2): 2 First sector (2048-5726207, default 2048): 532480 Last sector, +/-sectors or +/-size{K,M,G,T,P} (532480-5726207, default 5726207):
Created a new partition 2 of type 'Linux' and of size 2.5 GiB. Partition #2 contains a ext4 signature.
Do you want to remove the signature? [Y]es/[N]o: n
Command (m for help): w
The partition table has been altered. Syncing disks.
pi@raspberrypi:~$ sudo reboot
重启后,resize2fs后df -h检查是否扩充成功
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
pi@raspberrypi:~$ sudo resize2fs /dev/vda2 resize2fs 1.44.5 (15-Dec-2018) Filesystem at /dev/vda2 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 1 The filesystem on /dev/vda2 is now 649216 (4k) blocks long.
MariaDB [mysql]> update user set password=password("xxxx"), host='%' where user='root'; MariaDB [mysql]> CREATE DATABASE gitea; MariaDB [mysql]> GRANT ALL PRIVILEGES ON gitea.* TO 'gitea'@'localhost' IDENTIFIED BY 'xxxx'; MariaDB [mysql]> flush privileges;
MariaDB [mysql]> exit
6.2 安装Gitea
1 2 3 4 5 6 7 8
sudo su git cd ~ mkdir gitea
cd gitea wget https://dl.gitea.io/gitea/1.15.10/gitea-1.15.10-linux-arm-6 chmod +x gitea-1.15.10-linux-arm-6 sudo nano /etc/systemd/system/gitea.service
[Unit] Description=Gitea (Git with a cup of tea) After=syslog.target After=network.target
[Service] # Modify these two values and uncomment them if you have # repos with lots of files and get to HTTP error 500 because of that ### # LimitMEMLOCK=infinity # LimitNOFILE=65535 RestartSec=2s Type=simple User=git Group=git WorkingDirectory=/home/git/gitea ExecStart=/home/git/gitea/gitea-1.15.10-linux-arm-6 web Restart=always Environment=USER=git HOME=/home/git