Linux Distributions

27K

Solutions

20K

Contributors

A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).

Share tech news, updates, or what's on your mind.

Sign up to Post

I installed dietpi today on a Zero w. (did it on a 3B+ and setup as Hotspot no problem). I wanted to setup the zero as a webcam.
I did this 4 times before I started to install or change the configuration and reboot at least 2 times to make sure all was good.
I changed the setup to US. connected to the Wi-Fi.
Updated to the latest version of dietpi. Update the firmware.
Changed drop bear to ssh.
installed REALVNC.
But when I Install RPI WEB CAM it keeps rebooting and I can't stop it.
As I said after the 3rd time I flashed a fresh image again and rebooted at least 2 times after each change or install until I got to the RPI Web CAM issue.
I get "You're in emergency mode. Enter root password for maintenance or CTRL D.
I tried dietpi for the password and root. CTRL D does nothing but reboot back to the same area.
I'm assuming there is am issue with RPI Web Cam.
And Yes I made sure the power supply is good. I replaced the power supply with one used on my Pi3B+. It's 5.2V, 3amps.
I even tested it with my voltmeter. The issue is this pi Zero W setup works fine with a full version of Raspian and the RPI WEB CAM version I had to manually configure. I switched back to that card and all is fine. I just like the small footprint and ease of setup with DietPi. And it only starts to reboot when I add in the Web Cam distro on DietPi. I even tried some other packages after my 4th attempt, on the card, flashed a new image. In fact I added a few distros to the DietPi setup …
0
Upgrade your Question Security!
LVL 12
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

I have noticed a bot that is using several ip numbers at the same time that I want to block.  This will take a custom filter but all of the tutorials to create a filter take you up to the status code column.  I want the regex to catch HeadlessChrome.

The problem is that the browser name is much further past the status code as you can see below:


1.1.1.1 - - [05/Aug/2018:17:23:51 -0400] "POST /?wc-ajax=get_refreshed_fragments HTTP/1.1" 200 273 "https://www.theherbsplace.com/Fat_Grabbers_120_Capsules_p_189.html" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/64.0.3282.119 Safari/537.36"

Please tell me how to build a regex that goes past the status code and picks up the browser name.
0
We are attempting to install an SSL certificate on a website which already has a sub-domain attached to it. So this is the picture:

The website has been installed on product.domain.com and we have an SSL certificate already installed on that domain URL. The Wordpress site is set to force SSL and it works fine. No problem. If someone types in https://product.domain.com the site comes up fine - all good. If someone types product.domain.com the site comes up perfectly with https://product.domain.com.

If someone types www.product.domain.com without the http or https,  the site works fine - it strips the www and reverts to https://product.domain.com so this is all OK.

However, if someone actually types the full thing - as https://www.product.domain.com the site does not strip the https:// or the www so the browser displays a security exception as if the site was not covered by an SSL certificate.

I've tried various configurations in the .htaccess file but nothing I do seems to work.

Any help with this sincerely appreciated.

Cheers
Chris
0
I have a new installation of woo commerce and I have noticed the urls are inconsistent regarding my products on the site.  Some urls are showing the product id and others aren't.  My preference is to not show the id.

https://www.theherbsplace.com/product/sf_p_1458/[code] - With id

[code]https://www.theherbsplace.com/product/neroli-organic-5-ml-100-pure-essential-oil/

Open in new window

- Without id

It seems when the id is in the url it goes to a category page first rather than the single product page.

I have tried changing the perma-links to something else then saving them.  Then immediately putting them back to their original setting and save again but there was no change.

Please show me how to get the product url's consistent with no id on them.
0
I have installed fail2ban on an Amazon Linux 2 instance running Apache 2.4.  I can't start it up because I am using postfix and the default mta is sendmail.  I don't have sendmail installed and I don't want it.

I use google apps for my smtp server.

How can I change over to postfix or use google apps for my fail2ban mail option?

Thanks,
0
I built a LInux 2 Amazon Apache 2.4 instance that uses php-fpm.  I have had several segfaults lately and then the server crashes.  I installed atop and noticed when the server crashed I had several php-fpm pools open.  At 1 PM today I had 1.4 GB free memory and now I have 900 mb free memory.

Something seems to be wrong with php-fpm because when I restart it the free memory jumps back up to 1.3 GB.

Here is my current atop screenshot - https://gyazo.com/5028ec3f184ff973409d6cba079d3767 you can see the last column shows only a small percentage of the processes are using memory.  Yet I keep running out of memory does anyone have any suggestions?  I have atop and sar logging.
0
I am trying to trace down a segfault error using SAR on a Linux 2 Apache Amazon instance.  I have SAR installed and can see when the memory spikes but how can I find out in the log files what process is causing the memory spike?

Here is what I am seeing using SAR

https://gyazo.com/890b4ab5214fa269a14f3adeec175116

I just need to know what process is causing the memory to increase.  Normally memory usage is in the 40% area.

Thanks,
0
I want to install Fail2Ban on an Apache 2.4 Linux 2 machine.  As a Linux 2 user I can't download the epel repository according to Amazon engineers.

Consequently, I used wget and now have fail2ban-0.8.14 directory in my /etc folder.  I need to install fail2ban but the normal install commands aren't working.  I tried apt-get and it isn't on my server.  So how do I install fail2ban?

Thanks,
0
I need a way to see the dimension of the Woo Commerce product images laid out in a table in this manner. The table would have 4 columns - file name / width / height / link to wordpress media page. And the table would be in order of image size from small to large.

This could be a mysql query or a php program.  Hopefully, tied into a plugin in my wordpress installation. A plugin would be best because I will be referring to this on a regular basis.

I am running php 7.2 and a Maria 10 db.

Thanks,
0
I have a script that reads the access_log files and counts how many times an ip has accessed the site.  This works great and helps me to find bots I want to remove.  My question is, how do I get the access files and error log files to look the same?

I use a vhosts.conf file and in one of the virtual directories we have the following:

<VirtualHost 172.31.8.214:80>
        ServerName www.theherbsplace.com
        ServerAlias theherbsplace.com
        DocumentRoot /data/web/theherbsplace.com

        ErrorLog /data/log/php_errors_thp.log
        CustomLog /data/log/access_thp.log combined

        RewriteEngine On

<Directory /data/web/theherbsplace.com/>
     Require all granted
  </Directory>
</VirtualHost>

Open in new window


When I add the word combined to the error log format line I get the following error:

AH00526: Syntax error on line 7 of /etc/httpd/conf.d/vhosts.conf:
ErrorLog takes one argument, The filename of the error log

Open in new window


The format of the access_log is the one I want the errors log to follow.

So, how can I get the log format the same on both?  This is because it gives me the information I need and also will permit the script to read the error logs too.

Thanks,
0
Cloud Class® Course: Python 3 Fundamentals
LVL 12
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

I have over 2,000 images in a Woo Commerce installation.  I need to know where the image dimensions are stored on the Maria db for the single product image or main image that Woo Commerce uses for each product and how to retrieve the list of them.

I plan to replace all of the images that aren't at least 300x300.  Because on the cart they are showing up blurry.

Doing it through the db will be much quicker than going through each product on the cart.

Thanks,
0
how to find number of count in the unix logs for a grep search keyword say 'nullpointerexception on deviding 109418 with 0' please advise
0
I am on an Amazon Linux 2 AMI running Apache 2 and I need a software solution for security.  I have been told mod_security isn't a good choice.  So does anyone have experience with the AWS Waf?  If so, what rules are you using?

Or, do you have another idea altogether?

On my previous instance I used fail2ban but I found the bots could outsmart fail2ban so hopefully someone will have a better choice.

Let me clarify my biggest  problems are postfix issues, stopping ddos, bots running up and down my site stealing bandwidth, clicking on every link and having numerous disk i/o's which I have to pay for.

By the way, I am not interested in using another AMI due to the complexity of my existing AMI.
0
I am trying to install mod_security on an Amazon Linux 2 running Apache 2.4

This is the guide I am following -
https://resources.infosecinstitute.com/configuring-modsecurity-firewall-owasp-rules/

Open in new window


It fails on this command -
git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git

Open in new window


I get this output when I try to run it from root -
git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git
Cloning into 'owasp-modsecurity-crs'...
fatal: unable to access 'https://github.com/SpiderLabs/owasp-modsecurity-crs.git/': error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none

Open in new window


Please help me to get Mod_Security installed and running

Thanks,
0
I need to upload a Wordpress theme and I am getting the message that I am exceeding the max_filesize.  I have change php.in, restarted Apache and still I get the same error.

These are the settings I have changed:

upload_max_filesize=122M
post_max_size=168M
memory_limit=512M
file_uploads = On
max_execution_time=290

Open in new window


Please tell me what to fix.

Thanks,

Randal
0
I have a curl error 77
Update Failed: Download failed. cURL error 77: error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none

Open in new window

whenever I try to update my plugins in wordpress.

The site is www.thefrugallife.com

I have an Apache 2.4 instance running Linux 2 from Amazon.

I have recently moved the site and switched it to https.  My site certificate is showing it gets a B on SSL Labs using ipv4.

I can't update anything on the site till this error goes away.  Please let me know how to get rid of that error.

Thanks,
0
Woocommerce db just moved to a new Amazon instance.  Did mysqldump of old instance and then import via mysql.  The backoffice comes up the pages show but when you try to view them this error shows

https://gyazo.com/6a19c26d8530df1b2d98e82253534dd6

This is a snapshot of the posts table.  As you can see there are over 50,000 entries.

https://gyazo.com/2fb664b3a1b2acaa0f55bce5bc6f0612

Please let me know what to do I am down completely.
0
I have a Red Hat 7.1 server.  I cannot FTP into the RH7.1 server I get a message 530 Login incorrect.
I can receive files if I use FTP from the RH7.1 server but I cannot SEND files from the RH7.1 server.
When attempting to send files from the RH7.1 server a zero length file is put on the receiving server but no data is ever copied to the receiving server and the FTP process on the RH7.1 server hangs.

This is on an internal network with no outside connections so security is not a concern here.
I also tried sftp with no success.

Any suggestions would be greatly appreciated.

TIA,
Dan Kaib
0
what is the meaning of below command

less log123.log | grep -i nullpointerexception


why we use less and then grep on it

Please advise
0
Cloud Class® Course: C++ 11 Fundamentals
LVL 12
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

in vi we can use /nullpointerexception to find that string right.

how to find how many occurrence of that string total and go to say 10th occurence line
please advise
0
Hi, when I finished installing OpenSSH, I got the following warning:

Permissions 0640 for '/etc/ssh/ssh_host_ecdsa_key' are too open.

Could you please give me the command line to safely change and set the proper permissions for this folder and its files?

Server: Red Hat Enterprise Linux Server 7.5

Thanks

Jorge Batres
0
Hi Linux experts

i have old Linux box  suse
Linux sword 3.16.6-2-desktop #1 SMP PREEMPT Mon Oct 20 13:47:22 UTC 2014 (feb42ea) x86_64 x86_64 x86_64 GNU/Linux

i have a new Linux box Centos
Linux centostest 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

i have freenas installed

now i want to mount NFS file system NFV V2

it work on old box but dose not work on the new one

any idea here

i am using this command
 mount -t nfs -o vers=2 freenas:/mnt/test/ewtwo/wzbnc /testone/


this line dose not help me
http://kb.kristianreese.com/index.php?View=entry&EntryID=161


[root@centostest ~]# mount -t nfs -o vers=2 freenas:/mnt/ewtwo /sword/
mount.nfs: Protocol not supported

when i use vers=3 it work perfectly on both   vers=2 work only on the old one

any idea here


thanks
0
What is the process needed to get the AWS KVM and ZEN drivers loaded in a VMWare Ubuntu 18.04 LTS System before we use the AWS migration tool to put in on an AWS Instance ?  I’m specifically needing what and how to preload the drtivers etc.
0
capture1.PNGsap gui scripting , how do you get the value of a read only field that doesn't show up in the script!

The code from the script I can extract is as follows!

session.findById("wnd[0]").resizeWorkingPane 175,31,false
session.findById("wnd[0]/usr/tabsTABSTR_2100/tabpTRMN/ssubSUBSCR_2100:SAPLCOKO:2110/cmbCAUFVD-TERKZ").setFocus
session.findById("wnd[0]/mbar/menu[4]/menu[0]/menu[2]").select
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/ctxtCOCI_AUFK-ZZ_VBELN").text = ""
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/ctxtCOCI_AUFK-ZZ_SCHEDMGR").text = "111"
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/ctxtCOCI_AUFK-ZZ_SCHEDULER").text = "111"
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/ctxtCOCI_AUFK-ZZ_DSGNMGR").text = "111"
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/ctxtCOCI_AUFK-ZZ_DSGNTECH").text = "111"
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/cmbCOCI_AUFK-ZZBAM_FUNCA").key = "DATA"
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/ctxtCOCI_AUFK-ZZBAM_ID").text = "www"
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/txtCOCI_AUFK-ZZBAM_VOL").text = "11121"
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/txtCOCI_AUFK-ZZBAM_VOL").setFocus
session.findById("wnd[1]/usr/ssubCUSTSCR1:SAPLXCN1:0900/txtCOCI_AUFK-ZZBAM_VOL").caretPosition = 5


The field I need to capture in the uploaded screen capture1 where it says work for others third party!  

I …
0
I removed php 5.4.16 and installed php 7.2 and now when I access my wordpress site it isn't parsing php, when I run which php it shows not installed,  When I run yum -y update it says nothing to update.

Here is yum showing PHP was installed:
Installed:
  php72-php-fpm.x86_64 0:7.2.5-1.el7.remi
  php72-php-gd.x86_64 0:7.2.5-1.el7.remi
  php72-php-mbstring.x86_64 0:7.2.5-1.el7.remi
  php72-php-mysqlnd.x86_64 0:7.2.5-1.el7.remi
  php72-php-opcache.x86_64 0:7.2.5-1.el7.remi
  php72-php-xml.x86_64 0:7.2.5-1.el7.remi
  php72-php-xmlrpc.x86_64 0:7.2.5-1.el7.remi

Dependency Installed:
  fontconfig.x86_64 0:2.10.95-11.el7   gd-last.x86_64 0:2.2.5-2.el7.remi
  jbigkit-libs.x86_64 0:2.0-11.el7     libtiff.x86_64 0:4.0.3-27.el7_3
  libwebp.x86_64 0:0.3.0-7.el7         php72-php-pdo.x86_64 0:7.2.5-1.el7.remi

Complete!

Open in new window


What else do I need to do for it to recognize php is installed?

I am on a Centos 7 server

Thanks,

Randal
0

Linux Distributions

27K

Solutions

20K

Contributors

A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).