Questions tagged [file]

a resource for storing information (think of it as a counterpart of a paper document). Typically stored on a durable medium, e.g. hard-disk drives or flash memory.

Filter by
Sorted by
Tagged with
1 vote
2 answers
39 views

Can not create a file in bootscript.sh at boot

I am on a Pi Zero 2W running headless with SSH. I modified crontab to run bootscript.sh on reboot and bootscript.sh runs on startup successfully except for the writes to a file. However, if I run ...
user838358's user avatar
-3 votes
1 answer
450 views

How to create a file using command-line interface (CLI) in a Raspberry Pi terminal? [closed]

How can I create an empty file using a command line interface in a Terminal application of a Raspberry Pi instead of using the File Manager?
Tatiana Saltykova's user avatar
-1 votes
2 answers
1k views

UTF-8 support on Raspberry Pi

I want to run a python program that receives the data through serial communication and saves it to a file, but after receiving the data this error shows up. Any idea? (code runs ok in Windows but in ...
Pouya's user avatar
  • 45
1 vote
2 answers
471 views

Is it possible to write/save data/variables in Memory instead of the sdcard to extend the lifetime?

I tried looking for a similar question but had no luck. The goal is to extend the sdcard's lifetime by saving data to RAM instead of the card. The program in question is running every 30mins to n-...
user avatar
0 votes
1 answer
1k views

How to use lxde-pi.rc.xml file correctly?

I try to create keyboard shorcuts by editing files, since there is no GUI for it I have these 3 files: 24.6K /etc/xdg/openbox/lxde-pi-rc.xml modified few months ago 23.6K /etc/xdg/openbox/rc.xml ...
lxderocks's user avatar
0 votes
1 answer
50 views

How to get filename of newest file in directory? [closed]

Is there any way to get full filename of latest file (creation time or modification time) in directory? filename.jpg
clueless's user avatar
0 votes
0 answers
177 views

Raspberry Pi 4 with Ubuntu freezes when dragging file to another directory

I have some files I downloaded onto my desktop but when I try to drag them to another directory in the file manager, the pi freezes and I have to unplug and reboot it. This has happened 3 times ...
VeryBakedPotato's user avatar
-1 votes
1 answer
726 views

Boot folder writing permission

I would like to write file raspbian boot folder via samba file server. But when i try to do it, raspbian doesn't allow me to writing file. How can I solve this problem. I have tried chmod command etc.,...
Omer ENEN's user avatar
0 votes
0 answers
428 views

Cannot open file

I need to open the "retroarch-joypads" folder and open a file inside it. For some reason file manger can't open the folder. Can anyone tell me how to open it? Edit: The command: sudo pcmanfm ...
UNKNOWN's user avatar
  • 79
0 votes
1 answer
168 views

SD Card Resize on 32gb SD Card Raspberry Pi

I have a 32gb SD card in my Raspberry Pi. I'd like to make use of all the space, please can someone tell me how to resize? Disk /dev/mmcblk0: 29.7 GiB, 31914983424 bytes, 62333952 sectors Units: ...
Mark's user avatar
  • 1
0 votes
1 answer
71 views

How can I modify an OS to constantly check for a file being open in a specific program?

As I'm more familiar with python and Java that with any OS, I know the code I have to write but I don't know how it translates (or indeed IF it translates) to any of the PI OS. In python on windows ...
Will's user avatar
  • 1
1 vote
2 answers
340 views

Accessing files on a apache server from USB via PHP

I am trying to create a system where USB on Raspberry Pi will be auto mounted and the files can be accessed via an Apache server running over local hotspot from the same Raspberry Pi through a script ...
pramodcera's user avatar
0 votes
2 answers
3k views

How to extract mutipart rar files?

Hi i tried extracting a multi part rar files using unrar-free but it does not work and i get an error saying "failed" I followed this guide below : Uninstall unrar-free. $ sudo apt-get remove unrar-...
Jono's user avatar
  • 130
1 vote
2 answers
5k views

How to find available space and free space if low [closed]

I need to programmatically be able to see how much space is left on the SD card and if it is low delete some files. I'm not sure how to go about getting the value of the SD card space and then saving ...
Andre Yates's user avatar
1 vote
0 answers
193 views

Connecting to Samba NAS from another Raspberry Pi

I've setup a NAS Samba server for my Uni project, and I'm able to access all of the files from my Windows PC. However, I want to try access the NAS from another Raspberry Pi. I got to 'Go>Network>...
Pulsar's user avatar
  • 11
1 vote
1 answer
106 views

I tried to hard wire power to pi 3 b, and smoked the board... File recovery?

I've been using my raspberry pi for about a year now, with Octoprint for my 3d printer. One of the more recent updates started showing it as under-voltaged. Over the last week, it started to cut out, ...
Keith Drake's user avatar
1 vote
1 answer
625 views

How to recover files?

I was editing a code in raspberry with the nano editor and I accidentally turned off the raspberry and now when I opened the file, there is nothing, any idea of how to recover the code?
Nico Villegas's user avatar
3 votes
3 answers
9k views

View files on a Raspbian SD Card from a Mac?

Recently, my Pi 3 broke, and I had some important files on its Raspbian Stretch SD card. I would like to get these files off the SD card without buying a whole new Pi. Does anyone know a way of doing ...
Joelvanf's user avatar
0 votes
2 answers
2k views

input/output error using scp with external HD

I'm not sure if this forum is most appropriate to ask. However, I'm transferring large batch of files from a external HD via scp, between a raspberry pi and my desktop Looking back, many of the ...
mapema's user avatar
  • 13
0 votes
1 answer
1k views

delete files instead of moving to wastebasket

How to delete files in folders instead of moving to waste basket? When I right click file it only gives option to move to waste basket. Want to do this in GUI and not terminal.
Lightsout's user avatar
  • 419
0 votes
1 answer
71 views

Why is the autostart a directory and not a file in .config on Pi 3b+ [closed]

Unable to open the autostart file to enable RealVNC to auto boot
Grumble's user avatar
2 votes
1 answer
395 views

Monitor directory for regular file creation and alert if the stream of files stops

I have had a Raspberry Pi Zero W controlled, time-lapse camera taking pictures, of a construction project, every 60 seconds for nearly three months and recently it's started failing. I suspect the ...
Hazy's user avatar
  • 21
1 vote
1 answer
241 views

Send encoder data to Mobile app using bluetooth

I have a requirement wherein I need to measure the distance travelled (Real-time) and display it on an app on a tablet present inside that moving vehicle. I have a setup wherein I have connected the ...
Karan Asthana's user avatar
4 votes
4 answers
15k views

Is there a way to compress a backup of the RPi because the backup has empty space?

I did a backup for my RPi (64GB microsd card) and it saved the entire 64GB worth .img file... while theres only ~14GB worth actual data, the image file accounts also for that empty space. Anyone know ...
Mohd Salman's user avatar
1 vote
0 answers
679 views

Motion ffmpeg_open: url_fopen - error opening file (check access rights to target directory)

I am trying to record my motion videos inside the directory /media/pi/camera. This directory has the following permissions: drwxrwxr-x 2 motion motion 4096 Aug 9 20:04 camera I set the same ...
chao's user avatar
  • 111
0 votes
1 answer
57 views

Where are my scripts?

My RPi 3 model B SD card would not load after an attempt to upgrade today, which aborted part way through. I reinstalled a fresh system on a new card and all is well. I loaded the old card in a USB ...
Glenn's user avatar
  • 155
0 votes
1 answer
216 views

jessie PIXEL and file copy

While I can move files using drag / drop in PIXEL, how do I copy a file to a new folder and leave the original in place. With Windows you just hold CTRL down. Doesn't work in PIXEL. Are there '...
user59977's user avatar
0 votes
1 answer
1k views

Why create a link to .so file?

I am following an install procedure and it indicates downloading a .so file and creating a link to it: sudo ln -s $(DynamsoftBarcodeReader)/lib/libDynamsoftBarcodeReader.so /usr/lib/...
gatorback's user avatar
  • 637
1 vote
1 answer
2k views

Share files betweens two raspberry pis

I am hoping to find out how to share files between two Raspberry Pi's. I've used samba before on each individual Raspberry Pi with my Windows computer but this doesn't allow me to share files on my ...
James Brock's user avatar
0 votes
2 answers
683 views

Files edited with nano are corrupted after reboot or shutdown

I came across this problem with my RPi 2 model B many times this last month, and I wanted to ask your opinion about it. The problem occurred with Raspbian Jessie Lite, both the 23/09/2016 version and ...
user avatar
2 votes
2 answers
17k views

How to make a python 3 file executable and pause after running

I want to make a file executable, but I don't know how to do that and have the idle prompt appear afterward. Is the best way to just open idle and then import the file? I'm using python3 on raspbian ...
jath03's user avatar
  • 426
0 votes
1 answer
734 views

Directing mjpeg video to file w/ cvlc

I'm trying to capture full field of view video from my Raspberry Pi camera (by full field-of-view I mean video that uses the full 2592x1944 set of pixels on the image sensor but that is downsampled to ...
gboy's user avatar
  • 111
2 votes
0 answers
212 views

File Transfer Failed : From RaspberryPi3 to My Mobile on Bluetooth

File Transfer Failed : From RaspberryPi3 to My Mobile on Bluetooth I have a Raspberry Pi 3 and the following command complete. $ sudo apt-get install pi-bluetooth $ sudo apt-get install bluetooth ...
user21427's user avatar
  • 131
1 vote
0 answers
115 views

Reading / writing to USB storage on a Pi

I set up my Raspberry Pi about 6 months ago, (October) and everything seemed to be working fine where I could using Tight VNC to remotely access it and download torrents e.t.c. However, eventually ...
BabyPoopSoup's user avatar
2 votes
1 answer
227 views

linux system file writes to flash card, efficiency and flash endurance

I've got a more common question. I come from bare metal microcontroller development - there we usually avoid flash write access for several reasons. one is to avoid damage of the flash memory because ...
twooBeers's user avatar
0 votes
2 answers
695 views

How to locate files for GPSD in Raspbian?

I am trying to find where the program gpsd is saved because I need to edit a file to get my pi and gps to talk. I have been following instructions from http://www.instantsupportsite.com/self-help/...
Jordan Walters's user avatar
0 votes
2 answers
82 views

Sending files (Documents, videos etc.) Raspi to Raspi

I have 2 Raspberry Pi's. I want to transfer files from my first Raspberry Pi to my second Raspberry Pi any guides my masters :)? sorry for the consecutive questions I'm just new to Raspberry Pi. P.S ...
Lorenz Garcia's user avatar
1 vote
1 answer
177 views

OS is hanging after a cat of a file (DS18B20 probe) -- How can Python break out of the hang? [closed]

A python script on my RPi reads the temperature from a DS18B20 probe located at /sys/bus/w1/devices/<probe id>/w1_slave. Right now the program is hanging at the line to read the file: with ...
Matthew Moisen's user avatar
10 votes
4 answers
14k views

Reverse the expand root FS

When installing Raspbian, the first thing you're told to do is to expand the file system to stretch across the whole SD card. Works great. But what if I want to save space when doing a disk image. Can ...
Paolo Vacirca's user avatar
5 votes
2 answers
24k views

Raspberry Pi Recognizes Logitech C920 Webcam But Can't Do Anything

Running Rasbian OS on Raspberry Pi B From dmesg: [139215.134634] usb 1-1.3: new high-speed USB device number 7 using dwc_otg [139216.356892] usb 1-1.3: New USB device found, idVendor=046d, idProduct=...
skrhee's user avatar
  • 175
1 vote
1 answer
3k views

Import image to python program

I am trying to run a simple python program that loads an image: import Image import os.path script_dir = os.path.dirname(os.path.abspath('__file__')) im = Image.open(os.path.join(script_dir, 'test....
wilsorob's user avatar
0 votes
1 answer
5k views

Can't find file 'whichopensslcnf' while it's there in OpenVPN

I got a weird problem while trying to follow the tutorial How to set up a Raspberry Pi VPN server for setting up OpenVPN on a Raspberry Pi: At 3. cd /etc/openvpn/easy-rsa . ./vars ./clean-all ./...
Stefan's user avatar
  • 1
2 votes
1 answer
321 views

Redirect boot messages to file

I'm having an issue with my Pi shutting down shortly after booting. I can see the boot messages pass by on the screen, but they pass by too quickly for me to read. Is there anyway I can redirect the ...
audiFanatic's user avatar
2 votes
1 answer
1k views

Is there a way to make a Transmission Torrent Server from a Pi?

I apologize in advance for the somewhat generic nature of this questions, but I am new to using my Pi. I had a thought recently of how I would like to serve up some of my own files as .torrents and ...
Bogdan Tsepesh's user avatar
3 votes
2 answers
392 views

Raspbian/OctoPi File Recover

I dropped my Pi on the SD Card slot. It broke and now I want to recover my files off of my SD Card, but I only see a boot partition with no relevant files inside. I was using OctoPi (3D Printing ...
pisquaredtau's user avatar
4 votes
2 answers
3k views

Email notifications for low free space

I want to send an email when the space on my pi's sd card is getting low. Also I would like to delete old files when disk space is very full. I can program in Python though I have not yet done so for ...
skyfly200's user avatar
0 votes
2 answers
410 views

Displaying binary files in the Terminal completely messes up the Terminal

Please understand this question like a "Have you experienced the same phenomenon?". When I display a binary file with tail or less, my Terminal gets completely messed up. All I can do is reboot the ...
Dohn Joe's user avatar
  • 125
7 votes
2 answers
19k views

Edit root files from SD card?

So my RPI is working great and is running it's OS from the SD card. A lot of the time when I'm programming I don't have an internet connection. I can't make a direct connection to my mac cause it's a ...
eds1999's user avatar
  • 203
2 votes
2 answers
361 views

Write current IP adress eth0 to a file

I need to store the current IP adress of my Raspberry Pi into a file. Can someone tell me how to do this? The goal is to create a file in /var/www/ipadress.txt with this content: 192.168.0.28 $ ...
s3bi's user avatar
  • 160
2 votes
2 answers
8k views

How do I check the MD5 for a file I downloaded on Raspberry Pi?

How would I be able to verify the MD5 for a file that I downloaded on RPi?
Matthew Moisen's user avatar