Ubuntu Minimal User / Password

Moderators: mdrjr, odroid

Ubuntu Minimal User / Password

Unread postby Mytob » Fri Jan 23, 2015 5:22 am

Anyone able to tell me what the username and password is for the Ubuntu minimal image that can be found here... http://odroid.com/dokuwiki/doku.php?id= ... tu_minimal
Mytob
 
Posts: 3
Joined: Fri Jan 23, 2015 5:18 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu Minimal User / Password

Unread postby Technikfreak2002 » Fri Jan 23, 2015 5:53 am

This wiki describes how to build you own image. you have to add a user by yourself. if you follow this how to. there is only the root user with password root (or whatever you choose, see line "passwd root")
Technikfreak2002
 
Posts: 30
Joined: Sun Dec 14, 2014 10:13 pm
languages_spoken: german, english (really bad)
ODROIDs: ODROID-C1

Re: Ubuntu Minimal User / Password

Unread postby theBOSS » Fri Jan 23, 2015 6:03 am

If you use this image there is the default login.

User: root
Password: odroid

Best regards
http://lordpedal.ddns.net... la culminación de un fin es el comienzo de una realidad.
theBOSS
 
Posts: 75
Joined: Sat Jan 17, 2015 2:06 am
languages_spoken: spanish, english
ODROIDs: C1

Re: Ubuntu Minimal User / Password

Unread postby Mytob » Fri Jan 23, 2015 6:10 am

Have just downloaded the image file not built. Thanks for the info!
Mytob
 
Posts: 3
Joined: Fri Jan 23, 2015 5:18 am
languages_spoken: english
ODROIDs: C1

Re: Ubuntu Minimal User / Password

Unread postby LUK » Fri Jan 23, 2015 12:43 pm

Is ssh enabled? The root/odroid or odroid/odroid are not accepted to login in this image....
LUK
 
Posts: 6
Joined: Sun Jan 04, 2015 10:52 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: Ubuntu Minimal User / Password

Unread postby mdrjr » Fri Jan 23, 2015 3:48 pm

SSH is enabled by as you can see the image was created with everything Ubuntu stock.
And Ubuntu by default doesn't allow ssh login as root.

So either you need a monitor or a uart cable to access it.
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu Minimal User / Password

Unread postby theBOSS » Fri Jan 23, 2015 3:55 pm

If you want to login root trought ssh first you need to access to the local terminal and edit the file sshd_config that located in /etc/ssh/sshd_config and search "PermitRootLogin" and change the line with your editor (nano,vim,...) to "PermitRootLogin yes"
http://lordpedal.ddns.net... la culminación de un fin es el comienzo de una realidad.
theBOSS
 
Posts: 75
Joined: Sat Jan 17, 2015 2:06 am
languages_spoken: spanish, english
ODROIDs: C1

Re: Ubuntu Minimal User / Password

Unread postby LUK » Fri Jan 23, 2015 6:04 pm

Yes, I'll try it. Thx.☺
LUK
 
Posts: 6
Joined: Sun Jan 04, 2015 10:52 am
languages_spoken: english
ODROIDs: ODROID-C1

Re: Ubuntu Minimal User / Password

Unread postby bohdans » Fri Jan 23, 2015 7:53 pm

bohdans
 
Posts: 57
Joined: Tue Dec 30, 2014 4:07 pm
languages_spoken: english
ODROIDs: Odroid-C1

Re: Ubuntu Minimal User / Password

Unread postby bluepuma77 » Fri Aug 12, 2016 4:11 am

Is there an easy way to mount the Ubuntu 16 minimal image and add SSH access?

Code: Select all
sed -i s/"PermitRootLogin without-password"/"PermitRootLogin yes"/g /etc/ssh/sshd_config


I only got the Odroid C1 and the power cable, but no way to connect a screen via the MicroHDMI connector.

Can I somehow extract the image on Max OS X, enable access and place it on the Micro-SD-card again?
bluepuma77
 
Posts: 4
Joined: Fri Aug 12, 2016 2:35 am
languages_spoken: english
ODROIDs: Original Odroid C1

Re: Ubuntu Minimal User / Password

Unread postby mdrjr » Fri Aug 12, 2016 6:40 am

Check if Mac OS X can mount ext4 partition :)
mdrjr
Site Admin
 
Posts: 11690
Joined: Fri Feb 22, 2013 11:34 pm
Location: Brazil
languages_spoken: english, portuguese
ODROIDs: -

Re: Ubuntu Minimal User / Password

Unread postby bluepuma77 » Sat Aug 13, 2016 5:06 am

mdrjr wrote:Check if Mac OS X can mount ext4 partition :)


Mac OS X does not support ext4, I had to switch to an Ubuntu Linux machine.

Modify image to enable remote SSH root login via LAN:
Code: Select all
# get image
wget "http://de.eu.odroid.in/ubuntu_16.04lts/ubuntu-16.04-minimal-odroid-c1-20160803.img.xz"
# unpack image
unxz ubuntu-16.04-minimal-odroid-c1-20160803.img.xz

# mount second partition from within image
mkdir odroid_disk
IMG=ubuntu-16.04-minimal-odroid-c1-20160803.img
PARTITION=2
OFFSET=$[ `/sbin/sfdisk -d "$IMG" | grep "start=" | head -n $PARTITION | tail -n1 | sed 's/.*start=[ ]*//' | sed 's/,.*//'` * 512 ]
sudo mount -o loop,offset=$OFFSET $IMG odroid_disk/

# enable remote root login
sudo sed -i s/"PermitRootLogin without-password"/"PermitRootLogin yes"/g odroid_disk/etc/ssh/sshd_config   # documented
sudo sed -i s/"PermitRootLogin prohibit-password"/"PermitRootLogin yes"/g odroid_disk/etc/ssh/sshd_config  # actual

# unmount image
sudo umount odroid_disk/
rmdir odroid_disk/

#repack image
xz ubuntu-16.04-minimal-odroid-c1-20160803.img


Flash image to SD-card on OS X
Code: Select all
diskutil list
# find your SD-card, in this case disk2
sudo diskutil unmountDisk /dev/disk2
# this will DESTROY all content, make sure you got the CORRECT DISK, rdisk2 is faster than disk2
unxz -c ~/Downloads/ubuntu-16.04-minimal-odroid-c1-20160803.img.xz | sudo dd bs=1m of=/dev/rdisk2


Now direct login via LAN with root/odroid works :D

Thanks to davlar for the trick with the offset.
bluepuma77
 
Posts: 4
Joined: Fri Aug 12, 2016 2:35 am
languages_spoken: english
ODROIDs: Original Odroid C1

Re: Ubuntu Minimal User / Password

Unread postby k06a » Sat Aug 04, 2018 4:19 pm

It seems latest minimal Ubuntu build for ODROID-xu4 actually has "PermitRootLogin yes", but I can't connect:

Code: Select all
$ ssh root@192.168.1.50
write: Software caused connection abort


While connecting to ssh from the ODROID localhost works fine.
k06a
 
Posts: 3
Joined: Sat Aug 04, 2018 4:15 pm
languages_spoken: English, Russian
ODROIDs: ODROID-xu4

Re: Ubuntu Minimal User / Password

Unread postby odroid » Mon Aug 06, 2018 9:15 am

@k06a,
This is C1 subforum. Post your question on XU4 sub-forum.
User avatar
odroid
Site Admin
 
Posts: 28732
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests