Muting Sound Every Time Ubuntu Starts

Ubuntu 19.04 doesn’t remember audio settings between reboots. This means that after every reboot I need to mute sound again and again. Since making it remember volume between reboots is hard, I went for the next best thing - mute it on reboot to start with.

Command is easy:

amixer set Master mute

To perform it on every startup, we can use @reboot crontab directive. However, be careful which crontab you’re editing as this statement is applicable only for root. It will simply be ignored for any other account’s crontab.

Keeping that in mind, this is what sorted it out for me

sudo crontab -e
@reboot /usr/bin/amixer set Master mute

Now my laptop starts muted and any unmuting is left to my discretion.

Mini Čobanac

Illustration

Pretty much every time I’m back in Croatia I have čobanac - a regional spicy stew with lot of meat and paprika. However, I never actually made one myself as it’s a meal that needs a lot of cooking (ideally in a huge pot) and variety of recipes makes it impossible to make one-and-only proper recipe. However, wife and I figured we can adjust the recipe to get a tasty 4 liter meal in a small 5 liter pot.

As compared to normal čobanac, there are a few adjustments. The most noticeable of all is lack of hotness. Most of hotness in čobanac is actually from hot peppers and you’ll note they are absent from the ingredient list. As parts of my family have different spice tolerance, here we have a non-spicy base and all spiciness can be added later either as cayenne or by using separately cooked chili peppers.

Speaking of hot peppers, west USA where I live doesn’t really have the same varieties I’m used to in Croatia. I know many think chili doesn’t taste of anything but the lovers of hot know there is a difference. If you cannot get feferoni pepper, serrano will probably be the closest in taste.

When it comes to meats, the more the merrier. It’s common to have three or more meats but I found that pork knuckles actually make the biggest difference. I know they are not everybody’s cup of tea but nobody is forcing you to eat them. However do cook them for both the flavor and density. Other meats should be added as goulash-sized cubes with the hardest meat coming in first. And do not get lean cuts as fatty meat will impart more taste.

Illustration

Any 5 liter pot will do but two features are really beneficial. The first one is a substantial amount of metal that can keep temperature. This will not only save you some electricity but also even out the heat making burned meal less likely. The other feature is etched volume markings. It makes trivial to add liquid and maintain its level. Yes, you can eye the level too but this removes all the doubt.

Cooking time can vary greatly but as a general rule you want to take it slow. Just keep it as barely boiling and give it 4-5 hours at minimum.

Usual timetable can look something like this:

07:00 This is an excellent time to start čobanac if you want it ready for 13:00 meal. Just dice three onions as fine as possible (only pussies use machine for this) and start cooking them at low heat (3½) with a generous helping of oil. Do NOT burn them - mix often.

07:30 Your onions should be really soft now and it’s a good time to add shredded carrots and celery root in addition to a finely chopped garlic. Add water for mush-like consistency. Risk of burning stuff is greatly reduced now but do not forget to occasionally give it a mix.

07:45 Add pork knuckle and bring water up to 2 liter line. Also add smoked paprika, salt, and black pepper. Increase heat just a smidgen (4) and leave to a slow bubble mixing it here and there. As water boils away, add more to keep it at 2 liter line. If you have some extra bones, this is a good time to get them in. Even the most of non-spicy folks can handle a single jalapeno so throw that in too.

09:00 Add beef and bring water to 3 liter line so that all beef is covered. Leave it to slowly boil.

09:30 Add pork and bring water to the final 4 liter level. As it slowly boils, add back water every half an hour with an occasional stir. If you are adding more meat later (e.g., lamb), keep water level a bit lower than 4 liters so that extra meat will fit.

10:00 If you have any lamb or similar softer meat, this is a great time to toss it in. While pork and beef are sufficient, variety doesn’t hurt. Get the peppers (hot or sweet) in. Good time to chuck those bay leaves in too.

11:30 Add strained tomatoes. At this point one could add hot peppers or if trying to make a non-spicy base, here we can add just a few small sweet peppers. After stirring, take a taste to see if you need a bit more salt. If you want to stir up a controversy, you can also add 200g of sliced crimini mushrooms. Spice-lovers can alternatively look into getting a bit of juices from the big pot and chopped chili peppers into a separate pan on low heat until it reaches thin paste consistency.

12:30 Turn off the heat and leave it to cool down.

13:00 Congratulations, your čobanac is done and ready to serve with a few slices of bread and a simple salad. It took a while but I promise it’s worth it!

Ingredients for 4 liters of “basic” čobanac:

  • 3 Yellow onions
  • ½ dcl Oil
  • 2 Carrots
  • ½ Celery root
  • 4 cloves Garlic
  • 4 tablespoons Smoked paprika
  • A dash Cayenne powder
  • 1 tablespoon Salt
  • 1 teaspoon Black pepper
  • 1 pork knuckle
  • 1 jalapeno
  • ¾ kg beef
  • ¾ kg pork
  • ¾ kg lamb
  • 2 Bay leaves
  • 2-3 Sweet peppers (or serranos for hot variant)
  • ½ cup strained tomatoes

Redirect Only Errors to StdOut

The most usual thing I want with redirect is just throwing errors to null:

command >/dev/null

Alternatively, one can throw everything to null:

command >/dev/null 2>1

However, what if you want only error being shown and proper output ignored? Well, there is a redirect for that too:

$ command 2>1 >/dev/null

Using iSCSI from Ubuntu 19.04

Samba has taken over most of my sharing but I still occasionally need iSCSI. Connecting to it from Ubuntu is straight enough. First step is of course installing necessary package:

sudo apt-get install open-iscsi

Next step is simply connecting to iSCSI and discovering the drive name within dmesg output:

sudo iscsiadm -m discovery -t sendtargets -p ^^192.168.1.1^^
 192.168.1.1:3260,1 iqn.2007-09.jp.ne.peach.istgt:somedisk0

sudo iscsiadm --mode node --targetname iqn.2007-09.jp.ne.peach.istgt:^^somedisk0^^ \
    --portal ^^192.168.1.1^^:3260 --login

sudo dmesg | grep "Attached SCSI disk" | tail -1
 [ 3203.813577] sd 2:0:0:0: [^^sda^^] Attached SCSI disk

Lastly, just use the normal mounting to access the disk:

sudo mkdir /mnt/scsi
sudo mount /dev/sda2 /mnt/iscsi

.NET Core 3.0

.NET Conf 2019 had one significant news this year - .NET Core 3.0.

The biggest feature for me is self-contained executable. It’s not ideal as actual package is unpacked upon the first execution but it’s definitely a step in the right direction.

Other feature I am excited about is HTTP/2 combined with TLS 1.3. Not only performant but also secure. Frankly, this almost makes me yearn for making my own CMS again. Almost. :)

Finally there is a support for serial port under Linux. Considering how basic serial port support is for any OS, it’s hard to believe it took until 3.0 to finally do it. Speaking of hardware support, there is also a Raspberry Pi GPIO support in a separate repository.

Conference also brought C# 8.0 to light of day. I will probably write more about it later but suffice it to say there are many small but exciting features. I can already see nullable reference types being either really accepted or universally hated. I am more in the former camp but time will tell. :)

You can watch keynote yourself with many more videos to follow.