{"id":22075817,"url":"https://github.com/rramoscabral/raspberrypi-asp.net_5","last_synced_at":"2025-03-23T20:12:59.429Z","repository":{"id":93466035,"uuid":"47561636","full_name":"rramoscabral/RaspberryPi-ASP.NET_5","owner":"rramoscabral","description":"How to run ASP.NET 5 on a Raspberry Pi 2","archived":false,"fork":false,"pushed_at":"2022-03-02T10:15:52.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T03:37:31.674Z","etag":null,"topics":["asp-net-core","netcore","raspberry-pi","raspberrypi"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rramoscabral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-07T15:42:50.000Z","updated_at":"2022-03-02T10:17:42.000Z","dependencies_parsed_at":"2023-03-03T22:16:10.015Z","dependency_job_id":null,"html_url":"https://github.com/rramoscabral/RaspberryPi-ASP.NET_5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rramoscabral%2FRaspberryPi-ASP.NET_5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rramoscabral%2FRaspberryPi-ASP.NET_5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rramoscabral%2FRaspberryPi-ASP.NET_5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rramoscabral%2FRaspberryPi-ASP.NET_5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rramoscabral","download_url":"https://codeload.github.com/rramoscabral/RaspberryPi-ASP.NET_5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245162194,"owners_count":20570692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asp-net-core","netcore","raspberry-pi","raspberrypi"],"created_at":"2024-11-30T22:11:21.065Z","updated_at":"2025-03-23T20:12:59.398Z","avatar_url":"https://github.com/rramoscabral.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# RaspberryPi-ASP.NET_5\nHow to run ASP.NET 5 on a Raspberry Pi 2\n\nThe following instructions allow you to install ASP.NET on 5 Raspberry Pi using the minimum resources to monetize the remaining resources for web applications or other desired features.\n\nThe following instructions were made using a Microsoft Windows operating system, you can use Linux or Mac OS X with WineHQ (https://www.winehq.org/).\n\nImage used: MINImal raspBIAN image for Raspberry Pi (2015-11-12)\nhttps://minibianpi.wordpress.com/download/\n   * Raspbian “Jessie” based\n   * Kernel 4.1.7+ $817\n   * 14 secs boot (on RPi 2B)\n   * 29 MB RAM used\n   * 451 MB disk space used\n   * Fit on 1GB SD Card\n   * Optimized ext4 file system with swap disabled\n   * Support for RPi B, RPi B+ and the new RPi 2B\n   * Targeted for embedded or server applications (NAS, Web server, electronic applications)\n   * 100% full compatbile with official release\n   * DHCP client enabled\n   * SSHD enabled\n   * root user enabled (default password: raspberry – please change it a.s.a.p.)\n\nMD5: b8546c547cdc8030c3d0bf03af707c1f\nSHA1: 0ec01c74c5534101684c64346b393dc169ebd1af\n   \n \nFirts format your SD whit SDFormatterv 4.0 avaible at https://www.sdcard.org/downloads/formatter_4/\nThen install the image using 'Win32 Disk Imager' a tool for writing images to USB sticks or SD/CF cards avaible at http://sourceforge.net/projects/win32diskimager/.\n\nWith the recorded image on the SD card can now put the card in Raspberry and on.\n\nLogin data by default ROOT user:\nUser: root\nPassword: raspberry\n\nFirst configure the operating system to use all SD card space. You must first install the Raspi-config:\n\n```sh\n$ apt-get update\n$ apt-get install raspi-config\n```\n\nWith raspi-config installed can run the same:\n\n```sh\n$ raspi-config\n```\nelect the \"Expand Filesystem\" option. You will be informed that the file system has been changed and select \"OK\" and then \"Finish\" will be asked whether to restart select \"YES\".\n\nWith the Raspberry restarted start the session with the Root and check the address of the local ip address in order to connect through ssh with PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) that is an SSH client, and make all operations remotely. You can also check the IP address when the Raspberry starts.\n\n$ifconfig eth0\n\nIt is recommended to all installation and setup in the temporary area:\n\n```sh\n$ cd /tmp\n```\nUpdate certificates:\n\n```sh\n$ certmgr -ssl -m https://go.microsoft.com\n$ certmgr -ssl -m https://nugetgallery.blob.core.windows.net\n$ certmgr -ssl -m https://nuget.org\n$ certmgr -ssl -m https://www.myget.org/F/aspnetvnext/\n$ mozroots --import --machine --sync\n```\n\nNow install ASP.NET 5 Release Candidate:\n```sh\n$ apt-get update\n$ apt-get upgrade\n$ apt-get install curl\n$ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF\n$ echo \"deb http://download.mono-project.com/repo/debian wheezy main\" | tee /etc/apt/sources.list.d/mono-xamarin.list\n$ apt-get install mono-complete\n$ apt-get install ca-certificates-mono\n$ apt-get install libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev uuid-dev unzip\n$ curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh \u0026\u0026 source ~/.dnx/dnvm/dnvm.sh\n```\n\nNow install the libuv for Kestrel\nLibuv is a multi-platform asynchronous IO library that is used by Kestrel, a cross-platform HTTP server for hosting ASP.NET 5 web applications.\n\n```sh\n$ apt-get install make automake libtool curl\n$ curl -sSL https://github.com/libuv/libuv/archive/v1.4.2.tar.gz | tar zxfv - -C /usr/local/src\n$ cd /usr/local/src/libuv-1.4.2\n$ sh autogen.sh\n$ ./configure\n$ make\n$ make install\n$ rm -rf /usr/local/src/libuv-1.4.2 \u0026\u0026 cd ~/\n$ ldconfig\n$ cd /tmp\n```\n\nYou can check the .NET Version Manager with the command\n```sh\n$ dnvm\n```\n\n---\n\n***Information on the screen***\n\n```\n\u003e     ___  _  ___   ____  ___\n\u003e    / _ \\/ |/ / | / /  |/  /\n\u003e   / // /    /| |/ / /|_/ /\n\u003e  /____/_/|_/ |___/_/  /_/\n\u003e\n\u003e .NET Version Manager - Version 1.0.0-rc2-15545\n\u003e By Microsoft Open Technologies, Inc.\n\u003e\n\u003e DNVM can be used to download versions of the .NET Execution Environment and manage which version you are using.\n\u003e You can control the URL of the stable and unstable channel by setting the DNX_FEED and DNX_UNSTABLE_FEED variables.\n\u003e\n\u003e Current feed settings:\n\u003e Default Stable: https://www.nuget.org/api/v2\n\u003e Default Unstable: https://www.myget.org/F/aspnetvnext/api/v2\n\u003e Current Stable Override: \u003cnone\u003e\n\u003e Current Unstable Override: \u003cnone\u003e\n\u003e\n\u003e Use dnvm [help|-h|-help|--help]  to display help text.\n\u003e\n```\n\n---\n\n\nNow install the latest stable version of DNX (.NET Execution Environment).\n```sh\n$ dnvm install latest -r coreclr -g\n$ dnvm upgrade -r mono\n```\n\nYou can see the currently installed DNX versions with dnvm list:\n```sh\n$ dnvm list\n```\n\n***Information on the screen***\n\n```\n\u003e\n\u003e Active Version              Runtime Architecture OperatingSystem Alias\n\u003e ------ -------              ------- ------------ --------------- -----\n\u003e   *    1.0.0-rc1-update1    mono                 linux/osx       default\n\u003e        1.0.0-rc1-update1    coreclr x64          linux\n\u003e \n\u003e \n```\n\nIf you want to change the runtime:\n```sh\n$ dnvm use 1.0.0-rc1-update1 -r mono\n```\n\nIf you want to setting default:\n\n```sh\n$ dnvm alias default 1.0.0-rc1-update1 -r mono\n```\n\nExperiment with the demonstration project available on GitHub.\n\n```sh\n$ apt-get install git\n$ cd /tmp\n$ git clone https://github.com/aspnet/Home.git\n$ cd Home/samples/latest/HelloWeb\n```\n\nClears the package cache.\n```sh\n$ clear-http-cache\n```\n\nRestore packages for app based on  project.json:\n```sh\n$ dnu restore\n```\n\nBuild \n```sh\n$ dnu build\n```\n\nCommand to launch the web application:\n```sh\n$ dnx run\n```\n\n\n***Information on the screen***\n\n```\n\u003e\n\u003e root@minibian:/tmp/Home/samples/1.0.0-rc1-update1/HelloWeb$ dnx web\n\u003e Hosting environment: Production\n\u003e Now listening on: http://*:5004\n\u003e Application started. Press Ctrl+C to shut down.\n\u003e\n```\n\nNow you can experience in your web browser to the IP address of the Raspberry Pi and the port that is listening for example http://192.168.1.68:5004/.\n\n\nYou can experiment with your project by sending the files by SFTP:\n\nDownload the latest FileZilla Client version for your operating system from https://filezilla-project.org/\nLaunch FileZilla and go to File \u003e Site manager.\nFill in the IP address, user name and password of your Raspberry Pi in the dialog and choose SFTP (Port 22) as the protocol.\nClick Connect and you will see the home folder of the user.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frramoscabral%2Fraspberrypi-asp.net_5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frramoscabral%2Fraspberrypi-asp.net_5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frramoscabral%2Fraspberrypi-asp.net_5/lists"}