These are the steps taken to setup piCore 14
Newer version might work as well (or maybe even better), but have not been tested.
This covers the basics to get started.
- Download the piCore image
- Unpack the
.zip
file and write the.img
file to the SD-Card (using USB Image Tool for example) - Move the SD-Card to the Pi, plug the Pi into the network and plug in the power source
- SSH into the Pi (using Putty for example)
Login usingtc
/piCore
- Execute
backup
shell command after the first boot to save generated unique SSH keys which will be used during next boots.
- Start the partition tool:
sudo fdisk -u /dev/mmcblk0
- List partitions:
p
- Take note of the StartLBA value of the second partition
- Delete partition:
d
- Choose second partition:
2
- Recreate second partition:
n
- Partition type is primary:
p
- Set partition number:
2
- For first sector enter value of previously noted StartLBA
- For last sector keep suggested default value
- Partition type is primary:
- Exit fdisk with
w
command - Reboot the Pi:
sudo reboot
- After reboot expand the partition:
sudo resize2fs /dev/mmcblk0p2
(may take a while)
- Run an update:
tce-update
- Install mirrors:
tce-load -wi mirrors
- Run
tcemirror.sh
- Run
- Install the nano text editor (or keep using vi):
tce-load -wi nano
- Install tools to create your own extensions
tce-load -wi squashfs-tools
- Install screen:
tce-load -wi screen
- Add
termcapinfo xterm* ti@:te@
to~/.screenrc
to be able to scroll
- Add
- Set hostname for easier recognisable network device:
sudo sethostname myhostname
- Edit
/opt/.xfiletool.lst
- Add
.ash_history
- Add
.cargo
- Add
.python_history
- Add
If you're going to use Python with Pip on your Raspberry Pi, add piwheels for significant faster package installation:
- Create directory:
mkdir ~/.pip
- Create file
~/.pip/pip.conf
and add:[global] extra-index-url=https://www.piwheels.org/simple
- If your Python version doesn't match piwheel's support, add these lines to use wheels for an older Python version:
ignore-requires-python=yes
- Optionally add:
prefer-binary=yes
- Save changes:
backup