News for hackers. Stuff that matters.
Re:I Nearly Lost All of My Data by gtirloni on Saturday January 19, 2019 @06:00PM (#18949766)
Does the RaspberryPi have enough CPU for disk encryption?
Re:I Nearly Lost All of My Data by bhauer on Saturday January 19, 2019 @06:19PM (#18949845)
It doesn't need to, assuming you're using something like rclone [1], where the encryption is done on the "client," which in this case would be the GP's home server. The client does the encryption, treating the disk attached to the Raspberry Pi as an untrusted third-party disk. As long as you keep the decryption key safe (e.g., on a USB stick stored off-site), you should be good to go in the event that you need to pull data and decrypt it.

[1] https://rclone.org/

Re:I Nearly Lost All of My Data by chiph on Saturday January 19, 2019 @08:46PM (#18950429)
I've run Truecrypt on mine, and it works with small drives - 100gb or so. But it gets super hot, even with a heatsink. I wouldn't rely on it.

This was so I could use it to back up my Synology box to a set of external USB drives and retire the older Mac Mini I had been using. I'm still using the Mini...

In the case of the author, +1 for doing backups, but -1 for not establishing a chain of off-site copies (a safety deposit box at your bank, a relatives house that's some distance away, etc)

Re:I Nearly Lost All of My Data by mikeash on Saturday January 19, 2019 @06:50PM (#18950013)
You can do encryption with any amount of CPU power, it’s just slower if you have less. Backups are not typically a case where speed is extremely important.
Re:I Nearly Lost All of My Data by rocky1138 on Saturday January 19, 2019 @10:05PM (#18950703)
I'm not sure about disk encryption, but I know that the Raspberry Pi didn't have the juice to cut it when Syncthing was running, calculating hashes for my files. I eventually gave up, hoping that some day Go would support the use of GPU hardware to hash combined with accelerated drivers for the Pi's graphics card.
Re:I Nearly Lost All of My Data by nothrabannosir on Saturday January 19, 2019 @06:41PM (#18949963)
RaspberryPis can emulate Mario Kart on an N64, run Minecraft on Linux and even Mathematica at decent speeds; I'm willing to bet big bucks they can handle symmetric key encryption (which does not require much power).

If a crappy NAS can run disk encryption, so can a raspberry pi. They're deceivingly potent.

Re:I Nearly Lost All of My Data by hendry on Saturday January 19, 2019 @07:00PM (#18950057)
Eloquent except the Rpi has a terrible USB bus.
Re:I Nearly Lost All of My Data by sliken on Saturday January 19, 2019 @08:23PM (#18950359)
It got significantly better in the last generation. As a result the disk I/O and network are significantly faster. While the last 2 versions had GigE, the throughput almost doubled in the last generation.
Re:I Nearly Lost All of My Data by lostlogin on Sunday January 20, 2019 @04:06AM (#18952068)
> RaspberryPis can emulate Mario Kart on an N64

Yes they can, and Golden Eye. I have just played Mario Kart with the kid before bedtime. It stutters a little if you have too many karts on screen, but that’s not a problem when you’re winning.

Re:I Nearly Lost All of My Data by clanrebornyes on Saturday January 19, 2019 @11:26PM (#18951074)
I am trying to find cheaper device between NUC and Pi.

Lot fewer choices are available.

NUC is expensive. I wonder when will 8core ARM based NUC will arrive in the market.

No idea is NUC can be powered by Xiomi Mi 2i powerbank but a Raspberry Pi can be

Priorities:

1. Gigabyte ethernet

2. Small form factor NUC or smaller.

3. 8+ cores

4. Very low power consumption

Re:I Nearly Lost All of My Data by 8fingerlouie on Monday January 21, 2019 @09:19AM (#18960489)
You should give the Odroid HC2 (or HC1) a look (https://www.hardkernel.com/shop/odroid-hc2-home-cloud-two/)

It's an 8 core ARM SBC, with 2GB Ram, Gigabit ethernet on one USB3 bus, and a SATA connector on another USB3 bus. It can fully saturate spinning rush, though it might have problems with SSD drives. In any case, it will fully saturate your GigE link with even a slow harddrive.

It runs a standard Linux kernel, with the "driver" for the hardware added, which is why it requires a special build. Latest kernel version is 4.18. There is also an OMV build for it.

Mine uses around 4-8W, depending on how much the harddrive is being used. I've got a couple of them running as backup targets (Arq, Borg, etc) with a 4TB WD Red and Btrfs, and they've been rock solid.

If you need hardware AES, you should probably be looking elsewhere.

Re:I Nearly Lost All of My Data by adrian_b on Sunday January 20, 2019 @12:58AM (#18951442)
The 3rd and 4th are mutually exclusive. If you want the power consumption of a smartphone, you also have the computational speed of a smartphone, but that should be enough for many applications.

I have experimented with a very large number of devices between NUC and Pi.

While the best processors for such devices would be ARM processors (with Cortex-A76 or Cortex-A75), nobody offers adequate devices.

You can find only devices with obsolete slow ARM processors, e.g. RK3399, which are much faster than Pi but much slower than x86, or you can find development systems or modules with modern smartphone ARM processors, but those are much more expensive than a faster Intel NUC.

Therefore, for the moment the only sensible choices are devices with either Intel Gemini Lake processors or with Intel Y-Series processors.

The devices with Intel Y-Series processors are much faster, but they are also more expensive. While Zotac has presented at CES one such device, its price and time of availability are unknown.

For now, the only device available with Y-Series is "LattePanda Alpha". Considering that its price includes 8 GB RAM, 64 GB flash and the Windows licence (even if I wiped it and I installed Linux) it is cheaper than an i3 NUC where at the same price you have no memory.

It has everything a NUC has, except that it has one less USB port (it has 1 C + 3 A, while some NUCs have 1 C + 4 A). I have installed in its 2 M.2 connectors a NVMe SSD and a second Ethernet interface. The speed was excellent, because the Kaby Lake CPU was configured for 7 W TDP with 15 W TDP for the first 28 seconds. The included fan does not start unless you run a heavy workload and even then it is silent. The size is smaller than a NUC but larger than a pico-ITX board.

If you want something cheaper, or if you want, like me, both full-size DisplayPort & HDMI connectors (not DisplayPort on USB C), then you must choose a Gemini Lake device, i.e. either Zotac ZBOX PI335 Gemini Lake (with N4100, not to be confused with the obsolete ZBOX PI335 with N3350) or an ODROID H2.

The ODROID H2 is faster and possibly cheaper (depending on the memory you buy or you already have; ZBOX has soldered memory), but it is larger. ODROID H2 is NUC-sized while PI335 Gemini Lake is pico-ITX sized. ODROID H2 has 2 Ethernet, but PI335 Gemini Lake includes WiFi & BT and it comes in a closed case which will protect it in dusty environments (both have passive cooling). PI335-GK uses a 5 V power supply, so it should be easy to be powered from a power bank. The CPU TDP is configured for steady state 6 W and 15 W for the first 28 seconds. The idle CPU power is less than 2 W. I have not measured the total idle power of the computer. With the CPU halted, the power consumption should be much less, but I have not measured it.

Gemini Lake has a speed just a little less than a Snapdragon 845, but it is much faster than older ARM processors and than older Atom processors.

Re:I Nearly Lost All of My Data by snovv_crash on Sunday January 20, 2019 @11:28AM (#18953766)
There's the Intel Up board. 4 Atom cores, gigabit ethernet, 2xUSB3, 2xUSB2, HDMI and the same form factor as a Pi. You can get expansion boards that break out more USB ports (not on a hub, independent bandwidth), native UART and I2C. I've been playing with them for onboard computing on a drone, so far it is working really well. Price is about $100 for the low spec ones.
Re:I Nearly Lost All of My Data by netsharc on Saturday January 19, 2019 @06:04PM (#18949786)
Not OP, it'd be neat if it just uses FTP (or rsync) to transmit data which is already encrypted from the uploading-side...
Re:I Nearly Lost All of My Data by stedaniels on Sunday January 20, 2019 @04:50AM (#18952214)
With encrypted upload, you usually get a destination authentication thrown in for free, i.e. you're uploading to the right server :-)
Re:I Nearly Lost All of My Data by nvr219 on Sunday January 20, 2019 @08:30AM (#18952947)
1. yes 2. you would want to encrypt before sending to rpi anyway