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

Ubuntu 16.04.1 LTS

Trying to add a plugin for Nagios 4.3.4 core  

https://github.com/op5/check_vmware_api

Part of the instructions are to run this

root@tgcs017:/usr/local/nagios/libexec# sudo yum install openssl-devel perl-Archive-Zip perl-Class-MethodMaker uuid-perl perl-SOAP-Lite perl-XML-SAX perl-XML-NamespaceSupport  perl-XML-LibXML perl-MIME-Lite perl-MIME-Types perl-MailTools perl-TimeDate uuid libuuid perl-Data-Dump perl-uuid libuuid perl-Data-Dump perl-UUID cpan libxml2-devel perl-libwww-perl perl-Test-MockObject perl-Test-Simple perl-Monitoring-Plugin perl-Class-Accessor perl-Config-Tiny
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
root@tgcs017:/usr/local/nagios/libexec# yum repolist all
repolist: 0
root@tgcs017:/usr/local/nagios/libexec#

Open in new window


I ran this

root@tgcs017:/usr/local/nagios/libexec# yum-config-manager --enable Universe
root@tgcs017:/usr/local/nagios/libexec# yum-config-manager --enable Main
root@tgcs017:/usr/local/nagios/libexec# yum-config-manager --enable Restricted
root@tgcs017:/usr/local/nagios/libexec# yum-config-manager --enable Multiverse

Open in new window


I do not which repository this is looking for

root@tgcs017:/usr/local/nagios/libexec# yum repolist all
repolist: 0
root@tgcs017:/usr/local/nagios/libexec#

Open in new window



Any ideas?

Thank you

Tom
0
Microsoft Azure 2017
LVL 13
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

i'm using ubuntu 18.04 and i am trying to learn perl and get a window to appear like visual studios where i can create buttons and drop-down boxes, etc and i cannot seem to gt it installed.  i used https://www.perl.com/pub/2001/03/gui.html/ and i cannot get their examples:ptked and ptksh to execute.  these are listed in the paragraph right above: pTk Core Concepts.  is there a better example or do you see what i'm missing?
0
Can you someone provide guidance to setup SSH on Ubuntu Server running a small home network securely so we can remotely do work on our pIHole?
0
To ensure consistent upgrades across multiple hosts over a period of several weeks.We would like to update our non-production hosts several weeks before we upgrade
our production hosts, but would like to ensure the same version for both regardless of new updates being released within that time period. But I don't have satellite. Is it possible to download to a local depot and upgrade from there?
0
Hi Experts,

I get the following error as below for wagtail (Django application) inside a Docker container.  Please see the uwsgi logs inside the docker container as below.


*** Starting uWSGI 2.0.18 (64bit) on [Mon Mar  4 03:56:36 2019] ***
compiled with version: 5.4.0 20160609 on 04 March 2019 01:00:36
os: Linux-4.4.0-1057-aws #66-Ubuntu SMP Thu May 3 12:49:47 UTC 2018
nodename: e56d42de8c73
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /home/ntdl/code
writing pidfile to /tmp/ntdl.pid
detected binary path: /usr/local/bin/uwsgi
setgid() to 33
setuid() to 33
chdir() to /home/ntdl/code
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /tmp/ntdl.sock fd 8
uwsgi socket 1 inherited UNIX address @ fd 0
inherit fd0: chmod(): No such file or directory [core/socket.c line 1797]
Python version: 3.6.2 (default, Jul 17 2017, 23:14:31)  [GCC 5.4.0 20160609]
Python main interpreter initialized at 0x971510
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 543168 bytes (530 KB) for 20 cores
*** Operational MODE: threaded ***
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x971510 pid: 24 (default app)
*** uWSGI is running in 

Open in new window

0
Dear Wizards, I got this error when restored a Linux VM from recovery media iso file.

The username/password are correct for sure. Can you please suggest?  Many thanks!

e.PNG
ee.PNG
path.PNG
0
Hi Experts,

I get the following error when I run the docker

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/NTDL-TEST/Harvest-Trove-Pictures# sudo docker start trove_pull
Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"start\\\": executable file not found in $PATH\"\n"
Error: failed to start containers: trove_pull

Open in new window


the docker file contents are as follows

FROM ubuntu:16.04

MAINTAINER bharath-ak@nt.gov.au

RUN apt-get update -y
RUN apt-get install -y software-properties-common python-software-properties curl
RUN add-apt-repository -y ppa:fkrull/deadsnakes

RUN apt-get update -y && apt-get install -y curl
RUN apt-get update -y && apt-get install -y \
        git \
        python3.6 \
        python3.6-dev \
        nginx \
        sqlite3 \
        nodejs \
        build-essential \
        libmagickwand-dev \
        cron \
        nginx \
        python3-pip

RUN rm -f /usr/bin/python3
RUN ln -s /usr/bin/python3.6 /usr/bin/python3
#RUN curl https://bootstrap.pypa.io/get-pip.py | python3


RUN mkdir -p /home/trove/trove
WORKDIR /home/trove


COPY . .
COPY ./ ./
RUN chmod -R 755 /home/trove
RUN chown -R www-data:www-data /home/trove
COPY . .

COPY build/docker/uwsgi_params .
COPY build/docker/uwsgi.ini .
COPY trove-variables.env .
RUN pip3 install --no-cache-dir uwsgi
RUN pip3 install --no-cache-dir -r requirements.txt

COPY build/docker/start 

Open in new window

0
I am trying to install partkeepr.org on a Ubuntu 16.04LTS machine

- It is running LEMP with nginx

When the install starts, it prompts that Symfony is not installed.

Symfony error message https://prnt.sc/mqmr0o

I have installed Symfony and it's still not working.

Anyone ever used Symfony and can give this Linux neophite a few tips to make it work?
0
AWS Design help

I have a Ubuntu server (basically a LAMP stack) hosted on Linode. There's a PHP script that gets heavy usage that I'd like to move to AWS (along with the DB it uses).

I was thinking of putting the PHP Script on AWS Elastic beanstalk and having it connect to an Aurora auto scaling MYSQL database.  Most of the PHP script does read operations with the exception of a call to increment a hit counter.

How do I go about keeping the master database (on linode) and the AWS RDS Aurora database in Sync so I can offload the heavily-used PHP script

Or am I completely going about this the wrong way .. please advise
0
force ubuntu/debian netinstall to use a specific variant of debian-installer

i've run into various changing bugs with the udeb distribution.
over the time, the ubuntu maintainers change stuff and in the end there is no way to get something reliable.
installs became sluggish since a kernel hange in january, now thy switched to a new version of glibc ( 2.23-0ubuntu11 with the introduction of known bugs dating from years ago ) which breaks the installer by producing segfaults.

does any of you know a way to use an older version of udeb in preseed ?

i know i can setup my own debian mirror, but i'd need to mirror both the udeb and the deb part. i'm ok to mirror udeb alone if that is feasible but AFAIK preseed only offers a single choice for package sources. maybe there is a way to use local files i can grab on an older ISO for udeb only ?

ideas ?

btw, i'm installing ubuntu-xenial should that matter.
yes i know it is outdated. no i do not currently have a choice in this case. please do not discuss that point.

thanks for your help
0
Introduction to R
LVL 13
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Our RHEL servers have no access to Internet, so I download the packages & install at command line.

Refer to attached errors after I've installed the following with no error:

cd /var/tmp/clam
rpm -ivh ./clamav-filesystem-0.101.1-1.el7.noarch.rpm
rpm -ivh ./clamav-data-0.101.1-1.el7.noarch.rpm
rpm -ivh ./libpcre2-8-0-10.32-3.1.x86_64.rpm
rpm -ivh ./clamav-lib-0.101.1-1.el7.x86_64.rpm
rpm -ivh ./clamav-0.101.1-1.el7.x86_64.rpm
rpm -ivh ./clamav-scanner-systemd-0.101.1-1.el7.x86_64.rpm
rpm -ivh ./clamav-server-systemd-0.101.1-1.el7.x86_64.rpm
rpm -ivh ./clamav-unofficial-sigs-5.6.2-3.el7.noarch.rpm
rpm -ivh ./clamav-update-0.101.1-1.el7.x86_64.rpm
rpm -ivh ./clamd-0.101.1-1.el7.x86_64.rpm

What did I miss that  the file clamd can't be found in the entire RHEL7 server?
We'll then work on the PrivateMirror freshclam error after we fix the missing clamd first.

Further attempts:
==============
[root@pjwcsd01 /]# systemctl enable clamd.service
Failed to execute operation: Access denied
[root@pjwcsd01 /]# id
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[root@pjwcsd01 /]# systemctl enable clamd.service
Failed to execute operation: Access denied
[root@pjwcsd01 ~]# systemctl enable clamd@scan.service
Created symlink from /etc/systemd/system/multi-user.target.wants/clamd@scan.service to /usr/lib/systemd/system/clamd@scan.service.
[root@pjwcsd01 ~]# systemctl start clamd.service
Failed to start …
0
Hi Experts,

I have issue with running npm run script with forever.  Please find below forever.json

[
   {
      "uid": "app1",
      "append": true,
      "watch": true,
      "script": "npm run pack "
   },
   {
        "uid": "app2",
        "append": true,
        "watch": true,
        "script": "npm run render-prod"
   },
   {

        "uid": "app3",
        "append": true,
        "watch": true,
        "script": "npm run django8000"
   }
]

Open in new window


when I run forever start forever.json  I get the following error

[/code]
root@ip-10-252-14-11:/home/ubuntu/workarea/ntdl-2# forever start forever.json
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: npm run pack
info:    Forever processing file: npm run render-prod
info:    Forever processing file: npm run django8000
error:   Cannot start forever
error:   script /home/ubuntu/workarea/ntdl-2/npm run pack  does not exist.
[/code]

 "scripts": {
 "runapp8000": "concurrently --no-color \"npm run pack \" \"npm run render\" \"npm run django8000\"",
}

Open in new window

Please help me in resolving this issue.

with many thanks,
Bharath AK
0
In Ubuntu 16.04LTS I'm suddenly unable to update apt from the previous to current version using either apt or dpkg.
Dpkg results below it simply hangs forever at the point I Ctl-C it.

apt-utils_1.2.29ubuntu0.1_amd64.deb
apt_1.2.29ubuntu0.1_amd64.deb

~# dpkg -i apt_1.2.29ubuntu0.1_amd64.deb
Selecting previously unselected package apt.
(Reading database ... 132298 files and directories currently installed.)
Preparing to unpack apt_1.2.29ubuntu0.1_amd64.deb ...
Unpacking apt (1.2.29ubuntu0.1) ...
Setting up apt (1.2.29ubuntu0.1) ...
^C^Cdpkg: error processing package apt (--install):
 subprocess installed post-installation script was interrupted
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Errors were encountered while processing:
 apt

How do I go about fixing this? I can't update the system at this point.
0
Hi Experts,

I get a bad gateway when running the web application from docker.

I had installed nginx inside the docker container.

for eg,

docker gateway is 1.2.3.4

public ip is 4.3.2.1

I create the environment for the docker container

declare -a ntdl_environment=( -e ES_CONNECTION=1.2.3.4:9200 -e DATABASE=postgres://user:****@1.2.3.4/ntdl -e LOCAL_URL_PREFIX==https://ntest-dev.s3.amazonaws.com -e IIIF_SERVER=http://4.3.2.1/iiif -e FACEBOOK_APP_ID=000000 -e CLOUD_WATCH=true -e AWS_ACCESS_KEY_ID=akz44 -e AWS_SECRET_ACCESS_KEY=******** -e AWS_DEFAULT_REGION=ap-abct-2 -e S3_BUCKET=abc-test-dev -e GENERIC_SERVER_NAME=http://4.3.2.1 -e SEARCH_PATH=/ -e SEARCH_DOMAIN=http://4.3.2.1 -e HANDLE_SITEMAP_PATH=https://s3-test.amazonaws.com/ntest/sitemap/sitemap.txt.gz -e DEBUG=true)

Open in new window


I had run the following commands to run the docker container

docker run --name ntdl -d --restart always  ${ntdl_environment[@]} f27af16c9ed6

to go inside bash shell for the docker container i had run the follow command from command prompt

docker exec -it ntdl /bin/bash

when I run gateway ip for elasticsearch it is running fine inside docker
I get the following results it is working fine

root@16a1d7df5399:/home/ntdl/code# curl -XGET 1.2.3.4:9200
{
  "name" : "C****D",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "FG4Sgll3Rau***6nQ",
  "version" : {
    "number" : "5.6.4",
    "build_hash" : "8bbedf5",
    "build_date" : "2017-10-31T18:55:38.105Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.1"
  },
  "tagline" : "You Know, for Search"
}

I had checked nginx status inside docker it is working fine.

root@16a1d7df5399:/home/ntdl/code# service nginx status
 * nginx is running

curl -XGET 'localhost' inside the docker gets the following below error


Open in new window

0
I just installed Ubuntu server 18 and trying to get netplan to take my static IP but not having luck.

Can someone assist me with this?

This what I entered but it's not working.

netplan
0
can i  do voice recognition in ubuntu 18.04?  i would like to start applications like a web browser or spreadsheet application.  i've used dragon naturally speaking in windows but i like the linux os better.  i've asked this question before but i caught a bad cold and couldn't pay much attention to it.
0
When application observium is trying to write to mariadb there is a recurring error:

[2019/01/25 13:24:19 -0800] poller.php(142737): Failed dbQuery (#1114 - The table 'ports_cbqos' is full),
Query: INSERT INTO `ports_cbqos` (`device_id`,`port_id`,`policy_index`,`object_index`,`direction`,`PrePolicyPkt`,
`PrePolicyByte`,`PostPolicyByte`,`DropPkt`,`DropByte`,`NoBufDropPkt`)  
VALUES ('132','11977','301990276','301990277','output','0','0','0','0','0','')

This adds up to some 10GB of logging per day. This is running on centos. Any thoughts on how I could
fix this error? There appears to be plenty of disk space.
0
I have a Solaris Clam AV repository server (in DMZ) working already, getting signature
updates every hourly.

Next, I have an internal RHEL6 server:
1. Need a link to download all the pre-requisite packages for Clam AV as well as Clam package
2. Can provide me a URL to get a step-by-step guide on the installation & how to get updates
    from the repository Solaris server
3. How to get on-access scan working on RHEL6 ? Ideally not to add fanotify or too many
    3rd party packages
0
When you change a file in the /etc/cron.d/ director - do you need to restart cron for the change to take effect? This is CentOS
0
Bootstrap 4: Exploring New Features
LVL 13
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

I inherited a Cent-OS Unix system and in our password vault there are passwords for the SQL user and a few
other things. But nothing for user "root". Is it possible that during the setup of the system that the root account
was disabled or removed and individual users were just made sudoers with access to everything with sudo?
Or would that be an uncommon practice?
0
Moving from Windows to Linux...

Dears,

I am about to embark in the journey of Java programming and I am seriously considering to do a switch to Linux (Ubuntu ? Zorion ? Centos???etc..).

 I would still need to run few apps on Windows, But I have made peace with this and I will be using VirtualBox VM for those specific apps. I have a powerful Laptop. and enough space.(SSD).

My question is which flavor is best for this ? (Development Platform for JAVA , Groovy, Docker...)
I need something solid and reliable..

I have read a bit and it seems that Ubuntu 18.04 is the latest stable one ... and preferable to 18.10

Please your feedhacks...

Thanks
0
Ubuntu freezes and shuts down laptop when writing to c drive.

this same command runs fine on one laptop but crashes on another....

user@DESKTOP-NNT86U6:/mnt/c/unix$ sed 's/[^,]*/"&"/g' test2.csv > testx.csv
0
I need to increase max_input_vars on an Apache 2.4, Amazon Linux with PHP 7.2 that is running php-fpm to 3000.  I changed php.ini restarted php-fpm and apache but there is no change.

Where do I make the change so that max_input_vars is changed?

Here is a screenshot of php info

https://gyazo.com/e1242115eabae9cc0b870bc7f9ab2ca3
0
SYSTEM
Ubuntu Linux 16.04
Android Phone

BACKGROUND
We are on the floor of a convention and trying to connect our linux machine to our Android hot spot. There are too many WiFi hotspots and we cannot find the one from our phone.

QUESTION
On our Linux machine, how to find the hotspot that is being generated by our Android phone? Is there a way to search for the specific hotspot name? Is there a way to turn off the other 100 or more hotspots that are filling up the queue?
0
I need to copy a file from one Ubuntu server to another.

They are two servers in the same AWS VPC and are in the same Public Subnet. They are both running Ubuntu (Ubuntu 14.04.5 LTS and Ubuntu 18.04.1 LTS, respectively).

I've opened up the Security Group for BOTH Server using Port 22. I also confirmed that openSSH is running by using this command "ps -A | grep sshd" and seeing process ID's.

I created a Text file for testing.

Here's the command I used to copy between servers:

scp ubuntu@**.*.**.***:/usr/local/thomtesttext.txt ubuntu@**.*.**.***:/usr/local/testtext.txt

Open in new window


This is the error I'm seeing:
ssh: connect to host **.*.**.*** port 22: Connection timed out

Open in new window


What am I doing wrong? How can I get an AWS Ubuntu Server to copy files between them?

Thanks for your help!
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).