Linux News
next-20230324: linux-next
Version:next-20230324 (linux-next)
Released:2023-03-24
Categories: Linux Kernel
LXer: Error Handling In Ansible Playbooks
Published at LXer:
This guide explains about error handling in Ansible Playbooks and how to handle different errors when running playbooks in Ansible.
Read More...
This guide explains about error handling in Ansible Playbooks and how to handle different errors when running playbooks in Ansible.
Read More...
Categories: Software and Help
Error Handling In Ansible Playbooks
This guide explains about error handling in Ansible Playbooks and how to handle different errors when running playbooks in Ansible.
Categories: General News
how can I host my own email service?
Over the years I have had a number of paid email services whose inconveniences only increase over time, I then left them and tried another despite the inconvenience of loosing the emails.
My last one (mailbox.org) advertises a fair bit about its "honesty" not available from its competitors, so they claim.
I followed their procedure to download all my emails wasting a fair bit of time in the process, only to find that such "download" only creates the "download" on THEIR system (does absolutely nothing?) and, as far as I could tell, only viewable from their system (displays the original emails?).
I have a number of (paid) "Linodes" hosted by Linode.com (technically faultless - I am impressed), now a Swiss company and I am contemplating running my own personal email service (like Evolution available in Debian) on one of those "Linodes" (based in Singapore) but I am completely ignorant in that field.
I suspect, like many things Linux, it is probably just a matter of installing and running the software in a "default" config so my question is more about anyone able to suggest tutorials for users like myself wanting to avoid, if possible, to get deeply involved in the subject - it is only my personal emails although some are inevitably business-related.
Any hint also welcome.
Thank you for your help.
My last one (mailbox.org) advertises a fair bit about its "honesty" not available from its competitors, so they claim.
I followed their procedure to download all my emails wasting a fair bit of time in the process, only to find that such "download" only creates the "download" on THEIR system (does absolutely nothing?) and, as far as I could tell, only viewable from their system (displays the original emails?).
I have a number of (paid) "Linodes" hosted by Linode.com (technically faultless - I am impressed), now a Swiss company and I am contemplating running my own personal email service (like Evolution available in Debian) on one of those "Linodes" (based in Singapore) but I am completely ignorant in that field.
I suspect, like many things Linux, it is probably just a matter of installing and running the software in a "default" config so my question is more about anyone able to suggest tutorials for users like myself wanting to avoid, if possible, to get deeply involved in the subject - it is only my personal emails although some are inevitably business-related.
Any hint also welcome.
Thank you for your help.
Categories: Software and Help
How create a table and add data using bash script?
Hi Community,
I'm trying to create an email notification and add three separate lines in the email body. There are three log files and I just need to add the start date/time, the End date/time, and the number of messages. This is what it looks like when I use echo from the terminal:
Quote: Start Date/Time: 03/11/2023 04:10:01 End Date/Time: 03/11/2023 09:55:51 Messages Count: 1653058
Start Date/Time: 03/11/2023 09:55:51 End Date/Time: 03/11/2023 12:32:07 Messages Count: 368986
Start Date/Time: 03/11/2023 12:32:07 End Date/Time: 03/11/2023 16:47:39 Messages Count: 1078502 However, when I send it via email all three rows display in one row. How can I receive these details in three separate rows or have it like a table, such as:
Code: Type Start Date/Time End Date/Time Count
One 03/11/2023 04:10:01 03/11/2023 09:55:51 1653058
Two 03/11/2023 09:55:51 03/11/2023 12:32:07 368986
Three 03/11/2023 09:55:51 03/11/2023 16:47:39 1078502 Here is my script
PHP Code: #!/bin/bash
EMAILS='myemail@email.com'
sDatemsgOne=$( head -1 testTest/messageone-* | cut -c 1-20 )
eDatemsgOne=$( tail -1 testTest/messageone-* | cut -c 1-20 )
msgOneCount=$( tail -1 testTest/messageone-* | cut -c 84-91 )
echo "Start Date/Time:" $sDatemsgOne "End Date/Time:" $eDatemsgOne "Messages Count:" $msgOneCount
sDatemsgTwo=$( head -1 testTest/messagetwo-* | cut -c 1-20 )
eDatemsgTtwo=$( tail -1 testTest/messagetwo-* | cut -c 1-20 )
msgTwoCount=$( tail -1 testTest/messagetwo-* | cut -c 84-90 )
echo "Start Date/Time:" $sDatemsgTwo "End Date/Time:" $eDatemsgTtwo "Messages Count:" $msgTwoCount
sDatemsgThree=$( head -1 testTest/messagethree-* | cut -c 1-20 )
eDatemsgThree=$( tail -1 testTest/messagethree-* | cut -c 1-20 )
msgThreeCount=$( tail -1 testTest/messagethree-* | cut -c 84-91 )
echo "Start Date/Time:" $sDatemsgThree "End Date/Time:" $eDatemsgThree "Messages Count:" $msgThreeCount
echo "Start Date/Time:" $sDatemsgOne "End Date/Time:" $eDatemsgOne "Messages Count:" $msgOneCount "Start Date/Time:" $sDatemsgTwo "End Date/Time:" $eDatemsgTtwo "Messages Count:" $msgTwoCount "Start Date/Time:" $sDatemsgThree "End Date/Time:" $eDatemsgThree "Messages Count:" $msgThreeCount | mail -s "File Export Details" $EMAILS
I added * at end of the log file name because it'll have a date and time, and time can be changed all the time.
Thank you for your help!
I'm trying to create an email notification and add three separate lines in the email body. There are three log files and I just need to add the start date/time, the End date/time, and the number of messages. This is what it looks like when I use echo from the terminal:
Quote: Start Date/Time: 03/11/2023 04:10:01 End Date/Time: 03/11/2023 09:55:51 Messages Count: 1653058
Start Date/Time: 03/11/2023 09:55:51 End Date/Time: 03/11/2023 12:32:07 Messages Count: 368986
Start Date/Time: 03/11/2023 12:32:07 End Date/Time: 03/11/2023 16:47:39 Messages Count: 1078502 However, when I send it via email all three rows display in one row. How can I receive these details in three separate rows or have it like a table, such as:
Code: Type Start Date/Time End Date/Time Count
One 03/11/2023 04:10:01 03/11/2023 09:55:51 1653058
Two 03/11/2023 09:55:51 03/11/2023 12:32:07 368986
Three 03/11/2023 09:55:51 03/11/2023 16:47:39 1078502 Here is my script
PHP Code: #!/bin/bash
EMAILS='myemail@email.com'
sDatemsgOne=$( head -1 testTest/messageone-* | cut -c 1-20 )
eDatemsgOne=$( tail -1 testTest/messageone-* | cut -c 1-20 )
msgOneCount=$( tail -1 testTest/messageone-* | cut -c 84-91 )
echo "Start Date/Time:" $sDatemsgOne "End Date/Time:" $eDatemsgOne "Messages Count:" $msgOneCount
sDatemsgTwo=$( head -1 testTest/messagetwo-* | cut -c 1-20 )
eDatemsgTtwo=$( tail -1 testTest/messagetwo-* | cut -c 1-20 )
msgTwoCount=$( tail -1 testTest/messagetwo-* | cut -c 84-90 )
echo "Start Date/Time:" $sDatemsgTwo "End Date/Time:" $eDatemsgTtwo "Messages Count:" $msgTwoCount
sDatemsgThree=$( head -1 testTest/messagethree-* | cut -c 1-20 )
eDatemsgThree=$( tail -1 testTest/messagethree-* | cut -c 1-20 )
msgThreeCount=$( tail -1 testTest/messagethree-* | cut -c 84-91 )
echo "Start Date/Time:" $sDatemsgThree "End Date/Time:" $eDatemsgThree "Messages Count:" $msgThreeCount
echo "Start Date/Time:" $sDatemsgOne "End Date/Time:" $eDatemsgOne "Messages Count:" $msgOneCount "Start Date/Time:" $sDatemsgTwo "End Date/Time:" $eDatemsgTtwo "Messages Count:" $msgTwoCount "Start Date/Time:" $sDatemsgThree "End Date/Time:" $eDatemsgThree "Messages Count:" $msgThreeCount | mail -s "File Export Details" $EMAILS
I added * at end of the log file name because it'll have a date and time, and time can be changed all the time.
Thank you for your help!
Categories: Software and Help
LXer: Framework presents new DIY upgradeable laptops
Published at LXer:
Framework introduced today their Framework Laptop 13 DIY Edition compatible with the AMD Ryzen 7040 Series processors and 13th Gen Intel processors. These highly customizable laptops are available to pre-order starting at $849.00. As of today, the Framework Laptop 13 can be preordered with the following Intel 13th Gen CPUs: i7-1370P � 14C/20T (6P+8E), 3.90 [�]
Read More...
Framework introduced today their Framework Laptop 13 DIY Edition compatible with the AMD Ryzen 7040 Series processors and 13th Gen Intel processors. These highly customizable laptops are available to pre-order starting at $849.00. As of today, the Framework Laptop 13 can be preordered with the following Intel 13th Gen CPUs: i7-1370P � 14C/20T (6P+8E), 3.90 [�]
Read More...
Categories: Software and Help
How to Fix Error 522 in LibreOffice and OpenOffice
LibreOffice comes with several predefined errors. Here’s how to fix Error 522 in LibreOffice or in OpenOffice using two simple methods.
The post How to Fix Error 522 in LibreOffice and OpenOffice appeared first on Linux Today.
Categories: General News
Framework presents new DIY upgradeable laptops
Framework introduced today their Framework Laptop 13 DIY Edition compatible with the AMD Ryzen 7040 Series processors and 13th Gen Intel processors. These highly customizable laptops are available to pre-order starting at $849.00. As of today, the Framework Laptop 13 can be preordered with the following Intel 13th Gen CPUs: i7-1370P — 14C/20T (6P+8E), 3.90 […]
Categories: General News
PorteuX distro - The Next Experience
I invite everyone to try PorteuX, this new Linux distro inspired by Slax and Porteus, with the main goal of being super fast, small, portable, modular and immutable (if the user wants so).
The boot time is impressive: https://www.youtube.com/watch?v=_vSTCzPpPgU
More information and download here:
https://www.github.com/porteux
The boot time is impressive: https://www.youtube.com/watch?v=_vSTCzPpPgU
More information and download here:
https://www.github.com/porteux
Categories: Software and Help
How to know if You are Behind a Proxy Server?
Unless you’re behind a transparent proxy, it’s effortless to check. Here, we’ll discuss how to detect the transparent proxy and the usual proxies in use.
The post How to know if You are Behind a Proxy Server? appeared first on Linux Today.
Categories: General News
LXer: Tails 5.11: Secure-surfing 'amnesiac' live distro arrives
Published at LXer:
A highly opinionated little live USB/DVD/VM image for the paranoidThe latest version of TAILS has improved memory management, which means it should work a little better on memory-constrained computers. It's the go-to option for secure private internet access.�
Read More...
A highly opinionated little live USB/DVD/VM image for the paranoidThe latest version of TAILS has improved memory management, which means it should work a little better on memory-constrained computers. It's the go-to option for secure private internet access.�
Read More...
Categories: Software and Help
Tails 5.11: Secure-surfing 'amnesiac' live distro arrives
A highly opinionated little live USB/DVD/VM image for the paranoidThe latest version of TAILS has improved memory management, which means it should work a little better on memory-constrained computers. It's the go-to option for secure private internet access.…
Categories: General News
looping rsync to rename files at destination help?
Thank you for reading.
My goal is to take a large number of files from directory A into directory B, not always on the same server, using rsync and set a specific name at destination that is numbered.
Code: #!/bin/bash
for i in *
do
i=1
rsync -aviS --progress *.avi /mnt/Exports/Backup/TEST/test.S01E0${i}
i=i+1
done The extension is not important, its just what im testing with atm.
the output that the above is generating is not what i desire:
1. it creates a new subdirectory under /mnt/Exports/Backup/TEST/ called test.S01E01
2. after creating the directory, that it should not be creating according to the rsync command, it is than moving the files from A to B/test.S01E01/, nothing is renamed in the process.
When I manually do this with:
Code: rsync -aviS --progress foo\ \bad\ chars.avi /path/to/new/foo.no.bads.avi it does exactly that into directory B as desired. This is time consuming and something that should be automated. I am horrid at coding, but thought a simple for loop should do the trick, my for loop is bad and wrong.
Looking for better guidance than RTFM or google as I've already spent far to much time RTFM and as not a programmer, not fully following examples, and my google foo fails as I dont know what to ask to get the correct output.
Thank you in advance for guidance, education, and direction.
My goal is to take a large number of files from directory A into directory B, not always on the same server, using rsync and set a specific name at destination that is numbered.
Code: #!/bin/bash
for i in *
do
i=1
rsync -aviS --progress *.avi /mnt/Exports/Backup/TEST/test.S01E0${i}
i=i+1
done The extension is not important, its just what im testing with atm.
the output that the above is generating is not what i desire:
1. it creates a new subdirectory under /mnt/Exports/Backup/TEST/ called test.S01E01
2. after creating the directory, that it should not be creating according to the rsync command, it is than moving the files from A to B/test.S01E01/, nothing is renamed in the process.
When I manually do this with:
Code: rsync -aviS --progress foo\ \bad\ chars.avi /path/to/new/foo.no.bads.avi it does exactly that into directory B as desired. This is time consuming and something that should be automated. I am horrid at coding, but thought a simple for loop should do the trick, my for loop is bad and wrong.
Looking for better guidance than RTFM or google as I've already spent far to much time RTFM and as not a programmer, not fully following examples, and my google foo fails as I dont know what to ask to get the correct output.
Thank you in advance for guidance, education, and direction.
Categories: Software and Help
compilation xscreensaver
why at debian xscreensaver needed much more dependincies than at arch?
debian apt say that cant find needed list of dependincies
but i can find this dependincies one by one at debian package site
why debian cand find all of them via apt if it present at site?
i need compilation with specific options
Code: ./configure --prefix=/usr --with-elogind --with-pam --with-gl --with-glx --with-pixbuf --with-xft from xscreensaver readme install
Code: root@home:/etc/apt# apt install perl pkg-config gettext intltool libx11 libxext libxi libxt libxft libxinerama libxrandr libxxf86vm libgl libglu libgle libgtk2 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 libxml2 libpam dbus libsystemd elogind
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libx11
E: Unable to locate package libxext
E: Unable to locate package libxi
E: Unable to locate package libxt
E: Unable to locate package libxft
E: Unable to locate package libxinerama
E: Unable to locate package libxrandr
E: Unable to locate package libxxf86vm
E: Unable to locate package libgl
E: Unable to locate package libglu
E: Unable to locate package libgle
E: Unable to locate package libgtk2
E: Unable to locate package gdk-pixbuf-2.0
E: Couldn't find any package by glob 'gdk-pixbuf-2.0'
E: Unable to locate package gdk-pixbuf-xlib-2.0
E: Couldn't find any package by glob 'gdk-pixbuf-xlib-2.0'
E: Unable to locate package libpam
E: Unable to locate package libsystemd
root@home:/etc/apt#
debian apt say that cant find needed list of dependincies
but i can find this dependincies one by one at debian package site
why debian cand find all of them via apt if it present at site?
i need compilation with specific options
Code: ./configure --prefix=/usr --with-elogind --with-pam --with-gl --with-glx --with-pixbuf --with-xft from xscreensaver readme install
Code: root@home:/etc/apt# apt install perl pkg-config gettext intltool libx11 libxext libxi libxt libxft libxinerama libxrandr libxxf86vm libgl libglu libgle libgtk2 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 libxml2 libpam dbus libsystemd elogind
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libx11
E: Unable to locate package libxext
E: Unable to locate package libxi
E: Unable to locate package libxt
E: Unable to locate package libxft
E: Unable to locate package libxinerama
E: Unable to locate package libxrandr
E: Unable to locate package libxxf86vm
E: Unable to locate package libgl
E: Unable to locate package libglu
E: Unable to locate package libgle
E: Unable to locate package libgtk2
E: Unable to locate package gdk-pixbuf-2.0
E: Couldn't find any package by glob 'gdk-pixbuf-2.0'
E: Unable to locate package gdk-pixbuf-xlib-2.0
E: Couldn't find any package by glob 'gdk-pixbuf-xlib-2.0'
E: Unable to locate package libpam
E: Unable to locate package libsystemd
root@home:/etc/apt#
Categories: Software and Help
One monitor Isn't Working.
1: Debian Stable,
2: Just did a fresh install,
3: Second monitor does not work,
3a: the monitors are about 10 years old,
4: in desperation, I inserted a Knoppix Rescue Disk,
5: with Knoppix, I have two monitors again!
===
So... what's up with that?
I crawled under my desk and checked {unplugged and replugged} in EVERYTHING.
Apparently my second monitor isn't broken, but what's up with that?
PS: flatscreen LCD monitors "acer" models
Any suggestions?
Thank you for reading my posting, and have a great day!!
2: Just did a fresh install,
3: Second monitor does not work,
3a: the monitors are about 10 years old,
4: in desperation, I inserted a Knoppix Rescue Disk,
5: with Knoppix, I have two monitors again!
===
So... what's up with that?
I crawled under my desk and checked {unplugged and replugged} in EVERYTHING.
Apparently my second monitor isn't broken, but what's up with that?
PS: flatscreen LCD monitors "acer" models
Any suggestions?
Thank you for reading my posting, and have a great day!!
Categories: Software and Help
How to Create a Sudo User on Ubuntu 22.04
Creating sudo user and granting privileges is a straightforward process. Here, we’ll explain how to create a sudo user on Ubuntu 22.04.
The post How to Create a Sudo User on Ubuntu 22.04 appeared first on Linux Today.
Categories: General News
video playback stutters/freezes when set to full screen
After update and upgrade to Ubuntu Jellyfish,video editing playback begins to freeze when switched to full screen. Exiting full screen.. playback goes back to running smoothly.(video editing software = Lightworks).
How can I fix this?
How can I fix this?
Categories: Software and Help
LXer: How to Install a Specific Version of a Package in Ubuntu Linux
Published at LXer:
When you try to install any package from the repository, it will give you the most recent version, but you can also ask the repository to provide a specific version of the application.
Read More...
When you try to install any package from the repository, it will give you the most recent version, but you can also ask the repository to provide a specific version of the application.
Read More...
Categories: Software and Help
How to Install a Specific Version of a Package in Ubuntu Linux
When you try to install any package from the repository, it will give you the most recent version, but you can also ask the repository to provide a specific version of the application.
Categories: General News
Ubuntu log in problem
Hello everyone,
I'm a new user to Ubuntu and I'm using a Windows dual boot. After logging out of Ubuntu, I'm unable to progress past this screen: (I can't attach files so I've uploaded to imgur instead.)
https://i.imgur.com/tMzqbHc.jpg
This happens with all kernels. In my last session, I did a sudo apt-get and sudo apt install in my last session. I also installed FUSE using 'sudo apt-get install fuse' in the process of installing Obsidian, using online instructions.
Can anyone help me troubleshoot this issue? Any help would be greatly appreciated. I'm starting a development bootcamp in a few days and starting to worry that I'll have to go through the process of setting up Ubuntu again.
Thank you!
I'm a new user to Ubuntu and I'm using a Windows dual boot. After logging out of Ubuntu, I'm unable to progress past this screen: (I can't attach files so I've uploaded to imgur instead.)
https://i.imgur.com/tMzqbHc.jpg
This happens with all kernels. In my last session, I did a sudo apt-get and sudo apt install in my last session. I also installed FUSE using 'sudo apt-get install fuse' in the process of installing Obsidian, using online instructions.
Can anyone help me troubleshoot this issue? Any help would be greatly appreciated. I'm starting a development bootcamp in a few days and starting to worry that I'll have to go through the process of setting up Ubuntu again.
Thank you!
Categories: Software and Help