Go to advanced search

by rpdom
Mon Jul 08, 2013 4:54 am
Forum: General discussion
Topic: Mac Address
Replies: 3
Views: 640

Re: Mac Address

Yes, the MAC address will remain the same. Any additional USB interfaces, like WiFi, will have the address hard-coded into them, so they won't change. The on-board interface on the Pi model B is loaded with a MAC address at startup, which is based on the Pi serial number, so that won't change either...
by rpdom
Sun Jul 07, 2013 1:35 pm
Forum: Troubleshooting
Topic: No such file or directory when it is there!
Replies: 6
Views: 7180

Re: No such file or directory when it is there!

Happens to me sometimes. CDing to the top of a file is quite good but what if I try to delete? I get this, say the file I wanted to delete was "holiday": rm holiday bash: no such file or directory so how does that work? Do I have to CD to a file THEN delete it?[ You can either put the full path of ...
by rpdom
Sun Jul 07, 2013 12:06 pm
Forum: General programming discussion
Topic: Hospital Bed
Replies: 32
Views: 4742

Re: Hospital Bed

simple972 wrote:Is this correct?
It looks right to me :)
by rpdom
Sun Jul 07, 2013 3:32 am
Forum: Beginners
Topic: USB Mass Storage
Replies: 5
Views: 1114

Re: USB Mass Storage

The Pi can read NTFS disks without problem, but if you want to write to them too you will need to use ntfs-3g (which is easy to do). There should be no problem with using an external USB enclosure. Sorry for the bad typing. Obviously the title should be USB Mass Storage. If you edit your first messa...
by rpdom
Sat Jul 06, 2013 4:33 pm
Forum: General discussion
Topic: Few noob questions about raspberry pi
Replies: 9
Views: 2030

Re: Few noob questions about raspberry pi

i read now the newer version of rpi comes without fuse , or i guess with fuse, thats why modmypi made power adapter with 2amp. Not quite. All versions of the Pi have the main power fuse (F3). Early versions also had a 140mA fuse on each USB port to prevent too much power being taken from the ports,...
by rpdom
Sat Jul 06, 2013 2:54 pm
Forum: General discussion
Topic: I want one, but need info
Replies: 11
Views: 1312

Re: I want one, but need info

2xUSB2.0 (max current around 100mA each) 1x10/100 network 1xHDMI video/audio 1xComposite video (RCA) 1x3.5mm stereo audio out Various digital GPIO lines for input/output No VGA, PCI, SATA, PATA or anything like that, but you can use USB adaptors for SATA and PATA. It's only the size of a credit card...
by rpdom
Sat Jul 06, 2013 7:29 am
Forum: Beginners
Topic: SCIte for Debian
Replies: 9
Views: 2786

Re: SCIte for Debian

Let me know if you have any problems. Your package index might be out of date and it might list old files that are no longer available.
by rpdom
Sat Jul 06, 2013 7:15 am
Forum: Beginners
Topic: Programming in C
Replies: 21
Views: 5280

Re: Programming in C

The only package you should need to install with apt-get to do basic C programming on the Pi (not counting editors here) is "build-essential", and that is already installed on the standard Raspbian image.
by rpdom
Sat Jul 06, 2013 7:11 am
Forum: Gaming
Topic: Rpi project Idea
Replies: 11
Views: 1902

Re: Rpi project Idea

The Pi doesn't have to run Linux. It can run any OS that has been built to run on it (ie. Not Windows/OSX/DOS etc). Some people write their own OS or even run without one. The kernel (or main program)for the OS needs to be on the SD card, as that is all that Pi can read at initial boot time (I'll co...
by rpdom
Sat Jul 06, 2013 6:58 am
Forum: General discussion
Topic: Cannot SSH with RPi using PuTTy!
Replies: 15
Views: 3236

Re: Cannot SSH with RPi using PuTTy!

I assume you are not logged into your laptop as user pi? Did you try "ssh pi@192.168.1.132"? Otherwise it would try and log in as the same username as you are logged into the laptop with - it would still ask for a password, but never succeed because the user doesn't exist on the Pi (unless you have ...
by rpdom
Fri Jul 05, 2013 9:49 pm
Forum: General discussion
Topic: Putting a pi to sleep / hibernation
Replies: 2
Views: 740

Re: Putting a pi to sleep / hibernation

The usual answer to this question is "leave the Pi running". The difference in power usage between halted and running isn't very large. You could do a normal shutdown and put a push switch on pins 5 and 6 of P1. When you push the switch the Pi will start up again (just don't hold it down for long, o...
by rpdom
Fri Jul 05, 2013 7:57 pm
Forum: Beginners
Topic: Linux Syntax
Replies: 23
Views: 2974

Re: Linux Syntax

Do the files play if you type in the full omxplayer line manually?
by rpdom
Fri Jul 05, 2013 7:30 pm
Forum: Beginners
Topic: Linux Syntax
Replies: 23
Views: 2974

Re: Linux Syntax

The script looks ok to me. I suspect the truncation is happening in the log file. It probably has a maximum line length of something like 76 characters and puts a "$" on the end to mean the line was truncated. I doubt this is what the actual output is.
by rpdom
Fri Jul 05, 2013 6:10 pm
Forum: Troubleshooting
Topic: Why doesn't my pi work?
Replies: 3
Views: 572

Re: Why doesn't my pi work?

I connect it all up and all I get is a red light next to the 'PWR' LED. How long does it take to boot? What lights are meant to come on during a successful boot? The red light is always on when power is connected - even if the voltage is a quite a bit too low. During boot you should see the green "...
by rpdom
Fri Jul 05, 2013 5:39 pm
Forum: Troubleshooting
Topic: Pi doesn't boot. anymore.
Replies: 7
Views: 3548

Re: Pi doesn't boot. anymore.

Thanks for fast reply! to rpdom : No, i don't have anything connected to GPIO. How can i get back to "normal" mode? And why NOOBS shows only "rainbow screen"? You can get back to "normal" mode by putting avoid_safe_mode=1 in the config.txt file. I don't know why NOOBS isn't getting past the "rainbo...
by rpdom
Fri Jul 05, 2013 4:20 pm
Forum: General discussion
Topic: Setting hostname dymanically
Replies: 21
Views: 9868

Re: Setting hostname dymanically

No problem

Code: Select all

MAC="$( sed "s/^.*macaddr=[0-9A-F:]\{9\}\([0-9A-F:]*\) .*$/\1/;s/://g" /proc/cmdline )"
That's with the ":"s removed. If you want them replaced by hyphens instead you can use

Code: Select all

MAC="$( sed "s/^.*macaddr=[0-9A-F:]\{9\}\([0-9A-F:]*\) .*$/\1/;s/:/-/g" /proc/cmdline )"
by rpdom
Fri Jul 05, 2013 4:13 pm
Forum: Troubleshooting
Topic: Pi doesn't boot. anymore.
Replies: 7
Views: 3548

Re: Pi doesn't boot. anymore.

You are running in "safe" or "recovery" mode. This (usually) occurs if you connect pins 5&6 on P1 together, or if Pin 5 is pulled low for any reason. Do you have anything connected to the GPIO pins when you boot up? there is no USB hub connected If it is a model B then it does have a USB hub connect...
by rpdom
Fri Jul 05, 2013 3:05 pm
Forum: Beginners
Topic: SCIte for Debian
Replies: 9
Views: 2786

Re:

thank you @rpdom. i am using Raspbian but my pi is not connected to the internet i was using my PC (Windows XP) to download files and then moving them to my raspberry pi with a flashdrive. Is there another way? The method I described above should do exactly that. It uses the Pi to find the URI of t...
by rpdom
Fri Jul 05, 2013 5:48 am
Forum: Beginners
Topic: SCIte for Debian
Replies: 9
Views: 2786

Re: SCIte for Debian

Firstly are you using Debian (armel) or Raspbian (armhf) on your Pi? If Debian (Squeeze or Wheezy?), then you get the scite armel package file from the Debian repository. For Raspbian, you'd use the Raspbian repository. One way to find what you need is to run apt-get --print-uris install scite Which...
by rpdom
Fri Jul 05, 2013 4:58 am
Forum: General discussion
Topic: Setting hostname dymanically
Replies: 21
Views: 9868

Re: Setting hostname dymanically

MAC="$( sed "s/^.*macaddr=\([0-9A-F:]*\) .*$/\1/" /proc/cmdline )" Good point. This, modified to only pick up the last six hex characters and replacing colons with hyphens for the reasons jojopi noted, is good enough for my purposes (see below). A script in /etc/rc.local that writes $MAC to /etc/ho...
by rpdom
Fri Jul 05, 2013 4:36 am
Forum: Raspbian
Topic: problems with apt-get upgrade
Replies: 12
Views: 5735

Re: problems with apt-get upgrade

Try

Code: Select all

apt-get clean
Then run the upgrade again. It may be that you had a corrupt download and apt keeps trying to use that file instead of getting a fresh one. Your output says "Need to get 0 B/762 kB of archives.", which means that it already has downloaded everything it thinks it needs.
by rpdom
Fri Jul 05, 2013 4:31 am
Forum: Raspbian
Topic: Raspian Wheezy Shell Programming Help
Replies: 6
Views: 998

Re: Raspian Wheezy Shell Programming Help

Try The Advanced BASH Scripting Guide http://www.tldp.org/LDP/abs/html/

It starts off with the absolute basics and gradually moves on to more advanced usage.
by rpdom
Thu Jul 04, 2013 6:21 pm
Forum: Bare metal, Assembly language
Topic: GPIO Pin Diagrams?
Replies: 19
Views: 8061

Re: GPIO Pin Diagrams?

I'm not sure why the LED is lighting up at all.

You don't seem to be setting GPIO 18 as an output before switching it on and off.

You probably didn't need to do that for the status LED on GPIO 16, as that is set to output mode anyway.
by rpdom
Thu Jul 04, 2013 6:17 pm
Forum: HATs and other add-ons
Topic: Where to find empty gpio female connectors
Replies: 10
Views: 21029

Re: Where to find empty gpio female connectors

You could cut down an old floppy or hard disk cable connector, or have a look on ebay for "2x13 female header" connectors. They are quite inexpensive.
by rpdom
Thu Jul 04, 2013 5:14 pm
Forum: Networking and servers
Topic: ssh new Raspberry
Replies: 13
Views: 1878

Re: ssh new Raspberry

By the way. Will I need a crossover Ethernet cable or I can just use a regular one from PC to R.PI? And, will my raspberry pi also have internet? The Big PC is connected to the internet through wifi. Regular cable will do. The network interface on the RasPi will auto-detect if crossover is needed a...

Go to advanced search