Linux News
How to troubleshoot network connectivity problems
Why should i use lvscan --readonly and not lvscan?
Any help is welcomed.
LXer: How to Install WordPress with Apache and Let's Encrypt SSL on Ubuntu 22.04
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...
LibreOffice 7.2.7: One Last Update Before June 12th End-of-Life
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.
How to Install WordPress with Apache and Let's Encrypt SSL on Ubuntu 22.04
Duplicity: invalid argument error backing up /sys/fs/cgroup/systemd/user.slice/user-42.slice/cgroup.event_control
/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?
LXer: How To Reset Root Password In Fedora 36
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...
CentOS Alternative AlmaLinux OS 8.6 Is Now Available for Download
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.
How To Reset Root Password In Fedora 36
bash script for grep with context
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"
LXer: 9to5Linux Weekly Roundup: May 15th, 2022
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...
Microsoft’s Linux OS for Azure CBL-Mariner 2.0 Released
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.
Writing own script which will overcome another script .sh
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"
9to5Linux Weekly Roundup: May 15th, 2022
Linux Mint or Ubuntu
Red Hat Enterprise Linux 8.6: Better security, more options
New member
LXer: How to Resize Existing LUN/Disk on Linux
2DayGeeK: This quick tutorial describes how to resize existing LUN or Disk on Linux.
Read More...
Fudgie: Official Fedora Budgie Spin in the Works
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.