Low-cost single-board computer the size of a credit card. Also check the Raspberry Pi SE: http://raspberrypi.stackexchange.com/

learn more… | top users | synonyms

2
votes
1answer
81 views

Can I apply `tmux` to a bash script?

Is it possible for me to use tmux to SSH into a Raspberry Pi, run a Bash script, and then leave the session (from my laptop), while the Raspberry Pi continues to run the script?
0
votes
2answers
84 views

Command to restore filesystem to state after installation of the OS

How can I wipe all the changes to the filesystem since installing the OS? It's not that I want to destroy the files because they contain sensitive data or anything like that; I just want to start over ...
1
vote
1answer
2k views

Copy MBR and boot partition to a smaller disk

I'm using a 32GB SD card for my raspberry pi. I have successfully transferred the operating system (Archlinux ARM) to a usb harddrive. Which means that I only need the boot partition on the SD card. ...
1
vote
0answers
103 views

Mount partition with truecrypt using the commandline

I'm trying to mount a encrypted HDD with truecrypt, but I cann't find the device. Where can I finde my HDD and what is the command to mount it in truecrypt? I'm using Raspbian on Raspberypi.
1
vote
1answer
119 views

Program acting differently depending on user

I am trying to control an RC transmitter from a PHP site. The command works fine as user "xbian" in the command line: sudo /home/xbian/433Utils/RPi_utils/codesend 34832404 for example, and it works ...
0
votes
0answers
26 views

automount usb drive [duplicate]

I have a RaspberryPi with Raspbian (no GUI, only terminal). I want to use it as a music player (I will install a music daemon with web interface). Currently, when want to mount an external usb drive, ...
2
votes
2answers
992 views

Using sudoers to allow php to run command

I am trying to get my php page to run this command: shell_exec("sudo /home/xbian/433Utils/RPi_utils/codesend {$num}"); So I added this entry to my sudoers file with visudo: www-data ALL=NOPASSWD: ...
0
votes
0answers
142 views

RaspberryPi GPIO FreeBSD assignment

First my Assignment: I'm a beginner with BSD and low level peripherals like GPIO etc., and I need to toggle Raspberry GPIO Pins from a C programme on BSD. I am Using this BSD Image i took from here: ...
0
votes
0answers
49 views

Laptop wifi connectivity dependent on other devices being connected (RaspPi Access Point)

I've been trying to setup a Raspberry Pi as a WiFi router using hostapd, yet have encountered a strange issue when trying to connect: Laptop (Macbook Pro 2009) finds WiFi network, yet fails to ...
1
vote
4answers
425 views

Why does “sudo ./foo” return “./foo Command not found”?

I'm having trouble with my new Raspberry Pi. Any time I try to run ./foo, it returns -bash: ./foo: Permission denied But if I try to run sudo ./bar, then it returns sudo: ./bar: command not found ...
4
votes
1answer
265 views

Reset running process when certain ammount of memory is consumed

I'm running a Hydra on Rasppberry PI. There were some problems with the program, but aside from these, there is a hidden memory leak in the program. The source is pretty big and really can't find the ...
1
vote
1answer
383 views

Cross compiling htop libncursesw not found

I'm trying to cross compile htop on an x86 Ubuntu 13.10 machine for Raspberry Pi ARM architecture. I've a crosstool-ng toolchain correctly configured, but when I use the command: ./configure ...
0
votes
1answer
279 views

Giving cron permission to execute command

I'm trying to get a ruby script to run via cron. The cron job looks like this: * * * * * /usr/local/rvm/rubies/ruby-2.0.0-p353/bin/ruby ...
0
votes
1answer
753 views

qemu emulator for raspberry

I am trying to emulate a raspberry pi on ubuntu. I have tried several ways using several tutorials but every time, the emulator logs this: scsi: 0:0:0:0 ABORT operation started scsi: 0:0:0:0 ...
5
votes
1answer
247 views

Secure access to remote SSH tunnel

So I wish to be able to access my Raspberry Pi (which I keep at home behind a firewall) remotely. One option is to use a static IP address, but as a poor student I don't want to fork out for one, and ...
0
votes
1answer
627 views

Can't connect to vsftpd, not even from localhost

I have installed vsftpd on Raspbian by following steps: sudo apt-get install vsftpd I altered a few settings by calling sudo nano /etc/vsftpd.conf Restarted by sudo service vsftpd restart No ...
0
votes
0answers
43 views

When connecting with GNU Screen (patched version) RPi reprompts for password in kind of loop

I'm sorry this is a repost of my question on raspberrypi.stackexchange.com, but I didn't get an answer there, so I thought I could post it here. If not, please suggest some other way to get help. I ...
0
votes
0answers
214 views

Installing mailx on Openelec, Raspberry PI

Well I have searched some of the possibilities to install command line mail clients but there are no easy ways to install. Is this even possible without compiling the mail client ?
2
votes
2answers
48 views

What's the easiest way to create a pre-built “image” of a Debian/Rasbian host?

I'm playing around with my raspberry pi project and have made a number of customizations to my device OS (simple stuff... configuration files... installed packages... etc). I would like to make a ...
0
votes
0answers
874 views

How to set up smtp and send emails?

I'm new to raspberry pi. I installed the raspian OS on it. I want to send emails from it using my gmail account. I want to send from the command line interface and from php scripts. I followed this ...
0
votes
2answers
2k views

Can't connect to WLAN with netctl

I can't connect to a WiFi network. I tried various methods such as wpa_supplicant and wicd. At the moment I'm trying netctl. When I enter the command: systemctl --type=service I see the following ...
0
votes
2answers
444 views

Mainline kernel supported Raspberry Pi competitor? (no GPU needed)

The Raspberry Pi uses its own kernel fork. For a headless server (no GPU needed), is there a device with similar specs, performance-wise, that can use the vanilla mainline kernel from kernel.org?
3
votes
1answer
237 views

Chrony 506 Cannot talk to daemon

I'm having trouble configuring chrony to sync the time between my raspberry pi and a desktop computer in an isolated network. My raspberry pi's chrony.config file looks like this: server master ...
2
votes
1answer
1k views

“No such file or directory” when executing a cross-compiled program on a Raspberry Pi

I recently bought a Raspberry Pi. I already have configured it, and I install a cross compiler for arm on my desktop (amd64). I compiled a simple "hello world" program and then I copy it from my ...
1
vote
1answer
148 views

`cat /dev/ttyACM` loses data when piped through netcat

I'm reading data from /dev/ttyACM0 using cat /dev/ttyACM0 on a Raspberry Pi. The data comes from a device, which sends lines in the form 15.00 1316013 15 where the first number is a value, the ...
1
vote
1answer
684 views

Fail to install node.js on Debian

I'm running Raspbmc which is running a minimal Linux distribution based on Debian. And I would like to install node.js via package manager but I'm fail to install on my system. Which it come with this ...
1
vote
1answer
171 views

ACL defaults: files vs directories

Default ACLs on a directory are inherited by files and subdirectories created under that directory. It seems a common requirement that by default subdirectories should be executable (i.e. cd-able) ...
0
votes
3answers
1k views

Creating directory on an external hard drive via command line (SSH) on Linux

I have tried many approaches to create a directory on my external hard drive. Here is the details when I do fdisk -l What I get: pi@raspberrypi:~$ sudo fdisk -l Disk /dev/mmcblk0: 3965 MB, ...
2
votes
1answer
732 views

Capture raw image from V4L (webcam) device

I'm using a Raspberry pi to monitor a self-service fridge. When the door opens, a shell script is being executed to capture pictures until the door closes again. The problem, however, is the speed of ...
1
vote
1answer
92 views

What are the ramifications of recursively chown'ing the directories on an external drive that currently has 501:dialout or root:root permissions?

I have a Raspberry Pi that's running a Raspbmc distribution and I've noticed that a lot of the directories are either owned by the user 501 and the group dialout or both the user and group root. It's ...
2
votes
1answer
154 views

No default output device -9996: playing sound through Django

I'm facing a problem with my Raspberry Pi while playing a sound through a web page. The page is built in with Django and is quite simple: you push on a button and a sound is played (a Python script is ...
1
vote
2answers
665 views

How to write to SD card with dd command?

Having some trouble with writing to my SD card, burning NOOBS (New Out Of Box Software) software to my SD card for Raspberry Pi. Attempted to use the following command as root: # dd bs=1M ...
2
votes
1answer
347 views

Use the raspberry pi as a source of entropy for /dev/random

I'm trying to see if I can use my raspberry pi's hardware RNG as a source of entropy for /dev/random. Mostly to see if I can get it to work and find yet another use for this nifty little device. Of ...
3
votes
1answer
5k views

Using DNSMasq for Local Hostname Resolution

I'm working on setting up a home intranet for me and my roommates. My idea is that we'll be able to store things like past utility bills in a place that's more accessible than a drawer in the kitchen ...
1
vote
2answers
6k views

I always need to ifdown/ifup wlan0 after reboot

I'm trying to create an ad-hoc wifi made of 5 computers (one windows pc and 4 raspberry pi loaded with a raspbian) the raspberry pi will talk through mqtt, but tha'ts not the point. The problem I have ...
5
votes
3answers
3k views

How can I tell if my wifi dongle has access-point capabilities?

I have a Realtek 8191SU USB wifi dongle for use on my Raspberry Pi. I'm trying to set up a wifi access point using this tutorial. However, I'm running into a few errors, and I suspect it might be ...
3
votes
0answers
514 views

How can I connect to my RPi NFS server using version 4?

I've set my Raspberry Pi up as an NFS server, but I cannot connect to it with NFS version 4. However, version 3 works. From my Kubuntu 13.04 client: $ sudo mount -t nfs -o proto=tcp,port=2049,vers=4 ...
0
votes
2answers
4k views

What is wrong with my cron job?

I'm new to linux, and was told I could use a feature called cron job to run a python script I made execute every 10 minutes. Problem is the the python script isn't running. There doesn't seem to be a ...
1
vote
0answers
836 views

Bittorrent Sync Autostart as a Service

I'm running a raspberry pi with the latest raspbian (debian) on it. I've installed btsync. Now I want to run Bittorrent Sync, when the system boots, not only when somebody logs in. Do I have to run ...
1
vote
2answers
960 views

$PATH not modified inside LXDE on Raspbian

I have a bin directory in home/pi. This is added to my $PATH when I login (by .profile), but when I go into LXDE and use LXTerminal my bin directory is no longer added to $PATH.
0
votes
0answers
452 views

Permission Denied (PublicKey,keyboard-interactive) linux raspberry pi

I know there are a ton of questions on this. I have read almost all of them. I have also googled this problem to no avail I attempted to git clone git@git.assembla.com:myhubname.git and I get ...
1
vote
2answers
371 views

omxplayer on different screen

I'd like to have two instnces of omxplayer and switch between them. I'm using raspian on raspberry pi. I've tried opening one instance in one screen, and then press alt+ctrl+f2 to switch to the ...
3
votes
0answers
915 views

How do I reset a USB device using a script?

I have a USB GSM modem that does not always work property (Huawei E367u-2) Sometimes it gets reset (USB device disconnect/reconnect in logs) and when it comes back up, it has different ttyUSB numbers. ...
0
votes
2answers
93 views

getting a gui program to start on boot

I have a C program I wrote for debian on the raspberry pi that asks the user to enter a number, 1-4 which it then stores in a configuration file. This only happens if the configuration file is ...
1
vote
1answer
1k views

Pimp rsyslogd to have less i/o (cron, pam,…) and less logging

On my raspberry I really don't need crons and pam logging and I want to have less i/o to make the SD card life a little longer.. I have already removed cron with the second line cron.none, I'm ...
0
votes
1answer
879 views

LIRC does not start after reboot

If I compile LIRC with this patched lirc followed by install using make install it works fine and launches without any error. However, after a reboot the same command fails with following error : ...
2
votes
1answer
159 views

Controlling process priorities

I have recently started trying to control stepper motors with the Raspberry Pi. I have succeeded in getting motion. The problem I am having though is that it seems the stepper motor is missing steps ...
7
votes
3answers
1k views

Optimizing a `while` loop

I have created a mini script to reboot my Raspberry Pi upon the push of a button. The script simply uses wiringPi (gpio command) to set pin 0 (pin 17 in Raspberry Pi standard numbering order) to ...
2
votes
2answers
4k views

Run a sudo (or startup) python script from cron on a Raspberry Pi?

I'm helping out with an art project (http://stargateeggbeater.com/ for those interested) built on Raspberry Pi. The RPi controls an addressable LED strip through the GPIO, using the spidev device per ...
3
votes
2answers
268 views

Mount harddrive under different name?

When I plug a external HDD into my Rasberry Pi (running Raspbian) it automatically mounts as /media/2ad496774-3eb8-47bb-2bf5e-788f8eb89e54 where folder underneath it are then accessible by going ...