Search found 42 matches
- Thu Nov 12, 2020 6:57 am
- Forum: Advanced users
- Topic: rsync-backup of RPi4 not working. Mouse/keyb dead
- Replies: 0
- Views: 95
rsync-backup of RPi4 not working. Mouse/keyb dead
Hi, I tested to make a backup of the whole system (RPI4) with rsync. I put it all on a ext4 USB-stick. Then I took another SD-card with the same(?) partitions and formatted sda2 where the OS was (perhaps wrong name) to ext4 ( I didn't overwrite /BOOT). Then I made a rsync back from the memorystick t...
- Mon Nov 04, 2019 1:40 pm
- Forum: Advanced users
- Topic: RPI4 and sutiable touchscreens
- Replies: 2
- Views: 844
RPI4 and sutiable touchscreens
I have a project that needs a touchscreen on which I will draw some simple graphical buttons and some text and input fields. No advanced graphics and no need of fast updates. Now I need some general information. Size of t.screen should be 7". It cannot be to expensive. The t.screen are going to...
- Sat Jun 30, 2018 5:24 am
- Forum: Raspberry Pi OS
- Topic: Install Timeshift backup? How?
- Replies: 12
- Views: 6336
Re: Install Timeshift backup? How?
I search for a equivalent and found http://rsnapshot.org/. I must test it on a Raspberry Pi.
- Sun May 21, 2017 1:14 pm
- Forum: Troubleshooting
- Topic: udev doesn't run script
- Replies: 3
- Views: 630
Re: udev doesn't run script
Yes. It was a timeout. Very good! Thanx! Funny...
BTW, a normal 'cd ~/xxx' must be '/home/[username]/xxx" sometimes?
The script had cd ~/sw but I needed to replace it with /home/myname/sw to get it work.
BTW, a normal 'cd ~/xxx' must be '/home/[username]/xxx" sometimes?
The script had cd ~/sw but I needed to replace it with /home/myname/sw to get it work.
- Fri May 19, 2017 8:00 pm
- Forum: Troubleshooting
- Topic: udev doesn't run script
- Replies: 3
- Views: 630
Re: udev doesn't run script
I newer thought of that. I will test with a more simple script.
- Fri May 19, 2017 11:29 am
- Forum: Troubleshooting
- Topic: udev doesn't run script
- Replies: 3
- Views: 630
udev doesn't run script
Hello, I had made a rule 35_run_a_script.rules in my RPi3. ACTION=="add", KERNEL=="sd?", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", RUN+="/home/myhome/my_script" When I put in a USB-memorystick it should run the script. But it doesn't. (It worked very n...
- Wed May 10, 2017 4:43 am
- Forum: Advanced users
- Topic: Trouble; Script calling another script
- Replies: 9
- Views: 1411
Re: Trouble; Script calling another script
In the "real" case, no extra handles exists besides the one that are created by the script that makes the last call. Same script unmount it. That's my plan. 

- Tue May 09, 2017 5:38 pm
- Forum: Advanced users
- Topic: Trouble; Script calling another script
- Replies: 9
- Views: 1411
Re: Trouble; Script calling another script
I have gathered the code now. In the same time I found the problem. I'm using Linux Mint and I saw that the USB wasn't mounted correct sometimes. The label came up in the tree to the left but the Flash-drive didn't get mounted. Therefor the script couldn't reach the script at the flash-drive. If I h...
- Tue May 09, 2017 12:00 pm
- Forum: Advanced users
- Topic: Trouble; Script calling another script
- Replies: 9
- Views: 1411
Re: Trouble; Script calling another script
I'll get back with complete documentation later.
Why I didn't provide everything is because I hadn't the actual computer here and I thought the problem was depending on some obvious stuff that I missed.
Why I didn't provide everything is because I hadn't the actual computer here and I thought the problem was depending on some obvious stuff that I missed.
- Tue May 09, 2017 11:28 am
- Forum: Advanced users
- Topic: Trouble; Script calling another script
- Replies: 9
- Views: 1411
Re: Trouble; Script calling another script
Sorry again. My bad english. It is two minutes between each call.
- Tue May 09, 2017 11:16 am
- Forum: Advanced users
- Topic: Trouble; Script calling another script
- Replies: 9
- Views: 1411
Re: Trouble; Script calling another script
I missed the 'R'. Sorry. The script "usbscript.sh" only creates the small file I speaking about. That works fine. Then, the script that cron executes twice a minute are simple so I didn't wrote it down. #1) Check if small file exist, #2) remove small file, #3) Call the USB-script. 1) &...
- Tue May 09, 2017 5:15 am
- Forum: Advanced users
- Topic: Trouble; Script calling another script
- Replies: 9
- Views: 1411
Trouble; Script calling another script
Hello, I trying to update a bunch of PHP and daemons automatically on the RPi when a specific USB memorystick are attached to the RPi. When I put in the USB-stick with the correct Label the "USB-detectscript" creating a small file. A cron-script detect the small file and removes it and the...
- Wed Dec 14, 2016 7:38 am
- Forum: C/C++
- Topic: Any "fopen for write" with owner-params?
- Replies: 4
- Views: 1559
Re: Any "fopen for write" with owner-params?
Great. That's a very nice way of setting the ownership and the p-bits as I want them.
- Thu Dec 08, 2016 8:30 pm
- Forum: Raspberry Pi OS
- Topic: UTC-time in RPI? Good method?
- Replies: 3
- Views: 1183
Re: UTC-time in RPI? Good method?
I had a brain-meltdown this morning. Of course the system uses UTC. Stupid of me. Sometimes I have bad luck when I'm thinking. 

- Wed Dec 07, 2016 11:58 am
- Forum: Advanced users
- Topic: Systembackup with rsync
- Replies: 4
- Views: 1512
Re: Systembackup with rsync
THAT is a solution I like! Thanks. I look into it at once.
- Wed Dec 07, 2016 11:57 am
- Forum: C/C++
- Topic: Any "fopen for write" with owner-params?
- Replies: 4
- Views: 1559
Re: Any "fopen for write" with owner-params?
The program running as root (and creates files with root:root) and I'm a USER. The PHP/Apache2 have also problems to deal with those files. I think I use the chmod/chown() already. As I remember, the files needed to be opened before calling chmod/chown? Of course, I can do this when the files are op...
- Wed Dec 07, 2016 11:28 am
- Forum: C/C++
- Topic: Any "fopen for write" with owner-params?
- Replies: 4
- Views: 1559
Any "fopen for write" with owner-params?
I have a RPI with Raspbian and I develop a project in Ansi-C. I use fopen() to write and read files. Are there any function where I can set the ownership and/or permissions in the same time I write the file? Like a fopen with more params....
- Wed Dec 07, 2016 11:16 am
- Forum: Advanced users
- Topic: Systembackup with rsync
- Replies: 4
- Views: 1512
Re: Systembackup with rsync
Ok. Yes, I have Raspbian.
Now, I take out the SD-card and manually copy this with a windows program. The copy are 16Gig big. :-/
It's a rather slow process but I don't have had time to look for something else.
Now, I take out the SD-card and manually copy this with a windows program. The copy are 16Gig big. :-/
It's a rather slow process but I don't have had time to look for something else.
- Wed Dec 07, 2016 5:44 am
- Forum: Advanced users
- Topic: Systembackup with rsync
- Replies: 4
- Views: 1512
Systembackup with rsync
Before I make big changes in the RPI-system I want to take a backup of the system. Working-dirs I already have backups on. Can anyone tell me exactly how the rsync command should look like when I take a backup? A restore? It is not important for me to use rsync. I need the function - The Backup. I c...
- Wed Dec 07, 2016 5:35 am
- Forum: Raspberry Pi OS
- Topic: UTC-time in RPI? Good method?
- Replies: 3
- Views: 1183
UTC-time in RPI? Good method?
Question about using UTC-time in the RPI Facts: User working with the RPI-system through a homepage hosted in the Apache2 webserver. Is it a good method to use UTC-time in a RPI and in the external RTC? I think like this; When the User sets the time the users local-time offset are added on the UTC-t...
- Thu Nov 24, 2016 8:55 pm
- Forum: Other programming languages
- Topic: Howto, Passwordprotect a site in Apache2
- Replies: 1
- Views: 854
Howto, Passwordprotect a site in Apache2
I have an RPI3 with an Apache2 webserver installed (with PHP5). I have made a site written in HTML/PHP-script. I connect to this site through a router with port forwarding. I use the browser in a laptop or in the phone. Now I want to passwordprotect this site. Have you any idea how to do it? Later o...
- Thu Nov 24, 2016 7:39 pm
- Forum: Networking and servers
- Topic: Apache2 on Jessie
- Replies: 2
- Views: 829
Re: Apache2 on Jessie
You trying to reach the RPi from the outside through some router with Port Forwarding?
- Mon Nov 21, 2016 9:41 pm
- Forum: C/C++
- Topic: RTC in RPI. Best manage time?
- Replies: 4
- Views: 1646
Re: RTC in RPI. Best manage time?
Thank. Much to read and understand. I found util-linux/sys-utils/hwclock-rtc.c. I recognize some parts in the code...I will get into it tomorrow. It's rather much work to get a simple clock to work... 

- Mon Nov 21, 2016 8:54 pm
- Forum: C/C++
- Topic: RTC in RPI. Best manage time?
- Replies: 4
- Views: 1646
RTC in RPI. Best manage time?
I want a systemclock in the RPI3 to be based on a RTC with battery backup. Therefore, I have an external RTC (mcp7940) connected with i2c. I program a daemon in C doing some stuff. I use the write (), read (), open () to handle communications with the RTC. I got cold feet (Swedish saying). I think a...
- Fri Nov 18, 2016 2:29 pm
- Forum: Raspberry Pi OS
- Topic: Install Timeshift backup? How?
- Replies: 12
- Views: 6336
Re: Install Timeshift backup? How?
Ok. Thanx. I suppose the system are more or less (seen from root) everything except the Home-och tmp-folder?