22halomedia

Category: Technology

  • Rocky 9 Linux HP All-in-One Printer Installation and Setup

    Rocky 9 Linux HP All-in-One Printer Installation and Setup

    Introduction

    Printing and scanning with an all-in-one HP printer is possible on linux thanks to HPLIP.

    This guide was tested with an HP Deskjet 2700 series.

    See All Supported Printers to see if the HPLIP package supports your printer.

    Download and Install HPLIP

    HPLIP is third-party software by HP that contains necessary printer drivers. Install the 3 packages below for full support with a graphical user interface.

    sudo dnf install hplip-common.x86_64 hplip-libs.x86_64 hplip-gui

    Scanner Support

    While you can scan using cli commands with the HPLIP package, they do not supply a scanner app. Install xsane, an easy to use scanner utility.

    sudo dnf install sane-backends sane-frontends xsane

    Conclusion

    After installing HPLIP and xsane you should now be able to print and scan on your all-in-one HP printer.

    Articles to Read Next

    How to Setup WireGuard VPN on Rocky 9 Linux

    Secure Remote Support on LAN with x11vnc over SSH on Rocky Linux

    How to Install Virtual Box and Answering “What is a Hypervisor?”

    How to Enable Bidirectional Shared Clipboard on VirtualBox VM

    How to Create a Linux VM with VirtualBox

    Affiliate Links

    Form your business with Northwest registered agent

    Create a website with namedotcom

    Secure your website with Wordfence

    My work laptop

    Affiliate Disclaimer

    Please note that my website and content may contain affiliate links. This means that when you click on these links and make a purchase, I may earn a commission. Rest assured, all the products I promote are ones that I believe to be of high quality, and I personally use them as a consumer myself. Your support through these links helps me continue to create valuable content. Thank you for your support!

  • Secure Remote Support on LAN with x11vnc over SSH on Rocky Linux

    Secure Remote Support on LAN with x11vnc over SSH on Rocky Linux

    Subscribe to 22halomedia YouTube Channel

    Read this same article on the Rocky Linux Documentation website

    Introduction

    x11vnc is a powerful VNC program that distinguishes itself by utilizing the existing X session instead of creating a new one. This makes it an excellent tool for providing remote support, as the user’s screen or X session can be controlled remotely.

    In this guide, you will learn how to stand up an x11vnc server and how to connect to it remotely.

    Setting Up the VNC server

    To capture a user’s X session, x11vnc server will need to be installed on their Rocky workstation.

    Disable Wayland

    First, you need to disable Wayland. Open the custom.conf file using your text editor of choice:

    sudo vim /etc/gdm/custom.conf

    Uncomment WaylandEnable=false:

    # GDM configuration storage
    
    [daemon]
    WaylandEnable=false
    
    [security]
    
    [xdmcp]
    
    [chooser]
    
    [debug]
    # Uncomment the line below to turn on debugging
    #Enable=true

    Restart gdm service:

    sudo systemctl restart gdm

    Install and configure x11vnc

    Enable the EPEL repository:

    sudo dnf install epel-release

    Install x11vnc:

    sudo dnf install x11vnc

    Create a password for x11vnc:

    x11vnc -storepasswd ~/.x11vnc.pwd

    Create a new file with your text editor of choice. This will be used to create a service to run x11vnc:

    sudo vim /etc/systemd/system/x11vnc.service

    Copy and paste the following text into the file, then write and quit. Replace the rfbauth path with the path to the password file you created earlier. Replace User and Group with the user you intend to provide remote support to:

    [Unit]
    Description=Start x11vnc at startup
    After=display-manager.service
    
    [Service]
    Type=simple
    Environment=DISPLAY=:1
    Environment=XAUTHORITY=/run/user/1000/gdm/Xauthority
    ExecStart=/usr/bin/x11vnc -auth /var/lib/gdm/.Xauthority -forever -loop -noxdamage -repeat -rfbauth /home/server/.x11vnc.pwd -rfbport 5900 -shared
    User=server
    Group=server
    
    [Install]
    WantedBy=multi-user.target

    Enable and start the x11vnc service:

    sudo systemctl enable --now x11vnc.service

    Setting Up Your Client

    Install the EPEL repository

    Install the EPEL repository:

    sudo dnf install epel-release

    Install a VNC client

    Install TigerVNC. We will not be using the server, but will utilize the client:

    sudo dnf install tigervnc

    Create the SSH Tunnel

    Create an SSH tunnel to securely connect to the VNC server:

    ssh -L 5900:localhost:5900 REMOTEIP

    Launch the VNC Viewer

    Open your VNC viewer:

    vncviewer

    Connect to the VNC server by entering 127.0.0.1 or localhost into TigerVNC and connect.

    Enter the x11vnc password you created earlier.

    Conclusion

    At this point, you have successfully set up an x11vnc server and connected to it using a TigerVNC client. This solution is ideal for providing remote support, as it shares the same X session as the user, ensuring a seamless support experience.

    Thank you for reading this article. If you found it helpful, please consider subscribing to our newsletter.

    Additionally, if you’re considering starting an organization or business, creating a website, protecting your WordPress site from malware and cyber attacks, or are in the market for a new gaming laptop, checkout the affiliate links below! 22halomedia uses each of these products and is proudly partnered with these companies.

    Articles to Read Next

    How to Setup WireGuard VPN on Rocky 9 Linux

    Secure Remote Support on LAN with x11vnc over SSH on Rocky Linux

    How to Install Virtual Box and Answering “What is a Hypervisor?”

    How to Enable Bidirectional Shared Clipboard on VirtualBox VM

    How to Create a Linux VM with VirtualBox

    Affiliate Links

    Form your business with Northwest registered agent

    Create a website with namedotcom

    Secure your website with Wordfence

    My work laptop

    Affiliate Disclaimer

    Please note that my website and content may contain affiliate links. This means that when you click on these links and make a purchase, I may earn a commission. Rest assured, all the products I promote are ones that I believe to be of high quality, and I personally use them as a consumer myself. Your support through these links helps me continue to create valuable content. Thank you for your support!

  • Installing VirtualBox Guest Additions on Ubuntu 24.04 LTS Desktop

    Installing VirtualBox Guest Additions on Ubuntu 24.04 LTS Desktop

    Subscribe to 22halomedia YouTube Channel

    Introduction

    Yesterday’s article, “Spinning up an Ubuntu 24.04 LTS Desktop VM in VirtualBox,” provided the necessary knowledge to install Ubuntu 24.04 LTS Desktop on a VirtualBox VM (Virtual machine).

    Today, we will cover how to install VirtualBox Guest Additions, a package of utilities and drivers that enhances the performance and ease-of-use of VirtualBox VM’s.

    Install VirtualBox Guest Additions

    In the top left corner of your Ubuntu desktop, click the Activities overview. You can also press the Super key on your keyboard.

    Click the search bar that labeled “Type to search“, and begin typing “terminal”. The Terminal application will appear before you finish typing. Click on Terminal to launch it.

    Update your Ubuntu system with the following command:

    sudo apt update -y

    You will get a warning message outputted to the console that reads “Warning: The unit file, source configuration file or drop-ins of apt-news.service changed on disk. Run ‘systemctl daemon -reload‘ to reload units.”

    Run the command from the error message above to reload Systemd files:

    systemctl daemon-reload

    Enter your sudo user’s password and click Authenticate.

    Upgrade your Ubuntu system with the following command:

    sudo apt upgrade -y

    Click Devices > Insert Guest Additions CD Image… in the VirtualBox toolbar.

    Select Files from the Ubuntu dock.

    In the left-hand menu of Files, click, VBox_GAs…

    Click Run Software in the orange banner that reads “Contains software to run” near the top of Files.

    Click Run when the next window titled ‘”VBox_GAs_7.0.18″ contains software intended to be automatically started. Would you like to run it?’ appears.

    Enter your sudo user’s password and click Authenticate.

    You will get a message informing you bzip2 is not installed.

    Press Return on your keyboard to close the terminal, then install bzip2 with the following command:

    sudo apt install bzip2 -y

    Repeat previous steps

    1. Open Files
    2. Click Devices > Insert Guest Additions CD Image… in the VirtualBox toolbar.
    3. Click Run when the next window titled ‘”VBox_GAs_7.0.18″ contains software intended to be automatically started. Would you like to run it?’ appears.
    4. Enter your sudo user’s password and click Authenticate.

    Once VirtualBox Guest Additions finished installing, it will output some text, informing you “This system is currently not set up to build kernel modules.”, and “Running kernel modules will not be replaced until the system is restarted.”

    Run the following command to be able to build kernel modules:

    sudo apt install build-essential gcc make
    perl dkms

    Then power off your system:

    Click File > Close… in the VirtualBox toolbar.

    Select Power off the machine, then click OK.

    Update Your Ubuntu VM’s Display Settings

    Your VM will initially have limited VRAM (video random access memory) assigned, and 3D acceleration will be disabled by default . For the best display experience, allocate as much VRAM as possible. Additionally, enable 3D acceleration if your system supports it.

    Click the gear icon in the VirtualBox Manager toolbar to launch the VM Settings.

    In the left-hand menu, click Display.

    1. Increase Video Memory to 128MB or as much as your system can afford.
    2. Check Enable 3D Acceleration, if your system supports it.
    3. Click OK.

    Using VirtualBox Guest Additions

    While there are several utilities and additional functionality VirtualBox Guest Additions provides, this guide will focus on auto-resizing your VM for best viewing results.

    Start Your Ubuntu VM.

    Click View > Auto-resize Guest Display. You may need to repeat this step a few times until the desired effect is achieved. Eventually the VM’s display should stretch across your screen and seamlessly scale clicking and dragging a corner of the window.

    The Ubuntu VirtualBox covering the entire display thanks to VirtualBox Guest Additions

    Conclusion

    As you can see, installing VirtualBox Guest Additions greatly enhances performance and usability. By following the steps outlined in this guide, you’ve created a versatile environment ready for various tasks. Enjoy your enhanced Ubuntu VM experience on VirtualBox!

    Thank you for reading this article. If you found it helpful, please consider subscribing to our newsletter.

    Additionally, if you’re considering starting an organization or business, creating a website, protecting your WordPress site from malware and cyber attacks, or are in the market for a new gaming laptop, checkout the affiliate links below! 22halomedia uses each of these products and is proudly partnered with these companies.

    Articles to Read Next

    How to Setup WireGuard VPN on Rocky 9 Linux

    Secure Remote Support on LAN with x11vnc over SSH on Rocky Linux

    How to Install Virtual Box and Answering “What is a Hypervisor?”

    How to Enable Bidirectional Shared Clipboard on VirtualBox VM

    How to Create a Linux VM with VirtualBox

    Affiliate Links

    Form your business with Northwest registered agent

    Create a website with name.com

    Secure your WordPress website with Wordfence

    Buy the laptop I use

    Affiliate Disclaimer

    Please note that my website and content may contain affiliate links. This means that when you click on these links and make a purchase, I may earn a commission. Rest assured, all the products I promote are ones that I believe to be of high quality, and I personally use them as a consumer myself. Your support through these links helps me continue to create valuable content. Thank you for your support!