Dietpi: Image Request | Native PC x86_64: eg Intel NUC or Gigabyte Brix

Created on 11 Jun 2017  ยท  31Comments  ยท  Source: MichaIng/DietPi

Download Image + Info:

- https://github.com/Fourdee/DietPi/issues/1007#issuecomment-312442384


First of all thank you for making DietPi, it is fantastic and makes life much easier dealing with single board computers. So much so, I'm wondering if I can use it with x86 barebones like https://www.gigabyte.com/Mini-PcBarebone Brix?

I especially like the ability to just flash an image onto a disk and have it auto resize the partition and set everything else up automatically on first login.

Image Request x86_64 PC

Most helpful comment

@belabelabela

For step 3, refer to GRUB documentation:
-GRUB
-tips about theming
-more about theming

Step 4 is explained here (step #5)

I've prepared a quick demo. Do the following:

  1. Install Clonezilla live to your USB flash drive (full instructions here):

    • download alternative stable version from here.

    • extract it to your pendrive.

  2. Make your pendrive bootable (step #5).
  3. Unzip this file to your pendrive: DietPi-Clonezilla.zip.
  4. Edit grub.cfg, isolinux.cfg and syslinux.cfg and replace 'sda' with the name of your target hard disk.
  5. Copy Clonezilla's image files to /home/partimag/DietPi/
  6. Boot from your pendrive.
  7. You should see this boot screen:
    boot-screenshot
  8. WARNING: Choosing "Install DietPi" will restore DietPi to your first hard disk (sda or whatever your chose at step 4).

All 31 comments

@xanview

Love those mini PC's, had a Acer Revo years back, would love to get my hands on these new beasts :)

We'd had a few requests for a general native PC install, i'll take a look and see what we can do. The main issue will be the initial install/image procedure, i'll need to investigate best/simple method to achieve this.

Just bear in mind:

  • we won't be able to support GPU features like we do for RPi/Odroid. As the devices will vary. Although, for GPU it will be a simple case of copying a xserver.conf for the required GPU (X -configure?). Kodi should then run fine on most hardware.
  • Soundcard support will be limited to the default device on system. Should be find on most boards, but unknown results at this time.
  • In terms of server usage, should be perfect.

Image available under BETA status:

- http://dietpi.com/downloads/images/DietPi_NativePC-x86_64-(Stretch).7z


Notes:

  • x86_64 (64bit CPU required)
  • Simply DD/write image to USB or Sata drive. Select as boot device in BIOS.
  • EXT4 /boot partition. Debian 9 installer would not allow for FAT ๐Ÿ‘Ž
  • MBR non-UEFI
  • User: Sensor modules with sensors-detect: https://superuser.com/a/25199

ToDo:

  • ๐Ÿˆฏ๏ธ v153: intel/amd-microcode and amd GPU firmware apt-get install firmware-linux-nonfree -y
  • ๐Ÿˆฏ๏ธ v153: DietPi-Config > Display options: add support for Nvidia drivers?
  • DietPi-Config > Display options: add support for Radeon/AMD drivers?
  • DietPi-Config > Display options: add support for Intel drivers?
  • ๐Ÿˆฏ๏ธ v154: DietPi-Config > Add support for soundcard detection

My Tests (v153):

  • AMD FX 6200
  • Nvidia 1050 Ti

DietPi-Software installs:

  • ๐Ÿˆฏ๏ธ LXDE
  • ๐Ÿˆฏ๏ธ Chromium OpenGL

Other:

  • ๐Ÿˆฏ๏ธ DietPi-Config | Nvidia driver install
  • ๐Ÿˆฏ๏ธ DietPi-Drive_Manager: basic mount/unmount tests
  • ๐Ÿˆด Sound: default device index 3. May need to implement auto detect sound card feature.
root@DietPi:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Notes:

  • ๐Ÿˆด Lightdm installed by default with LXDE (even with -no-install-recommends, renders dietpi-autostart useless.
    Lets disable it by defaultsystemctl disable lightdm, and add option to dietpi-autostart for lightdm.
    ๐Ÿˆด
root@DietPi:~# systemctl enable lightdm
Synchronizing state of lightdm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable lightdm
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
   .wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
   a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
   D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
   instance name specified.

๐Ÿˆฏ๏ธ v153: Lets avoid the service and give DietPi control, launching /usr/sbin/lightdm if selected in DietPi-Autostart.

@Fourdee Thanks for all the hard work. Will there be a 32 bit distribution so I can run it on an older netbook? And an option to install to harddrive. Otherwise it only runs from USB. I might be able to close the partitions from USB to harddrive but unsure if that will work.

@Invictaz

Will there be a 32 bit distribution so I can run it on an older netbook?

Possibly we might do that in the future. However, with help from our users, test this image first, iron out the bugs then i'll look into it.

@Invictaz

And an option to install to harddrive. Otherwise it only runs from USB. I might be able to close the partitions from USB to harddrive but unsure if that will work.

You can write the image directly to a Harddrive, with a USB > Sata converter.

Completed.

Reopened for testing.

@Fourdee but then I have to open a sealed laptop, take out the drive and then write the image to that drive... Bit weird.

@Invictaz

but then I have to open a sealed laptop, take out the drive and then write the image to that drive... Bit weird.

Yep, not ideal, but we lack the code currently in DietPi for a USB/ISO installer. Depending on how popular the image is, we may look at creating a easy to use USB/ISO installer for Native PC image.

I will see if I can test it from a USB stick.

@Fourdee

I commenced testing on an i7 2670qm laptop.

Has a lot of failed and other errors but seems to work fine. How to send you the bootup log?
Also it's downloading a lot of amd64 stuff when I have an Intel processor... bit weird

The rest is quite fine. How to increase the font size? The resolution back to 720p is a bit weird...

Wifi works. Sound needs to be tested and Bluetooth. Also on the first bootup there were some CPU governor problems but now it's on performance.

ACPI is still a failure and NTPD is slow. Saw also some SSH errors.

Everything's fresh out of the box so only console.

For now I plan to run without desktop.

Fn + F2 brightness control is working.
Keyboard works
Nvidia drivers are now being installed.

I might turn this thing into a Steam Machine. Will do a feature request later.

For now testing goes on. Will report later if any casualties appear

Cheers

Oh before I forget the images by Splashtop for ASUS are much and much faster. Only 7 seconds to a minimized desktop. Dietpi takes about 35 only to boot to console (on Pi Zero double that time)

Filed the first bug report

20170707_232638

Also GPU problems in Chrome after installing the Nvidia driver 379.55

14994638302411381476843

Plus after reboot to Chromium the wifi isn't connecting. I have no serial connection to restart it.

Sound works although not detected in dietpi-config
After uninstalling Nvidia drivers I tested the HDMI out, didn't work. Maybe later reinstalling them and retesting.

Tested NZBGet: works fine

Filed another bug report. Hopefully you can work some bugs out.

For now it's quite okay :+1:

@Invictaz

Thanks for report ๐Ÿ‘

Which GPU model are you running?

@Fourdee

Internal: Intel HD3000
Dedicated: Nvidia GT555M

@Invictaz

In your BIOS, is there an option to disable the onboard intel HD GPU, and force Nvidia? Might be worth a shot.

@Fourdee No. BIOS is locked on laptops with Optimus dual gpu solution.

Flashing an unlocked bios isn't really an option for me right now.
There are some mods but I won't go into it
https://www.bios-mods.com/forum/Thread-ThinkPad-T410-T510-Intel-IGP-Optimus-Unlock-Request

From what I know the Intel HD3000 is always used, it offloads tasks to the dedicated Nvidia GPU which renders it and drops the result to the framebuffer of the Intel.

image

@Invictaz

We'll need to do some research: https://wiki.debian.org/NvidiaGraphicsDrivers#Configuration

Mention of BumbleBee project for Nvidia Optimus: https://wiki.debian.org/Bumblebee

Yes I saw Bumblebee this week. Might test it later.

Also there is the option (somewhere in Linux) to disable the dedicated graphics and run only on Intel HD graphics. This saves energy which is one of the Key aspects of DietPi. So might need to be included.

@Fourdee Bumblebee is last updated in 2013. We might use the proprietary Nvidia Driver from non-free plus the newest Xorg 1.19.2, that is used in DietPi v154

It needs nvidia_drm.modeset to have PRIME synchronization to remove the tearing

http://www.phoronix.com/scan.php?page=news_item&px=Xorg-PRIME-Sync-Double-Buffer
https://devtalk.nvidia.com/default/topic/957814/prime-and-prime-synchronization/?offset=169
https://askubuntu.com/questions/900286/with-nvidia-optimus-xorg-1-19-3-kernel-4-10-0-15-and-still-having-screentear
https://www.gamingonlinux.com/articles/how-to-an-update-on-fixing-screen-tearing-on-linux-with-an-nvidia-gpu.8892/page=3

We might also have the 32bit driver needed if Steam is coming in Dietpi v154 or v155

https://solus-project.com/forums/viewtopic.php?t=2029

Issues with NV audio, manual unmute may be required in alsamixer:
image

As for how to write the image to the HD, can I suggest Clonezilla?
You don't need to open your laptop/PC, you just boot out of a USB/CD and flash the image.
Here you can find instructions to make a bootable USB flash drive.
Basically it all boils down to:

  1. Unzip Clonezilla to the USB flash drive.
  2. Copy the DietPi image to the USB flash drive.
  3. Tweak two text files (one for UEFI boot, one for BIOS boot).
  4. Only for BIOS boots, run a script already in the flash drive so syslinux is installed.

I have some experience with that. Drop me a line if I can be of any help.

@sal666
I have tried to tweak the two text files as you mentioned in step 3. It seems I am not experienced enough, because it did not work for me. :(

Could you describe the necessary steps (3-4) in detail?

Thanks

Intel GPU driver install (tested with HD520, should work for all):

NB:

  • No Xserver must be running (eg: exit desktop and return to terminal)
G_AGI xserver-xorg-video-intel libgl1-mesa-dri
Xorg -configure
mv $HOME/xorg.conf.new /etc/X11/xorg.conf
reboot

Thanks! It is either NVIDIA or Intel in Optimus situation. Best advice is if you have such a dual GPU setup run everything on the NVIDIA while this copies everything into the Intel framebuffer (which is connected to LVDS display).

If you have only an Intel card (or don't care about the additional performance of the NVIDIA) do as @Fourdee suggested.

@belabelabela

For step 3, refer to GRUB documentation:
-GRUB
-tips about theming
-more about theming

Step 4 is explained here (step #5)

I've prepared a quick demo. Do the following:

  1. Install Clonezilla live to your USB flash drive (full instructions here):

    • download alternative stable version from here.

    • extract it to your pendrive.

  2. Make your pendrive bootable (step #5).
  3. Unzip this file to your pendrive: DietPi-Clonezilla.zip.
  4. Edit grub.cfg, isolinux.cfg and syslinux.cfg and replace 'sda' with the name of your target hard disk.
  5. Copy Clonezilla's image files to /home/partimag/DietPi/
  6. Boot from your pendrive.
  7. You should see this boot screen:
    boot-screenshot
  8. WARNING: Choosing "Install DietPi" will restore DietPi to your first hard disk (sda or whatever your chose at step 4).

@sal666

This is awesome, great work and thanks for sharing ๐Ÿ‘

@sal666

Thanks a lot, I will give it a try!

Marking as closed. Image is now available for MBR and EFI.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fourdee picture Fourdee  ยท  3Comments

mok-liee picture mok-liee  ยท  3Comments

Fourdee picture Fourdee  ยท  3Comments

Invictaz picture Invictaz  ยท  3Comments

Fourdee picture Fourdee  ยท  3Comments