Quick Server – Raspberry Pi

Currently running Lubuntu 18.04.2 LTS (Bionic Beaver) as my primary desktop OS.

When I decided to set up a Raspberry Pi for a quick test server, I thought I’d do everything from the terminal to refresh myself with some basic commands.

I found an SD card with an image of some Raspbian on it already, however it was erroring on boot, possibly from a mounted removal of the device. Whoops..

First I checked what the system recognized the device as with sudo fdisk -l

The device was /dev/sdf and showed a small partition of /dev/sdf1 and a larger partition of /dev/sdf2

I removed both partitions with parted after verifying they were unmounted
:~$sudo umount /dev/sdf1
:~$sudo umount /dev/sdf2

:~$sudo parted /dev/sdf rm 1
:~$sudo parted /dev/sdf rm 2

Prior to this I downloaded the latest Raspbian img from

From the Downloads directory (where the img resides) I ran the following to copy the img to the SD card

sudo dd bs=1M if=2019-06-20-raspbian-buster-lite.img of=/dev/sdf

As a side note, to detail exactly what version of Linux I am using I used the following command
:~$cat /etc/os-release

Dedicated Server for Software Dev / Testing

Downloaded latest Lubuntu x64 image as of July 4th 2018.

Copied the ISO to a 16GB USB jump drive w/ Universal USB Installer

After following the install through to completion, I’m ready to start setting up the network and SSH.

I type ‘ifconfig” and surprisingly net-tools are not installed on this image. The terminal displays a command to install net-tools, which I run.

sudo apt install net-tools

I also run a command to check for and install updates.
sudo apt-get update
sudo apt-get upgrade

Set static IP via the GUI

Installed SSH Server w/
sudo apt-get install openssh-server

Installed Apache w/
sudo apt-get install apache2

Notes – Raspberry Pi

Installing / Using Raspberry Pi Raspbian

Download image file from : https://www.raspberrypi.org/downloads/

Format SD card with SDFormatter w/ Format Size Adjustment set to ON

Imaged SD card with Win32DiskImager

Username/Password for Raspbian
pi / raspberry

Checked the size of partitions with parted
> sudo parted -l

Expanded Filesystem with raspi-config
> sudo raspi-config
option 1


Install gqrx Software Defined Radio Package
> sudo apt-get install gqrx-sdr

Running gqrx failed with “gqrx: cannot connect to X server”

Removed gqrx
> sudo apt-get purge –auto-remove gqrx-sdr

Check linux version
> cat /proc/version

Install software-properties-common to use “add-apt-repository”
> sudo apt-get install software-properties-common

It appears gqrx is processor intensive, therefore the Raspberry Pi B+ is not a good platform
for this application


To run a GUI on Rasbian

> sudo tasksel
select enviroment with spacebar {I chose LXDE}
press enter
tasksel: apt-get failed (100)

I tried selecting “Debian desktop enviroment” and “LXDE”
same error

same error selecting “xfce”

Install LXDE with apt-get

> sudo apt-get install LXDE


a gui is not recommended as it’s very slow

to uninstall LXDE , sudo apt-get purge –auto-remove LXDE , doesn’t work
I could further remove all packages related to LXDE, however I’m not concerned with space at
this time

Setup Pi to boot into console on startup

run raspi-config
> sudo raspi-config
select boot options [3]
select B2 Console Autologin

A simple fix for an “offline” printer

I had a call from a customer today. Their issue was a network printer showing “offline”. They tried restarting the computer and printer before calling me.

Other computers on the network were able to print to this printer.
I verified the IP address from another working configuration.

I should note the OS is Windows 7.

I first tried disabling “SNMP Status Enabled” from the Port Settings under the TCP/IP port configuration of the printer. This brought the printer back online but still unable to print.

I removed the printer configuration from the computer. After keying in the IP address to add the printer back it would not “find” the printer..

After a cup of coffee, I finally thought to disable McAfee Firewall. After again typing the IP in the add printer wizard, the computer was able to establish the connection needed to install the printer.

I left the McAfee Firewall disabled.

Final thoughts.. Get your cup of coffee first, then check the firewall before banging your head against the wall for a simple issue such as this..

Trusting the Workstation

The Error :
(Windows 7 Professional) The trust relationship between this workstation and the primary domain failed.

This was a popup while trying to login to Windows.

Server Side: (Windows Server 2008) Event Viewer/System – Error NETLOGON 5722

I searched the Microsoft website for ” 5722 ” the results – The session setup from the computer “WORKSTATION NAME” failed to authenticate. The name(s) of the account(s) referenced in the security database is ” “. The following error occurred : Access is denied.

Well lovely. After a quick Google search I didn’t really find a good quick answer. As the error implies, this happens when a workstation on the Domain can no longer authenticate with the server for one reason or another. Most of the time that reason is unclear. Though deeper study could be done to find the issue.. but who has the time these days?

So.. what did I do to fix this problem?

Solution: Enable administrator account on local machine. Restart computer. Logon as Administrator. Change settings to Workgroup. Restart Computer. Logon as Administrator. Change settings back to Domain. Restart Computer.

Fairly simple.. anyway worked for me. Might help you too…

That’s all for now…