Go to advanced search

by RaspbianUser1
Fri Jan 22, 2021 9:39 pm
Forum: General discussion
Topic: Raspberry Pi Imager v1.5 Not Working
Replies: 3
Views: 113

Re: Raspberry Pi Imager v1.5 Not Working

access denied try running it as root

sudo rpi-imager
by RaspbianUser1
Fri Jan 22, 2021 9:14 pm
Forum: General
Topic: Using a LCD in the raspberry pi Pico
Replies: 2
Views: 91

Re: Using a LCD in the raspberry pi Pico

Just done 10 minutes of research, can standard C code be used.
I found an old post by Dougie (Thanks) who explained how to change his C LCD code to work with this LCD 2004 screen.

Does C "just work" on the Pico
by RaspbianUser1
Fri Jan 22, 2021 8:55 pm
Forum: General
Topic: Using a LCD in the raspberry pi Pico
Replies: 2
Views: 91

Using a LCD in the raspberry pi Pico

Hi, I have a genuine interest in buying a Pi Pico and would plan to use it for a LCD screen The code for the hardware is here, its wrote in python and I wanna know whether I can convert the code Here's the code https://github.com/pl31/python-liquidcrystal_i2c/archive/master.zip Would I be able to us...
by RaspbianUser1
Thu Jan 21, 2021 11:26 pm
Forum: General discussion
Topic: delete json temp file?
Replies: 2
Views: 85

Re: delete json temp file?

Its wasteful but you can do it,

import os
os.system(“rm /directory/to/file”)

Just remember all this is doing is using bash to run commands, you can use this to do anything in bash in python
by RaspbianUser1
Thu Jan 21, 2021 6:39 pm
Forum: Troubleshooting
Topic: White Bar on Rapi 3
Replies: 2
Views: 75

Re: White Bar on Rapi 3

Is it a task bar?

Im not you, I can’t see your screen
by RaspbianUser1
Thu Jan 21, 2021 6:28 pm
Forum: Beginners
Topic: Install RPI DE
Replies: 3
Views: 162

Re: Install RPI DE

scotty101 wrote:
Thu Jan 21, 2021 4:09 pm
What is DE?
Desktop Environment
by RaspbianUser1
Tue Jan 19, 2021 11:29 pm
Forum: Beginners
Topic: Running a bash script through a button in html
Replies: 5
Views: 130

Re: Running a bash script through a button in html

Post your test.cgi code. It looks like you don't send any HTTP headers before sending your content. You need to send Content-Type: text/plain\r\n\r\n or Content-Type: text/html\r\n\r\n before sending any other output. #! /usr/bin/python3 import os import cgi cgi.test() cgi.print_environ() Does it n...
by RaspbianUser1
Tue Jan 19, 2021 9:37 pm
Forum: Beginners
Topic: Running a bash script through a button in html
Replies: 5
Views: 130

Re: Running a bash script through a button in html

pasman1 wrote:
Tue Jan 19, 2021 9:31 pm
RaspbianUser1 wrote:
Tue Jan 19, 2021 8:38 pm
What is the easiest way I can do my original question
In apache2 doc is an example how to create bash cgi script.
Unless I am looking at the wrong place, please provide a link
by RaspbianUser1
Tue Jan 19, 2021 8:38 pm
Forum: Beginners
Topic: Running a bash script through a button in html
Replies: 5
Views: 130

Running a bash script through a button in html

Hi everyone, I have been trying for about an hour now My problem is: I am trying to run a command via a webpage, no data will need to be collected from the command used, just needs to run it The command will be sudo systemctl start lcd.service I have tried setting up cgi and php with cgi using cgi I...
by RaspbianUser1
Tue Jan 19, 2021 2:25 pm
Forum: C/C++
Topic: Please Rate my first useful GUI
Replies: 12
Views: 360

Re: Please Rate my first useful GUI

deepo wrote:
Tue Jan 19, 2021 8:20 am
Can anyone please post a screenshot of the GUI
Here
GUI.png
GUI.png (9.68 KiB) Viewed 102 times
It looks different dependant on your GTK style
by RaspbianUser1
Tue Jan 19, 2021 12:22 pm
Forum: C/C++
Topic: Please Rate my first useful GUI
Replies: 12
Views: 360

Re: Please Rate my first useful GUI

Untitled.png A few points: Testing on a x86-64 Mint machine (because I don't have old gtk2 installed on my PI). You compile line doesn't work.... Also uses old style "back tick" command substitution for the pkg-config output. gcc -o GUI GUI.c $(pkg-config --cflags --libs gtk+-2.0) Pressin...
by RaspbianUser1
Tue Jan 19, 2021 12:44 am
Forum: C/C++
Topic: Please Rate my first useful GUI
Replies: 12
Views: 360

Re: Please Rate my first useful GUI

What should I be using then for GUI applications?
by RaspbianUser1
Tue Jan 19, 2021 12:06 am
Forum: C/C++
Topic: Please Rate my first useful GUI
Replies: 12
Views: 360

Re: Please Rate my first useful GUI

It Works, You have a little work to do fixing compiler warnings, but all in all it works so GREAT JOB!! main.c: In function ‘writer1’: main.c:12:12: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] 12 | if (fp); | ^ main.c:12:5: warning: this ‘if’ clause does not guard....
by RaspbianUser1
Mon Jan 18, 2021 11:03 pm
Forum: C/C++
Topic: Please Rate my first useful GUI
Replies: 12
Views: 360

Please Rate my first useful GUI

Hi everyone, I have finally sat down and programmed something I am pretty proud of it, with only reading previous code and a little of some random forum posts from 15 years ago (thank god). I wrote it with about 2 hours of work and solving problems within. Here is the code #include <gtk/gtk.h> #incl...
by RaspbianUser1
Sun Jan 17, 2021 10:07 pm
Forum: General discussion
Topic: Battery to power Pi4 and official 7" touchscreen
Replies: 9
Views: 326

Re: Battery to power Pi4 and official 7" touchscreen

I have my own Portable Pi 4b with the raspberry pi official screen

It can last at least 5 hours idle, unsure about load

Anker Powercore 10000 slim PD, they also sell a fatter shaped one which probably does the same
by RaspbianUser1
Thu Jan 14, 2021 1:07 pm
Forum: General discussion
Topic: Difference between cmd mode of desktop os and lite os
Replies: 10
Views: 233

Re: Difference between cmd mode of desktop os and lite os

LTolledo wrote:
Thu Jan 14, 2021 12:22 pm
one big difference:
multiple instances of terminal windows in desktop mode......
multiple terminal window in desktop.jpg


.... unless somebody shows me that is also possible in standard lite mode (please do show....don't tell... show it!)....
tty0
tty1
tty2
tty....
by RaspbianUser1
Thu Jan 14, 2021 12:21 pm
Forum: General discussion
Topic: Difference between cmd mode of desktop os and lite os
Replies: 10
Views: 233

Re: Difference between cmd mode of desktop os and lite os

Use lite if you dont need a desktop environment

If you need one then don’t use lite.
by RaspbianUser1
Tue Jan 12, 2021 10:03 am
Forum: Beginners
Topic: Correct syntax for find
Replies: 6
Views: 174

Re: Correct syntax for find

Thank you all very much
by RaspbianUser1
Tue Jan 12, 2021 10:02 am
Forum: Beginners
Topic: Show Us Your Conky!
Replies: 20
Views: 10185

Re: Show Us Your Conky!

kerry_s wrote:
Tue Sep 01, 2020 6:31 pm
i'm using victorConky https://github.com/Gictorbit/victorconky made to work on rpi
Old post but how did you get this to work?
by RaspbianUser1
Tue Jan 12, 2021 1:32 am
Forum: Beginners
Topic: Correct syntax for find
Replies: 6
Views: 174

Correct syntax for find

I am always forgetting where I put my files and and need the correct syntax As I can’t be bothered to find the correct solution, as I have looked in the past, What is the exact way to just search for a generic file such as picture1.png I always use “sudo find | grep picture.png” Though I know this i...
by RaspbianUser1
Sat Jan 09, 2021 9:47 pm
Forum: Advanced users
Topic: Image File Utilities
Replies: 432
Views: 56043

Re: Image File Utilities

It works fully on a RPiOS-MATE install however I did have some original issues with it being used in RPI-imager but probably my fault, as it didn't like its hash or something similar I'm not aware of any hashes being involved anywhere with images. Try using Etcher instead. Edit to add: I just came ...
by RaspbianUser1
Sat Jan 09, 2021 8:39 pm
Forum: Advanced users
Topic: Image File Utilities
Replies: 432
Views: 56043

Re: Image File Utilities

I would also like to thank you RonR as your script has made doing my backups simple.
It works fully on a RPiOS-MATE install however I did have some original issues with it being used in RPI-imager but probably my fault, as it didn't like its hash or something similar
by RaspbianUser1
Sat Jan 09, 2021 12:16 pm
Forum: Troubleshooting
Topic: Raspbian emergency mode
Replies: 17
Views: 506

Re: Raspbian emergency mode

How did you flash your SD card?


If there is no important data I would recommend flashing it with rpi-imager
by RaspbianUser1
Sat Jan 09, 2021 1:52 am
Forum: Troubleshooting
Topic: Raspbian emergency mode
Replies: 17
Views: 506

Re: Raspbian emergency mode

Looks like is missing the boot partition More likely a problem with @LivArt's fstab. If the boot partition was missing, the boot process would not have got that far. A missing boot partition means no start.elf, no config.txt, no cmdline.txt, no device tree overlays, and no kernel to load. Yes you’r...
by RaspbianUser1
Sat Jan 09, 2021 12:38 am
Forum: Raspberry Pi OS
Topic: how to create a batch file where activates when double clicked on the icon
Replies: 7
Views: 338

Re: how to create a batch file where activates when double clicked on the icon

GlowInTheDark wrote:
Thu Jan 07, 2021 11:30 am
I think that should be Exec=sh /home/pi/demokit/replay_remote1.sh shouldn't it.
It should probably be:

Code: Select all

Exec=/home/pi/demokit/replay_remote1.sh
Unrelated but don’t you have to make sure the .sh file has #!/bin/bash and the file has to be executable by adding chmod +x

Go to advanced search