Transfer via SSH failed
I wanna know how to use the systemd timer to turn my Jolla phone off at a specific time? I found these information: https://together.jolla.com/question/134721/how-to-schedule-shutdown-of-the-jolla/?sort=votes&page=1
But these infos are from 2016 and the system in the background changed a bit. The systemd folder we can now found in /etc/systemd/user/.
I tried to transfer the file "systemd_shutdown_service.service" via SSH to my phone. In the folder "user" I use the following command: "scp /home/myPC/Schreibtisch/systemd_shutdown_service.service nemo@192.168.178.44:/etc/systemd/user/". After this command I have to fillout the password.
But the following notice says: "/home/myPC/Schreibtisch/systemd_shutdown_service.service: No such file or directory"
What's wrong with it?
It is your local file not being found. Nothing related to the phone.
attah ( 2020-03-11 11:05:00 +0200 )editHave you used autocompletion of files and folders (tab key) when entering the command?
Pohli ( 2020-03-11 12:36:29 +0200 )editThe local file is in the folder which I am using for transfering the data.
I have not used the autocompletion of files and folders.
wmcig ( 2020-03-11 12:43:41 +0200 )edit@wmcig are you sure the file
Maus ( 2020-03-11 13:33:57 +0200 )edit/home/roma/Schreibtisch/systemd_shutdown_service.service
exists? Even if it existed, you most likely are not allowed to place it in/etc/systemd/user
as user nemo, I guess you have to transfer it to/home/nemo
and move it to its final destination asroot
(and finally tellingsystemd
about the newly installed service if you don't want to reboot).@wmcig: So you should use autocompletion in future to avoid mistyping files and folders. Also it makes typing commands much faster and more convenient. And in this case it would exclude a mistyping problem.
Pohli ( 2020-03-11 15:36:39 +0200 )edit