Raspberry Pi Part Deux

I have decided to have another look. Here are my notes, since re-factoring the old page seems a bit of a chore.

Plugging it in again

I’d forgotten that plugging it in is obvious although power is micro USB. Fortunately I had recorded the critical parameters, the login still works.

Sadly, it’s not been touched for ages, and I came across the apt-get hangs, a lot, feature. It seems it’s short of resources, but with persistence using reboot and dpkg --configure -a and apt-get update && apt-get upgrade, I managed to update the machine. I also uninstalled kodi.

To Do

I turned tor off also, I wrote a new check_service script using the service command to examine the running services and service tor stop to stop it. I found this helpful. But it restarts on reboot … I have forgotten how to fix this and the little f*cker now seems to have systemd. I have run systemctl disable tor, let’s see if that works

The desktop is barfed, it is missing all the icons; this talks about it. Do I need to uninstall and reinstall the desktop? What is the desktop? (Actually this went away once, I got to the status of a complete update!)

I have installed imagemagick , baobab and removed libreoffice. I have also installed lshw and locate.

I haven’t remembered how the “pi” advertises it’s hostname. I have upgraded samba, because it seems to come with a name daemon of some description and when I ran apt-get install, it said it needed to upgrade the samba package; samba is also documented on this page on the raspberry site and can now ‘see’ the pi on the network window. And now I can’t! I mucked around with the smb.conf file, so I remove and install.

How to back it up. See here at stack exchange. The suggest this,

sudo dd if=/path/to/your/WIN10.ISO of=/dev/sdX bs=4M status=progress; sync

so is that if=/. I exported / using samba but imgburn fails with network errors and disk imager doesn’t recognise the device that I mounted it on. I found this to use ssh,

ssh hostname@my.ip.address "sudo dd if=/dev/sdX " | \
  dd of=/home/username/Documents/filename.image`

This article at makeuseof.com explains how to update the distro which didn’t work, so trying the RPi docs on the subject.

Shall I uninstall wolfram-engine? It seems to be a programming environment. Yes! Stretch is quite big.

APT & Raspian

I should document the hardware version, but as I moved forward from a two year old Jessie OS image to Stretch, I find that often apt-get causes a hang or a reboot. There’s some stuff on google, but nothing fabulously compelling.

I had some failures due to missing locales, this page helped. Can’t remember if I had to install locale-gen or update-locale.

Bloody hell. Is nice the answer to apt’s bad behaviour?

Using nice still had problems. I used a combination of the following commands

# dpkg --configure -a
$ sudo nice apt-get dist-upgrade
# apt-get update && apt-get upgrade
# reboot
# apt --fix-broken install
# apt autoremove

Complete pain in the bum, it’d be useful to know why it fails in this way.

I have sort of repeated these comments in Raspbian & APT on this wiki; it’s meant to make it easier to find.

I have installed Raspi Check and Juice SSH on my phone. I had to add my login user to Raspi Check’s assumed default group. Shall I install Zabbix somewhere? It might help monitoring the speed of the web sites. I chose to use uptime robot.

DDNS

I need this for this purpose; here’s how to geek on the subject, hope it’s UK relevant. This recommends using the router’s DDNS interface.  In my case, I use BT, and they have a specific list that they claim to work with. I chose one of them; if I had wanted to use something else I could have used the alternate configuration of needing an agent and port forwarding records on the router.

No-ip has an software tool to let them know the address is still in use.

UTServer

Google is my friend, google: how to run a bit torrent server on raspbian

Run uTorrent on Raspberry Pi

https://www.howtogeek.com/142044/how-to-turn-a-raspberry-pi-into-an-always-on-bittorrent-box/

Related Posts

Raspberry Pi

One thought on “Raspberry Pi Part Deux

  1. I now have a Raspberry Pi, on the internet, but it’s running Jessie and I am advised to upgrade to Stretch; this is good advice but I am fearful for apt & apt-get, it frequently hangs the machine. I am trying to make a backup.

    Can I use a disk partitioning tool to create space for a nas mount to hold the output from a disk clone opperation using dd, or something else?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.