Linux Questions

Subscribe to Linux Questions feed Linux Questions
LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.
Updated: 2 hours 18 min ago

LXer: AlmaLinux Is Now FIPS Certified

Thu, 09/21/2023 - 19:12
Published at LXer:

On Tuesday, AlmaLinux announced that it has obtained FIPS 140-3 security certification for its Linux distro which is primarily used in data centers by enterprises

Read More...
Categories: Software and Help

LXer: Forcing Installation of Held-Back Packages in Ubuntu/Debian

Thu, 09/21/2023 - 17:01
Published at LXer:

During regular software updates in Ubuntu Linux distros, you may encounter a situation where some packages have been kept back and are not updated. This could lead to disparities in the version of packages across different systems.This article will delve into the management of kept back packages in Ubuntu. It will provide a step-by-step guide on how to force these packages to be automatically installed.

Read More...
Categories: Software and Help

Hello LQ

Thu, 09/21/2023 - 16:01
My second account on LQ, lost my first email; sad
Categories: Software and Help

Appears mass surveillance/security is worth a doctoral thesis

Thu, 09/21/2023 - 15:29
Saw this posted on /.
https://news.slashdot.org/story/23/0...rchive-surface
https://research.tue.nl/en/publicati...sources-and-me

And at work we once bought a fleet of F5 LTMs with cavium chips... wow
Categories: Software and Help

Looking forward to adding to my toolbox

Thu, 09/21/2023 - 15:15
I have worked with Redhat for about 6 years now.
I know there is SOOOOO Much I do not know.
I have my RHCSA and am thinking about going for RHCE.
I am enjoying the act of finally getting to learn Ansible.
Looking forward to learning from all and maybe helping some.
Categories: Software and Help

Failing to launch LibreOffice on slackware 15 on Dell Inspiron 15, 5000 series

Thu, 09/21/2023 - 14:58
Hi, I am running slackware 15 and installed the prepackaged libreoffice from Alienbob, namely, libreoffice-7.6.1-x86_64-1alien.txz, but it is failing to open. I have copied the output from the terminal.

Code: $ libreoffice --writer
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
Unspecified Application Error
Categories: Software and Help

LXer: How to Install CodeIgniter on Ubuntu 22.04

Thu, 09/21/2023 - 14:42
Published at LXer:

CodeIgniter is an open-source PHP development framework for building dynamic websites. It is based on the MVC (Model-View-Controller) pattern and is known as one of the fastest PHP frameworks. In this blog post, we will install Apache as a web server and PHP 8.1. Installing Codeigniter on Ubutu 22.04 is a straightforward process that may take up to 15 minutes.

Read More...
Categories: Software and Help

APPARMOR

Thu, 09/21/2023 - 14:37
Hi there, Apparmour seems not be loaded:
systemctl status apparmor.service
apparmor.service - Load AppArmor profiles
Loaded: loaded (/lib/systemd/system/apparmor.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:apparmor(7)
https://gitlab.com/apparmor/apparmor/wikis/home/
aa-status
apparmor module is loaded
nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="apparmor=1 security=apparmor ipv6.disable=1 quiet splash"
sudo update-grub
i'm using MInt as OS, what's wrong? :D
Categories: Software and Help

LXer: girouette � terminal-based weather app

Thu, 09/21/2023 - 12:20
Published at LXer:

girouette is software which displays the current weather in the terminal. It sources its data from OpenWeather, supports advanced fonts such as Nerd Fonts, and offers full colour support.

Read More...
Categories: Software and Help

Relationships between IPv4 and IPv6 routing table size vs. routing engine

Thu, 09/21/2023 - 12:08
Hi All,

So I am trying to post a blog on some useful information regarding some of the Juniper MX routing engines (RE)'s maximum capabilities in terms of how many IPv4 and IPv6 routing table entries they can handle.

I know I am not explaining every clearly right now. I've attached a file for your review.
I hope this file will then make sense. Some of the info. I have on it may even not be correct.

I have been trying to look up informations online, but nothing useful. And the Juniper site does not really provide this kind of info either.

I would really appreciate it if any of you know any sites that I can find this kind of info.

Thanks again,
Denny
Attached Files 09212023.txt (2.2 KB)
Categories: Software and Help

[SOLVED] Ubuntu 22.04: docker is missing compose command

Thu, 09/21/2023 - 11:32
Ubuntu:
Code: # docker

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run        Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  build      Build an image from a Dockerfile
  pull        Download an image from a registry
  push        Upload an image to a registry
  images      List images
  login      Log in to a registry
  logout      Log out from a registry
  search      Search Docker Hub for images
  version    Show the Docker version information
  info        Display system-wide information

Management Commands:
  builder    Manage builds
  container  Manage containers
  context    Manage contexts
  image      Manage images
  manifest    Manage Docker image manifests and manifest lists
  network    Manage networks
  plugin      Manage plugins
  system      Manage Docker
  trust      Manage trust on Docker images
  volume      Manage volumes

# docker -v
Docker version 24.0.6, build ed223bc Devuan Chimaera 4.0:
Code: # docker

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run        Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  build      Build an image from a Dockerfile
  pull        Download an image from a registry
  push        Upload an image to a registry
  images      List images
  login      Log in to a registry
  logout      Log out from a registry
  search      Search Docker Hub for images
  version    Show the Docker version information
  info        Display system-wide information

Management Commands:
  builder    Manage builds
  buildx*    Docker Buildx (Docker Inc., v0.11.2)
  compose*    Docker Compose (Docker Inc., v2.21.0)
  container  Manage containers
  context    Manage contexts
  image      Manage images
  manifest    Manage Docker image manifests and manifest lists
  network    Manage networks
  plugin      Manage plugins
  scan*      Docker Scan (Docker Inc., v0.23.0)
  system      Manage Docker
  trust      Manage trust on Docker images
  volume      Manage volumes


# docker -v
Docker version 24.0.6, build ed223bc How is it please possible Ubuntu docker is missing some commands (compared to Devuan) although it is same version as in Devuan ?
Categories: Software and Help

Connect to mysql db in linux mint using vscode

Thu, 09/21/2023 - 10:53
I am writing a java app using vscode on linux mint 21. Trying to connect to a local mysql database i get the error "java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/mydb".I installed the mysql-connector-j_8.1.0-1debian11_all.deb package i found at https://dev.mysql.com/downloads/connector/j/ (choosing debian linux as os) and than linked both
mysql-connector-j-8.1.0.jar
mysql-connector-java-8.1.0.jar
to the reference library of my project in vscode.

Also tried the "platform indipendent" jar.

The url should be correct, so is there anything else i should do?

Edit:

i used the command

export CLASSPATH=/usr/share/java/mysql-connector-j-8.1.0.jar:$CLASSPATH

but still get the error

Re-Edit:

it's fine if i include the -classpath command line.

At this point the question would be:

How do i avoid to manually add the -classpath command?
Categories: Software and Help

LXer: How to Use Jupyter Notebook: Beginner's Tutorial

Thu, 09/21/2023 - 10:10
Published at LXer:

An easy-to-understand beginner's tutorial on how to use Jupyter Notebook, including installation steps, first Notebook creation and more.

Read More...
Categories: Software and Help

LXer: Retro arcade device for Raspberry Pi

Thu, 09/21/2023 - 07:51
Published at LXer:

Pimoroni recently featured the Picade, a retro arcade machine powered by the popular Raspberry Pi board. The company is also currently offering a limited-time promotion that includes a free Raspberry Pi 4 8GB, a PSU, and a 32GB microSD card for storage. The display consists of a 10� IPS display with 1024 x 768 resolution [�]

Read More...
Categories: Software and Help

whoRyou bash script

Thu, 09/21/2023 - 07:12
This is the script
Code: #!/bin/bash

# Anagnostakis Ioannis 2023
# GNU GENERAL PUBLIC LICENSE
# LONG LIVE SLACKWARE

if [ "root" != "$USER" ]; then
  echo "Enter su"
  su -c "$0" root
  exit
fi

# Define color codes and formatting
BOLD="\e[1m"
BLUE="\e[34m"
RESET="\e[0m"
UNDERLINE="\e[4m"
GREEN="\e[32m"

# Function to display section headings
print_heading() {
    echo -e "${UNDERLINE}${BOLD}${BLUE}$1${RESET}"
}

# Function to display package information
print_info() {
    echo -e "�� **$1**\n$2"
}

clear
echo -e "\e[1;34m"
cat << "EOF"
                                                       
  ██████  ██▓    ▄▄▄      ▄████▄  ██ ▄█▀ █    █░ ▄▄▄      ██▀███  ▓█████ 
▒██    ▒ ▓██▒  ▒████▄    ▒██▀ ▀█  ██▄█▒ ▓█░ █ ░█░▒████▄    ▓██ ▒ ██▒▓█  ▀ 
░ ▓██▄  ▒██░  ▒██  ▀█▄  ▒▓█    ▄ ▓███▄░ ▒█░ █ ░█ ▒██  ▀█▄  ▓██ ░▄█ ▒▒███   
 ▒  ██▒▒██░  ░██▄▄▄▄██ ▒▓▓▄ ▄██▒▓██ █▄  ░█░ █ ░█ ░██▄▄▄▄██ ▒██▀▀█▄  ▒▓█  ▄ 
▒██████▒▒░██████▒▓█  ▓██▒▒ ▓███▀░▒██▒ █▄░░██▒██▓  ▓█  ▓██▒░██▓ ▒██▒░▒████▒
▒ ▒▓▒ ▒ ░░ ▒░▓  ░▒▒  ▓▒█░░ ░▒ ▒  ░▒ ▒▒ ▓▒░ ▓░▒ ▒  ▒▒  ▓▒█░░ ▒▓ ░▒▓░░░ ▒░ ░
░ ░▒  ░ ░░ ░ ▒  ░ ▒  ▒▒ ░  ░  ▒  ░ ░▒ ▒░  ▒ ░ ░    ▒  ▒▒ ░  ░▒ ░ ▒░ ░ ░  ░
░ ░  ░    ░ ░    ░  ▒  ░        ░ ░░ ░  ░  ░    ░  ▒    ░░  ░    ░   
  ░      ░  ░    ░  ░░ ░      ░  ░      ░          ░  ░  ░        ░  ░
                        ░                                           
                                                                       

EOF
echo -e "\e[0m"
echo -e "${RESET}"

read -p 'Enter package name: ' pkgvar

clear
echo "─────────────────────────────────────────────────────────────────────────────" > "/tmp/$pkgvar.whoRyou"
print_heading "Hello Slacker, here's the information for package '$pkgvar':" >> "/tmp/$pkgvar.whoRyou"
echo "─────────────────────────────────────────────────────────────────────────────" >> "/tmp/$pkgvar.whoRyou"

# Package Information
print_info "PACKAGE INFORMATION" "If the package is a service, rc.d print will be at the end." >> "/tmp/$pkgvar.whoRyou"
# Package Path
print_info "Package Path" >> "/tmp/$pkgvar.whoRyou"
which "$pkgvar" >> "/tmp/$pkgvar.whoRyou"
grep ^bin/"$pkgvar"$ /var/lib/pkgtools/packages/* >> "/tmp/$pkgvar.whoRyou"

# Package Size
print_info "PACKAGE SIZE"  >> "/tmp/$pkgvar.whoRyou"
echo " " >> "/tmp/$pkgvar.whoRyou"
cd /var/lib/pkgtools/packages/
ls * | grep "$pkgvar"
read -p 'Copy paste full package name-version-arch_tag if exist or type zero (0) and hit enter: ' fpkg
if [ "$fpkg" = 0 ]; then
  echo ""  >> "/tmp/$pkgvar.whoRyou"
else
  cat "$fpkg"* | grep SIZE >> "/tmp/$pkgvar.whoRyou"
  echo " "
    # Library Dependencies
  print_info "LIBRARY DEPENDENCIES" >> "/tmp/$pkgvar.whoRyou"
  echo " " >> "/tmp/$pkgvar.whoRyou"
  ldd "$(which "$pkgvar")" >> "/tmp/$pkgvar.whoRyou"
  echo "" >> "/tmp/$pkgvar.whoRyou"
  # Service Information
  print_info "SERVICE INFORMATION" "" >> "/tmp/$pkgvar.whoRyou"
  echo " " >> "/tmp/$pkgvar.whoRyou"
  ls -la /etc/rc.d/ | grep "$pkgvar" >> "/tmp/$pkgvar.whoRyou"
  echo " "  >> "/tmp/$pkgvar.whoRyou"
  # Is it a Library?
  print_info "IS IT A LIBRARY?" >> "/tmp/$pkgvar.whoRyou"
  echo " " >> "/tmp/$pkgvar.whoRyou"
  if [ "$fpkg" = 0 ]; then
    echo " " >> "/tmp/$pkgvar.whoRyou"
  else
    sudo ldconfig -p | grep "$pkgvar" >> "/tmp/$pkgvar.whoRyou"
  fi
fi
echo " " >> "/tmp/$pkgvar.whoRyou"
print_info "If the full package name = 0, then only **PACKAGE INFORMATION** is correct." >> "/tmp/$pkgvar.whoRyou"
print_info "Other info may not be accurate :)" >> "/tmp/$pkgvar.whoRyou"
print_heading "─────────────────────────────────────────────────────────────────────────────" >> "/tmp/$pkgvar.whoRyou"
echo -e "${BOLD}${BLUE}"
clear
cat /tmp/$pkgvar.whoRyou here is a video how it looks
I share it, maybe someone like it or want to make it better...:)
Categories: Software and Help

LXer: Linux Celebrates 32 Years with the Release of 6.6-rc2 Version

Thu, 09/21/2023 - 05:33
Published at LXer:

Today marks the 32nd anniversary of Linus Torvalds introducing the inaugural Linux 0.01 kernel version, and celebrating this milestone, Torvalds has launched the Linux 6.6-rc2. Among the noteworthy updates are the inclusion of a feature catering to the ASUS ROG Flow X16 tablet's mode handling and the renaming of the new GenPD subsystem to pmdomain.

Read More...
Categories: Software and Help

toggling scroll mouse switches' command

Thu, 09/21/2023 - 04:01
i have a cheap 2 button mouse [maxxter wireless optical mouse ACT MUS-002] with scroll wheel.
When scroll wheel is pressed it acts like the left mouse button/enter key?
When scrolling in a browser, it adds web pages to my browsers' top row, ultimately bogging my computer processor.
can i disable this function whilst keeping the scroll wheel, even with an on screen toggle icon?
i don't know if the signal is unique, or do i cut some wires in the mouse? pls advise.
thx

Top
Categories: Software and Help

LXer: Oracle Cloud Antes Into Generative AI and LLM Game With NVIDIA Chips

Thu, 09/21/2023 - 03:14
Published at LXer:

Oracle launches something of a bare metal cloud that takes advantage of Nvidia�s H100 Tensor Core GPUs and is intended for running heavy duty generative AI and LLM workloads. A more budget minded offering using Nvidia�s L40S GPU will be available early next year.

Read More...
Categories: Software and Help

Regression in newer (non-Slackware) kernels

Thu, 09/21/2023 - 02:51
This doesn't affect Slackware provided kernels, but may affect those who roll their own...

I run slarm64 (an ARM64 version of Slackware) on a Pi 400. It uses cutting edge kernels, currently up at 6.5. A few upgrades ago, my dvb dongle stopped working. While chasing the problem, I found this: https://lore.kernel.org/stable/20230...d-d6bc@gregkh/

It looks like it affects 130 devices, so if you've been having issues with your own kernels, have a look at the list in this thread!

--
Pete
Categories: Software and Help

DVB bug in recent kernels

Thu, 09/21/2023 - 02:36
This may affect other modules as well....

A while back, my DVB Pi-hat (Sony cxd2880) stopped working. I found this in dmesg:
Code: dmesg | grep cxd2880
[    3.628383] failing symbol_get of non-GPLONLY symbol cxd2880_attach.
[    3.628412] DVB: Unable to find symbol cxd2880_attach()
[    3.628419] cxd2880_spi: cxd2880_spi_probe: cxd2880_attach failed Googling for it, I found this:

https://lore.kernel.org/stable/20230...d-d6bc@gregkh/

I think its been around longer than they realise, but at least they are now aware. There is a list of devices affected in that thread - about 130 of them!

Just a "heads up" for anyone having a similar issue.

The only solution at present is to revert to a (much) earlier kernel...

--
Pete
Categories: Software and Help

Pages