First thank all contributor
1.Change the package repository
vi /etc/opkg/distfeeds.conf
uncomment below line
src/gz reboot_base
src/gz reboot_packages
2.Setting SD Card As a expanding storage ( I use 2GB mini SDcard , Because out of space error)
opkg update
opkg install fdisk e2fsprogs block-mount
after install
umount /dev/mmcblk0p1
mkfs.ext4 /dev/mmcblk0p1
umount /dev/mmcblk0p1
mkdir /mnt/SD
mount /dev/mmcblk0p1 /mnt/SD
(will get some error like : can’t umount just ignore it)
tar -C /overlay -cvf - . | tar -C /mnt/SD/ -xf -
umount /mnt/SD
block detect > /etc/config/fstab
Auto Load on system boot
vi /etc/config/fstab
change option target '/mnt/mmcblk0p1' to option target '/overlay'
and option enabled '0' to option enabled ‘1'
reboot
after reboot you can verify if you /overlay is mounted properly by running df
mkdir /overlay/tmp
rm -rf /overlay/tmp/*
cp -a /tmp/* /overlay/tmp/
umount /tmp
[ $? -ne 0 ] && {
umount -l /tmp
}
mount /overlay/tmp/ /tmp
after reboot expand /tmp folder on the Omega , will get some error like : can’t umount just ignore it)
3.Install C++ Lib & Python
opkg update
opkg install gcc make
opkg install python python-pip unzip
opkg install python-dev --force-overwrite
4.Setting Swap memory (Because When install will get out of memory errors)
https://docs.onion.io/omega2-docs/extending-omega-memory.html
First insert your usbdisk
opkg install swap-utils
after install create swapfile on usb
dd if=/dev/zero of=/tmp/mounts/USB-A1/swap.page bs=1M count=512
Need Waiting a while
mkswap /tmp/mounts/USB-A1/swap.page
swapon /tmp/mounts/USB-A1/swap.page
Use free to check if success get swap
5. Install Octoprint
pip install --upgrade setuptools
show some information to upgrade pip
pip install --upgrade pip
pip install --upgrade setuptools
Download octoprint & install
You can get all version here
https://github.com/foosel/OctoPrint/releases
Prepare Install
cd /root
wget https://github.com/foosel/OctoPrint/archive/1.3.9.zip
unzip 1.3.9.zip
cd OctoPrint-1.3.9
ln -s /usr/bin/gcc /usr/bin/ccache_cc
Start Install
pip install -r requirements.txt
Some Unicode Fixed / User Role Fixed
sed -i 's/Häußge/H\./g' /root/OctoPrint-1.3.9/src/octoprint/util/comm.py
sed -i 's/Häußge/H\./g' /root/OctoPrint-1.3.9/src/octoprint/util/virtual.py
sed -i 's/Häußge/H\./g' /root/OctoPrint-1.3.9/src/octoprint/plugins/virtual_printer/virtual.py
sed -i 's/exit("You should not run OctoPrint as root!")/pass/g' /root/OctoPrint-1.3.9/src/octoprint/server/__init__.py
If has no error.
Congratulation !
Almost Success!
6.Server Start
octoprint serve --iknowwhatimdoing &
Need Waiting Server to Start / console will show some infor & some warning information / Just Ignore
Use browser to connect
http://omega-[your id].local:5000
If connect Ok.
Now You can remove usb disk and connect to 3d printer.
Success!!
Print the case
https://www.thingiverse.com/thing:2068124!
Sometimes Factory Reset Clean All to Install Will Help , if you get some stange error
https://docs.onion.io/omega2-docs/factory-reset.html
THANKS ALL