[SOLVED] How to SSH into Ubuntu Server on Odroid H2+?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

[SOLVED] How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Apologies if I'm not expressing myself that well, but I'm trying to run ubuntu server headless on the h2+.

However, after I flash the eMMC with the latest ubuntu server iso image I don't see anything under Hostname after running an ip scan using Angry IP Scanner, therefore I'm not sure which IP address to SSH into.

How to do this? By attaching a keyboard and screen and enabling ssh?

Just want to make sure before buying the keyboard+monitor.

Peace and love,

kkdao

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Normally you (I) would do the install from a USB stick. During the installation process it asks whether you want to enable SSH. For the H2+ you also need to install the Realtek driver so I'm not sure there's any way around using a screen and keyboard.
These users thanked the author powerful owl for the post:
kkdao (Tue Jul 28, 2020 2:50 pm)

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Hmm okay thank you. My only experience with SBCs so far has been with a Rock64 from Pine64 and I just popped in a microSD with an image on it and was able to ssh into it after. I want to use Odroid products because they are better, I just don't have any experience yet. Hence why I mentioned eMMC because I figured the process would be the same way, just with an eMMC chip instead of microSD.

So I don't mind getting a screen and keyboard, but could you perhaps share the rough steps with how you'd do the whole process? I'm using Manjaro OS on my PC so can enter any Linux commands you think will get the job done!

Do you just flash the ubuntu server iso image onto the USB stick and plug it into the board, attach the screen and keyboard, power on device and there will be a installing screen of sorts on the screen? At which point do I install the Realtek driver?

Sorry, just trying to visually grasp what needs to be done, but thank you so far!

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

I guess the difference with the H2/+ and ARM SBCs is that the latter have images already prepared for the specific board so you can just flash to the SD/eMMC, whereas the H2/+ uses generic x64 installer. Perhaps someone might be able to provide a pre-prepared image for the H2+.

But yes,
kkdao wrote:
Tue Jul 28, 2020 3:07 pm
Do you just flash the ubuntu server iso image onto the USB stick and plug it into the board, attach the screen and keyboard, power on device and there will be a installing screen of sorts on the screen?
You would install the realtek driver once you have Ubuntu running.

With that said, I've not used an eMMC on my H2s. I assume installing to it would the same as installing to an SSD...

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Wait, doesn't your Manjaro PC have a monitor and keyboard?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Ah shoot, I just assumed SBCs would function similarly, but that makes total sense. I guess I have to wait for a pre-prepared image then:(

Okay that makes sense as to the process involved, except I forgot to mention I'd be connecting the board to my router via ethernet for internet connection, so not sure if that changes anything.

Hmm well I definitely don't know if the installation is the same, but I also assume that the OS image should be on the eMMC-16GB (or microSD) and then save the SSD-1TB for the contents I want to download onto there.

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

I would just install the OS to the SSD...

You should be able to just use the monitor and keyboard you have (from your PC) to install onto the H2+ , also check the BIOS settings if needed. It should be a simple process.

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Tue Jul 28, 2020 3:29 pm
Wait, doesn't your Manjaro PC have a monitor and keyboard?
Yes it does. That's how I SSHed into my previous headless SBC, and how I wanted to do it with this SBC, but I'm hearing Ubuntu Server doesn't have SSH enabled, so need to connect a keyboard and monitor to the board.

Or are you saying I would then just need the display port adapter cable (instead of monitor and keyboard also) to connect my Manjaro PC's monitor and keyboard to the board? If so, how would that work when plugging it in since I already have an OS and other things installed on this PC?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Tue Jul 28, 2020 3:58 pm
I would just install the OS to the SSD...

You should be able to just use the monitor and keyboard you have (from your PC) to install onto the H2+ , also check the BIOS settings if needed. It should be a simple process.
Okay I'll research how to do that

And I'll figure out how to try this as well

It may be simple for you, but this is all new to me;)

Thanks for your suggestion

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

I'm assuming you have separate monitor and keyboard, if so you can just unplug them from the PC and plug them into the H2+. Either with HDMI or DisplayPort.

Once you're done with installing Ubuntu Server on the H2+ you connect the monitor and keyboard back to the PC and run the H2+ headless.
These users thanked the author powerful owl for the post:
kkdao (Tue Jul 28, 2020 4:23 pm)

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Understood, will let you know how it goes. Thanks!
These users thanked the author kkdao for the post:
powerful owl (Tue Jul 28, 2020 4:26 pm)

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Okay after I got the monitor and keyboard connected and it booted up (saw the Hardkernel logo) I was greeted with this screen

>>Checking Media Presence......
>>Media Present......
>>Start PXE over IPv4 (or) IPv6

If I pressed ESC though I would go to the setup utility screen with BIOS info, etc. and I'm no sure what to do there.

I didn't think that was how the install process should go, so this time I tried with the eMMC that has the latest ubuntu server version flashed onto it, and I was greeted with the same screen info, however when I pressed ESC I was greeted with an ubuntu server install screen. so I selected install server and kept pressing Done, and then Continue without network (not sure if I should setup anything differently than this default setup) and the install process seemed to be going okay, but then I got an error. I tried attaching a pic here, but unfortunately it is too large of a file size.

I can at least post the first few lines:

ProblemType: Bug
ApportVersion: 2.20.11-0ubnu27
Architecture: AMD64
CasperMD5CheckResult: pass
CasperVersion: 1.445
CrashDB: {'impl': 'launchpad'. 'project': 'subiquity'}
CurrentDmseg:
too long to put haha

I'm curious though, at which point should I install the Realtek driver during the ideal process?

User avatar
odroid
Site Admin
Posts: 34947
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 960 times
Been thanked: 775 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by odroid »

Flash the latest Ubuntu server iso image into a USB flash on your host PC.
Then, plug it and boot from the USB flash. You can install the OS into the eMMC from the USB.

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

odroid wrote:
Wed Jul 29, 2020 4:05 pm
Flash the latest Ubuntu server iso image into a USB flash on your host PC.
Then, plug it and boot from the USB flash. You can install the OS into the eMMC from the USB.
right, i was supposed to flash to usb first. but that's great i didn't know i could install the OS into the eMMC from the USB, will give it a go!

mad_ady
Posts: 8338
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 574 times
Been thanked: 439 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by mad_ady »

Consider the h2 is just a pc. It behaves the same way.

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

odroid wrote:
Wed Jul 29, 2020 4:05 pm
Flash the latest Ubuntu server iso image into a USB flash on your host PC.
Then, plug it and boot from the USB flash. You can install the OS into the eMMC from the USB.
Apologies, but I thought there would be some info online about how to install the OS into the eMMC from the USB. Can you share how to do that, or did I miss a link somewhere online?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

mad_ady wrote:
Thu Jul 30, 2020 12:01 am
Consider the h2 is just a pc. It behaves the same way.
yeah i am trying to wrap my head around, it's still all so new to me, but that makes sense!

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Okay I tried to edit the BIOS setup to boot from USB as per these instructions: https://wiki.odroid.com/odroid-h2/start ... ia_on_boot

As soon as I turned it on and I saw the HK logo I pressed F7. I was then asked to select boot device.

Unfortunately, I don't see a USB option, or even NVMe which is also connected:(

All I see is

UEFI: PXE IP4 Realtek PCIe 2.5GBE Family Controller
UEFI: PXE IP6 Realtek PCIe 2.5GBE Family Controller
UEFI: PXE IP4 Realtek PCIe 2.5GBE Family Controller
UEFI: PXE IP6 Realtek PCIe 2.5GBE Family Controller
UEFI: DL03
UEFI: DL03, Partition 2
Enter Setup



Any suggestions on what to try next?

FWIW, I'm trying to connect via ethernet. I'm pretty sure that doesn't even matter at this point, but I'm just trying to provide as much info as possible as to what my setup is like.

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Isn't DL03 the USB stick? (Or maybe you left the old image on the eMMC.)

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

I don't think it is because it doesn't say USB, but not just that, because it doesn't change anything when I select to boot from it. I get the same screen after startup

>>Checking Media Presence......
>>Media Present......
>>Start PXE over IPv4 (or) IPv6

when I press ESC I get taken to the Ubuntu Server install screen, but it also crashes during the profile creation step.

As for the image left by the eMMC, do you think that could be the case even though I removed the eMMC physically? You're saying it could still be there digitally?

FWIW, I tried using USB2.0 and USB3.0 port, but that didn't change anything. Been trying different things, but can't figure it out yet

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

It looks like you are doing a network boot (PXE) - are you using the down arrow to move to the DL03 and pressing return?

User avatar
odroid
Site Admin
Posts: 34947
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 960 times
Been thanked: 775 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by odroid »

You can boot from USB 2.0 as well as 3.0.
I think that BL03 must be a USB storage.
Did you use Etcher to flash "ubuntu-20.04-desktop-amd64.iso" or "ubuntu-20.04-live-server-amd64.iso" image?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Okay
Alright, well I did try to boot from DL03, but I got the behaviour I described above
Yes I always use Etcher for flashing:) and I did the live-server iso image FYI
Last edited by kkdao on Thu Jul 30, 2020 10:33 pm, edited 1 time in total.

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Thu Jul 30, 2020 9:23 pm
It looks like you are doing a network boot (PXE) - are you using the down arrow to move to the DL03 and pressing return?
yes i am using the down arrow to move to the DL03 and pressing return, should i be performing another action?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

should i be doing this? viewtopic.php?p=292728#p292728

if so, i'm not sure how

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Okay, assuming DL03 is the USB device, I figured out how to boot from it via the BIOS setup utility by ENABLING the Fast Boot option, which then gave me the option to enable full USB startup support. So when I saved the config and exited, it restarted itself and booted up without that screen from before and went directly to the Ubuntu Server install screen! So that means I successfully figured out how to get it to boot from USB right?

Because I go through the install again, but it still crashes:(

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

DId it crash after the Proceed without Network Option? That happened for me but it went through the second time.

Even so, the instructions in the Wiki for installing the Realtek driver don't work with Ubuntu Server. You may want to consider installing a desktop and see how that goes... I can confirm that the easy way to do it is Linux Mint with a sanctioned Wifi adapter. Sorry I can't be of more help :(

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Thu Jul 30, 2020 11:37 pm
DId it crash after the Proceed without Network Option? That happened for me but it went through the second time.

Even so, the instructions in the Wiki for installing the Realtek driver don't work with Ubuntu Server. You may want to consider installing a desktop and see how that goes... I can confirm that the easy way to do it is Linux Mint with a sanctioned Wifi adapter. Sorry I can't be of more help :(
Yes it crashed after that option. Well I tried several times again after, but it didn't go through unfortunately.

Oh well that's not good haha because it was suggested to install it once I got Ubuntu Server up and running.

Okay I will try with the desktop iso image and see if that works.

At least I know there is a way that works with Linux Mint and a sanctioned Wifi adapter because I ordered two of these badboys, but I need to SSH into them :P

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Oh, I mean the Wifi adapter is the easy way to install the Realtek driver, then you can remove it and use the Ethernet. SSH just needs to be installed with sudo apt-get install openssh-server.

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Fri Jul 31, 2020 12:03 am
Oh, I mean the Wifi adapter is the easy way to install the Realtek driver, then you can remove it and use the Ethernet. SSH just needs to be installed with sudo apt-get install openssh-server.
Ah okay I see, that's interesting that you need a Wifi adapter to be able to use the Ethernet. Right, well I'd love to get to that point haha

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

?

Maybe just read the instructions. https://wiki.odroid.com/odroid-h2/appli ... plus#linux

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Fri Jul 31, 2020 12:15 am
?

Maybe just read the instructions. https://wiki.odroid.com/odroid-h2/appli ... plus#linux
Yes, but that's once Ubuntu is actually installed which I didn't have at the time, but I do now!

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

UPDATE! I got it installed:)

I couldn't figure out how to remove the data from the USB flash drive, so I just reflashed the eMMC with the desktop iso which was very easy

Then I booted up the board and it went to that same network boot (PXE) startup screen, so I pressed ESC then I was greeted with the ubuntu desktop install page, and proceeded as I would with the last install, but this time everything went great and I got it installed! I installed it to my NMVe drive though which is a 1TB SSD from Sabrent FWIW

So later on I will figure out how to install ssh because I got an error using sudo apt-get openssh-server

Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'openssh-server' has no installation candidate

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

I may have gotten the Ubuntu desktop iso installed, but I'm still not able to SSH into Ubuntu on my Odroid H2+... Does anyone have experience with this issue not being able to install openssh-server?

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Did you install the Realtek driver?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Sat Aug 01, 2020 5:03 pm
Did you install the Realtek driver?
I tried to, but has the same issue because it also gives back an error. The openssh-server or sudo apt update gives back an error full of failures to fetch archives. So I think I need to edit where I source my archives from, but not sure how to.

FWIW, the Realtek driver error didn't say anything about failing to fetch archives, it just stated

Cannot add PPA: 'ppa~hardkernel/ppa' .
ERROR: '~hardkernel' user or team does not exist.

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Oh, you can't use the PPA method until you have a network connection. If you have a USB Wifi adapter, plug it in and connect to your Wifi network (hopefully it will be supported out of the box by Ubuntu). Then you can use the PPA method to install the realtek driver. Then you should be able to use Ethernet.

If you don't have a supported Wifi adapter, you will need to download the file on your PC and copy it to the H2 with eg a USB stick. I didn't do it that way, but the instructions are in the Wiki. The first way is much easier I think.
These users thanked the author powerful owl for the post:
kkdao (Sun Aug 02, 2020 1:18 am)

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Ah okay that makes sense, thank you. I will proceed with that in mind.

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Oh man these instructions are quite confusing to me haha: https://wiki.odroid.com/odroid-h2/appli ... repository

I will keep trying to grasp it and do it, but if I do end up getting a Wifi adapter to make it easier, do you happen to know which one I should get? I noticed there are about 5 different modules

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Okay so I gave these instructions a go: https://wiki.odroid.com/odroid-h2/appli ... repository

At first I couldn't get past the second step with this command:

sudo mount $(sudo fdisk -l | grep "0 Empty" | awk '{ print $1 }') /media/cdrom

I searched and searched and found that this command got me to the next step:

sudo mount -a $(sudo fdisk -l | grep "0 Empty" | awk '{ print $1 }') /media/cdrom

Then I was able to successfully check that the correct partition mounted with the next command when I wasn't able to see anything before. So with:

df -Th | grep cdrom

I get

/dev/sda1 iso9660 2.6G 2.6G 0 100% /media/cdrom

The cdrom part is red though so I'm not sure if that's an issue

For the next step I typed the next command

sudo apt-cdrom add -d /media/cdrom -m

and I get exactly what the next step command shows

Using CD-ROM mount point /media/cdrom/
Identifying... [262d29a6a66e8f1bebc790a773ce80ec-2]
Scanning disc for index files...
Found 4 package indexes, 0 source indexes, 0 translation indexes and 1 signatures
This disc is called:
'Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)'
Copying package lists...gpgv: Signature made ---- -- -- (-)
gpgv: using RSA key D94AA3F0EFE21092
gpgv: Good signature from "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>"
Reading Package Indexes... Done
Writing new source list
Source list entries for this disc are:
deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted
Repeat this process for the rest of the CDs in your set.


But I'm not sure what to do next because I still can't add the Hardkernel PPA or do sudo apt update like here: https://wiki.odroid.com/odroid-h2/appli ... kernel_ppa

I assumed that I should edit my source list with "sudo nano /etc/apt/sources.list" and then replace what was in the deb cdrom lines with:

deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted

However after I save and exit the list and try to add the PPA with "sudo add-apt-repository ppa:hardkernel/ppa" I get:

Cannot add PPA: 'ppa:~hardkernel/ubuntu/ppa'
ERROR: '~hardkernel" user or team does not exist.

and when I try to do "sudo apt update" I get:

Ign:1 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal InRelease
Hit:2 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal Release
Reading package lists... Done
E: Release file for cdrom:[//Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/dists/focal/Release is not valid yet (invalid for another 21d 12h 0mins 46s). Updates for this repository will not be applied.

EDIT: When I look through the source list at the end it tells me this:

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure at package sources,
# see the sources.list(5) manual.

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Sorry, i can't help with any of that as I haven't done it. WIth regard to the Wifi adapter, the instructions page says Wifi Module 0 and Wifi Module 3 work. I ordered Module 3 with my H2+, very glad I did now... ! I'm sure there are other adapters that will work but I don't know how you can tell in advance.
These users thanked the author powerful owl for the post:
kkdao (Mon Aug 03, 2020 12:52 am)

joshua.yang
Posts: 409
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 23 times
Been thanked: 89 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by joshua.yang »

kkdao wrote:
Sun Aug 02, 2020 7:08 pm
But I'm not sure what to do next because I still can't add the Hardkernel PPA or do sudo apt update like here: https://wiki.odroid.com/odroid-h2/appli ... kernel_ppa

I assumed that I should edit my source list with "sudo nano /etc/apt/sources.list" and then replace what was in the deb cdrom lines with:

deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted

However after I save and exit the list and try to add the PPA with "sudo add-apt-repository ppa:hardkernel/ppa" I get:

Cannot add PPA: 'ppa:~hardkernel/ubuntu/ppa'
ERROR: '~hardkernel" user or team does not exist.

and when I try to do "sudo apt update" I get:

Ign:1 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal InRelease
Hit:2 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal Release
Reading package lists... Done
E: Release file for cdrom:[//Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/dists/focal/Release is not valid yet (invalid for another 21d 12h 0mins 46s). Updates for this repository will not be applied.
Hello,

Adding a PPA requires the Internet definitely. But the way that the Ubuntu CD as an apt repository, there's no need to add Hardkernel PPA.
The method you're trying to requires the standalone Debian package file.

0. Please remove the added Hardkernel PPA if possible.
1. Download this Debian package onto another PC: https://github.com/awesometic/realtek-r ... _amd64.deb
2. Copy that file to your newly Ubuntu installed H2+. Generally, it requires a USB stick.
3. Then install that copied deb file using this command, sudo apt install ./realtek-r8125-dkms_9.003.05-1_amd64.deb.

In this way, since you added the repositories of your Ubuntu CD, the required dependencies for installing that DKMS package will be installed too.
Or, you should connect to the Internet using Wifi module or Smartphone USB tethering or someway.

It might be needed to add Hardkernel PPA later if you want to update the DKMS package. The update will be delivered with the r8125 driver's update.
These users thanked the author joshua.yang for the post:
kkdao (Mon Aug 03, 2020 11:03 pm)

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

Thank you very much for your answer. I have a Wifi module on the way, but I would really like to get it working this way.

I felt like I was making progress, but I hit another roadblock.

I copied that deb file using a USB stick to my Downloads folder, and installed it from there using:

sudo apt install ~/Downloads/realtek-r8125...

It began the operation okay and asked it I wanted to continue [Y/n] but after I selected Y it shows:

Get:1 /home/kkdao/Downloads/realtek-r8125...
Media change: please insert the disk labeled
'Ubuntu 20.04 LTS_Focal Fossa_ - Release amd64 (20200423)'
in the drive ' /media/cdrom' and press [Enter]

However I can't get passed this because I think I am not using a CD with that image, that image is now on my NVMe SSD (image was on eMMC before). I tried inserting a USB with the latest ubuntu desktop iso image and mounted it in the drive '/media/cdrom' using another terminal, and I could see the USB icon show up on the Activities sidebar (under the terminal icon) when I did that, but when I went back to the terminal with the above message, I pressed [Enter] and the USB icon went away on the Activity sidebar

So I am out of things to try to get passed this point currently

joshua.yang
Posts: 409
Joined: Fri Sep 22, 2017 5:54 pm
languages_spoken: Korean, English
ODROIDs: XU4, XU4Q + Cloudshell2, H2, N2
Has thanked: 23 times
Been thanked: 89 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by joshua.yang »

Did you use apt-cdrom after mount the Ubuntu USB stick to /media/cdrom?
These users thanked the author joshua.yang for the post:
kkdao (Tue Aug 04, 2020 10:27 pm)

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

No because I didn't know I had to :lol: !

First I tried using "apt-cdrom add"

But it also made my USB stick unmount even though it made more progress than last time before it unmounted itself. So I searched for a command online to make it not unmount itself and it was this:

sudo apt-cdrom -d=/media/cdrom -m add

Then I was able to successfully install DKMS!!

To make sure I have a internet connection via ethernet I had to follow this: https://wiki.odroid.com/odroid-h2/appli ... the_driver

and do "sudo modprobe r8125"

Then I was able to see an ethernet connection and an IP address using "ip a"

Now I see I have a wired connection, but how do I install openssh-server? I assume I need to have this installed in order to be able to SSH into this OS, correct?

FWIW, I was successfully able to use "sudo apt update", but I still get the error that looks like this when I try "sudo-get install openssh-server":

Reading package lists... Done
Building dependency tree
Reading state info... Done
Package openssh-server is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'openssh-server' has no installation candidate

EDIT: I'm also able to see the hostname when I do a scan with Angry IP Scanner which is another step in the right direction. It's "kkdao-ODROID-H2.local"
These users thanked the author kkdao for the post:
joshua.yang (Wed Aug 05, 2020 9:34 am)

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

What is the contents of sources.list?

Oh, and /etc/apt/sources.list.d/official-package-repositories.list

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

powerful owl wrote:
Wed Aug 05, 2020 12:30 am
What is the contents of sources.list?
Okay well at least I know I'm in the right area because that's what I'm tinkering with now. After searching online, I figured I'd try uncommenting the sources that were commented out and updating the mirror sources with one in my region, but previously I was using the default which was http://archive.ubuntu.com/ubuntu/ so that's why it looks like this:

# deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted

# See http://help.ubuntu.com/community/UpgradeNotes...
deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted
deb-src http://mirrors.layerlonline.com/ubuntu/ focal main restricted

## Major bug fix updates...
deb-src http://mirrors.layerlonline.com/ubuntu/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED...
deb-src http://mirrors.layerlonline.com/ubuntu/ focal universe
deb-src http://mirrors.layerlonline.com/ubuntu/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED...
deb-src http://mirrors.layerlonline.com/ubuntu/ focal multiverse
deb-src http://mirrors.layerlonline.com/ubuntu/ focal-updates multiverse

## N.B. software from this repository is ENTIRELY UNSUPPORTED...
deb-src http://mirrors.layerlonline.com/ubuntu/ focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://mirrors.layerlonline.com/ubuntu/ focal partner
# deb-src http://mirrors.layerlonline.com/ubuntu/ focal partner (tried uncommenting these two but made no difference after "sudo apt-get update" and re-try with openssh)

deb http://mirrors.layerlonline.com/ubuntu/ focal-security main restricted
deb http://mirrors.layerlonline.com/ubuntu/ focal-security universe
deb http://mirrors.layerlonline.com/ubuntu/ focal-security multiverse

# This system was installed using small removable media
# (e.g netinst, live or single CD). The maching "deb cdrom"
# entries were disabled at the end of the installation process.
# For more info about how to config ap package sources,
# see the sources.list(5) manual.


EDIT: The contents for /etc/apt/sources.list.d/official-package-repositories.list is EMPTY

Should be it!

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Can you ping archive.ubuntu.com?

kkdao
Posts: 33
Joined: Tue Jul 28, 2020 1:59 pm
languages_spoken: english
ODROIDs: H2+
Has thanked: 8 times
Been thanked: 4 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by kkdao »

All good, from what you said I ended up figuring out I need to add the software repository I mentioned in my source list, like so: https://help.ubuntu.com/stable/ubuntu-h ... es.html.en

Then I was finally able to install it successfully!

Now just need to figure out how to SSH to the IP address I found using Angry IP Scanner, or just "ip a"

I did:

ssh odroid@<IP address>

but the password "odroid" doesn't work. I'll go looking to see if there is another password

powerful owl
Posts: 162
Joined: Thu Mar 28, 2019 8:57 pm
languages_spoken: english
ODROIDs: 2 x HC1, 3 x H2, 1 x H2+
Has thanked: 38 times
Been thanked: 16 times
Contact:

Re: How to SSH into Ubuntu Server on Odroid H2+?

Post by powerful owl »

Cool. You would have entered the username and password when you installed, there's no default (like with ARM images)... uhm, wait, you can log in to the UI though, so that's what you enter when you ssh in.
These users thanked the author powerful owl for the post:
kkdao (Wed Aug 05, 2020 2:08 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest