Skip to content

Instantly share code, notes, and snippets.

@mezcel
Last active March 26, 2024 08:10
Show Gist options
  • Save mezcel/c8d4759203ce958692fc960b92eda960 to your computer and use it in GitHub Desktop.
Save mezcel/c8d4759203ce958692fc960b92eda960 to your computer and use it in GitHub Desktop.
Tiny Core Linux Notes
## win10 line endins
*.bat eol=crlf
*.ps1 eol=crlf
## Linux/Posix line endins
*.go eol=lf
*.sh eol=lf
*.source eol=lf
Makefile eol=lf
## ignore vscode settings
.vscode
## ignore builds
*.exe
*.out
main

Tiny Core Linux Notes

logo.png

BusyBox: The Swiss Army Knife of Embedded Linux

  • busybox.net
    • BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. BusyBox provides a fairly complete environment for any small or embedded system.
    • BusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add some device nodes in /dev, a few configuration files in /etc, and a Linux kernel.

Package manager

tce-load -h
Usage: tce-load [-i -w -wi -wo -wil -ic -wic]{s} \
extensions
 -i Loads local extension
 -w Download extension only
 -wi Download and install extension
 -wo Download and create an ondemand item
 Adding -c to any -i option will force a one time \
 copy to file system
 Adding -l to any -i option indicates load only - \
 do not update onboot or ondemand
 Adding -s to any option will suppress OK message \
 used by apps GUI
Example usage:
 Load local extension:
 tce-load -i /mnt/hda1/tce/optional/nano.tcz
 Download into tce/optional directory, updates OnBoot
 and installs:
 tce-load -w -i nano.tcz
 Download only into tce/optional directory:
 tce-load -w nano.tcz

install vim

tce-load -wi vim.tcz

set SSID

	mySSID=blah123
	mySSIDPW=pw

	echo "$mySSID $mySSIDPW WPA" > ~/wifi.db
#!/bin/bash
cp /etc/wpa_supplicant.conf /opt/
echo "wpa_supplicant -i wlan0 -c /opt/wpa_supplicant.conf -B" > /opt/_wifi.sh
echo "udhcpc -n -i wlan0" >> /opt/_wifi.sh
echo "" >> /opt/bootsync.sh
echo "/opt/_wifi.sh &" >> /opt/bootsync.sh
#!/bin/bash
## list installed extensions
# tce-status -i
# ls /tmp/tcloop/
## some basic genric apps
tce-load -wi compiletc.tcz
tce-load -wi vim.tcz
tce-load -wi bash.tcz
tce-load -wi git.tcz
tce-load -wi vifm.tcz
tce-load -wi geany.tcz
tce-load -wi geany-plugins.tcz
tce-load -wi gimp.tcz
tce-load -wi bc.tcz
tce-load -wi man.tcz
tce-load -wi man-pages.tcz
tce-load -wi dwm.tcz
#tce-load -wi pdftk.tcz
## More utils
tce-load -wi upower-dev.tcz
tce-load -wi util-linux_base-dev.tcz
tce-load -wi usbutils.tcz
## Manually compile DWM
tce-load -wil compiletc.tcz
tce-load -wil gtk3-dev.tcz
tce-load -wil freetype-dev.tcz
## flwm
# Xvesa.tcz, Xlibs.tcz, Xprogs.tcz, aterm.tcz, flwm_topside.tcz, wbar.tcz
## To start the GUI from CLI type startx
##
## avr32-linux avr32-linux-uclibc bin etc include info lib libexec man mkspecs plugins sbin share translations usr var avr32-gcc toolchain
##
## Del package
# tce-audit builddb
# tce-audit delete packagename
#!/bin/bash
## define root pw
passwd
## define a user
MyUserName="me"
sudo adduser $MyUserName
## edit /etc/sudoers
visudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment