Closed leeaustinadams closed 1 year ago
Steps to install on Ubuntu logged in as Ubuntu user on Ubuntu Server 21.10 arm / rpi hardware
sudo apt install make && sudo apt install gcc -y
git clone https://github.com/UCTRONICS/U6143_ssd1306.git
cd /home/ubuntu/U6143_ssd1306/C
make
sudo ./display
cd
sudo nano /lib/systemd/system/rc-local.service
[Install] WantedBy=multi-user.target Alias=rc-local.service
sudo nano /etc/rc.local
cd /home/ubuntu/U6143_ssd1306/C sudo make clean sudo make sudo ./display &
sudo chmod +x /etc/rc.local
sudo ln -s /lib/systemd/system/rc.local.service /etc/systemd/system/
sudo reboot
sudo systemctl status rc-local.service
Steps to install on Ubuntu logged in as Ubuntu user on Ubuntu Server 21.10 arm / rpi hardware
Environment Configuration
sudo apt install make && sudo apt install gcc -y
Download library from git
git clone https://github.com/UCTRONICS/U6143_ssd1306.git
Compile the source code
cd /home/ubuntu/U6143_ssd1306/C
make
run from above folder to test display works
sudo ./display
ctrl+c to stop demo
set rc local file in ubuntu
cd
sudo nano /lib/systemd/system/rc-local.service
copy to file at the end then ctrl+x then y then enter to save
[Install] WantedBy=multi-user.target Alias=rc-local.service
create the rc.local file in the etc folder
sudo nano /etc/rc.local
copy to file at the end then ctrl+x then y then enter to save
!/bin/sh
cd /home/ubuntu/U6143_ssd1306/C sudo make clean sudo make sudo ./display &
add permissions for rc-local
sudo chmod +x /etc/rc.local
create a soft link in the /etc/systemd/system directory
sudo ln -s /lib/systemd/system/rc.local.service /etc/systemd/system/
reboot the system to take effect
sudo reboot
test that rc-local service is running
sudo systemctl status rc-local.service