Contents

How to Develop on Fedora Kionit Using VSCodium

   Apr 11, 2024     1 min read

I'm user Fedora Kionit and sometimes I use **VSCodium** for writing programming.

For developing, I have two options. Firstly, I must create a virtual machine and start developing. Second solution: we can create a container and start developing.

For the second solution, we can create a container using distrobox and export it to the desktop and use it. However, I don’t like installing VSCodium directly into distrobox for privacy reasons. I prefer to install all software using Flatpak, which is very restricted.

Create a Container Fedora

Okay, let’s go ahead and create a container using distrobox:

distrobox create namecontainer --image registry.fedoraproject.org/fedora-toolbox:39

After pulling it, we can run it using this command:

distrobox enter namecontainer

Configure Fedora For SSH

After that, we must configure the Fedora environment created using distrobox. Let’s proceed.

Firstly, install software on the container:

sudo dnf install policycoreutils-python-utils cracklib-dicts cracklib

After that, we must turn off SELinux: sudo setenforce 0

Next, we need to configure sshd. Firstly, uncomment the port and PermitRootLogin lines. For example:

port 9050 PermitRootLogin yes

Then, to start sshd:

sudo /usr/sbin/sshd

For debugging, you can run:

sudo /usr/sbin/sshd -d

Next, we need to configure root. Use this command:

sudo passwd

ssh

To connect, use ssh:

ssh root@localhost -p 9050

Install Extension VSCodium

Open remote ssh

Connect With Extension

then you can use the shortcut ctrl+Shif+p and select remote ssh connect to host and write ssh to the container.

Enjoy life!

Thank you for reading this post. I wish you to have a nice day and a great time.