Go to advanced search

by thagrol
Sat Dec 14, 2019 2:59 pm
Forum: Troubleshooting
Topic: Sudo instructions to insert a directory within /home
Replies: 13
Views: 230

Re: Sudo instructions to insert a directory within /home

My suspicion is that he comes from the windows world where you only really have one user plus an admin user. The Windows model has been much like the Linux model for a long time now; it's just that Windows users are more used to being the administrator or having superuser rights so don't notice it....
by thagrol
Sat Dec 14, 2019 2:13 pm
Forum: General discussion
Topic: Run program at Boot
Replies: 7
Views: 173

Re: Run program at Boot

With your code, something is happening now, the log text state error "no such file or directory", the files are on a separate USB stick and the program runs OK from the Python editor. The directory for the usb is "media/pi/storage/xxxx.txt". Can it not access this at that stage? Probably not. Unles...
by thagrol
Sat Dec 14, 2019 2:01 pm
Forum: General discussion
Topic: Cluster
Replies: 3
Views: 83

Re: Cluster

This has been asked many, many times. To save you some searching, though please search the forum if you want more detail, the short is is no. Two quad core computers with their own RAM and storage do not make one 8 core computer. With the proper setup you can run programs on computer A and display a...
by thagrol
Sat Dec 14, 2019 1:49 pm
Forum: Troubleshooting
Topic: Sudo instructions to insert a directory within /home
Replies: 13
Views: 230

Re: Sudo instructions to insert a directory within /home

At the end of the day it's @Nathan.Rivard's pi. If he wants to break with convetion and standard practise that's his choice, however ill advised that me be. My suspicion is that he comes from the windows world where you only really have one user plus an admin user. Raspbian (and most/all linux/unix ...
by thagrol
Sat Dec 14, 2019 1:17 pm
Forum: Troubleshooting
Topic: Sudo instructions to insert a directory within /home
Replies: 13
Views: 230

Re: Sudo instructions to insert a directory within /home

You could do something like this: sudo mkdir /home/some_directory sudo chmod a+rwx /home/some_driectory A better choice for that second line would be: sudo chown <some_user_account> /home/<some_directory> Well yes. But if you're doing that surely my last option is better: create a new user specfic ...
by thagrol
Fri Dec 13, 2019 6:37 pm
Forum: Troubleshooting
Topic: Sudo instructions to insert a directory within /home
Replies: 13
Views: 230

Re: Sudo instructions to insert a directory within /home

I am attempting to put a custom made directory into the /home directory, but I do not have the permissions to do so. Is there a way to change settings on the Pi to allow me to write whatever I would like without using sudo? Short answer: No. Long answer: What are you actually trying to do? /home is...
by thagrol
Fri Dec 13, 2019 6:09 pm
Forum: Troubleshooting
Topic: Selfhosting Searx - Need some help [More info inside]
Replies: 2
Views: 40

Re: Selfhosting Searx - Need some help [More info inside]

That looks to be the expected behaviour. The image accompanying that command doesn't show it returning and the section of that article linked below comfirms this: Searx will continue to work until you close the Terminal. There is a way to get around this. Press Ctrl+C so that the current session is ...
by thagrol
Fri Dec 13, 2019 2:56 pm
Forum: Troubleshooting
Topic: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount
Replies: 23
Views: 1631

Re: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount

While simpler than more modern filesystems FAT has it's own complexities. One that might trip things up is that it is possible to have two copies of the acutal File Allocation Table. In which ase it's possible that the writing device only update one of them and the reading device only reads one of t...
by thagrol
Thu Dec 12, 2019 10:38 pm
Forum: Troubleshooting
Topic: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount
Replies: 23
Views: 1631

Re: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount

Now that being said....as another experiment I tried partitioning my sandisk drive into two separate partitions. I put images on both partitions. ONLY the images from the first partition on the drive showed up. To further test this I then deleted all the images on the first partition but left the i...
by thagrol
Thu Dec 12, 2019 6:37 pm
Forum: Troubleshooting
Topic: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount
Replies: 23
Views: 1631

Re: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount

You may have to unmount and remount the file system whenever it is changed. The frames I have all eventually corrupt their displays, hang for long periods and so on, if I update the file system without doing that. If memory serves the approach in the tutorial does just that from the Pi side. Won't ...
by thagrol
Thu Dec 12, 2019 6:18 pm
Forum: Advanced users
Topic: Secure app running on Pi
Replies: 9
Views: 367

Re: Secure app running on Pi

Yeah. The only secure code is the code that you don't run and don't distribute. One very real problem with securing code on the Pi is that a JTAG interface is available on the GPIO and, according to this https://pdfs.semanticscholar.org/887e/0b766d2cff207aa1b3407f6b0f96e3d5b606.pdf it can be enable ...
by thagrol
Thu Dec 12, 2019 6:07 pm
Forum: Troubleshooting
Topic: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount
Replies: 23
Views: 1631

Re: Followed this MagPi tutorial to make a smart flash drive: Having some trouble with mount/umount

Nothing specific springs to mind and a quick websearch didnt' reveal anuy usefuls specs on that device. So the only advice I have is for the general case: Does your photoframe support the filesystem you're using? Does it support the file types you're using? Does it expect the files to be in a partic...
by thagrol
Thu Dec 12, 2019 4:55 pm
Forum: General discussion
Topic: Raspberry pi zero w
Replies: 5
Views: 264

Re: Raspberry pi zero w

it largely depends on what you actually mean by "movies and TV shows". Over the air digital TV broadcasts? OTA analogue broadcasts? Satelite broadcasts? Locally stored files? Files on another machine on your LAN? Internet streaming services? DVDs? Blu ray discs? DRM free or not? If you can get the v...
by thagrol
Thu Dec 12, 2019 4:22 pm
Forum: Advanced users
Topic: Raspberry Pi 4 ROM bootloader
Replies: 28
Views: 922

Re: Raspberry Pi 4 ROM bootloader

The Pi4 is OTG able? iIf you mean bootable over USB like the zero/zeroW, I guess the answer is maybe The SoC's USB 2 port is routed out to the USB C connector and can function in "device mode". Whether or not it appears as a boradcom boot device when connected to a host without an SD card inserted ...
by thagrol
Thu Dec 12, 2019 4:01 pm
Forum: Beginners
Topic: Looking for some Input Regarding Pi Zero
Replies: 9
Views: 245

Re: Looking for some Input Regarding Pi Zero

DougieLawson wrote:
Thu Dec 12, 2019 3:04 pm
The difference is that the W has on-board WiFi. Nothing more.
And onboard bluetooth ;)
by thagrol
Wed Dec 11, 2019 10:31 pm
Forum: Android
Topic: Replacing car head unit
Replies: 6
Views: 5977

Re: Replacing car head unit

Hello, I am also looking into doing this. I would like to get rid of the original car stereo header unit completely and create one with a Raspberry Pi and a touchscreen. I have a 2002 Honda Accord. Some concerns I have so far are: -Is there a way to connect the header unit wires to the Raspberry Pi...
by thagrol
Wed Dec 11, 2019 10:02 pm
Forum: Advanced users
Topic: Secure app running on Pi
Replies: 9
Views: 367

Re: Secure app running on Pi

Locking to a serial number won't work. Older model Pi may have the same serial number as another Pi (serial numbers are randomly assigned at the factory, enough Pi have been produced that duplicate serial numbers are a thing) though the risk of that is small. Not sure if the problem also exists on t...
by thagrol
Wed Dec 11, 2019 9:39 pm
Forum: General discussion
Topic: Pi 4 - Network
Replies: 6
Views: 210

Re: Pi 4 - Network

Yes. See https://www.raspberrypi.org/blog/raspberry-pi-4-on-sale-now-from-35/ Ethernet is no longer connected via USB. However to get gigabit you need every link inthe chain to support it. That's cables, router/switch, and the device you're talking to. Reading/writing to storage will still be limite...
by thagrol
Wed Dec 11, 2019 11:59 am
Forum: Networking and servers
Topic: Experts: NFS or Samba?
Replies: 4
Views: 196

Re: Experts: NFS or Samba?

bls wrote:
Tue Dec 10, 2019 10:25 pm
If you use networked storage, and have tried both NFS and Samba, which one are you using, and why?
Linux clients use NFS. Windows and android clients use Samba/CIFS. If I had to pick just one it would be Samba/CIFS due to the need to support windows clients.
by thagrol
Tue Dec 10, 2019 11:39 pm
Forum: Advanced users
Topic: Code a program to help online reputation
Replies: 8
Views: 422

Re: Code a program to help online reputation

hey all Im a newbie but I have some bad press online and I wanted to create a script that could automatically every hour, open web browser, search my name, and go to directed webpages. is this even possible? is the coding intensive? no time frame on this so. Is the "bad press online" justified? (No...
by thagrol
Tue Dec 10, 2019 11:14 pm
Forum: Python
Topic: Python script automatic start
Replies: 15
Views: 408

Re: Python script automatic start

@reboot sleep 30 && export DISPLAY=localhost:0 && python3 /home/pi/myscript.py Changed the sleep to 180 to make sure wifi conection is build up before the script starts. It works now! problem SOLVED Thank you guys so much I wonder why you have "localhost" in there. Probably because that's what I ga...
by thagrol
Tue Dec 10, 2019 11:04 pm
Forum: Python
Topic: Python script stops after 1 minute after boot
Replies: 5
Views: 153

Re: Python script stops after 1 minute after boot

The first thing to do is to find out what has stopped and why. The reason you're getting nothing in your cronlog file is that you aren't capturing the output of your script but that of the launcher. While I wouldn't advise trying to get things running under cron until you've got it working reliably ...
by thagrol
Tue Dec 10, 2019 4:40 pm
Forum: Python
Topic: Python script automatic start
Replies: 15
Views: 408

Re: Python script automatic start

The log file had something in it: Traceback (most recent call last): File "/home/pi/Uhrzeit.py", line 3, in <module> window = tkinter.Tk() File "/usr/lib/python3.5/tkinter/__init__.py", line 1880, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk...
by thagrol
Tue Dec 10, 2019 4:06 pm
Forum: Python
Topic: signal.pause() cannot detect SIGINT
Replies: 3
Views: 135

Re: signal.pause() cannot detect SIGINT

Umm doesn't python trap CTR-C and raise a KeyboardInterrupt exception? As such I'd expect that your code never sees the underlying signal and exits due to the unhandled exception.
by thagrol
Tue Dec 10, 2019 12:43 pm
Forum: Troubleshooting
Topic: Midi Keybaord on USB OTG on Pi Zero W
Replies: 1
Views: 55

Re: Midi Keybaord on USB OTG on Pi Zero W

Could be an issue with either of the cables between the Pi and keyboard. Try the following: Using the same otg adapter try a different USB device. This will tell you if the otg adapter is at fault. A simple device like a thumb drive, keyboard, or mouse is probably your best bet. Try a different know...

Go to advanced search