Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Raspberry Pi 4 Ubuntu Server #80

Closed
4 tasks done
nelsonic opened this issue Apr 9, 2022 · 18 comments
Closed
4 tasks done

Setup Raspberry Pi 4 Ubuntu Server #80

nelsonic opened this issue Apr 9, 2022 · 18 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Apr 9, 2022

Ordered a Raspberry Pi 4 8GB last year when they were still available ... (right now they are sold-out everywhere ...)
But didn't set it up as way too many things to do. ⏳
Now I have a good excuse to set it up to run Gogs on it. #79

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

https://www.raspberrypi.com/software/

image

image

image

Waiting ... (going to do some house work while this runs in the background ...)

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

image

2am ... gonna leave this and get some sleep. really need to dwyl/sleep#53 ... 🛌

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

99%. ... 🙌
image

psych! now verifying ...

image

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

image

inserted the MicroSD in the Pi and it's booting.
Definitely heading to bed now tho. 02:30 ... 😫

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

$ sudo apt-get install openssh-server

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

@nelsonic
Copy link
Member Author

nelsonic commented Apr 9, 2022

ssh into the Rasperry Pi from Mac:

image

Working. Now back to the fun part! #79

@nelsonic nelsonic closed this as completed Apr 9, 2022
@nelsonic
Copy link
Member Author

I mistakenly installed Ubuntu Desktop. And it keeps freezing!

Going to wipe it and install Ubuntu Server instead:

image

BRB ⏳

@nelsonic
Copy link
Member Author

This again ... 🙄

image

Good thing I've got a lot of other work I can be doing while this is running. 👨‍💻

@nelsonic
Copy link
Member Author

https://jonamiki.com/2020/08/29/default-password-not-working-for-ubuntu-server-20-04-on-raspberry-pi/

Be patient ... the default is ubuntu ubuntu ... but it takes time to init ... ⌛

@nelsonic
Copy link
Member Author

Connect the Ubuntu Server to Wifi:
https://itsfoss.com/connect-wifi-terminal-ubuntu/

$ ls /sys/class/net
eth0 lo wlan0

Make a note of the interfaces.

@nelsonic
Copy link
Member Author

Step 2: Edit the Netplan configuration file with the wifi interface detail

sudo vi /etc/netplan/50-cloud-init.yaml

Add the network details to the file including the password in plaintext ... 🙄
then run the commands:

$ sudo netplan generate
$ sudo netplan apply

@nelsonic
Copy link
Member Author

Appears to have worked.

and SSH works out-of-the-box on Server edition:

ssh ubuntu@192.168.1.197
$ whoami
ubuntu

@nelsonic
Copy link
Member Author

Running "desktopify" so I have a basic UI to view Gogs ... https://github.com/wimpysworld/desktopify

@nelsonic
Copy link
Member Author

OK. it was definitely a mistake to "desktopify" the server to full Ubuntu ...
it's taking forever and downloading a ton of stuff like LibreOffice, games and redundant drivers!

Lesson learned. Just run it as a server and do the GUI stuff from my main (Mac) computer.

Or perhaps consider using Lubuntu next time: https://en.wikipedia.org/wiki/Lubuntu

@nelsonic
Copy link
Member Author

Scratch that "Lubuntu" doesn't appear to support Raspberry Pi (ARM) ... 🙄

@nelsonic
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant