Restarting ALSA Audio


Follow these steps:

sudo /etc/init.d/alsa-utils stop
sudo alsa force-reload
sudo /etc/init.d/alsa-utils start

When I was running openSUSE  11.1 in previous decade, sometimes the ALSA sound diver throws an error while playing some video with VLC media player. The solution was, just to restart the ALSA sound driver by running the following command as super-user:

/etc/init.d/alsasound restart

Virtual Box boot from USB


You may want to do this for a number of reasons, you may have a bootable USB thumb-drive / USB flash drive / USB stick (whatever you call it) containing Live CD, installation image etc. before you actually use it on your computer, or may be you don’t want to use that bootable USB on your computer, whatever that case might be.

Linux

Following are the 3 different methods you could use.

Method # 1: Create a pointer to your USB

I am using Ubuntu 18.04 LTS, but it could be any Linux OS/distro/flavor. If you have a bootable USB that you want to boot your VM from, go ahead and insert it.

First you need to find the logical device for your removable USB flash drive. One way to do it is to use lshw command (ls for hardware, get it?) It is recommended that you run this command as a super-user (sudo) otherwise “your output may be incomplete or inaccurate, you should run this program as super-user” warning would be displayed, which makes sense. If you need more information on lshw, including installation and basic usage, see this project website or this article.

Here is the raw command which shots of how KDE used to look like back in the day, in openSUSE 11.1 – this was the first ever Linux distro which got me hooked with Linux. To put things in perspective, openSUSE’s current version is 15.0 😉 will output EVERYTHING:

# "sudo lshw" shows everything
$ sudo lshw -class volume -disable TEST -notime

And look for the entry associated with your hard drive’s label. Alternatively, following commands much more concise if you know what you are looking for:

$ sudo lshw -businfo -disable TEST | grep volume

In my case, from the first command above, it was /dev/sdb1.

Next, Continue reading “Virtual Box boot from USB”

Ubuntu: deploy .NET Core app


Today, I want to walk-through the steps I used to deploy ASP.NET Core website application to Ubuntu Server. ASP.NET Core supports several Linux distributions, I am using Ubuntu Server.

From a quick internet search I found 3 decent blog posts:

  1. decatechlabs.com article
  2. garywoodfine.com article
  3. blog.bobbyallen.me post

There already are many articles which talk about how to set up your development environment for .NET Core but this post starts, where they end. It’s about getting production ready.

These are to-the-point & well written. But, either these posts are more than a year old, or they are for setting up your development environment, not for production deployment. You need to install .NET Core run-time, not the .NET Core SDK (which also includes run-time). You can download it from:  Continue reading “Ubuntu: deploy .NET Core app”

[1/4] Docker: Java, SpringBoot, MySQL & docker-compose


I created a video, for a web conference for my school. In this video I talk about how to perform initial groundwork to perform initial set-up. In the 2nd episode, I would talk more about the docker-compose v2, v 2.1 and v2.3.

 

Red Hat Commercial


Stop Wasting CDs; Install Linux Straight from an ISO


GNU/Linux comes in many different flavours, apart from the fact that each individual distro has a new release almost every six months, if not less. I have a habit of trying out every new version the moment it comes out, and I’m sure many of you do too.

Now, let’s assume you have downloaded a new version of a distro and are in the mood to try it out right away. It’s past midnight and you realise that you’ve run out of blank CDs/DVDs. So you will have to wait till the morning when the shops open, to be able to burn the distro image in order to install it. I’m sure a lot of us often face this problem. In this article I’ll share a simple trick by which you can install the new distro without burning it to a CD/DVD. The only requirement is that you Continue reading “Stop Wasting CDs; Install Linux Straight from an ISO”

Slackware 13: Is it Really Worthy of the 21st Century?


Slackware is old. No really, it’s OLD! If you’re used to the likes of Ubuntu or any of the other modern GNU/Linux systems, setting up Slackware would seem like you’re back in the early 90s.

Some will argue that Ubuntu and the rest that try to make life easier for desktop users don’t give that fine-grained control over the way you set up your system. Why should a distro try to make choices on your behalf? By configuring your system from the bottom up, you’d ultimately learn the internals.

Does it help? Yes, it does. Immensely! Does everyone have the time and inclination?  Continue reading “Slackware 13: Is it Really Worthy of the 21st Century?”

KDE Shortcut Keys


Most people know shortcuts in Windows but neglect to find out shortcuts in KDE when they make the switch to Linux. So, if you have a shortcut in KDE that isn’t covered here…please comment it so that others can benefit from your knowledge! PS: Some of these might not work with your version of KDE…just test them out and see if they do!

Alt-F2
Brings up a “Run Command” prompt

Alt-Print and Cntrl-Print
Take a screenshot. You have to paste it from your clipboard

Alt-Esc or Control-Esc Continue reading “KDE Shortcut Keys”