Tuesday, October 10, 2023

Power of Ventoy: Your Ultimate Bootable USB Solution

Unlocking the Power of Ventoy: Your Ultimate Bootable USB Solution

You can watch complete tutorial on youtube

In the world of computer maintenance, system recovery, and operating system installations, having a reliable bootable USB drive is a must. One tool that has gained recognition and popularity among tech enthusiasts and IT professionals is Ventoy. In this article, we'll explore what Ventoy is and how it simplifies the process of creating bootable USB drives.


What Is Ventoy?


Ventoy is an open-source, free-to-use software utility that allows you to create a multi-boot USB drive with ease. It stands out from traditional methods of creating bootable USB drives because it doesn't require formatting or overwriting the drive every time you want to add a new ISO or operating system. Instead, Ventoy makes use of a clever partitioning system that lets you simply copy and paste ISO files onto your USB drive. This means you can have multiple operating systems or utility tools on a single USB drive without the hassle of reformatting.


Key Features of Ventoy:


1. Easy to Use: Ventoy is designed with simplicity in mind. All you need to do is format your USB drive once and copy your ISO files onto it. Ventoy will automatically detect and list them in a user-friendly menu when you boot from the drive.


2. Supports Various Operating Systems: Whether you need to create a bootable Linux distribution, Windows installation, or other utility tools, Ventoy supports a wide range of ISO files, making it a versatile choice for any task.


3. Persistence Support: Ventoy allows you to create a persistent storage space on your bootable drive, enabling you to save your files, configurations, and updates across reboots.


4. Regular Updates: The Ventoy team actively maintains and updates the software, ensuring compatibility with the latest operating systems and improvements in functionality.


How to Get Started with Ventoy:


1. Download the Ventoy software from the official website. download from here


2. Install Ventoy on your USB drive, following the provided instructions.


3. Simply copy your ISO files onto the USB drive.


4. Boot your computer from the Ventoy USB drive, and you'll see a menu of available ISOs to choose from.


Conclusion:


Ventoy is a game-changer when it comes to creating bootable USB drives. Its ease of use, support for multiple operating systems, and the ability to add or remove ISOs without reformatting make it an invaluable tool for both beginners and seasoned IT professionals. Whether you're a system administrator or a tech-savvy enthusiast, Ventoy simplifies the process of managing your bootable tools and operating systems.


In your journey to mastering the world of technology, having Ventoy in your toolbox is a smart move. It's not just a tool; it's a solution that makes working with bootable USB drives more efficient and hassle-free.


So, why wait? Give Ventoy a try and experience the convenience it brings to your computing needs.

Thursday, May 16, 2019

CronJob and Triggers

Cron job and Triggers


CronJob and Triggers :
Cronjob is a job to be performed based on Triggers (Triggers:in simple Triggers uses Cron Expressions to be create  a time bound to execute a cronjob.)
Ex : In real world scenario a software update on mobile when server load is low mostly in
midnights

1 . CronJob type holds the configuration for a single run of a Job, as well as the protocol
information, like logs.

2. Trigger type is used for scheduling when to run a Job. Summarizing, a Job defines what should be done, a Trigger says when.

Create an item type extending from CronJob. In trainingcore-items.xml

<itemtype generate="true"
code="UpdatingProductPrices"
jaloclass="de.hybris.training.core.jalo.UpdatingProductPrices"
extends="CronJob"
autocreate="true">
</itemtype>

3. Job: Where the actual cronjob logic will be written.

4. For this Create a class extending from AbstractJobPerformable<CronJobModel>
And override the perform() method.

Here perform method will contain actual job logic.
public class UpdatingProductPricesCronJob
extends AbstractJobPerformable<CronJobModel>
{
private static final Logger LOG = Logger.getLogger(MyJobPerformable.class.getName());

@Override
public PerformResult perform(final CronJobModel cronJobModel)
{
 LOG.info("**********************************");
 LOG.info("Custom Business Logic");
 LOG.info("**********************************");
 return new PerformResult(CronJobResult.SUCCESS, CronJobStatus.FINISHED);
}
}

5. Define the above Job class as a bean in trainingcore-spring.xml.
<bean id="cronJobForUpdatingProductPrices"
class="de.hybris.training.core.job.UpdatingProductPricesCronJob "
parent="abstractJobPerformable">
</bean>

6. Run the command ant clean all

7. Go to Hac-->platform-->update  trainingcore module

8. Go to Hac-->console-->Impeximport perform impex file.
You probably want this cronJob to perform a custom action,

for this you need to link up the cronJob with an actual action/task.
INSERT_UPDATE
CronJob;code[unique=true];job(code);singleExecutable;sessionLanguage(isocode)
;UpdatingProductPrices;cronJobForUpdatingProductPrices;false;en


9. Go to backoffice-->System-->Background Process--> Cronjobs and select cronjob.
cronJobForUpdatingProductPrices

10. Trigger: Holds cron expression when to fire cronjob.
Add the trigger conditions through TimeSchedule tab.
Cron Expression : 0 0/5,10 0  * *

Above cron expression dipicts          0 set for Seconds “0“ means at 0 seconds
      0/5,10 set for  Minutes “0 0/5,10” means every 10 min, 5 min
 0 set for Hours “0 0/10 0 ” means every hour
 * set for day “0 0/10 0 *” means every day
 * set for month       “0 0/10 0 **” means every month

You can also use impex script to create trigger.
INSERT_UPDATE
Trigger;cronJob(code)[unique=true];cronExpression
;myCronJob;0 0/10 0 * *



Click StartCronJob

12. Output:
May 08, 2019 10:32:14 PM de.hybris.training.core.job.MyJobPerformable perform
INFO: **********************************
INFO: Custom Business Logic

INFO: **********************************