When you want to run .NET Core process as a daemon on Red Hat Enterprise Linux, you can create a custom systemd unit. Today I’ll write about two examples of custom systemd unit for .NET Core. The one is a oneshot type for running a .NET Core console application and the other is a simple type for running an ASP.NET Core Web application.
Continue reading “Writing a Linux daemon in C#”
Over the past few months, we’ve been building and releasing a variety of technical cheat sheets and we’ve been getting many requests for more. We are working on new cheat sheets every day, ok maybe not weekends, but almost every day. Here are the cheat sheets available today: Linux Commands Cheat Sheet, Advanced Linux Commands Cheat Sheet, Wildfly Swarm Cheat Sheet, Containers Cheat Sheet, MongoDB Cheat Sheet, Kubernetes Cheat Sheet and the Eclipse Vert.x Cheat Sheet.
Continue reading “Technical Cheat Sheets for Developers”
As a web developer, being able to run a Linux distro alongside your pre-existing mobile OS on your android phone is a very enticing offer. With a fully functional Linux program in your pocket at all times, you can begin to utilize your phone for various processes including powering a LAMP server and turning the device into a portable network, troubleshooting tool, and pen-testing device.
Continue reading “Installing Linux on an Android Phone”
2016 was certainly an interesting year and, although we could probably discuss the election alone for an hour, there is one particular epidemic which has plagued the developer community in more ways than we probably care to mention. It seems as though even the best data encryption and reformatting of SSD’s is slowly becoming not enough when it comes to the continuous evolution of the hacker community and this is a pretty unsettling situation.
Continue reading “The Year of Data Breaches: Why Encryption and Reformatting SSD’s is Not Enough”
(Probably, a more accurate title would be “The Evolution of a Linux Container Developer”)
Since .NET now runs on Linux (as well as Windows and macOS), the whole world of Linux containers and microservices has opened up to .NET developers. With a large pool of developers, a long track record of success, and performance numbers that are impressive, .NET offers a great opportunity to expand the world of Linux containers to formerly Windows-centric developers.
While it’s tempting to rush in — and I am the first to say, “go for it” — there are some nuances which should not be missed when running .NET code inside a Linux container. It’s far too easy to push some code into an image and be done. After all, everything happens so quickly, surely all is well. Right?
Continue reading “The Evolution of a Linux Container”
Have you ever used a temporary directory? I’m guessing if you use a computer, you’ve used one of these. It’s a core feature of nearly every operating-system.
To ensure system stability, you should always check that filesystems on which a temporary directory resides don’t get full — running out of space can quickly bring your system to a grinding halt.
One method to prevent running out of space could be to place those directories on a dedicated partition, but no matter the solution, it is a best practice to clean those directories periodically, based on your/your app’s needs.
Continue reading “Managing temporary files with systemd-tmpfiles on Red Hat Enterprise Linux 7”
I first started using computers in the mid-80’s. A DOS-based computer, where – as a programmer – I had to first learn how to type and how to navigate a seemingly arcane series of commands. There was no mouse back in those days. Today, as a developer, I spend most of my day on a Windows or Mac OSX-based laptop and use Linux within a virtual machine (VM) inside a hypervisor like VirtualBox or Hyper-V.
Continue reading A Linux Cheat Sheet for Developers