Read the statement by Michael Teeuw here.
config.js
-
@geo sorry, don’t understand the question…
what editor are you using on the config.js file?
-
hi,in this config i am unable to add a line under position in compliments to insert config.
If you are using the nano editor, you can go to the end of the line above where you want to insert the new line and then press
enter
. That will give you a new line to play with.i can do this in config.sample and config.file which is a copy.
can anyone explain this please.For starters, the name of the file is
config.js
. It has to be named exactly that in order for the system to work. So I would recommend that you copy yourconfig.sample
toconfig.js
by enteringcp config.sample config.js
and then start your mirror process.Once you have a working config file, we can work on modifying it.
-
@bhepler he has a working system… now wants to add more
-
@bhepler hi thx for that
however when i try to copy using cp config.sample config.js i get the message no such file or directory -
@geo its
cp config.sample.js config.js
warning, its will overwrite the file on the right side of that command…
it will NOT warn youu need to learn the linux commands
so u can find files, copy , edit, createdo a search on youtube “learn basic linux commands”
-
@sdetweil i tried yours and that was the message got
-
-
Open a new terminal
-
type
cd MagicMirror/config
-
Press Enter key
-
type
cp config.sample.js config.js
-
Press Enter key
-
type
cd ..
-
Press Enter key
-
type
npm start
-
Press Enter key
-
Say thank you. :-)
-
-
@sdetweil hi looked looked a linux only recognised 4 commands.,but unless you understand code and know how to write it and what does then it means nothing to someone like me and thats why i have to ask for help.i have loaded another sd card withmm to practice but once the dreaded create a config appears i’m back to square one and have to delete mm and start again,ugh.
cheers -
@Mykle1 as they say in yorkshire " Ta very much"
-
@geo unlike windows, linux is case sensitive on filenames and command names…
here are some linux commands compared to windows
ls = dir , LS is nothing
cd = cd
rm = delete
cp = copy
mv = movealmost every command has help built in , using the --help parameter
cp --help
you can also ‘read the manual’ for commands by using the man command
man cp (to get out its the letter q)in graphical mode, gedit is a pretty decent editor
in text mode (or over ssh) i hate vi, so I use nano… but it doesn’t support mouse actions like a graphical app.