1. This is linux, the separator is /jondallimore wrote: I presume the easiest way is to create a file in etc\init.d
Is it as easy as just putting the commands below into a file?
./utils/launch.sh --vnc 127.0.0.1:5901 --listen 80
Computers are *stupid*. Being picky matters.jondallimore wrote:If all you have to say is to be picky about things, then dont bother replying.
If anyone has anything useful to say, please feel free.
There are multiple ways to run things at boot. Init.d is one. If you don't need X running, then it can be done with a cron entry "@reboot". If you need X to be up (and you are running with the autologin on), then put it at the end of ~/.config/lxsession/LXDE-pi/autostart .jondallimore wrote:I havnt got things 'misconfigured'. Ive followed the documentation and everything works.
All I'm asking is how to run a command on boot.
If you know the answer, then great. If not, dont reply. Its that simple.
Why get so defensive when someone points out that the thing that you wrote WON'T WORK the way you wrote it. It is not "moaning", "making assumptions" or "getting uppity", it is responding to precisely what you wrote.jondallimore wrote:not people getting uppity because I put a / instead of a \ in a forum post.
Anyone who moans about the wrong / in a post - I consider THAT to be impolite.
Code: Select all
[Unit] Description= My funky program After=network.target [Service] ExecStart=/home/pi/MyFunky/MyFunky WorkingDirectory=/home/pi/MyFunky StandardOutput=syslog StandardError=syslog SyslogIdentifier=MyFunky User=root Group=root Restart=always [Install] WantedBy=multi-user.target
SonOfAMotherlessGoat, you and I may share similar opinions of the OP, but his defensive self-centered attitude is not representative of the majority of the people on this forum. I have enjoyed and benefited from comments I've seen you post on the forums here. Please don't leave on his behalf.SonOfAMotherlessGoat wrote:So long and thanks for all the fish.
Many people here are "detail oriented" because that's what it takes to get a computer to do what you want. In my experience, it is a common trait among Engineers, and especially that subset of Engineers that are Programmers. Complaining that people in a computer support forum "pick on little things" is complaining about their most obvious and useful characteristic. Fail to get the "little things" right and it doesn't matter how good the grand sweep of your plans are right, they still won't work.jondallimore wrote: I dont like people who pick up on little things whilst ignoring the actual problem, and I said so.
This is a trend I've noticed for a while now, many of the 'regulars' are gone. Perhaps it's time for us old timers (in terms of Pi ownership and use) to give way to the new generation?SonOfAMotherlessGoat wrote:I have been a member of this forum and have volunteered my time and efforts to help others with their problems. You have successfully helped make up my mind that this is no longer a place for me.
So long and thanks for all the fish.