Saturday, November 14, 2026

Chapter 0 C# - Hello World and the exercise workflow

Hello friends. Today i am learning about another workflow how to learn and write exercises. If you see last post about hello world, using dotnet new console -n HelloGame, i ended up having several of folder and files just for a "hello world!" exercise.

> HelloGame
    > bin/Debug/net10.0
        > ref
        > refint    
    > obj
    HelloGame.csproj
    Program.cs 

 

I think that is a lot of files and folder. 

And yes, i found another workflow. I can simply make a file exercise01.cs, write code in it, and compile it from the terminal. And my folder will fill up with simple 1 file for 1 exercise.

> exercise
    exercise01.cs
    exercise02.cs
    exercise03.cs
    exercise04.cs
    etc..

This is how i do it:

1. Create a folder name exercise.
2. Create a new file exercise01.cs
3. Write the exercise code
4. Save the file
5. Go to the terminal and type: 
    :~/csharp/exercise$ dotnet run exercise01.cs

And done. One exercise, one file. Simple. Here,s how we done it:

1. Open the folder we have created. 

      

2. Trust the folder. 

  

3. Create a new file, name it exercise01.cs, then type the code.

 

4. Save it (ctrl + s). Then open terminal either the integrated one in VS Code (number 1) or just gnome terminal (number 3). run: dotnet run exercise01.cs and voila.. "Hello World!" .



Simple isn't it? 

Well, good luck on your journey.. I will be posted every now and then but if you really want a tutorial just like i am doing for now (learning from open ai), please comment and i will see what i can do. 

 

 

 

 

Thursday, November 12, 2026

Ubuntu 26.04.1 LTS, VS Code and C#

Hello friends. How are you? 

Long time no see. Today i want to log my journey on learning Game Development using Ubuntu 26.04.1 LTS from scratch and as a beginner.

I am a long Debian user, for as long as 10 years or so. I am not a techy sys-admin person. Just a general everyday user that work in user land. Why i choose Debian before? Its a set and forget distro. We set it up once and forget that it never exist. No moving package, no suprise what so ever. Robust and reliable, but old. And i don't mind old. some-package-12.5.6.1 versus some-package-16.7.4.10 doesn't bother me as long as they work as intended. So why i want to switch into Ubuntu? One reason I decided to switch is that MonoGame provides dedicated Linux setup instructions for both Ubuntu and Arch Linux. I suspect Debian can work too, but hey, let's start fresh!"

MonoGame's official Linux setup documentation targets Ubuntu. Installing the .NET SDK (.NET 10), MonoGame.Templates.CSharp, and Wine works out of the box without hunting down mismatched library names.

And the bonus: Tutorials tagged with Ubuntu, MonoGame and maybe Godot is more available than some niche distro or niche game framework. I have an error? Maybe someone already have it before me, and the answer already there on step googling away. 

Monogame documentation

For other linux distro, we can refer to .NET documentation.

After some test on usb flasdisk, all my hardware is good. Wifi, Touchpad, and everyday use is fine. Ready to install.

 

 ...and i particularly like this proprietary selection. So we are not doing a manual labor later. 

 

 

So, what is Use Active Directory? Some googling work and i got the answer.  

Active Directory is Microsoft's centralized account and device management system, commonly used by businesses, universities, and organizations.

For example:
- Employees log into company computers using their organizational accounts.
- IT administrators manage user accounts and permissions centrally.
- Computers can follow organization-wide security policies.
- Network resources can be controlled centrally.


Do we need it?
Absolutely not. Leave it disabled.

For our Ubuntu machine:
- Create a normal local user account.
- Choose our username and password.
- Leave Active Directory unchecked.

We only need Active Directory if you're connecting Ubuntu to an organization's managed network. We are keeping this machine independent.

Before clicking Next, one final checklist:


- [x] Windows partitions untouched.
- [x] EFI partition reused, not formatted.
- [x] Ubuntu / → 70.50 GB, format.
- [x] Ubuntu /boot → 3 GB, format.
- [x] Ubuntu /home → 110.22 GB, format.
- [x] Dedicated 34.36 GB partition → for setting a hibernation later on.
- [x] Bootloader → nvme0n1.

We'll configure hibernation properly after installation. Having a swap partition alone doesn't guarantee hibernation will work.

And yes, i choose ext4 everywhere.

Btrfs is interesting, but for our Ubuntu gaming-development machine, I'd choose reliability and simplicity over extra filesystem features.

ext4 vs Btrfs
Feature        
   ext4                                   Btrfs
Reliability       Excellent                        
      Excellent
Performance       Consistent     
                        Good, workload-dependent
Snapshots        
 Nonative snapshots                    Yes
Rollback        
  Requires additional tools              Built-in
Compression       No native transparent compression      Yes
Complexity        Low                                    Higher
Maintenance       Minimal                                More considerations

 

Why ext4 for our setup?
1. MonoGame and C#: Both work perfectly with ext4.
2. Gaming: No meaningful gaming advantage from choosing Btrfs.
3. Development: No special filesystem features are required.
4. Simplicity: Easier troubleshooting and fewer things to manage.
5. Hibernation: Dedicated swap works independently of whether / uses ext4 or Btrfs.

I particularly like this slide.

Okayy.. finish line.

 

Now lets install VS Code. And i prefer apt over snap. Here what i found (my preferences):

| Consideration         | APT                             | Snap                    |
|-----------------------|---------------------------------|-------------------------|
| Installation source   | Microsoft repository            | Microsoft Snap Store    |
| Updates               | Through `apt upgrade`           | Automatic               |
| Startup               | Generally quicker               | Can be slightly slower  |
| Integration           | Native .deb Debian package      | Snap integration        |
| Sandboxing            | Traditional package permissions | Snap confinement        |
| Development workflow  | Excellent                       | Excellent               |

Open the terminal and do:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft.gpg

Add microsoft repository:

echo "Types: deb
URIs: https://packages.microsoft.com/repos/code
Suites: stable
Components: main
Architectures: amd64,arm64,armhf
Signed-By: /usr/share/keyrings/microsoft.gpg" | sudo tee /etc/apt/sources.list.d/vscode.sources

Then install VS Code:

 
sudo apt update
sudo apt install code 

If you want to download manually the .deb file, you can refer to this documentation:
 

https://docs.monogame.net/articles/tutorials/getting_started/02_choosing_your_ide/index.html?tabs=vscode 

https://code.visualstudio.com/thank-you?dv=linux64&build=stable 

Next we need three things:

NET 10 SDK — required to compile and run C# programs.
C# Dev Kit — recommended VS Code extension for IntelliSense, debugging and project management.
MonoGame prerequisites — install when we start game development.

Lets install .NET. Open terminal again and do:

sudo apt update
sudo apt install dotnet-sdk-10.0

 

Official reference: Microsoft's .NET installation guide

Verify the installation:

dotnet --info
dotnet --list-sdks 

Next: C# Dev Kit
Open VS Code:
1. Press Ctrl + Shift + X.
2. Search C# Dev Kit.
3. Verify the publisher is Microsoft.
4. Click Install.

C# Dev Kit – Visual Studio Marketplace

It should install the supporting C# extension as well.

 

Now lets test it with classic hello world:
Open terminal and type:

mkdir -p ~/csharp
cd ~/csharp
dotnet new console -n HelloGame
cd HelloGame
code .

VS Code Workspace Trust

When you open a new project folder in Visual Studio Code, you might notice a security warning or a Restricted Mode banner.

Don't worry. This is a built-in security feature called Workspace Trust.

VS Code uses this feature to protect your computer when opening projects from unfamiliar sources. Some projects contain scripts, tasks, extensions, or workspace settings that could execute code automatically. A malicious project could potentially use these features to harm your system.

In Restricted Mode, VS Code limits certain features, such as debugging, terminal access, tasks, and some extensions, until you decide whether to trust the project.
 

What should you do?

If this is your own project folder, which you created yourself, or a project whose contents and source you have reviewed and trust, you can select Trust this folder to enable the full VS Code experience.

However, if you've downloaded a project from an unfamiliar website or received it from an unknown source, leave it in Restricted Mode until you've checked that it's safe.

For our C# exercises, we'll be working with folders and projects that we create ourselves, so trusting those folders is perfectly reasonable.

You can also manage trusted folders later through the Command Palette:

`Ctrl + Shift + P` → `Workspaces: Manage Workspace Trust`

Remember: Only trust projects you trust, not every folder that VS Code asks you about.

Official reference: VS Code – Workspace Trust Documentation

 

Hello world!

System summary:

ComponentConfiguration
OSUbuntu 26.04.1 LTS
Filesystemext4
DesktopGNOME
IDEVisual Studio Code
LanguageC#
SDK.NET 10
FrameworkMonoGame (planned)
Architecturex86_64


Next topic: Revisit C# and "Hello World!" for absolute beginner.

See ya later friends! 

 

 

 

Monday, August 5, 2024

Samba Stuck on Authentication (Debian Cinnamon with Nemo)

So i have this problem that samba stuck on authentication and keep asking for password loop forever. And googling about this problem, i found out that i am not alone. Of course some problem is kind of different and some problem quite similar. And there's quite a lot of solution too that involved editing config from the terminal.
 
It doesn't matter whatever you choose, either forget password immedately, remember password until you logout or remember forever, the password pop up dialog box keep recurring.
 
Dig deeper into google search engine, i found that someone has a very simple solution just to kill the gnome-keyring-daemon on startup.

Go to System Setting and search for startup application.
System settings.
Disable the SSH Key Agent (GNOME Keyring : SSH Agent), and then restart the computer.


Problem solved and dang! its so simple. It's harder to google the right solution than to implement it.

Well, good day and back to work!


Thursday, June 20, 2024

Accessing Windows Network from Debian Gnome

Working from different Operating System via Cloud Storage is nice because the file is there. We just need to set the client on each PC such as Insync Apps.


But, what about accessing Windows Network from Debian System? Well, after a good-googling-time, I need samba installed in my system, and i must know what ip address the PC with a shared folder in it.


Samba? Spiral Linux already came preinstalled, so i think i good to go. I just need to know the ip address now.

 

For this purpose, i use Angry IP Scanner. direct download from its webpage.




Install it and Make sure you have at least Java 11 or OpenJDK installed - check your distribution.

Last version with Java 8 support was 3.7.6.

DEB and RPM packages will install appropriate 'desktop' files, so Angry IP Scanner will appear in Applications menu, under either Internet or Networking. Alternatively, you can just type ipscan to launch the application.























Yes. With the help of IP Scanner, i manage to know what PC with what IP Address that has the shared folder in my network.

Well, of course i can just go to the pc, and do Select Start > Settings > Network & internet > Ethernet.

Under Properties, look for IP address listed next to IPv4 address.
Or open cmd, and then type ipconfig. 











Next, open file manager, go to Other Location, and type smb://10.xx.xxx.xx (the Windows PC ip) in the Connect to Server box.










And there you go. Lets go back to work now =)