WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: DotNETCore  (Read 14533 times)

Offline Looper

  • Newbie
  • *
  • Posts: 47
DotNETCore
« on: May 14, 2018, 02:57:45 PM »
Is it possible, install DotNETCore on tinyCpre Linux ?

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore
« Reply #1 on: December 03, 2018, 03:33:05 PM »
Yes, can be done, see attachement.
To be continued (and documented)...

« Last Edit: December 03, 2018, 03:35:04 PM by alphons »
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore
« Reply #2 on: December 04, 2018, 08:20:54 PM »
Submitted today .NET Core 2.2.0 SDK v2.2.100 (tinycore64)

- dotnet-runtime.tcz.tgz (67MB)
- dotnet-sdk.tcz.tgz (176MB)

Hope they will pass QA   ;)
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore
« Reply #3 on: December 06, 2018, 04:44:40 AM »
Title:      dotnet-sdk.tcz
Description:    .NET Core 2.2.0 SDK v2.2.100
Version:        2.2.0
Author:         Alphons van der Heijden
Original-site:  https://dotnet.microsoft.com/download
Copying-policy: MIT
Size:      176M
Extension_by:   alphons
Tags:           .NET Core SDK
Comments:       .NET Core is a cross-platform version of .NET
                for building websites, services, and console apps.
                ----                 
                Runtime Environment:
                  OS Name:     tinycore
                  OS Version:  9.0
                  OS Platform: Linux
                  RID:         linux-x64
                Host:
                  Version:     2.2.0
                  Commit:      1249f08fed
                .NET Core SDK:
                  Version:     2.2.100
                  Commit:      b9f2fa0ca8
                .NET Core runtimes installed:
                  Microsoft.AspNetCore.All 2.2.0
                  Microsoft.AspNetCore.App 2.2.0
                  Microsoft.NETCore.App 2.2.0
                ----   
Change-log:     2018/04/12 Initial release version, 2.2.0
Current:        2018/04/12 Current version, 2.2.0
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
CorePure64 DotNETCore primer
« Reply #4 on: December 16, 2018, 07:18:10 AM »
CorePure64 / .NET Core  primer (example running as a VM)

Short procedure to make a TinyCore vm in VMPlayer adding .NET Core functionality.
I used joe as my favo texteditor, but vi is fine.

Code: [Select]
- Download CorePure64 iso from www.tinycorelinux.net

https://distro.ibiblio.org/tinycorelinux/9.x/x86_64/release/CorePure64-9.0.iso

- Download VMWare player (latest) from www.vmware.com

https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/15_0

- Install VMWare player
- Start VMWare player
- Create New Virtual Machine
  - radio: Install dics image file (iso): pointing to CorePure64-9.0.iso
  - Next
  - radio: Linux
  - Version: Other Linux 4.x or later kernel 64-bit
  - Next
  - Virtual Machine name: Core64
  - Next
  - Maximum dusk size (GB): 8 GB
  - radio: Store virtual disk as a single file
  - Next
  - Finish
  - Choose newly made VM: Core
  - Edit Virtual Machine Settings
  - Select Had Disk (SCSI)
  - Remove (the just made disk, we want IDE, not  SCSI)
  - Add
  - Select Hard Disk
  - Next
  - radio: IDE
  - Next
  - radio: Create new virtual disk
  - Next
  - Maximum disk size (GB): 8.0GB
  - check: Allocate all disk space now
  - radio: store virtual disk as a single file
  - next
  - Core-0.vmdk
  - Finish (takes some time)
  - OK
  - Select Sound Card
  - Remove
  - Select printer
  - Remove
  - OK
  - Select Network Adapter
  - Radio: Bridged
  - OK
  - Play Virtual Machine
  - on prompt boot: <enter>
 
  (Core has autologin for user tc, where tc is a sudoer)
 
  tc@box:~$ sudo fdisk /dev/sda
  type: n <enter> p <enter> 1 <enter> <enter> <enter> w <enter>
  tc@box:~$ sudo mke2fs /dev/sda1
  tc@box:~$ sudo reboot
 
  - on prompt boot: corepure64 tce=sda1 <enter>
 
  tc@box:~$ tce-load -wi joe
  tc@box:~$ tce-load -wi openssh

  tc@box:~$ cd /usr/local/etc/ssh
  tc@box:/usr/local/etc/ssh$ sudo cp ssh_config.orig ssh_config
  tc@box:/usr/local/etc/ssh$ sudo cp sshd_config.orig sshd_config
  tc@box:/usr/local/etc/ssh$ sudo ssh-keygen -A
 
  tc@box:~$ cd /opt
  tc@box:/opt$ sudo joe bootlocal.sh
 
  #!/bin/sh
  /usr/local/etc/init.d/openssh start
  ^KX
 
  tc@box:/opt$ joe .filetool.lst
 
  opt
  home
  etc/passwd
  etc/shadow
  etc/sudoers
  usr/local/etc/ssh
  ^KX
   
  tc@box:~$ sudo passwd tc
    New password:
Retype password:
passwd: password for tc changed by root
  tc@box:~$ sudo passwd root
    New password:
Retype password:
passwd: password for root changed by root

tc@box:~$ ifconfig
    etho ..... inet addr: 192.168.....
 
  tc@box:/opt$ filetool.sh -b
  tc@box:/opt$ sudo reboot
 
  - on prompt boot: <enter>
 
  DONE!! Ready to ssh
 
  - for searching and installing applications use: tce-ab
 
  tc@box:~$ tce-load -wi dotnet-sdk
  tc@box:~$ sudo adduser dotnetuser -G staff -h /mnt/sda1/dotnetuser
    Changing password for dotnetuser
    New password:
    Retype password:
    passwd: password for dotnetuser changed by root
  tc@box:~$ sudo joe /etc/sudoers
    dotnetuser ALL=NOPASSWD: ALL
    ^KX
  tc@box:~$ filetool.sh -b
  tc@box:~$ exit
    Core Linux
    box login: dotnetuser
    Password: ....
  dotnetuser@box:~$ pwd
    /mnt/sda1/dotnetuser
  dotnetuser@box:~$ mkdir hello
  dotnetuser@box:~$ cd hello
  dotnetuser@box:~/hello$ dotnet new console
  - first time takes some time, downloading .NETCore packages
  dotnetuser@box:~/hello$ dotnet run
    Hello World!

  Your first .NET Core program had been run on CorePure64
  (Dockers, eat your heart out!)
 
    [EDIT]: Replaced  tt  tags with  code  tags.  Rich
« Last Edit: December 16, 2018, 08:54:02 AM by Rich »
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: DotNETCore
« Reply #5 on: December 16, 2018, 08:56:45 AM »
Hi alphons
Instead of using  tt  tags please use  code  tags. This will still preserve spacing as it too uses a monotype font in addition to
adding scroll bars for longer printouts.

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore
« Reply #6 on: December 24, 2018, 11:20:02 AM »
Thanks for cleaning up the code  ;)

When the 'dotnet run' command fails having a nuget SSL error, you have to install ca-certificates extension:

Code: [Select]
dotnetuser@box:~/tc$ tce-load -wi ca-certificates

VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline mwwhited

  • Newbie
  • *
  • Posts: 1
Re: DotNETCore
« Reply #7 on: January 05, 2019, 01:04:26 AM »
does this require tinycore or should it install on core alone?  I can't get tce-load -wi dotnet-sdk to load anything.

-Thanks,
Matt

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: DotNETCore
« Reply #8 on: January 05, 2019, 01:44:43 AM »
Hi mwwhited
It's currently only available in the 64 bit version, so try it with TinyCorePure64:
http://tinycorelinux.net/9.x/x86_64/release/

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore goes 5.0
« Reply #9 on: October 30, 2020, 11:43:15 AM »
Hi All.....

I want to let you know my first tests making an extension for .NET Core 5.0 on TinyCore 11.1 is succesfull.
We have to wait a little bit longer having the .NET Core community goes from RC (ReleaseCandidate) to Release.

--
Code: [Select]
tc@box:~$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.100-rc.2.20479.15
 Commit:    da7dfa8840

Runtime Environment:
 OS Name:     tinycore
 OS Version:  11.1
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /tmp/tcloop/dotnet-sdk/usr/share/dotnet/sdk/5.0.100-rc.2.20479.15/

Host (useful for support):
  Version: 5.0.0-rc.2.20475.5
  Commit:  c5a3f49c88

.NET SDKs installed:
  5.0.100-rc.2.20479.15 [/tmp/tcloop/dotnet-sdk/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.0-rc.2.20475.17 [/tmp/tcloop/dotnet-sdk/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.0-rc.2.20475.5 [/tmp/tcloop/dotnet-sdk/usr/share/dotnet/shared/Microsoft.NETCore.App]

    [EDIT]: Replaced  tt  tags with  code  tags.  Rich
« Last Edit: October 30, 2020, 11:49:39 AM by Rich »
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: DotNETCore
« Reply #10 on: October 30, 2020, 11:50:31 AM »
Hi alphons
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore 5.0 on TinyCore64 11.1
« Reply #11 on: October 31, 2020, 10:20:13 AM »
First tryout of .NET CORE 5.0 on TinyCore 11.1 installed on a bootable USB stick (windows unetbootin)

Code: [Select]
tc@box:~$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.100-rc.2.20479.15
 Commit:    da7dfa8840

Runtime Environment:
 OS Name:     tinycore
 OS Version:  11.1
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /tmp/tcloop/dotnet-sdk/usr/share/dotnet/sdk/5.0.100-rc.2.20479.15/

Host (useful for support):
  Version: 5.0.0-rc.2.20475.5
  Commit:  c5a3f49c88

.NET SDKs installed:
  5.0.100-rc.2.20479.15 [/tmp/tcloop/dotnet-sdk/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.0-rc.2.20475.17 [/tmp/tcloop/dotnet-sdk/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.0-rc.2.20475.5 [/tmp/tcloop/dotnet-sdk/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Creating the famous hello world:

Code: [Select]
tc@box:~$ mkdir hello
tc@box:~$ cd hello
tc@box:~/hello$ dotnet new console
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on /home/tc/hello/hello.csproj...
  Determining projects to restore...
  Restored /home/tc/hello/hello.csproj (in 146 ms).
Restore succeeded.

Compile and running the hello world app.

Code: [Select]
tc@box:~/hello$ dotnet run
Hello World!

Executing the app directly

Code: [Select]
tc@box:~/hello$ ./bin/Debug/net5.0/hello
Hello World!

Q.E.D.

Code: [Select]
tc@box:~/hello$ uname --a
Linux box 5.4.3-tinycore64 #2020 SMP Tue Dec 17 17:38:30 UTC 2019 x86_64 GNU/Linux
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore 5.0
« Reply #12 on: November 11, 2020, 09:10:30 AM »
Yesterday .NET CORE 5.0 was released.
Today i submitted dotnet5-sdk.tcz to the TinyCore team.
 8)
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore
« Reply #13 on: November 17, 2020, 10:57:45 AM »
when using dotnet5-sdk two remarks;

1: don't forget to 'tce-load -wi ca-certificates' when using nuget packages
2: when executing compiled .NET code directly, place the location of the runtime in file /etc/dotnet/install_location
/usr/local/share/dotnet5-sdk and add /etc/dotnet/install_location to /opt/.filetool.lst
$ filetool.sh -b




VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/

Offline alphons

  • Newbie
  • *
  • Posts: 42
    • building vmtux.net as of feb 14, 2023
Re: DotNETCore
« Reply #14 on: November 18, 2020, 12:48:11 PM »
when using dotnet5-sdk two remarks;

1: don't forget to 'tce-load -wi ca-certificates' when using nuget packages
2: when executing compiled .NET code directly, place the location of the runtime in file /etc/dotnet/install_location
/usr/local/share/dotnet5-sdk and add /etc/dotnet/install_location to /opt/.filetool.lst
$ filetool.sh -b

As of today, these are fixed in the current extension of dotnet5-sdk
thanks for the tinycore team.
VMTux 1.0 - kernel 6.2.11 - glib 37 - alpha release March 2023 - https://vmtux.net/