[SOLVED][Run at startup] inputattach at Mint 19 startup

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
carnacky79

[SOLVED][Run at startup] inputattach at Mint 19 startup

Post by carnacky79 »

Hi everyone,
I'm using Mint 19 Cinnamon and I want to run '/usr/bin/inputattach --daemon --always -elo /dev/ttyS4' but in the guide of the touchscreen they tell me to use rc.local file that doesn't exist on this version of Mint.
How do I can make this command run at startup? I've tried with "startup application", adding the following command, but nothing happens.
Thanks for your help,
bye
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
chrisuk

Re: [RUN AT STARTUP] inputattach at Mint 19 startup

Post by chrisuk »

I'm not using anything based on Ubuntu ATM, but rc.local should be in /etc - systemd will still use it. If it's not in /etc, you can just create it... this should do the job:

Code: Select all

printf '%s\n' '#!/bin/bash' 'exit 0' | sudo tee -a /etc/rc.local
sudo chmod +x /etc/rc.local
carnacky79

Re: [Run at startup] inputattach at Mint 19 startup

Post by carnacky79 »

Thanks a lot, you were very kind and useful
:)
Locked

Return to “Beginner Questions”