Skip to main content

Posts

Showing posts from 2020

OrangePi OctoPrint Installation

This passage is based on YouTube Installing Armbian and OctoPrint on an Orange Pi , https://www.youtube.com/watch?v=LzLb_FnXu70. Update and upgrade your OS 1. sudo apt-get update 2. sudo apt-get upgrade Create your user and give it sudo permissions 3. sudo adduser octoprint 4. sudo usermod -a -G tty octoprint 5. sudo usermod -a -G dialout octoprint 6. sudo adduser octoprint sudo 7. sudo visudo Scroll to the bottom of the document, and add the line at the bottom octoprint ALL=(ALL) NOPASSWD:ALL Ctrl + O to save, Ctrl + X to exit Remove the password from the octoprint user 8. sudo passwd octoprint -d Install the required support software to make this all work 9. sudo apt-get install git python-pip python-dev python-setuptools psmisc virtualenv * This line cannot fully completed in my Armbian Focal with Linux 5.4.43-sunxi64. * Probably we need to install both Python 2.7 and Python3, try sudo apt-get install python2 sudo apt-get install python3 Switch to the octoprint user and confirm your

When armbian-config works

I wrote several messages about the basic setup of Armbian on OrangePi. All of them were using line commands. Along the self-learning path, someday I found that there is armbian-config command that starts up a menu utility, roughly corresponds to raspi-config utility. However, before this Armbian version (20.02.1, Armbian Stretch for OrangePi Lite 2), I have a tough time dealing with this utility. Until today, I can say armbian-config works now. Therefore, many things can now be done in a menu-driven approach. Because I never lay down any can-opener style startup notes, this is the guide: Download an Armbian software from Armbian website. You will get a 7z zipped file in your downloads directory. Unzip the file. I just use 7zip Unzip Here feature. Use an SD card writer program (like Win32DiskImager) to write the unzipped file into the SD card. Connect OrangePi debug port to TTL-USB device. Connect USB to the computer, and startup PuTTY, open the connected USB COM port, with sp

FTP Server vsftpd

This is a simple installation note for Linux FTP server vsftpd. I only want it to communicate with my PC Filezilla client to upload/download files. No fancy nor serious configuration wanted. 1. Install the software   sudo apt-get install vsftpd  2.  Edit configuration file sudo nano /etc/vsftpd.conf 3. Uncomment/change these lines and save the file local_umask = 022 write_enable = true  4. Start the service sudo systemctl start vsftpd  5. Make it a startup service sudo systemctl enable vsftpd 6. In case you changed some settings sudo systemctl restart vsftpd Use the default username and password. The home directory will be the user's directory. Kevin Lee 19 March 2020 Hong Kong.