Linux News

How to troubleshoot network connectivity problems

LXer Linux News - Mon, 05/16/2022 - 16:59
Networking connectivity is a key requirement in today's computing world. As any good system administrator knows, planning for failure is part of the job. And yet, regardless of how much redundancy you build into your setup, there's always the potential for unexpected issues. You must know the tools and procedures to help you solve unpleasant surprises.
Categories: General News

Why should i use lvscan --readonly and not lvscan?

Linux Questions - Mon, 05/16/2022 - 16:45
Hi, I'm trying to finish my final project which is about LVM, and i cant really understand the objective/goal/purpose of this command "lvscan --readonly".

Any help is welcomed.
Categories: Software and Help

LXer: How to Install WordPress with Apache and Let's Encrypt SSL on Ubuntu 22.04

Linux Questions - Mon, 05/16/2022 - 16:03
Published at LXer:

WordPress is a free and open-source content management system mainly used to publish blogs on the internet. In this tutorial, we will show you how to install WordPress with Nginx and Let's Encrypt SSL on Ubuntu 22.04.

Read More...
Categories: Software and Help

LibreOffice 7.2.7: One Last Update Before June 12th End-of-Life

Linux Today News - Mon, 05/16/2022 - 16:00

The LibreOffice 7.2.7 update is here two months after the previous release to add one last layer of bug fixes to LibreOffice 7.2. Learn more here.

The post LibreOffice 7.2.7: One Last Update Before June 12th End-of-Life appeared first on Linux Today.

Categories: General News

How to Install WordPress with Apache and Let's Encrypt SSL on Ubuntu 22.04

LXer Linux News - Mon, 05/16/2022 - 15:57
WordPress is a free and open-source content management system mainly used to publish blogs on the internet. In this tutorial, we will show you how to install WordPress with Nginx and Let's Encrypt SSL on Ubuntu 22.04.
Categories: General News

Duplicity: invalid argument error backing up /sys/fs/cgroup/systemd/user.slice/user-42.slice/cgroup.event_control

Linux Questions - Mon, 05/16/2022 - 15:30
Getting an invalid argument error for these and similar files:

/sys/fs/cgroup/systemd/user.slice/user-42.slice/cgroup.event_control

when backing up the root directory (excluding /home, /mnt, /proc, /tmp directories).

Are these files to be excluded?
Categories: Software and Help

LXer: How To Reset Root Password In Fedora 36

Linux Questions - Mon, 05/16/2022 - 15:01
Published at LXer:

Forgot the root password in Fedora? Do you want to change the root user password in your Fedora system? No problem! This brief guide explains how to change or reset root password in Fedora.

Read More...
Categories: Software and Help

CentOS Alternative AlmaLinux OS 8.6 Is Now Available for Download

Linux Today News - Mon, 05/16/2022 - 15:00

AlmaLinux OS 8.6 “Sky Tiger” builds on the changes implemented by Red Hat in their Red Hat Enterprise Linux 8.6 release. Learn more here.

The post CentOS Alternative AlmaLinux OS 8.6 Is Now Available for Download appeared first on Linux Today.

Categories: General News

How To Reset Root Password In Fedora 36

LXer Linux News - Mon, 05/16/2022 - 14:55
Forgot the root password in Fedora? Do you want to change the root user password in your Fedora system? No problem! This brief guide explains how to change or reset root password in Fedora.
Categories: General News

bash script for grep with context

Linux Questions - Mon, 05/16/2022 - 14:28
Am writing a bash script that uses grep to search phrases and prints them on terminal. I want the user to have the possibility of using the context options of grep (-C, -A, -B). I made an indexed array ictx, which I want to use for making the context arguments to grep (-C NUM, -A NUM, -B NUM, -A NUM1 -B NUM2).

Would help having some advice on how I can neatly handle the making of ICTX with tho code listed below.

Code:   while (( $# > 0 )); do
  case "$1" in
    ("-C"|"--context")
        ctx="$2" ; shift ; shift ;;
   
    ("--Bfc"|"--before-context")
        bfctx="$2" ; shift ; shift ;;

    ("--Afc"|"--after-context")
        afctx="$2" ; shift ; shift ;;
  esac
  done

  [[ -z "$ctx" ]] && ctx=8
  ictx=( -C "$ctx" )
  ictx=( -A "$afctx" )
  ictx=( -B "$bfctx" )

  grep -ni "${ictx[@]}" -e "$ptrn" -- "$fl"
Categories: Software and Help

LXer: 9to5Linux Weekly Roundup: May 15th, 2022

Linux Questions - Mon, 05/16/2022 - 14:05
Published at LXer:

The eighty-five installment of the 9to5Linux Weekly Roundup is here for the week ending on May 15th, 2022, keeping you guys up to date with the most important things that are happening in the Linux world.

Read More...
Categories: Software and Help

Microsoft’s Linux OS for Azure CBL-Mariner 2.0 Released

Linux Today News - Mon, 05/16/2022 - 14:00

Microsoft CBL-Mariner 2.0 is a free and open-source Linux distribution for Microsoft’s cloud infrastructure and edge products and services. Learn more here.

The post Microsoft’s Linux OS for Azure CBL-Mariner 2.0 Released appeared first on Linux Today.

Categories: General News

Writing own script which will overcome another script .sh

Linux Questions - Mon, 05/16/2022 - 13:55
In my system using cron.d there is a file which is repeatdly run. It generates an answer to my exercise.
I used ls /etc/cron.d I have access to this file.
It is alice.sh I use
Code:
sh /tmp/tmp.6vOX6HxEg1/alice.sh my resposne
Code: alice@ip-10-0-119-57:~$ sh /tmp/tmp.6vOX6HxEg1/alice.sh
cat: /root/archive/secret.txt: Permission denied
/opt/create_and_delete_file_from_args.sh: line 7: /tmp/tmp.6vOX6HxEg1/151504505d2d29ecad318671b5476560: Permission denied
rm: cannot remove '/tmp/tmp.6vOX6HxEg1/151504505d2d29ecad318671b5476560': No such file or directory It generates a file that I need to read but it is as I read deleted.
I was thinking to run my own script which will listen and copy all kind of files when created to another directory. But I am green I do not know how to write own listener in bash linux.
Thanks in advance.


this is alice.sh

Code: #!/usr/bin/env bash
 
secret_script_path="/opt/create_and_delete_file_from_args.sh"
secret_directory="/tmp/tmp.6vOX6HxEg1"
secret_file="TUApZ7WH3C7n"

bash "${secret_script_path}" "${secret_directory}" $(echo "${secret_file}" | md5sum | awk '{ print $1 }') first edit:
this next .sh file has got a method that create and after 0,005s delete file with information.


Code: #!/usr/bin/env bash

"secret_directory=$1
secret_file=$2
exercise_flag=$(cat "/root/archive/secret.txt")

echo "${exercise_flag}" > "${secret_directory}/${secret_file}"

sleep 0.005"

rm "${secret_directory}/${secret_file}"

//normally here is rm (Deleting file) I can't edit this file it is only readable I wanted to delete rm and add cat after creating.
There was an idea to create another .sh file without rm and with cat, but I can't do it.
After leaving vim I used
Code: :w !sudo tee % > /dev/null but there is error with

Code: Username is not in the sudoers file. This incident will be reported if I'm leaving with :w then "E212 Can't open file for writing"
Categories: Software and Help

9to5Linux Weekly Roundup: May 15th, 2022

LXer Linux News - Mon, 05/16/2022 - 13:54
The eighty-five installment of the 9to5Linux Weekly Roundup is here for the week ending on May 15th, 2022, keeping you guys up to date with the most important things that are happening in the Linux world.
Categories: General News

Linux Mint or Ubuntu

Linux Questions - Mon, 05/16/2022 - 13:54
Someone asked me recently if Linux Mint is actually Ubuntu why not just install Ubuntu and I did not know how to answer them.
Categories: Software and Help

Red Hat Enterprise Linux 8.6: Better security, more options

Ziff-Davis Open Source/Linux - Mon, 05/16/2022 - 13:40
The headlines went to the long-anticipated arrival of RHEL 9, but for more pragmatic Linux users, Red Hat Enterprise Linux 8.6 has arrived as well.
Categories: General News

New member

Linux Questions - Mon, 05/16/2022 - 13:14
Hi group. I am in the process of upgrading my desktop with a new motherboard, ram and power supply. I will be running Windows 10 - 64 bit and Linux - 64 bit (still researching which distro to use). This machine will use a Ryzen 3 processor with no internal graphics with 32gb ram and a Samsung 980 1Tb M2 NVME ssd. Any advice on which distro to use would be appreciated.
Categories: Software and Help

LXer: How to Resize Existing LUN/Disk on Linux

Linux Questions - Mon, 05/16/2022 - 13:03
Published at LXer:

2DayGeeK: This quick tutorial describes how to resize existing LUN or Disk on Linux.

Read More...
Categories: Software and Help

Fudgie: Official Fedora Budgie Spin in the Works

Linux Today News - Mon, 05/16/2022 - 13:00

A possible Fedora Budgie desktop spin, called “Fudgie,” is in the works and core packages are now submitted for Fedora approval. Learn more here.

The post Fudgie: Official Fedora Budgie Spin in the Works appeared first on Linux Today.

Categories: General News

How to Resize Existing LUN/Disk on Linux

LXer Linux News - Mon, 05/16/2022 - 12:52
2DayGeeK: This quick tutorial describes how to resize existing LUN or Disk on Linux.
Categories: General News

Pages