How to Run ChatGPT Using ShellGPT From the Ubuntu Terminal

ShellGPT is a Python program that lets you access OpenAI’s ChatGPT from the command line of a terminal window. It sends your text prompts and your ChatGPT API key to ChatGPT and prints out ChatGPT’s response.

It’s just like running ChatGPT on your own computer, without any of the hassle, and regardless of the computing power of your computer. You’ll need to have a ChatGPT API key, but it only takes moments to get one, and they’re free.

ChatGPT is probably the most famous of the new-wave of large language model AI chatbots, developed using deep learning techniques and massive data sets.

It’s able to hold convincing and lifelike conversations, and can generate prose and other text format responses on just about any topic you can imagine. Just keep in mind that it’s a simulation of a knowledgeable, intelligent person. It isn’t genuinely intelligent, and it’ll happily make stuff up.

None of the following steps are difficult, and you should be up and running in ten minutes or so.

[mai mult...]

How to Use GRUB Rescue to Fix Linux

If your GRUB shells shows a “grub>” prompt, you can use the lssetlinux, and initrd commands to fix your Linux system. If instead you see a “grub rescue>” prompt, use setinsmodlinux, and initrd commands to boot your PC.

If your Linux computer can’t boot into its operating system, you’re likely to find yourself staring at a prompt in the GRUB shell. Follow these steps to repair your broken boot processes.

[mai mult...]

How to Show the Ribbon in Microsoft Excel, Word, and Outlook

Microsoft Excel App

To bring your Office ribbon back, either double-click a ribbon tab or right-click a ribbon tab and disable “Collapse the Ribbon.” If you don’t see any ribbon tabs, in your screen’s top-right corner, click the up-arrow icon and choose “Show Tabs and Commands,” and then click “Auto-Hide Ribbon.”

Has your Excel, Word, or Outlook app’s ribbon suddenly disappeared? It’s easy to hide it accidentally, and sometimes the tabs disappear too. In either case, you can bring it back in your Office app on your Windows or Mac machine in a few clicks.

Note: The following guide uses Excel for demonstration. You’ll use the same steps in both Word and Outlook.

[mai mult...]

How to Run GUI Applications in a Docker Container

Docker’s normally used to containerise background applications and CLI programs. You can also use it to run graphical programs though! You can either use an existing X Server, where the host machine is already running a graphical environment, or you can run a VNC server within the container.

First it’s important to understand what Docker actually does. A Docker “container” is a form of encapsulation which seems to be superficially similar to a virtual machine. Unlike a virtual machine, containers share the same Linux kernel as their host system.

The next component is the X Window System. X Servers such as Xorg provide the fundamental graphical capabilities of Unix systems. GUI applications can’t render without an X Server available. (Alternative windowing systems, such as Wayland, are available – we’re focusing on X in this article.)

Trying to run an X Server in Docker is theoretically possible but rarely used. You’d need to run Docker in privileged mode (--privileged) so it could access your host’s hardware. Starting the server would try to claim your video devices, usually resulting in loss of video output as your host’s original X server gets its devices yanked away.

A better approach is to mount your host’s X Server socket into the Docker container. This allows your container to use the X Server you already have. GUI applications running in the container would then appear on your existing desktop.

[mai mult...]

How to Permanently Change Your MAC Address on Linux

You can set a permanent new MAC address in the terminal using the macchanger utility and a systemctl unit file. Or in GNOME, go to Settings > Wi-Fi [or Network] > Identity, and enter a custom MAC address.

Every network interface has a unique MAC address, set by the manufacturer. It’s how network connections identify connection endpoints. On Linux, you can permanently change a MAC address if you want.

[mai mult...]

How to Run MySQL on Kubernetes With Oracle’s Operator

Kubernetes support for stateful applications has considerably matured over the past few years. Now it’s viable to locate your database inside your cluster, allowing it to benefit from the same scalability as your other workloads.

MySQL is one of the most popular relational database engines and it’s now augmented by an official Kubernetes operator. The Oracle-led open-source project provides a simple way to create managed MySQL clusters within Kubernetes.

[mai mult...]

How to Backup Kubernetes MySQL Operator Clusters

Oracle’s MySQL Operator for Kubernetes is a convenient way to automate MySQL database provisioning within your cluster. One of the operator’s headline features is integrated hands-off backup support that increases your resiliency. Backups copy your database to external storage on a recurring schedule.

This article will walk you through setting up backups to an Amazon S3-compatible object storage service. You’ll also see how to store backups in Oracle Cloud Infrastructure (OCI) storage or local persistent volumes inside your cluster.

[mai mult...]

How to Use Kubernetes Taints and Tolerations to Avoid Undesirable Scheduling

Taints and tolerations are a Kubernetes mechanism for controlling how Pods schedule to the Nodes in your cluster. Taints are applied to Nodes and act as a repelling barrier against new Pods. Tainted Nodes will only accept Pods that have been marked with a corresponding toleration.

Taints are one of the more advanced Kubernetes scheduling mechanisms. They facilitate many different use cases where you want to prevent Pods ending up on undesirable Nodes.

[mai mult...]