Go to advanced search

by JimmyN
Sat Mar 12, 2016 12:25 pm
Forum: Raspberry Pi OS
Topic: Running a python script at startup
Replies: 21
Views: 23054

Re: Running a python script at startup

There are several ways to run a script at boot. You could add it to crontab.

I'll assume you're using Python2, and need "sudo" to run it from the command line, so we'll add it to roots crontab.

Code: Select all

sudo crontab -e
Add this line at the bottom

Code: Select all

@reboot /usr/bin/python /path/to/your/script.py
by JimmyN
Sat Mar 12, 2016 12:13 am
Forum: General discussion
Topic: Boot-up loop when powering Pi from boost converter
Replies: 20
Views: 4089

Re: Boot-up loop when powering Pi from boost converter

Pololu has one that will automatically buck or boost. It will provide 5V at 2A with an input voltage ranging from 2.9V to 32V. I don't have that convertor, but I do have two of their buck convertors, and it's good quality stuff. They are in the US, but I think they ship worldwide in you're not in th...
by JimmyN
Fri Mar 11, 2016 12:38 am
Forum: Beginners
Topic: I'm having more problems with new username
Replies: 12
Views: 2020

Re: I'm having more problems with new username

Well I have at this desk, 3 PC's, 1 FreeBSD NAS box, 2 PI's, and 3 more Pi's around the house.
All of them have the same username, but it's not Pi.
by JimmyN
Fri Mar 11, 2016 12:15 am
Forum: Beginners
Topic: Launch Bar
Replies: 7
Views: 1952

Re: Launch Bar

I'm going to assume that Iceweasel shows up in the menu, but not in the menu list for adding to the Launchbar. As @GTR2Fan pointed out it will probably include it eventually. But if you want to fix it now we can get the hammer and apply a little pressure to get it going. And you'll find out where th...
by JimmyN
Thu Mar 10, 2016 10:36 pm
Forum: General discussion
Topic: How are you storing & organizing your microSD cards?
Replies: 9
Views: 1935

Re: How are you storing & organizing your microSD cards?

I use one of these, it works real well. It's slim and pretty rugged. http://www.ebay.com/itm/18-Slot-Micro-Sd-MMC-Tf-Memory-Card-Storage-Box-Protecter-Case-Hold-/152005478509 One side is for camera use, the other side for RPi cards. On the center divider between the two sides I drew a numbered grid ...
by JimmyN
Thu Mar 10, 2016 9:45 pm
Forum: Beginners
Topic: First Boot help
Replies: 6
Views: 1285

Re: First Boot help

The set I got won't boot . That's because you're only copying part of it to the SDCard. It seems you're trying to install Raspbian by copying from the OS and Raspbian folders rather than letting NOOBS do it. NOOBS has to boot first , then it will use those to install Raspbian. Do as @rpdom suggeste...
by JimmyN
Thu Mar 10, 2016 7:48 pm
Forum: Troubleshooting
Topic: [RPi3] SSH not working via wifi
Replies: 156
Views: 114108

Re: [RPi3] SSH not working via wifi

Sorry to have taken up your time with my needless post, since you've decided it's definitely a driver issue.

But in case it's of interest to anyone, mine works with either my Belkin F5D8235 or my NetGear CG3000D router.
by JimmyN
Thu Mar 10, 2016 7:01 pm
Forum: Troubleshooting
Topic: [RPi3] SSH not working via wifi
Replies: 156
Views: 114108

Re: [RPi3] SSH not working via wifi

Mine is working fine, so I don't think it's really a hardware or driver issue, or I'd be seeing it too. Here's what I did as far as setup. Received RPi3 on Tuesday. Downloaded latest Raspbian and used Win32DiskImager to put it on a new SDCard. So I'm using uname -a Linux rpi5 4.1.18-v7+ #846 SMP Thu...
by JimmyN
Thu Mar 10, 2016 5:12 pm
Forum: Beginners
Topic: Unable to configure WLAN
Replies: 25
Views: 2945

Re: Unable to configure WLAN

You need to be a little more specific, are you using a Pi 2B with a wireless USB dongle, or a Pi 3B with the built-in wireless?
by JimmyN
Thu Mar 10, 2016 4:43 pm
Forum: Beginners
Topic: 16 by 32 LED Matrix
Replies: 1
Views: 361

Re: 16 by 32 LED Matrix

Google "multiplexing LEDs" and you'll find some examples and diagrams. Basically you're switching both the positive and negative of each LED. For instance if you connect all the negatives into columns, and the positives into rows you can "turn on" a column, and a row, and only the LED that is connec...
by JimmyN
Thu Mar 10, 2016 1:57 pm
Forum: Beginners
Topic: The screen turns off after so many minutes ??? SOLVED
Replies: 4
Views: 6445

Re: The screen turns off after so many minutes ???

As @GTR2Fan said you can install "xscreensaver" and use that, or you don't want to install something just to blank the screen you can edit the "lightdm.conf" file and turn off screen blanking there. To turn it off in the config file sudo nano /etc/lightdm/lightdm.conf Scroll down to the "[SeatDefaul...
by JimmyN
Thu Mar 10, 2016 1:29 pm
Forum: Beginners
Topic: I'm having more problems with new username
Replies: 12
Views: 2020

Re: I'm having more problems with new username

This seems to come up a lot, maybe we need a "[How to] Add a new user" stickied somewhere that could be linked to when the question comes up. Or maybe we already have one but I haven't seen it?
by JimmyN
Thu Mar 10, 2016 1:23 pm
Forum: Beginners
Topic: I'm having more problems with new username
Replies: 12
Views: 2020

Re: I'm having more problems with new username

The three running processes are coming from the "autologin@.service", which is set to log in pi automatically. You can use raspi-config to turn off autologins, and the processes won't start, but if you ever want to turn it back on it will still try to login the pi user which has been removed. So ins...
by JimmyN
Thu Mar 10, 2016 12:23 pm
Forum: Beginners
Topic: Launch Bar
Replies: 7
Views: 1952

Re: Launch Bar

You have to right click in the Launch bar area. You'll know you have the right spot if the popup menu has "Application Launch Bar Settings" at the top, rather than "Task Bar Settings". Once you click on the "Launch Bar Settings" you can scroll the menu list in the right pane, select something, then ...
by JimmyN
Thu Mar 10, 2016 4:27 am
Forum: Beginners
Topic: [SOLVED] automount SAMBA share
Replies: 4
Views: 2582

Re: automount SAMBA share

Something like this should do it. It just has to be re-arranged a little and trimmed down.

Code: Select all

//192.168.8.101/Open Open cifs user=pi,password=raspi 0 0 
by JimmyN
Wed Mar 09, 2016 11:19 pm
Forum: General discussion
Topic: Boot-up loop when powering Pi from boost converter
Replies: 20
Views: 4089

Re: Boot-up loop when powering Pi from boost converter

) I tried to use an 7805 with the booster set to 6V instead of 5v to make the drop go away (it didn't, maybe the converter is shorting itself for a very short period, the scope says it dropped to 3.7v input voltage) A 7805 is going to need at least 6.25V~6.5V input to maintain a 5V output. If the i...
by JimmyN
Wed Mar 09, 2016 11:11 pm
Forum: Beginners
Topic: Program Files in Raspbarian
Replies: 9
Views: 2761

Re: Program Files in Raspbarian

Good job, it gets easier as you progress along.... sorta. :D

If you want to add anything to the menu that didn't get added in there automatically, you can probably add it with the menu editor. If not, or if you want to make it a desktop shortcut, you can create a .desktop file.
by JimmyN
Wed Mar 09, 2016 9:57 pm
Forum: Troubleshooting
Topic: WiFi Issues - one clarification - power management
Replies: 3
Views: 5176

Re: WiFi Issues - one clarification - power management

I think it needs to go after the "wpa-conf" line. Or another method, remove the "wireless-power off" line and instead do

Code: Select all

sudo iw dev wlan0 set power_save off
Then use "iwconfig" and it should show "Power Management:off"
by JimmyN
Wed Mar 09, 2016 8:53 pm
Forum: General discussion
Topic: RPi inside closed book, risk of fire?
Replies: 45
Views: 10227

Re: RPi inside closed book, risk of fire?

Paper is a good thermal insulator, so the heat inside would be slow to escape, and at best it would be a really hot environment for the RPi. Even at only 2 watts being dissipated, if wrapped in an insulating blanket (book), over a period of time it would result in a lot of heat buildup. It's a solid...
by JimmyN
Wed Mar 09, 2016 7:35 pm
Forum: Beginners
Topic: Question about my LCD code
Replies: 7
Views: 1038

Re: Question about my LCD code

If you're doing it as a learning exercise that's great. But if you want a simpler and more "human readable" way to control it and troubleshoot, then import an LCD library for the hd44780. Then the library will deal with the bits, bytes, and commands, and you can just: lcd.message('to print some text...
by JimmyN
Wed Mar 09, 2016 7:05 pm
Forum: Beginners
Topic: Error Writing New Files
Replies: 1
Views: 1292

Re: Error Writing New Files

I've tried to edit the "etc/xdg/lxsession/LXDE-pi/autostart" but I get the error "Error writing etc/xdg/lxsession/LXDE-pi/autostart: no such file or directory" All of the guides I've seen online edit this file, yet my Pi is saying it does not exist? You're missing the leading "/" so that it will st...
by JimmyN
Wed Mar 09, 2016 5:08 pm
Forum: Beginners
Topic: Program Files in Raspbarian
Replies: 9
Views: 2761

Re: Program Files in Raspbarian

There is no "programs" folder as executables could be in a number of places. If you want a "programs" folder just create one and add it to your path. You can use the "which" command to find out where the executable is located. which pidgin which kopete Note that using "Pidgin" or "Kopete" won't work...
by JimmyN
Wed Mar 09, 2016 11:43 am
Forum: Troubleshooting
Topic: [RESOLVE]reboot system bring dirty bit to boot partition
Replies: 11
Views: 5660

Re: reboot system bring dirty bit to boot partition

The problem is that you're not actually clearing it. Run the fsck.vfat command. When it finishes run it again and you'll see it's still there, it didn't clear it. If it clears it the second run will just report the number of files and sectors, since there is nothing to fix. Looking closer I think th...
by JimmyN
Wed Mar 09, 2016 4:40 am
Forum: Beginners
Topic: Autorun Python Script
Replies: 7
Views: 2027

Re: Autorun Python Script

If you just want to autostart a Python file you don't need to create a .desktop file. Do that if you want to create a desktop shortcut or add it to the menu. You can run the file directly by adding it to your autostart. nano ~/.config/lxsession/LXDE-pi/autostart Scroll down and add this line at the ...
by JimmyN
Wed Mar 09, 2016 4:30 am
Forum: Beginners
Topic: Autorun Python Script
Replies: 7
Views: 2027

Re: Autorun Python Script

That's the "displayed" name of the .desktop file. If you add the .desktop file to the menu, that's the name you'll see in the menu list. Or you could use it as a desktop shortcut and that would be the name under the icon. You can name it anything you like.

Go to advanced search