How to use QEMU to boot another Operating System

The open-source PC emulator QEMU is included by default in most mainline Linux distributions, but you can also download versions of QEMU for other Linux distributions. If you run Windows or macOS, the QEMU website provides packages for those platforms, too. QEMU provides excellent system-level compatibility and support, making it an ideal and lightweight virtual machine environment.

  • How to Run Windows 11 in a Virtual Machine

You’ll need a place to install the legacy system inside QEMU, and for that you’ll need a virtual C: drive. In DOS, just as in Windows, drives are represented as letters. A: and B: are the first and second floppy disk drives, and C: is the first hard drive. Other media, including other hard drives or CD-ROM drives, are assigned D:, E:, and so on.

Under QEMU, virtual drives are image files. To initialize a file that you can use as a virtual C: drive, use the qemu-img command. To create an image file that’s about 200MB, type this:

$ qemu-img create image.img 200M

You should get an output reading something like “Formatting ‘image.img’, fmt=raw size=209715200” in your terminal.

Unlike PC emulator systems like VMware or VirtualBox, you need to “build” your virtual system by instructing QEMU to add each component of the virtual machine. QEMU uses command line options to define everything. This can make QEMU difficult to use at first, but this provides flexibility in creating exactly the virtual machine that you want. To get started, you only need to know a few parameters to start a virtual machine:

1. The Command to Start QEMU

To emulate a legacy PC system (from before Windows 7, typically), use qemu-system-i386 . To emulate a more modern system, use qemu-system-x86_64 instead.

2. The Virtual Disk

Use -hda imagefile to tell QEMU to use imagefile as the hard drive image. This should be the same virtual disk you defined with the qemu-img command.

3. The Boot ISO

Set -cdrom isofile to define the CD-ROM or DVD image file. For example, this might be the bootable ISO image to install Linux, Windows, or another operating system.

4. The Memory Amount

Set the amount of memory in the virtual machine with the -m size option. If you do not explicitly set this, QEMU defaults to 128 MB. You can also append a suffix of M or G to specify the memory in MB or GB.

5. The Boot Order

Use -boot [options] to specify the order that QEMU should look for bootable devices. For example, set -boot order=dc to tell QEMU to try the CDROM ( d ) first, then the hard drive ( c ).

Now that we have the essentials to start a virtual machine with QEMU, we can put it all together on a single command line to create and boot your virtual machine!

Let’s try it with an example: installing a copy of the FreeDOS operating system. FreeDOS is an open source DOS-compatible operating system that you can use to run legacy business software and other DOS applications. Any program that works on MS-DOS should also run on FreeDOS.

First, download a copy of the FreeDOSinstall CD-ROM from the FreeDOS website. At the time of writing, the latest version is FreeDOS 1.3, so our file will be named FD13LIVE.iso.

Then, if you didn’t do it earlier, go ahead and define a virtual disk with the qemu-img command:

$ qemu-img create image.img 200M

Use that virtual disk in the command line to start QEMU:

$ qemu-system-i386 -hda image.img -cdrom FD13LIVE.iso -m 16M -boot order=dc

And follow the prompts to install FreeDOS:

Note that you may be prompted to reboot after partitioning your C: drive. After doing that, restart the installation process to complete it.

[mai mult...]

How to share Files from Mac to Android

In order to share files between your Mac and an Android device, you will need to configure each device, check their network configurations, and set up file sharing on macOS.

  • First, take a few minutes to check that both your Mac and Android devices are connected to the same network.
  • On your Mac, check the Wi-Fi status from the menu bar. Alternatively, you can confirm connectivity by going to System Settings > Network.
  • On Android, open Settings and then typically Wi-Fi, just to confirm it’s on the same network as your Mac.

Enable File Sharing on macOS

  • To start, you must first enable file sharing on macOS, so your Mac can share files with all your network devices, including Android devices.
  • Open System Settings > General > Sharing, and then enable “File Sharing” in the Sharing menu.
  • Select the icon to the right to open the Shared Folders configuration window, and then select “Options”. Make sure SMB File Sharing is on and also enable your account for Windows File Sharing.

When you’re finished, select “Done” to return to the Shared Folders window.

Add Shared Folders, New Users, and Configure Access

While you’re at it, you might want to add folders you want to share, add new users, and configure how they can access them.

  • In order to add a shared folder, first click the “+” below the Shared Folder pane, then select the folder, and select “Open”. Once you’ve done that, you can configure access, by selecting the folder, then a user and setting access permissions, for example “Read Only” to just view folders and their content, or “Read & Write” to edit them.
  • To add or remove users, select the “+” or “–” buttons at the bottom of the Users pane.
  • On Android, you can access your Mac’s file shares, but it’s a little complicated to access Android stuff from Mac. The best workaround I’ve found is to copy and paste stuff on Android to a shared folder on your Mac.

A lot of Android devices might not have a file manager that will support SMB shares, in which case you’ll need to install a third-party option. I use File Manager +, (free with ads), because it has the functionality you’ll need to connect to your Mac’s network shares.

I selected the Local Network option, which makes it just a little bit easier to connect to your other machines because it automatically fills in the Host (IP address) and Display Name (NetBIOS name). Then, select your Mac, enter your credentials, and select “OK”. You should now be able to access your Mac’s shared locations.

  • Setting up an Android device as a Samba server isn’t as easy as it is to do on Linux. It’s easier if you have files you want to put onto your Mac from your Android device (such as screenshots), then you’re better off copying or moving them.
  • To do this on File Manager +, you just browse to the device’s location, select the file, and then “Copy” or “Move”. Next, browse to the location on your Mac where you want to relocate the files, then select “Paste”.
[mai mult...]

How to use Apple invites to Manage your Events

To create an event, you’ll need to download and install the Apple Invites app from the App Store. You also need an iCloud+ subscription to create a new event, although you don’t need one to respond to invitations.

  • Open the app and click “Create Event
  • Tap “Add Background” to create a background image for the invitation. You can select one of the available backgrounds, tap “Photos” to use one of your photos as the background, or tap “Camera” to take a photo to use as the background.
  • If you have Apple Intelligence, you can also tap “Playground” to create an original image using Image Playground.

Once you’ve selected your background, tap “Event Title” and give your event a name. Select “Date and Time” to choose the date and starting time of the event. You can make events all-day and include an end time if you wish. Tap “Location” to add the location for the event; you can search for a location from Apple Maps. Invites will automatically add the weather for that location to the event.

  • Tap “Add a Description” to describe what will be happening at the event, and you’ve completed all the information you need to create your event.
  • You can add shared albums and playlists if you want, as explained below.
  • Tap “Preview” to see how your invite will look to any recipients.

Creating a shared Photo Album for an Event

You have the option to add a shared photo album to your event. This lets you and other invitees upload photos that are visible to everyone who receives the invite.

  • Tap “Create Album” and grant the app access to your photos.
  • Change the name of the shared album if you want and tap “Done
  • Tap “Add Photos” and select the photos you want to add to the album.
  • Tap “Post” to add the photos to the shared album. When invitees receive the invite, they’ll be able to add their own photos to the shared album if they want.

Setting Up a Shared Apple Music Playlist

You can also set up a shared Apple Music playlist for your event. However, for invitees to be able to listen to the playlist in full, they’ll need to have their own Apple Music account, otherwise they can only listen to a preview of the playlist.

If you want other people to be able to collaborate on your playlist, you’ll be prompted to set up an Apple Music profile if you don’t have one already. This lets others see your shared playlists and what you’re currently listening to.

  • In your invite, click “Add Playlist.” You’ll need to grant access to your Apple Music account.
  • You can then select a pre-existing playlist or tap “New Playlist” and give your playlist a name to create a new one from scratch.
  • You’ll need to set up an Apple Music profile if you choose “Add and Collaborate” or you create a new playlist.

If you don’t want to do this, you can add a pre-existing playlist, and select “Add Playlist Only” which will mean that other people can’t edit or reorder the songs.

Adding your Event to your Calendar

Bizarrely, considering how integrated the Invites app is with the Apple ecosystem, your event isn’t added to your calendar app by default. You can manually create a calendar event, however.

  • Open your invite and tap the calendar icon at the top of the screen. You may need to grant access to your calendars if you haven’t already.
  • Check the details of the event are accurate. You can add an alert for your event if you want one by tapping the “Alert” dropdown and selecting a time.
  • When you’re happy with your calendar entry, tap “Add”.

Once you’ve completed your invite, it’s time to send it out. There are two main options here; you can send out a link that anyone can use to view and respond to your invite, so invitees can share the link with others if they want. Alternatively, you can send a unique invite link to specific people, meaning that only those people you invite can respond.

If you’ve reached the point where you’ve previewed your invite, tap “Next.” If you’ve left it and come back to it, tap “Invite Guests.” To send out a public link that lets anyone with the link view your invite, you can share the link via Messages, Mail, using your iPhone’s sharing options, or by copying the link and sending it out however you want. Toggle “Approve Guests” on if you want to be able to choose who can attend from the people that respond.

You can also opt to send your invite as a one-off link that only the people you send it to can use. This ensures that you don’t have anyone you don’t invite trying to RSVP to your invite. Under “Invite Individuals,” tap “Choose a Guest.” Select someone from your contacts and choose whether to send the link via Messages, Mail, or another sharing option.

Repeat for any other contacts you want to invite. If you want to send a one-off link to someone who isn’t in your contacts, tap “New Guest.” Enter their name and tap “Send Invitation.” You can then choose how to share the unique link.

Responding to an Invitation

You can send invitations to anyone, regardless of whether they have an Apple device or not. Having an iPhone with the Invites app installed does make the process a little quicker, however.

  • On iPhone, when you open the invite link, you’ll be taken straight to the Invites app
  • Click “Open Invitation” to see the details
  • You can then select “Going,” “Not Going” or “Maybe” and add a note to your response if you want.
  • Tap “Send Reply” and the creator of the event will be notified. The creator can see a full list of the RSVPs at any time by tapping the Guest List section of the event.

If you don’t have an iPhone, you can open the invitation link in any browser. You’ll see brief details of the event. Enter your email, and you’ll be sent a code to confirm your email address, which then grants you access to the full details of the event. Click in the RSVP section and choose “Going,” “Not Going” or “Maybe.” The creator of the event will get a notification of your response, which also appears in the event in the Invites app.

Limitations of using Apple Invites

If you’re an Apple user who already has an iCloud+ subscription for other reasons, then the Apple Invites app is a really easy way to create or respond to event invitations. If you don’t have iCloud+, you won’t be able to create events, which seems a little mean-spirited.

For Android users, the process isn’t quite as simple. You’ll need to verify your email to be able to see the event details and RSVP, and you’ll have to sign up for an Apple Account to view the shared photo album. If you don’t have an Apple Music subscription, you’ll only be able to hear a preview of the shared playlist, too.

[mai mult...]

How to block USB Devices on Windows 11

If you want to disable all the USB ports so no USB devices can work with your system, use the Device Manager utility. Note that this method even turns off any USB-enabled mice or keyboards. Just keep in mind that this could be a problem if you don’t have an alternative way to control your PC set up in advance.

  • To start, launch Windows Search (press Windows+S), type Device Manager, and open the utility. Expand the “Universal Serial Bus Controllers” section, right-click a USB port on the list, and choose “Disable Device”.
  • Select “Yes” in the prompt. If you don’t find the “Disable Device” option for a USB port, you’ll have to disable that port using BIOS as explained below in this guide.
  • Repeat the above step until you’ve disabled all the ports on the list.

From now on, when you connect a device to any USB port on your machine, your system won’t connect with that device. In the future, you can re-enable your USB ports by opening Device Manager, expanding “Universal Serials Bus Controllers,” right-clicking each port on the list, and choosing “Enable Device”.

Block USB Storage Devices from PowerShell

If you like command-line methods, you can use a cmdlet in PowerShell to block all USB storage devices on your PC. Note that other devices like keyboards and mice will still continue to work.

  • To start, open Windows Search (press Windows+S), type PowerShell, and choose “Run as Administrator”. Select “Yes” in the User Account Control prompt.
  • On the PowerShell window, type the following cmdlet and press Enter. This cmdlet changes a value in the Windows registry to prevent USB storage devices from working with your machine.
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 4
  • After executing the cmdlet, restart your Windows 11 PC to bring the changes into effect.
  • In the future, you can re-enable USB storage devices on your PC by running the following command in PowerShell.
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\USBSTOR" -Name "Start" -Value 3

Don’t forget to restart your computer after executing the command. If you’re running Windows 11’s Pro edition, you can use the Local Group Policy Editor tool to block USB storage devices. Note that this tool isn’t available in Windows 11’s Home edition.

  • To use it, launch the Run dialog box by pressing Windows+R, Type the following in the box and select “OK” or press Enter:
gpedit.msc
  • On the Local Group Policy Editor window, using the options on the left, navigate to the following path. On the right pane, double-click the item that says “All Removable Storage Classes: Deny All Access.”
Computer Configuration > Administrative Templates > System > Removable Storage Access
  • On the open window, at the top, select the “Enabled” option. Then, at the bottom, choose “Apply” followed by “OK.”

Close Local Group Policy Editor and restart your PC.

In the future, to unblock USB storage devices, double-click the “All Removable Storage Classes: Deny All Access” entry, choose “Not Configured,” and select “Apply” followed by “OK”. Make sure to then reboot your computer.

You can tweak a value in the Windows registry to disable and enable USB storage devices. This method works on both Pro and Home editions of Windows 11. Making accidental changes in the Windows registry can cause your system to be unstable. Therefore, back up the registry before making any changes and follow the instructions carefully.

  • To begin, launch Run by pressing Windows+R. Type the following in the box and select “OK” or press Enter:
regedit
  • Select “Yes” in the User Account Control prompt.
  • In Registry Editor, navigate to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR

On the right pane, double-click the item that says “Start.” In the open window, click the “Value Data” field and type 4. Then, select “OK”. The value of 4 tells Windows not to acknowledge any USB storage devices.

  • Close Registry Editor and restart your PC to bring the changes into effect.
  • To reverse your change and unblock USB storage devices in the future, navigate to the above path in Registry Editor, double-click the “Start” entry, type 3 in the “Value Data” field, select “OK,” and restart your PC.
  • If you don’t see the option to disable USB ports in Device Manager, use your PC’s BIOS settings menu to turn off those ports. To do that, launch Settings, select System > Recovery, click “Restart Now” next to Advanced Startup, and choose “Restart Now” in the prompt.
  • On the Choose an Option page, select Troubleshoot > Advanced Options > UEFI Firmware Settings and click “Restart”. Each BIOS menu is different, but you’ll find an option labeled as USB or similar. On my Asus laptop, I’ll head into the “Advanced” tab, choose “USB Configuration” and then disable the ports.

When you want to re-use the ports, you’ll have to enable them from BIOS (since you disabled them from BIOS).

[mai mult...]

How to enable and use File Compression on NTFS Drives in Windows 11

NTFS compression is a feature that compresses (reduces the size of) your files. It uses certain algorithms to make your files smaller without affecting their data. Unlike other methods, this method doesn’t make an archive or anything from your files; your files remain as they are.

This compression method only works on the drives formatted in the NTFS file system. It doesn’t work for the drives that use the FAT32 or exFAT file system. You can format your drive in the NTFS format to make it compatible with this feature. If you want to change your drive to use NTFS without deleting any data, open Windows Search (press Windows+S), type Command Prompt, select “Run as Administrator,” and choose “Yes” in the prompt. Then, run the following command replacing “X” with the letter of your drive.

convert X: /fs:ntfs

You should use NTFS compression for files that can be efficiently compressed, such as text files, documents, databases, and so on. You should also only use it for infrequently accessed files, as if you access a file often, the system needs to decompress it before you can view it.

You should not use this compression for media or system files, as this can affect your system performance. This is because the files need to be decompressed each time you view them.

Compress an Individual File or Folder

To enable NTFS compression for a single file or folder, you have both graphical and command-line options, as explained below.

Using File Explorer

File Explorer offers the easiest graphical way to turn on NTFS compression for your files and folders. To use it, launch a File Explorer window (press Windows+E) and find the file or folder you want to compress.

  • Right-click that file or folder and choose “Properties.” Access the “General” tab. In the Attributes section, click the “Advanced” button
  • On the Advanced Attributes window, enable “Compress Contents to Save Disk Space.” Then, click “OK”
  • On the Properties window, click “Apply” followed by “OK.” If you’re compressing a folder (not a file), you’ll see a prompt with two options:
  • Apply Changes to This Folder Only: Choose this option to only compress the selected folder and not its subfolders and their files
  • Apply Changes to This Folder, Subfolders and Files: Select this option to apply compression to all the subfolders and their files as well
  • Then, choose “OK”.

Once your files and folders are compressed, you’ll see a blue icon on them. To disable compression in the future, right-click your file or folder and choose “Properties”. Open the “General” tab, click the “Advanced” button, turn off “Compress Contents to Save Disk Space,” choose “OK,” and select “Apply” followed by “OK”.

From Command Prompt

If you like running commands, use a command in Command Prompt to turn on NTFS compression for your files or folders. To do it, open Windows Search (press Windows+S), type Command Prompt, and select “Run as Administrator.” Choose “Yes” in the User Account Control prompt.

On the Command Prompt window, type the following command. Replace “PATH” with the full path to the file or the folder you want to compress. Then, press Enter. Whether your file or folder path has spaces or not, keep the path enclosed in double quotes to avoid running into any issues. The command below already uses double quotes for paths.

compact /c "PATH"

The “c” parameter in this command tells the command to compress the specified file or folder. In the future, you can decompress your file or folder using the following command. Replace “PATH” with the full path to the file or the folder you want to decompress.

compact /u "PATH"

You can compress an entire drive (including all its folders and files) using NTFS compression. You can use File Explorer or Command Prompt to do that, as shown below.

Using File Explorer

Open File Explorer (press Windows+E), right-click the drive you want to compress, and select “Properties.” Open the “General” tab and turn on “Compress This Drive to Save Disk Space.” Then, choose “Apply” followed by “OK”.

In the prompt that opens, choose “Apply Changes to Drive X:\, Subfolders and Files” to enable compression for all the subfolders and files on the drive. Or, choose the “Apply Changes to Drive X:\” option. (X is your drive’s letter)

Then, click “OK.”

To turn off compression in the future, right-click the compressed drive and choose “Properties.” Access the “General” tab and disable “Compress This Drive to Save Disk Space.” Then, choose “Apply” followed by “OK”.

From Command Prompt

  • Launch Windows Search (press Windows+S), type Command Prompt, and select “Run as Administrator.” In the User Account Control prompt, select “Yes”.
  • In Command Prompt, type the following command. Replace “X” with the letter of the drive you want to compress. Then, press Enter. This command compresses all the subfolders and files on the drive.
compact /c /s /a "X:\"
  • The “c” parameter tells the command to compress the specified drive. The “s” parameter ensures that all the subdirectories are included. The “a” parameter makes sure the hidden and system files are included as well.
  • In the future, you can decompress the drive by running the following command. Make sure to replace “X” with your drive’s letter.
compact /u /s "X:\"

The “u” parameter tells the command to decompress the specified drive. The “s” parameter ensures all the subdirectories are decompressed as well.

[mai mult...]

How to Format your Chart in Excel

Once you select your chart, one of the extra tabs that appear on the ribbon is Chart Design. This is where you can make the following changes to your chart:
  1. Add chart labels (also known as elements), like axis labels, gridlines, or a legend.
  2. Choose a label layout if you don’t have time to add chart labels manually.
  3. Change the chart’s style by making your bars have a thatched pattern, changing the colors, adding a shaded background, and more.
  4. Select the data source for the chart or switch the x-axis and the y-axis.
  5. Change the chart type altogether, such as switching from a bar chart to a column chart.
  6. Move your chart to a different or new sheet.

The Format Tab

The Format tab—another specialized menu that appears when you click your chart—is where you can personalize your chart’s appearance.

Before you make any formatting changes, however, make sure you have either clicked the part of the chart you want to amend or selected it from the drop-down list in the Current Selection group. The rest of the Format tab then updates to display the formatting settings for the chart part you’ve selected.

The left half of this tab lets you format your chart in the following ways:

  1. Reset the chart’s formatting to the style’s default design.
  2. Add a shape to your chart or change an existing shape. The most useful option in this group is a text box for adding further labels.
  3. Change the appearance of that part of the chart, like adding an outline, filling it with color, or adding an effect.

In the right half of this tab, you can:

  1. Format the text with WordArt, either using a preset style or making your own text formatting tweaks.
  2. Add alt text for people using screen readers.
  3. Align or resize your chart or its parts.

The Format Chart Pane

While the tabs give you access to most of the tools needed for formatting a chart, I prefer using Excel’s Format Chart Pane, as it contains even more options for tailoring your chart to your needs. To launch it, either (1) right-click the edge of your chart and select “Format Chart Area,” or (2) select your chart and click “Format Selection” in the Format tab on the ribbon.

The first thing to look at is what part of the chart you’re about to format by looking at the pane’s top-left drop-down menu. The more chart elements you have on your chart, the more options you will see when you expand this drop-down menu.

For example, if you have gridlines on your chart, the option to format these will appear here. Once you’ve identified the part of your chart you want to format, Excel presents a range of icons for you to click.

Which icons you see depends on which part you’ve selected to format.

  1. The paint pot icon is where you can format the color fill or border or, if you wish, use a picture background.
  2. The pentagon icon lets you add effects, like shadows, glows, and soft edges.
  3. You can adjust the item’s size, alignment, and other properties through the measurement icon.
  4. The three-column chart icon is where you can change the chart’s parameters, like the minimum and maximum values or increments on an axis or the gap width between bars and columns.

If the area you have selected contains text, you’ll see a second drop-down menu in the Format Chart Pane that lets you format that text.

The Buttons Next to the Chart

The buttons that appear just outside your chart’s border whenever your chart is selected are a condensed version of the Chart Design tab I discussed earlier.

  1. The “+” icon is where you can show, hide, or adjust the chart’s labels (or elements), much like through the Add Chart Element icon in the Chart Design tab.
  2. The paintbrush icon lets you change your chart’s style or colors, which you can also do in the Chart Styles group in the Chart Design tab.
  3. The filter button, which lets you choose which data your chart is displaying, has the same options as the Select Data icon in the Chart Design tab.

The Chart Right-Click Menu

You can also make formatting changes to your chart through the right-click menu. What you see in this menu depends on where you right-click. Right-clicking the edge of the chart gives you the most options, as this encompasses everything within the chart. For example, clicking “Font” and choosing a different typeface will affect all the text in your chart.

Right-clicking the internal parts of your chart will give you the option to delete and reset individual elements, as well as change the chart type and relaunch the Format Chart Pane for more options.

Although you can format text through the Format tab and the Format Chart Pane, I find the easiest way to do this is through the Home tab on the ribbon. Simply select the text you want to format, and use the Font group in the Home tab to change the typeface, font color, and font size, as well as the bold, italics, and underline.

[mai mult...]

How to Turn Ubuntu into the Perfect Programming Platform

Installing Visual Studio Code

On Ubuntu, installing VS Code is a breeze. It is available directly from the App Center. Just open the App Center and type code in the search field and it should be the first result you see. Click on “Install,” and it will be ready for use in a few moments. When the installation completes, we’ll need to install some extensions for working with containers, so go ahead and launch Code.

When VS Code opens, go to the extension marketplace by clicking on the icon on the left side panel that looks like 4 small blocks. It should be the fifth from the top. This will open a list of extensions with a search field at the top. In the search field, type containers. On top, or close to the top, of the list you’ll see an extension pack called “Remote Development”. Click on that selection and then click the blue “Install” button.

This will install four extensions that enable Code to work with remote and containerized development environments. It should only take a few moments for the extensions to install. We’re done with VS Code for now, but we’ll come back to it in a few minutes.

Installing Docker Desktop

Docker Desktop is a combination of the Docker container engine and a desktop app to help you manage containers manually when needed. This one is not available in the App Center, but installation isn’t very difficult. First we’re going to enable the Docker APT repository so that Docker will update itself along with the rest of your software. Then, we’ll download and install Docker Desktop. It might look like a lot of commands, but the whole process only takes a minute or two. You’ll need to open a terminal and enter the commands below.

We’ll start by installing the Docker GPG key to make sure all future downloads are secure. Enter the following commands at a terminal prompt, one at a time, in order:

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

With the GPG key installed, we’ll now enable the repository. The following is a single command on multiple lines. You should copy and paste the entire command into your terminal and then press enter.

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Now enter the following command to update apt with the information for the Docker repository.

sudo apt-get update

You should see a few lines of output as your package manager updates. If everything above worked correctly, you will see two lines in the output with the docker.com domain name.

With the repository enabled, we can now install Docker Desktop. To do so, first download the Docker Desktop either using this DEB package direct download link or, if it doesn’t work, by visiting the official download page. Next, back at your terminal, switch to the directory where you saved the package file and enter the following commands to install it (assuming you saved to your “Downloads” directory):

cd ~/Downloads
sudo apt-get install ./docker-desktop-amd64.deb4

The Ubuntu package manager will present you with a list of packages that need to be downloaded and installed and ask you if you want to continue. You should, of course, say yes.

You’ll see quite a bit of output as your system downloads and installs all the necessary packages. Depending on the speed of your connection and computer, the installation can take anywhere from a few moments to a few minutes. The installation process will finish with a warning message. This is normal and you can safely ignore it.

Now you should see Docker Desktop in the app launcher. We won’t need to actually do anything with the Docker Desktop app right now, but you will need to launch it to start the Docker container engine. So, go ahead and launch it and just let it run in the background.

Building your first Container in VSCode

Now back to VSCode! With Docker up and running, the extensions we previously installed in VSCode will allow us to build any number of containers with whatever tools we need for different development projects. For this example, we’ll create an Ubuntu-based container with some common development tools and the Java Development Kit (JDK).

To get started, open VSCode and move to a directory where you’d like to set up your code and create your environment. Then, press Ctrl+Shift+P to open the command palette. In the search box at the top, type in the word container. You should see several options starting with the words “Dev Containers.” Select “Add Dev Container Configuration Files (you may have to scroll down to find it).

You’ll then be asked if you want to add the configuration to your workspace or to your user data directory. In most cases, adding it to your workspace will be the right choice. If you share your work with others through systems like GitHub, the container configuration will be saved along with your code, making it possible for others to easily replicate your development configuration. Selecting the user data folder option will separate the configuration from your code so that it doesn’t get pushed out to any shared repositories.

Next, you’ll be shown a series of templates you can choose from to create your base container. At the end of the list you should see an option for a basic Ubuntu container. After selecting Ubuntu, you’ll be presented with a short list of the latest versions to pick from. At the time of writing, the latest LTS version of Ubuntu is Noble Numbat, so we’ll pick “noble” from the list.

You’ll then be given the opportunity to select additional tools or programs that you might require for your dev environment. For our demonstration, type java into the search bar and select the check box for “Java (Via SDKMan). Then, click the blue “Ok” button.

Next you’ll be asked if you want to use the default configuration or customize it. For the sake of simplicity, keep the default configuration, and just click on “Ok” to go through the next few options that will ask if you want to install any special Java tools.

When you’ve made all of your configuration choices, VSCode will ask you if you want to reopen your project in the container that you just configured. Click the blue button and VSCode will begin building the container for you.

This process will take several minutes. Don’t worry, though. Once the container is built, you’ll be able to start it up and get to work in just a few seconds. The Reopen in Container” dialog will disappear after a few seconds if you don’t click on anything. If you miss the dialog, press Ctrl+Shift+P to open the command palette, type container in the search bar, and select any of the options that say open in or build container.

A window will open in the lower right of your screen saying “Connecting to Dev Container” as the container is built. If you click on “Show Log,” you can watch the build process in the terminal.

And that’s it! When the build process is complete, you will have your first development container. Your code will be saved in the directory where you opened VSCode and your environment will exist inside the container. When you want to work with your container(s), just launch Docker Desktop to start the Docker Engine, then open your project in VSCode. Once you’ve created a container, Code will automatically start it when it’s needed and shut it down when it’s not.

You can open the command palette and explore more options by typing container in the search bar. You can create new containers, modify existing ones and delete any that are unused. You can now create the exact development environment you need for any and all of your programming projects without fear of creating dangerous conflicts on your Ubuntu system. And, perhaps even better, you can update Ubuntu with confidence, knowing that your development environment won’t break down.

[mai mult...]

How to Future-Proof Your CPU: choosing a Processor that will last 5+ years

Future-proofing your CPU is possible as long as you keep your expectations in check. While a 5+ year-old CPU can deliver competitive performance in games and productivity tasks, it won’t match the latest and greatest models.

Glance over the Gamers Nexus review of the Intel Core Ultra 9 285K, and you’ll see the 5800X3D achieving great results in games such as Starfield, Dragon’s Dogma 2, and Baldur’s Gate 3; all CPU-heavy titles. Its successors, the Ryzen 7 7800X3D and the recently released Ryzen 7 9800X3D, are the best CPUs for gaming at the moment. Period.

I’m trying to say that if you’re a gamer and want to future-proof your CPU for the next half a decade or longer, just get an X3D chip and start thinking about which GPU to pair it with.

AMD Ryzen 7 7800X3D

If you’re a gamer and want the fastest gaming CPU on the market, get the Ryzen 7 7800X3D, you won’t regret it. Those in need of a CPU for productivity workloads should look elsewhere. If your budget doesn’t allow you to splurge on an X3D CPU, no sweat. Many modern mid-range CPUs are great at gaming. To pick the right one, just look at Hardware Unboxed or TechPowerUp CPU reviews, since those two outlets offer the most comprehensive gaming benchmark suites in my opinion. They include dozens of different titles, so check the performance of each CPU in games you play using these benchmarks, and choose accordingly.

Just keep your expectations in check. A mid-range CPU that’s great for gaming right now will most likely be able to deliver more than 60 frames per second on average in most games five years from now. However, you shouldn’t expect it to deliver the same level of performance with all visual effects, including ray tracing, maxed out, and in future games that will be considered CPU hogs in the late 2020s. It will most likely struggle in some games, unable to deliver a constant 60 FPS or higher, and that’s okay.

For example, I got a Ryzen 5 5600X in late 2020, and four years later, the CPU is still pretty solid in most games, very rarely bottlenecking my RTX 3070. Its biggest weakness is ray tracing, since it can fail to deliver 60 frames per second on average when you enable RT in certain games. In Marvel’s Spider-Man and Spider-Man Miles Morales, I had 100+ FPS on average without ray tracing, but turning it on and increasing the quality to 8/10 or higher led to sub-60FPS drops and low GPU utilization when web-slinging near the street level, filled with cars and pedestrians. The lack of full GPU usage is the smoking gun that shows us the CPU is holding things back.

The 5600X can bottleneck my RTX 3070 in some CPU-demanding games that don’t include ray-tracing effects, too. In Warhammer 40,000: Space Marine 2, I get subpar GPU utilization in many levels filled with massive enemy hordes, as you can see below, that leads to noticeable frame rate drops. The same happens in Dragon’s Dogma 2 when I’m in towns with lots of NPCs. That said, the performance usually stays above 60 frames per second, which is still a great result for a four-year-old mid-ranger.

In most other games, though, the 5600X can deliver way over 60 FPS on average, and I’m positive it will stay that way at least until we get PlayStation 6 and the next Xbox, which will most likely up the ante of CPU requirements in games.

In other words, the Ryzen 5600X will stay competitive for gaming for at least six years. If you get a modern mid-range CPU that excels at gaming, such as the Ryzen 7 7700X, Ryzen 7 7700, or the newer Ryzen 7 9700X, you should also be fine for half a decade or longer.

For Office Work and Lightweight Tasks, A Quality Quad-core CPU Will do the Trick

Building a PC for office and “everyday” tasks? Just get a modern Quad-core CPU, such as the Intel Core i3-12100F, and you can forget about replacing it for at least half a decade.

Even a more-than-decade-old part such as the legendary Intel Core i5-2500K that came out in early 2011 can tackle any office and lightweight computing task you throw at it without issues even today. So, it’s safe to say that any modern budget CPU that packs at least four cores will stay up to snuff for office and other work that doesn’t strain the CPU too much for the next decade.

Intel Core I3-12100F

The Intel Core I3-12100F is an amazing CPU for $100 or less. It’s perfect for any home PC and more than a decent choice for an entry-level gaming PC.

If you’ve got the cash, you can even get something like the Ryzen 5 7500F (as long as you can find it for $180 or less) or the Ryzen 5 7600 (both six-core designs) and ride that PC until it can no longer handle running a text editor alongside multiple browser tabs or large spreadsheets—which probably won’t happen until, like, 2044, assuming PCs as we know them are still in use by then.

Professionals Ought to Look for High-end and Flagship CPUs

If you earn a living with your PC and want a CPU that will stay competitive for over five years, you should splurge on a high-end or flagship CPU that eats heavy multithreaded CPU loads for breakfast.

AMD Ryzen 9 7950X

A superb choice for gamers and professionals, the AMD Ryzen 9 7950X justifies its flagship status. Its 16-core design is coupled with impressive power efficiency and surprisingly lightweight cooling requirements.

Now, I wouldn’t recommend Intel’s 13th and 14th-gen CPUs here since they suffer from overvolting issues. Intel claims it fixed the problems, but I’d still err on the side of caution if planning to get a long-term CPU upgrade.

So, you’re left with AMD’s Zen 4 and Zen 5 and Intel’s 15th-gen CPU lineups, all offering great productivity performance. Here, I’d look at reviews and focus on use cases important for your workflow. For example, if you need the best CPU for video editing in Premiere Pro, just look at those benchmarks and ignore the rest.

In general, the Ryzen 9 9950X, Ryzen 9 7950X, Intel Core Ultra 7 265K, and Intel Core Ultra 9 285K are the best consumer-grade productivity CPUs on the market. You ought to pick one of those for your next PC build if you want it to stay competitive for at least half a decade.

If you’re ready to pay much more, consider getting an AMD Threadripper CPU. Here, the situation’s very clear: the more you pay, the better performance you’ll get. In other words, settle on your CPU budget and then get the best CPU that fits into said budget.

Modern CPUs are incredibly powerful, and many of them will keep delivering solid gaming and productivity performance in the late 2020s and early 2030s. All you’ve got to do in order to future-proof your CPU is read and watch reviews, cull the CPUs that perform the best relative to your budget, and make your pick.

[mai mult...]

How to Safeguard your Windows PC against Ransomware

Ransomware is a type of malicious software that encrypts a victim’s data and files, making them inaccessible until a ransom, usually in the form of bitcoin, is paid. Once a ransom is paid, the cybercriminal sends a decryption key for the victim to access their data. The data is unlocked, but sometimes the stolen data is held for a second ransom (this is referred to as double extortion) to prevent the data from becoming public. The ransom can range from a couple of hundred dollars to millions of dollars in bitcoin, depending on the target.

According to Chainalysis, ransomware payments in 2023 surpassed the $1 billion mark, the highest number ever observed. It is an extremely lucrative form of cybercrime, and the techniques used by cybercriminals are becoming increasingly sophisticated.

Ransomware actors usually target businesses and institutions that provide critical services such as healthcare and education. This not only prevents these institutions from delivering essential services, but their data is compromised, which can severely affect the company’s reputation, no matter how big or small it is.

However, some actors also target the average internet user, which can compromise their personal and confidential data. A common technique used by ransomware actors is to pose as an official government agency and claim that the system lockdown is necessary for legal security reasons, and demand a fine to be paid to get your data back.

Best Tip to Keep Your Windows PC Protected

Often, these cybercriminals will use reconnaissance tools to locate weaknesses in scanned computers. If a computer has a vulnerability, like if it’s running on an older version of Windows or the operating system is unpatched, it can be exploited. Cybercriminals often target older unpatched versions of Windows, so it’s important to keep your Windows PC up to date with the latest version.

Not only should you keep your Windows machine up to date, but also any apps and browsers you may use.

Avoid Getting Infected in the First Place

One of the most prevalent methods by which ransomware is spread is via phishing. This can happen if a victim accidentally clicks on a link on a phishing email or opens an email attachment, which can infect the computer with ransomware. Phishing could be in the form of emails, but you may also encounter it in messages on social media or SMS. Avoid clicking on suspicious links or downloading attachments from unfamiliar sources. Given the risk of being infected by ransomware, it is essential that you learn how to spot phishing emails.

Turn on Windows Ransomware Protection

Ensure that Windows Security is turned on, as this can provide ransomware protection. To do this, click the Windows Start menu (or press Windows+i on the keyboard), search for controlled folder access, and press Enter.

Windows search button searching controlled folder access.

When the window appears, you toggle the button to “On” under Controlled Folder Access.

Toggle on controlled folder access for ransomware protection.

This feature can protect important local folders from any unauthorized programs or malware, including ransomware. Controlled Folder Access on Windows is not the be-all and end-all for protecting against ransomware. Be cautious about other entry points into the system.

Stay One Step Ahead of Ransomware by Having Backups

It’s important to have a strong data backup process since ransomware relies on you not having access to your data and files. A solid backup system means that if the original data is ever encrypted by ransomware, you still have access to the data.

Microsoft recommends storing important files on Microsoft OneDrive since OneDrive includes multi-factor authentication (MFA), built-in ransomware detection and recovery, as well as file versioning, so you can restore the previous version of a file if you ever lose access.

Windows Backup is an additional option for local backups. Once this is set up, Windows will back up your info in the cloud via your Microsoft account and automatically keep it up to date, even if something happens to your PC. Windows Backup does not offer encryption, so it could still be targeted by ransomware unless stored on an external hard drive and disconnected after the backup is complete.

I’d also recommend making physical backups of your data and transfering it to an external hard drive, which provides another layer of protection in case your cloud backups are ever targeted by advanced ransomware.

Simple Habits to Protect Your Windows PC

Maintaining healthy security practices also helps protect against ransomware and other cyberattacks. Here are some good practices:

  • Use multi-factor authentication (MFA) as much as possible for every service and app that you use. This can help prevent unauthorized access to your personal and sensitive data.
  • Avoid using USB sticks and hard drives that don’t belong to you, since they may contain malware and infect your device when plugged in.
  • Make sure you’re using a reputable antivirus and anti-malware solution, not just the built-in protection on Windows. Check that they are set to automatically update and run regular scans.

If you become a victim of a ransomware attack, the FBI recommends not paying the ransom, since paying the ransom doesn’t really guarantee that you’ll get your data back, or that there won’t be a second ransom. After all, there is no honor among thieves. It also encourages these cybercriminals to target more victims because of the money that they make, and offers a financial incentive for others to also get involved in this type of illegal activity.

If you are a victim of ransomware, you should file a report on the Internet Crime Complaint Center (IC3) which is run by the FBI. Another good resource to be aware of is the U.S. government’s official resource to tackle ransomware .

[mai mult...]

How to (Officially) Install Windows on a Steam Deck OLED

Valve’s SteamOS is streamlined and designed with the Steam Deck in mind, but it’s hard to ignore the unending array of Windows native applications and PC-exclusive games. Thanks to some recently-released drivers, you can now give in and install Windows 11 right on your Steam Deck.

The easiest way to install and run Windows on your Steam Deck OLED is by way of a bootable microSD card. You could wipe the drive and install Windows directly on your Steam Deck’s internal SSD but going for the “fresh start” approach effectively forces you to start from scratch. This complicates the ability to reinstall SteamOS at a later date.

Using an SD card for Windows gives you the freedom to change your mind and switch back to SteamOS to overcome performance issues that are impeding your game of choice. As with any major changes to an operating system, make sure to back up your files and games before proceeding.

To kick off the installation, enable the SteamOS Beta and update your BIOS to version 3.6.9 or later. To do this, press the “Steam” button then navigate to Settings > System > Beta Participation and select “Beta” from the System Update Channel list. You’ll be invited to restart your device, after which a new update will be ready for you. Install it and you’re good to go.

Once your hardware is up-to-date, you will need an ultra-high speed microSD card (UHS-I or faster) with a minimum storage capacity of 64GB. You’ll also need a computer running Windows on which to prepare the medium.

  • The first step to creating a bootable microSD card is acquiring the Windows 11 ISO. On your PC, download the Windows 11 or Windows 10 installation media and ISO straight from Microsoft’s website. Both versions of Windows are supported on the Steam Deck, and the installation process is essentially identical.
  • Now that you have the ISO, you’ll use the free, open-source wonder Rufus to actually prepare your card. Visit the official Rufus website on your PC and download the latest version of the executable file. Once downloaded, open the executable to run Rufus.

Insert your microSD Card

Insert your microSD card into your PC’s card reader. It should be recognized by your computer, but make sure to format it if prompted.

Launch Rufus, and you should see the application’s main window open. Rufus automatically detects connected USB devices or memory cards. In the “Device” drop-down, ensure your microSD card is selected as the target device. Be careful to select the correct device, as the process will format the selected card.

Boot Selection

In the “Boot Selection” section, click on the dropdown and select “Disk or ISO image (Please select)”. After this, click the “Select” button next to the menu and locate your downloaded Windows ISO file from your system. Once found, click “Open” to load the ISO file into Rufus.

  • Now select “Windows To Go” from the “Image Option” menu.
  • Rufus Creating Boot Disc Windows 11 Iso
  • Partition Scheme and File System
  • Rufus will automatically set the “Partition Scheme” to GPT and “Target System” to UEFI (non-CSM), which is necessary for compatibility with modern systems like the Steam Deck. The “File System” should be left as NTFS (default for Windows installations).
  • Now is also the time to rename your microSD card by using the “Volume Label” field if you wish.

Windows User Experience Settings

  • Once you click the Start button, Rufus will prompt you with Windows User Experience settings. If you prefer to manually configure regional settings or use an online Microsoft account, you can leave the relevant options unchecked. However, for privacy and convenience, enabling these options is recommended.
  • Finalize Install
  • After confirming your settings, you will be met with a final warning message that all data on your microSD card will be deleted. You’ve already gone this far, click “OK” to proceed. Rufus will now install Windows on your microSD card.

Copy Windows Drivers to Your SD Card

  • With your new operating system resting calmly on your SD card, you’re ready to acquire the drivers needed to make software run smoothly on your Steam Deck. Valve’s Steam Deck: Windows Resources page has all the required files. Download the required drivers to your Windows 11 desktop and unzip the files.
  • Open up the root folder on your microSD and create a new folder. Now you can just select the folders containing the drivers and drag them into the folder you just generated for later use.

Giving SteamOS the Boot

Your freshly prepared boot disc is ready to bring the Windows 11 PC experience to your Steam Deck.

  • First, power off your Steam Deck completely. Now Insert the SD card into the Steam Deck’s microSD card slot. Hold the “Volume Down” button and press the “Power” button, then release both buttons once you hear a sound.
  • You’ll be taken to the boot selection menu. Select your SD card and press “A” to set up Windows.
  • Once inside Windows, you can return your screen to its rightful horizontal position. Right-click and head to Desktop > Display Settings > Scale & Layout > Display Orientation > Switch to Landscape to fix the screen layout.
  • With Windows installed and booting on your OLED Steam Deck, it’s time to set up those essential drivers we left snug in the root directory of your SD card. Navigate to the folder and proceed to install each driver.

Install the APU Driver

  • Find the “setup.exe” file in the folder for the APU driver and run it to install.
  • Install the SD Card Reader Driver
  • Go to the “BayHub_SD_STOR_install” folder and run the “setup.exe” executable.
  • Install the Wi-Fi Driver
  • Navigate to the Wi-Fi driver folder, right-click the “qcwlan64.inf “file, and choose “Install.”
  • Bluetooth Driver
  • For Bluetooth, right-click “qcbtuart.inf” in the Bluetooth driver folder and select “Install”. Keep in mind, if this doesn’t work, you may not have remembered to update the BIOS for your OLED Steam Deck.

Audio Drivers

  • You will need to install three different drivers for full audio functionality: “cs35l41.inf”, “NAU88L21.inf”, “amdi2scodec.inf”. For each driver, right-click, then select “Install.”
  • Once all drivers are installed, Windows will function on your OLED Steam like the desktop you dragged to your buddy’s basement to get in some matches of Counter Strike in 2001.
  • Reverting to SteamOS
  • Since you made the wise decision to install Windows 11 on a bootable SD, it’s a breeze to return to SteamOS if you so choose.
  • First, power off your Steam Deck completely. Hold the “Volume Down button and press the “Power” button. Release both buttons once you hear a sound. You’ll be taken to the boot selection menu.
  • Select your Steam Deck’s SSD and press “A” to boot back into the intended OS.

Alternatively: Installing Windows Directly (Not Recommended)

  • If you are still hellbent on nuking the Steam Deck’s SSD in order to go “full Windows” on your handheld, it’s a similar process with just a few tweaks. Grab a USB drive that can hold at least 32GB of data and connect it to your Windows PC. Download the ISO from Microsoft’s website in the same fashion as previously mentioned, run Rufus, and choose your memory stick of choice in the “Device” window.
  • You will still choose “Disk or ISO Image (Please select)” from the “Boot Selection” menu, click the “Select” button next to it, and open the Windows ISO file. Since you are installing the operating system directly onto the hard drive, select “Standard Windows Installation” from the “Image Option” drop-down.
Windows 11 Full Install via Rufus
  • When greeted by the “Windows User Experience” window, make sure the box next to “Remove requirement for “4GB+ RAM, Secure Boot, and TPM 2.0” is checked and proceed to finalize the installation.
    Optimal Rufus Settings for Windows 11 Install
  • Once you have finished setting up your USB, create a folder in the root and download the drivers, and you are ready for installation.
  • Power off your Steam Deck completely and insert your flash drive into the Steam Deck’s USB port. Hold the “Volume Down” button and press the “Power” button. Release both buttons once you hear a sound. You’ll be taken to the boot selection menu.
  • Select your USB drive and press “A” to start the Windows 11 installation process. Go through the setup and select “Custom: Install Windows Only” when prompted. When asked where to install Windows 11, delete all partitions and create a new one.

There’s no turning back now—this will delete all the information stored on your OLED Steam Deck. Choose the new partition as the installation location. You are good to go. Now fix the screen, install the drivers, and enjoy your odd-shaped Windows 11 laptop.

  • Windows on a Steam Deck is nice, but not essential. There are lots of options for playing games from the Epic Game Store on your Valve handheld that don’t involve a Windows installation.
[mai mult...]