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
-3 votes
1 answer
37 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?
user avatar
0 votes
0 answers
25 views

New OS. File manager hangs

Used imager for new OS. No issues. Booted my Pi4, no issues File manager loads (pi) but hangs. I cannot even use the X to cancel it. Terminal command df -h shows my Microssd (128mb) correctly. What ...
user avatar
-1 votes
2 answers
259 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 ...
user avatar
  • 35
0 votes
2 answers
100 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
0 answers
18 views

Displaying an image on startup

I'm making a custom sheikah slate model, and I thought a screen displaying the map would be a very cool addition. The model will have no way of interacting with the Pi outside of turning it on, so it ...
user avatar
-1 votes
1 answer
464 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 ...
user avatar
0 votes
1 answer
42 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
user avatar
0 votes
0 answers
156 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 ...
user avatar
0 votes
1 answer
516 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.,...
user avatar
0 votes
0 answers
176 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 ...
user avatar
  • 67
0 votes
1 answer
51 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: ...
user avatar
  • 1
0 votes
1 answer
37 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 ...
user avatar
  • 1
0 votes
1 answer
184 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 ...
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-...
user avatar
  • 130
1 vote
2 answers
4k 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 ...
user avatar
1 vote
0 answers
147 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>...
user avatar
  • 11
1 vote
1 answer
97 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, ...
user avatar
1 vote
1 answer
458 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?
user avatar
2 votes
3 answers
6k 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 ...
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 ...
user avatar
  • 13
0 votes
1 answer
697 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.
user avatar
  • 419
0 votes
1 answer
60 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
user avatar
2 votes
1 answer
295 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 ...
user avatar
  • 21
1 vote
1 answer
238 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 ...
user avatar
4 votes
4 answers
13k 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 ...
user avatar
1 vote
0 answers
626 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 ...
user avatar
  • 111
0 votes
1 answer
28 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 ...
user avatar
  • 155
0 votes
1 answer
213 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 '...
user avatar
  • 21
0 votes
1 answer
949 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/...
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 ...
user avatar
0 votes
2 answers
564 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 ...
user avatar
  • 426
0 votes
1 answer
641 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 ...
user avatar
  • 111
2 votes
0 answers
207 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 ...
user avatar
  • 131
1 vote
0 answers
109 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 ...
user avatar
2 votes
1 answer
190 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 ...
user avatar
0 votes
2 answers
627 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/...
user avatar
0 votes
2 answers
75 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 ...
user avatar
1 vote
1 answer
161 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 ...
user avatar
8 votes
4 answers
12k 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 ...
user avatar
5 votes
2 answers
22k 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=...
user avatar
  • 75
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....
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 ./...
user avatar
  • 1
2 votes
1 answer
290 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 ...
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 ...
user avatar
3 votes
2 answers
329 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 ...
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 ...
user avatar
0 votes
2 answers
295 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 ...
user avatar
  • 125
6 votes
2 answers
17k 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 ...
user avatar
  • 193
2 votes
2 answers
358 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 $ ...
user avatar
  • 160