Search found 94 matches
- Tue Aug 11, 2015 5:34 am
- Forum: Advanced users
- Topic: SD data seems to be corrupted after a while
- Replies: 3
- Views: 921
Re: SD data seems to be corrupted after a while
...The app is tested and error free. error free?! is your app a oneliner?! :P ;) Well, :D I mean I'm sure this abnormal behavior is not due to software errors since I 've seen it working for a while. ...By the way, our app is run when the raspbian os starts automatically every time. when it starts ...
- Sun Aug 09, 2015 12:17 pm
- Forum: Advanced users
- Topic: SD data seems to be corrupted after a while
- Replies: 3
- Views: 921
SD data seems to be corrupted after a while
So we are running an app on the pi to communicate with Psoc and control a device that we have made. The app is tested and error free. We can keep using of it for a while (say 2 weeks) with the device working fine. But after some time the device is strangely malfunctioning. Some random movement comma...
- Tue May 26, 2015 11:19 am
- Forum: Advanced users
- Topic: how to reduce image size
- Replies: 5
- Views: 12830
how to reduce image size
I usually use win32diskimager to read an 8gb sd card images. Even though I have enough free space on card my image sizes are very big. How can I reduce the image size in a way that it is easily written on another card of the same size?
- Mon Apr 27, 2015 3:46 pm
- Forum: Advanced users
- Topic: How to produce sound with C++ on Raspbian?
- Replies: 11
- Views: 5054
Re: How to produce sound with C++ on Raspbian?
I know c++ bro. But I just didn't want to add other libraries and packages and etc.PeterO wrote:I assumed you knew C++ but it seems you don'trasp87 wrote: Is there a simpler way with c++ built-in libraries without a need to install other stuff?![]()
PeterO
- Mon Apr 27, 2015 3:33 pm
- Forum: Advanced users
- Topic: How to produce sound with C++ on Raspbian?
- Replies: 11
- Views: 5054
Re: How to produce sound with C++ on Raspbian?
Wow! This job is beautiful. Thank you for the video!ghans wrote:Here is some creative application of this technique :
https://www.youtube.com/watch?v=GtQdIYUtAHg
ghans
- Sun Apr 26, 2015 10:22 am
- Forum: Advanced users
- Topic: How to produce sound with C++ on Raspbian?
- Replies: 11
- Views: 5054
Re: How to produce sound with C++ on Raspbian?
One way is to use the ALSA API. http://www.alsa-project.org/alsa-doc/alsa-lib/index.html A simple example http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_min_8c-example.html A comprehensive example http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_8c-example.html PeterO Is there a...
- Sun Apr 26, 2015 9:40 am
- Forum: Advanced users
- Topic: How to produce sound with C++ on Raspbian?
- Replies: 11
- Views: 5054
How to produce sound with C++ on Raspbian?
How can I produce beep sound with c++ code on Raspbian os (and how can I produce other sounds)?
- Tue Mar 17, 2015 12:13 pm
- Forum: Advanced users
- Topic: Can't write sd card image to another sd of the same typr
- Replies: 5
- Views: 903
Re: Can't write sd card image to another sd of the same typr
I agree with your point that copying or rsyncing the files is the best overall solution (though not that newbie-accessible). Are you saying that, instead of reading/writing the image, if I open up my card on a linux system and just copy all of it's contents and paste them into another card, I will ...
- Tue Mar 17, 2015 11:30 am
- Forum: Advanced users
- Topic: Can't write sd card image to another sd of the same typr
- Replies: 5
- Views: 903
Can't write sd card image to another sd of the same typr
I have an image of a silicon power sdhc card (class4 - 8GB) with a size of 7.48 GBs. Now when I try to write that image to another fresh card of the exact same type, I don't have enough space. It shows me 7.20 GB free space. Where is this space wasted?
- Sat Jan 03, 2015 7:45 am
- Forum: Advanced users
- Topic: How to build a local website on pi
- Replies: 8
- Views: 2234
Re: How to build a local website on pi
Happy new year! And thank you everybody for your help.MalSoft wrote: Best of luck and a Happy New Year
- Wed Dec 31, 2014 10:43 am
- Forum: Advanced users
- Topic: How to build a local website on pi
- Replies: 8
- Views: 2234
Re: How to build a local website on pi
OK, now that I've installed apache, how can I access files in other folders of filesystem (for example what URL I need to access a file on /media/usb0)?DougieLawson wrote:sudo apt-get install apache2 mysql-server python-mysql libapache2-php
Should get you a LAMP stack running on your RPi.
- Mon Dec 29, 2014 11:50 am
- Forum: Advanced users
- Topic: How to build a local website on pi
- Replies: 8
- Views: 2234
How to build a local website on pi
My pi has got a static ip address. I'm trying to build some local website on it that is accessible by this ip for authorized users only in the local network. This site is going to get some data from files in pi and display them to the user and he might decide to modify this data. What is the easiest...
- Tue Dec 09, 2014 11:47 am
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
That is not because of the setgid. It is happening because the gpio library uses direct register access to the hardware, so it needs root privilege to open /dev/mem. You can make the executable setuid root and setgid: sudo chown root:groupname app-path sudo chmod u+s,g+s app-path What do these comm...
- Tue Dec 09, 2014 10:14 am
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
No you need to create a new group or use an existing one that doesn't have the current user as a member. So you need to replace groupname with the name of the group you are going to use and replace app-path with the path to the application. However, setting the user or the group of an executable on...
- Sun Dec 07, 2014 1:05 pm
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
Sure!ghans wrote:You are replacing "groupname" etc. wih YOUR group , aren't you ?
If that still doesn't work , try chgrp instead.
ghans

- Sun Dec 07, 2014 12:54 pm
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
No you need to create a new group or use an existing one that doesn't have the current user as a member. So you need to replace groupname with the name of the group you are going to use and replace app-path with the path to the application. As I mentioned above, I've created a group (say groupname ...
- Sun Dec 07, 2014 11:21 am
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
The problem with encrypting is that although someone may be unable to understand the file, he can modify it and ruin stored data.aTao wrote:Or you could encrypt the data.
- Sun Dec 07, 2014 9:19 am
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
chown groupname app-path says "invalid user". Do I have to create another user that belongs to newly created group and then use chown?joan wrote:Use chown on the executable.
- Sun Dec 07, 2014 8:31 am
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
[quote="joan"Assign the app to the group[/quote]
I created a group for my app. How can I assign an app to a group now?
I created a group for my app. How can I assign an app to a group now?
- Sat Dec 06, 2014 7:52 am
- Forum: Advanced users
- Topic: connecting to a flash memory via local network
- Replies: 4
- Views: 1017
Re: connecting to a flash memory via local network
Add /media/usb0 as a CIFS share in /etc/smb.conf. [media] path = /media/usb0 read only = no create mask = 0644 Then you should be able to connect to \\pi.local\media on your Windows machines. Yes! This works when editing /etc/samba/smb.conf! Thank you! I have another question about this config file...
- Tue Dec 02, 2014 12:57 pm
- Forum: Advanced users
- Topic: connecting to a flash memory via local network
- Replies: 4
- Views: 1017
connecting to a flash memory via local network
I have installed usbmount. Whenever I insert a flash memory to usb port, it is accessible from /media/usb0. I have also installed samba. Now how can I access this flash from windows with a network drive (like I do for other shared folders or home directories of pi )?
- Mon Dec 01, 2014 11:14 am
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Re: Restricting file access to an app
Any ideas?
- Wed Nov 26, 2014 7:02 am
- Forum: C/C++
- Topic: Restricting file access to an app
- Replies: 23
- Views: 3440
Restricting file access to an app
I'm running a c++ app on a Raspbian system. Is there a way to make a txt file accessible only by this app? I mean even the user that the app is run by can't edit the file manually by txt editor and only the app itself can read/write in it.
- Mon Nov 17, 2014 11:24 am
- Forum: Advanced users
- Topic: Where to store an app password
- Replies: 5
- Views: 1104
Re: Where to store an app password
Actually I'm planning to send a rocket!ghans wrote:I don't know what you are planning to do).


- Mon Nov 17, 2014 10:16 am
- Forum: Advanced users
- Topic: Where to store an app password
- Replies: 5
- Views: 1104
Re: Where to store an app password
Is there a reason why you can't hash the password with PBKDF2 or scrypt and store/compare to the hash instead ? That way , no plaintext password exists which could be leaked. Secondly , an attacker would have to use brute force and that would be extremely slow / extremely expensive for him. ghans U...