Raspberry Pi - $35 Linux computer

Associate
Joined
10 Jun 2011
Posts
2,344
Location
N.Ireland
After getting the raspberry pi several months ago I finally installed raspbmc on it at the weekend. Spent ages trying to get the remote to work as the default xbmx android remote now doesn't work after an update. Found one called yatse that works perfectly and spent the day in bed watching movies using the S3 as the remote. Very impressive bit of kit, I might buy a 2nd for the downstairs TV and sell the Revo that is already there.
 
Last edited:
Soldato
Joined
15 Jan 2004
Posts
10,185
What am I doing wrong here I'm trying to format the USB HDD into ext4:

$ sudo fdisk -l

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 8192 122879 57344 c W95 FAT32 (LBA)
/dev/mmcblk0p2 122880 15759359 7818240 83 Linux

Disk /dev/sda: 2000.4 GB, 2000398932480 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029165 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6c123471

Device Boot Start End Blocks Id System
/dev/sda1 2048 3907026943 1953512448 7 HPFS/NTFS/exFAT

$ sudo fdisk /dev/sda1

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xe91ec653.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
o
Building a new DOS disklabel with disk identifier 0xac013492.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
$ sudo partprobe
$ sudo fdisk /dev/sda1

Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p):
Using default response p
Partition number (1-4, default 1):
Using default value 1
First sector (2048-3907024895, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-3907024895, default 3907024895):
Using default value 3907024895

Command (m for help): p

Disk /dev/sda1: 2000.4 GB, 2000396746752 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907024896 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xac013492

Device Boot Start End Blocks Id System
/dev/sda1p1 2048 3907024895 1953511424 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.

But then after a reboot and mkfs.ext4 /dev/sda1 the drive is still coming up as ntfs in fdisk -l
 
Soldato
Joined
31 Oct 2005
Posts
8,790
Location
Leeds
My latest issue

I've mounted my HD drive (/dev/sda1) to a mnt directory hd1

I know there is 5gb still free on the HD, however when I copy a file to the HD via windows (mapped network drive) I'm told there isn't enough space on the drive, it only quotes 1.8gb (clearly the SD card)

Any advice?
 
Associate
Joined
30 Mar 2004
Posts
1,148
Location
West Wing
I have finally placed an order for the Raspberry Pi on Farnell! I'm going to start off with the RISC OS that recently featured on the RPI blog. Eventually i will dedicate it to a useful project doing something interesting but to start with im going to use it to familiarise myself with Linux because I am a complete newbie.
 
Soldato
Joined
8 Jun 2005
Posts
5,193
I'm back down to one Pi having sold one to CEX for £27 and ordered two 512mb ones at £25 each lol profit! When they arrive I hope to sell my last 256mb one to CEX too :) ...and then get another 512mb one lol
 
Permabanned
Joined
15 Nov 2011
Posts
1,156
Bit of a repost as in wrong section but here you go

Raspberry pi apache web server

Anyone tried it?

V1 Raspberry Pi (£15 eaby)
Weezy (FREE)
32SD CLASS 10 CARD (£10)
Belkin USB charger (£0.49P @ Halfords)
Loyal friend to help and a few beers

This is all new to me

My friend sorted me out on the SD card setup, so installing image, then settings on the Pi, overclocked, SSH, passwords changes, expanding the image to the full card size

Then i used reg123 to get my domain, .eu is going cheap, £1.26 inc VAT.

Then DNSexit to make everything transfer aross and over. Takes 24 hours.

Currently just using it as a dumping ground but i will play with it more as a host etc.

I know and understand for a lot here this may be nothing but it's pretty big for me and im sure manny others.

http://pyropetepete.eu/

It's really basic and im learning lots! Never ever done this

PS it's only got a 1mb upload conection
 
Soldato
Joined
15 Jan 2004
Posts
10,185
I believe you need to do:

Many thanks! Listed as Linux now.

Although still only getting ~4MB/sec, which is an improvement, but still slow.

Edit:

I modified the smb.conf file:-

From:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

To:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=65535 SO_SNDBUF=65535

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=144433#p144433

Now getting around 9.5-10.5 MB/sec. :)
 
Last edited:
Soldato
Joined
17 Aug 2005
Posts
7,612
Location
Swindon
I am considering buying one of these, well I have my order in the checkout just not gone through with it yet. Few questions first.

I would like to use it to play videos from my comp on the tv downstairs, I can connect it via HDMI but the router is in the room upstairs :s
Does it play all 1080p files? h/x.264/mkvs and what ever else there is?
How capable is the the OS that comes preloaded on the SD card? I am thinking of maybe streaming some football from various places that use flash/p2p streaming services?
What would I need for a complete set up? In my checkout basket I have the B, keyboard,mouse, usb power plug, 9 in 1 reader. Not added the SD card as I figure I can probably pick them up cheaper else where.
 
Soldato
Joined
15 Jan 2004
Posts
10,185
I would like to use it to play videos from my comp on the tv downstairs, I can connect it via HDMI but the router is in the room upstairs :s
Does it play all 1080p files? h/x.264/mkvs and what ever else there is?
How capable is the the OS that comes preloaded on the SD card? I am thinking of maybe streaming some football from various places that use flash/p2p streaming services?
What would I need for a complete set up? In my checkout basket I have the B, keyboard,mouse, usb power plug, 9 in 1 reader. Not added the SD card as I figure I can probably pick them up cheaper else where.

- It needs to be connected to the router by an ethernet cable or wireless adapter.

- Yes it does, but not all files play flawlessly at the moment, at least for me.

- Should be fine.

- Get a cheap USB hub from ebay instead of the USB power plug, much greater flexibility then to plug in more devices, or power more than one Pi from the same socket.
 
Associate
Joined
30 Mar 2004
Posts
1,148
Location
West Wing
Finally got my hands on the RPi delivered by Farnell. Delivery time was 16 days from date of order, so lucky i wasn't in a hurry.

My first impression was that its nice to finally see one in the flesh after months of hype. Also glad i waited until the model B. Currently using the Debian wheezy OS which seems to be the distro of choice.

Had a quick play in the Python IDE (IDLE). Seems simple enough to pick up once you have a basic understanding of programming concepts (which is all I have). Always surprises me how much you can achieve when you glue together various bits of code from other sources without really knowing how it works.

I've been tinkering with the RPi all weekend and im beginning to realise there are a huge amount of applications this could be used in. I recently found that you can get the Arduino IDE with all the libraries. I can now wire together an arduino project and connect it the the RPi's USB, then VNC into the OS and write the code or tweak it.

Only thing I would say is that the GPIO support still needs some improvement.
 
Back
Top Bottom