Author: pvadmin

  • How to create a qemu snapshot

    Hello readers,

    Today, we will learn how to make a snapshot of your qemu images under macOS.

    First, you must run terminal or iterm2. Then follow my instructions.

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -cdrom Fedora-Workstation-Live-x86_64-36-1.5.iso \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=fedora.qcow2,if=virtio

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=fedora.qcow2,if=virtio -snapshot

    These first commands will be to run and install the fedora 36 on your qemu machine.

    In the final line with -snapshot, you can run snapshots on the fly.

    You can also boot and install on the cloud ubuntu 20.04 LTS. Now, I am going to show to do that.

    #!/bin/bash -e

    qemu-img create -f qcow2 ubuntu.img 60G
    curl -L -o ubuntu-20.04.5-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.5-desktop-amd64.iso

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -cdrom ubuntu-20.04.5-desktop-amd64.iso \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=ubuntu.img,if=virtio

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=ubuntu.img,if=virtio -snapshot

    You must break the lines for each step on the ubuntu 20.04 LTS cloud image. Remember, qemu is very good for testing emulators. With this article, I want to teach how to build emulators Linux for cloud computing or testing structures.

    In the next article, I will teach how to code and manage coding under the emulator connected to the terminal from macOS.

  • Fedora 37 Installation

    Hello readers.

    Today, we are going to install Fedora 37 beta under Parallels. I am using Parallels since 2015. Now, I build my VMs under it.

    First, you must get the iso netinstall from getfedora.

    https://getfedora.org/en/workstation/download/

    Then, open Parallels and create a new VM.

    After testing the live iso I needed to redo the netinstall from 37 Beta

    Click Begin

  • FreeDOS with C #3

    Hello dear readers, today we will teach and approach how to make an installment for FreeDOS under qemu.

    Our following steps will be under macOS 10.15; Here you will find useful techniques to code on the new operating systems. We decided to teach C with and under FreeDOS. FreeDOS is an operating system very good to learn how to code and have the skills to get better.

     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    Then:

    brew doctor

    Then:

    brew install qemu

    Now, we have installed the qemu on our system. Let’s see how we can install.

    qemu-img create -f raw freedos.img 20G
    qemu-system-i386 -rtc base=localtime -hda freedos.img -cdrom FD13LIVE.iso -boot d
    

    You can always use my working-in-progress script as userland.

    https://github.com/vic3t3chn0/opendos-layer

    For last, you can see the installment over step over step with screenshots.

    qemu-system-i386 -rtc base=localtime -m 128 -drive file=freedos.img,index=0,media=disk,format=raw -cdrom FD13BNS.iso -boot d

    M:
    
    copy packages\devel\watcomc.zip C:
    C:
    unzip watcomc.zip
    

    In the end, you will have the compiler installed.

    cd devel\watcomc
    dir
    
    owsetenv
    

    In the next topic, we will approach how to code or start to code on Watcom c for dos.

  • FreeDOS with C #2

    Today, we are going to learn how to install FreeDOS in a Virtualbox installment.

    For this purpose you should have it on your computer, the VB already installed.

    Over the next steps, you will be able to learn how to install FreeDOS.

    You must download the iso from freedos.org, when it is done, you should unzip it. You will get an iso inside the folder. You must, you should point to the directory of the iso inside the Virtualbox.

    Now, we have an operating system running on VirtualBox. I used the VB 6.x

  • FreeDos with C #1

    Hello, dear readers. It’s have been a while. With these following articles about C. We are going to learn C for embedded systems with FreeDOS.

    The GitHub repo will be available here:

    https://github.com/vic3t3chn0/opendos-layer.git

    Every time I update the ebook, you can see the repo updated.

    This repo is being updated to be functional in Linux(Debian), FreeBSD, and macOS. For now, you can run them on macOS. I am fixing the FreeBSD and Linux patches.

    Next time, we will teach how to install FreeDOS for qemu and Virtualbox.

    I hope to see you…

  • IRC scripting

    Hello, it’s coder by gleentech again. Today we are going to talk about kvirc IRC scripting.

    The following code is the script itself.

    alias(j){ join $0-; };
    j  #plv
    echo This is me
    event (OnIRC, enable)
    {
        echo Auto-spying my channels...
        action.enable
    }
    
    event (OnIRC, ver)
    {
        echo Auto Knowing version...
        about.kvirc
    }
    
    
    event (OnIRC, hosting)
    {
        echo Auto-spying my channels...
        ahost
    }
    
    event (OnIRC, spy)
    {
        echo Auto-spying my channels...
        socketspy.open
    }
    
    
    event(OnIRC,autojoin)
    {
        echo Auto-joining my preferred channels...
        j #plv
    }
    
    event(OnIRC,lookforplv)
    {
        echo Looking for plvicente...
        whois plvicente
    }
    
    event (OnIRC, awake)
    {
        echo Away off my channels...
        away I fell asleep... Don't wake me up
    }
    
    event (OnIRC, banning)
    {
        echo banning  on my channels...
        ban $0
    }
    
    

    First of all, we must do two things before seeing the script.

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    brew install kvirc

    Now we have our IRC client to code our script.

    We must open the kvirc on the macOS. Then link to your favorite network server.

    I am going to show how to use the script on ptnet the Portuguese network. We can use this on any network. Now, we have the script on our side.

    We must go to the events tab and choose onIRC event. Click on the right side and create a new event default.

    Rename the default event name to spy on onIRC events. Then copy the onIRC spy event to the file you just created. The apply and close.

    For instance, this spy function will log your status and everything you do on the IRC server network.

    You can copy the event clicks to your side to see how we can use IRC scripting. I write first a kvs file before copy the functions and events or even aliases.

  • Parallels Debian

    Today, we will learn how to install Debian on Parallels.

    If you follow the screenshots carefully you can have a VM with 8GB Ram and 64GB trim SSD.

  • Data Recovery

    It’s coder by gleentech again. Today, I will talk about data recovery.

    I opened a store to fix and build computers. I had in my hands one acer aspire to make a backup. This aspire 5050 had an issue, it’s old too. I needed to recover data from there.

    First I tried ubuntu, fedora, and Gentoo in USB to recover the data inside. In the end, I found Debian version 11. I flashed the iso into a USB drive. After the flashing completion, I ran it on Acer’s laptop. I booted the live iso, I installed it, then I did some steps to get it on.

    This version worked because I made a few changes.

    Why?

    This Acer had an issue with wifi, HDD SATA corruption, and fat32 second partition. I needed to install Debian because the Windows 7 got corrupted. The fat32 shouldn’t even exist but in NTFS. I pulled out the fat32 into an ext4 partition.

    To copy this data. I needed to compile the CPU, Wi-Fi, ati Radeon GPU, and trackpad. To get the hands-on that.

    As this laptop is old, I needed to make some research. I am doing some research to have this old laptop working with Microsoft, instead of Linux. I made a tailored distro just for data recovery.

  • FreeBSD kernel setup

    Hello again. It’s coder by gleentech. Today, we are going to set up a FreeBSD kernel dev machine.

    First of all, we must see the devices:

    -> sudo dmesg

    -> sudo psm

    -> sudo apropos

    With those two commands, we can see our devices. In Windows is there a machine device application. Here we must check them with a terminal. The last command is useful too.

    It’s there another good tool also, which is :

    -> sudo pciconf -lv

    All the tools are good to know our machine. I used them for my HP. For instance, I used them to check my realtek wifi adapter built-in. Not working yet. I am studying a way to fix it.

    The FreeBSD comes with everything to build our kernel. cmake, make, clang, gdb but I made my own gdb. Based on the code from the official repository.

    FreeBSD kernel

    type this on the terminal:

    -> svnlite checkout https://svn.freebsd.org/base/releng/13.0 /usr/src

    or:

    -> git clone https://github.com/freebsd/freebsd-src.git /usr/src

    Now you must type always on the terminal

    -> cd /usr/src

    -> make buildkernel KERNCONF=MYKERNEL

    -> make installkernel KERNCONF=MYKERNEL


    You must do this always with root, sudo account. Next week I will teach how to set up from the ground up a FreeBSD machine to do all this.

  • Unix Commands

    On this article Coder by Gleentech will teach you how to terminal commands from BSD systems.

    Today we saw a growth in Unix and Linux as smartphone, embedded systems. Sometimes we encounter FreeDOS. But nowadays the ecosystem we see is Unix and Linux. Those two systems can be found on iOS and Android systems, besides ChromeOS. In this article, I will teach the basics, the basic

    commands to manipulate easily your system.

    I will teach how to use list directories, change directories, count words, use grep for debugging, and pipelines. This is an article for introduction is not a hard way article to achieve everything. I want to deliver an easy way to get deep into it. Learning Unix is not an easy task, it takes time. You cannot learn everything in one day about Unix. You need to learn and read tons of papers to have knowledge.

    For start, we will go to call the terminal. It’s a command prompt. You must call konsole or terminal application. I am going to have all the examples with konsole.

    The first command we see is ls.

    As we see we can list a directory.

    We see with this command the working directory

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.