Linux

66K

Solutions

33K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

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

Sign up to Post

I have a java backend application which is containerised using docker. The front end for this application is developed using npm and these static files are deployed in nginx. And it works perfectly. The api calls to the backed is proxy passed to the docker host using nginx reverse proxy.




Now i need to setup docker swarm for this backend application using manager and worker nodes.


So these are the questions which I need to ask you experts,

To which host should I need to configure proxy pass in nginx while using docker swarm?


Thanks in advance :)
0
10 Holiday Gifts Perfect for Your Favorite Geeks
LVL 1
10 Holiday Gifts Perfect for Your Favorite Geeks

Still have some holiday shopping to do for the geeks in your life? While toys, clothing, games, and gift cards are still viable options for your friends and family, there’s more reason than ever to consider gadgets and software.

mongodb SSL encryption with application makes slow.
Can somebody help on this
0
Need to understand Error and solution  if this is issue with Nagios app running on Linux server or if all resulted due to Network Glitch

Error in Alert is
"HOST CHECK_VMWARE_API.PL CRITICAL - Server version unavailable at 'https://192.168.1.17:443/sdk/vimService.wsdl' at /usr/share/perl/5.10/VMware/VICommon.pm line 734"

What all are precautionary actions required to avoid such error alerts ?
Is there nay recommendation before we configure Nagios for N number of alerts /Devices /VMware /vCentere  
How actually load is decided before we configure nagios for monitoring
0
Can you please help me write a shell script to replace three lines in the .profile file on Linux server? I have attached a sample .profile file
I need to Change the following line to:

export ORACLE_HOME=/odb/oem01/orabin/product/core/12.1.0.4.0
TO
export ORACLE_HOME=/odb/oem01/orabin/product/agent_13.2.0.0.0

export ORACLE_SID=agent12c
TO
export ORACLE_SID=agent13c

export ORACLE_RAC_SID=agent12c
TO
export ORACLE_RAC_SID=agent13c

Also add this to the pat:
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH

I need a script that I can run from OEM as an OS command on all 3000+ servers..
List.txt
0
Hi there, I need some help with creating a folder structure in Artifactory which is installed on an ECS cluster within an redhat server ec2 instance.this is my first time doing this and I have been a bash script file which creates the necessary folders...my question is,how do I make sure I run this bash script file correctly and how do I check afterwards that it has been successful created using the web UI or command line... thanks in advance for your help.
0
Hi ...
On Slitaz distro, I disabled the X-Window. Does anyone know how I can enable auto login on the console.

Thank You For YOUR Quick Prompts.
0
While setting up a PXE boot server on a CentOS 7 machine, I encountered a strange problem with TFTP. I cannot retrieve any files from the TFTP server without encountering a timeout problem. The boot process comes so far that I correctly get an IP address and a file name from the DHCP server. However, when the boot files are to be retrieved from the TFTP server, a "TFTP open timeout" message comes. If I manually make a TFTP connection to the PXE server from a local computer, I immediately get access to the server. But if I try with a "get pxelinux.0" command, I get another timeout message.
My firewall is set up correctly and it also makes no difference if I completely turn off the firewall. SeLinux is also disabled.
If I make a tcpdump on port 69 I get the following message:
12:34:33.477401 IP 172.16.1.202.ah-esp-encap > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:35.481131 IP 172.16.1.202.acp-port > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:39.490793 IP 172.16.1.202.msync > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:45.477712 IP 172.16.1.202.gxs-data-port > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:34:53.441801 IP 172.16.1.202.vrtl-vmf-sa > tools.dmz.tuxme.dk.tftp:  27 RRQ "pxelinux.0" octet tsize 0
12:35:03.384065 IP 172.16.1.202.newlixengine > tools.dmz.tuxme.dk.tftp:  32 RRQ "pxelinux.0" octet blksize 1456
12:35:39.414843 IP 172.16.1.202.newlixconfig > 

Open in new window

0
In a nutshell:
I use an apache2 as webdav server and have a nginx reverse proxy in front of it.
The download of larger files (~ 6 GB) works without problems only the upload of larger files (already from 450 MB) aborts exactly at the EOF with the error message "65 client intended to send too large body " (on nginx).

I tested all possible settings like client_max_body_size, proxy_buffering off; unfortunately without success. If I run apache2 without nginx reverse proxy everything works as expected.

Thanks for your help

reredok
0
I am having trouble trying to delete a file in linux
I have a file that I can see using ls -lrt called events.csv
but when I try to delete I get an error

ls -lrt
total 0
-rwxrwxrwx 0 root root 1048576 Jan 11 14:43 events.csv

sudo rm -rf  events.csv
<< does nothing >> i check back and the file is still there

sudo rm -rv events.csv
<< get error>
rm: cannot remove 'customer-events.csv': No such file or directory
0
Hi all,

 How to compare string within an array? That string contains backslashes, colon and paranthesis.

sample program:

use strict;
use warnings;

sub perl_func {
    my ($z, $x) = @_;

    print "\n";
    print "z: $z\n\n";
   
    my @lx=@$x;
    foreach my $tx (@lx)
    {
       
        if ($z !~ m|$tx|)
        {
            print "$z !~ $tx\n";
        }
        else
        {
            print "$z == $tx\n";
            return 1;
        }
    }
   
    print "\n";
    return 0;
   

}

#my @x = ("One", "Two", "Three", "Four", "Five");
#my $z = "Four";
#works fine for above x & z

my @x = ("One\\OnesPosition:Num (NumPerl)", "Two\\TensPosition:Num (NumPerl)", "Three\\HundresPosition:Num (NumPerl)", "Four\\ThosandsPosition:Num (NumPerl)", "Five\\TenThousPosition:Num (NumPerl)");
my $z = "Four\\ThosandsPosition:Num (NumPerl)";


if(perl_func($z, \@x))
{
    print "\nfound element\n";
}
else
{
    print "\nnot found element\n";
}
0
CompTIA Security+
LVL 12
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

Hi,

I have a security related question on Linux Ubuntu.
Can we remove sudo access to root console for power users.
But still allow admin to ssh to the servers with root password.
As a security measure is it a good idea to disable root access to everyone if  connecting to servers remotely.

Thanks
0
I'm trying to set up a samba share on an Oracle Linux 6.8 server, but even after I installed samba and set up the share in smb.conf, every time I go to the server through the IP (\\172.16.80.9) I keep getting a message that I can't connect.  I disabled the firewall (iptables/selinux), but it didn't work.  Am I missing something?
0
in Zabbix I imported the below tcp templates in Zabbix for tcp stats. But it only gives the counts. How can i get the destination data? for example when we run netstat we see foreign address and where the different types of connections are going to

https://share.zabbix.com/unsorted/tcp-state-count-on-linux
https://share.zabbix.com/operating-systems/linux/tcp-states

Thanks
abarnp
0
I'm trying to use sendmail to send a message with a custom "from" e-mail address.

The body of the message is a file, pasted below.
What I'm seeing is that when I specify a "From:" address, the e-mail doesn't get sent at all. When I specify a "Reply-To" the reply-to address is ignored, and when I send using both a "From" and a "Reply-To", the message doesn't get sent.
The SMTP file used in the e-mail is pasted below. Again, thanks in advance for any advice you can offer.

Any help would be greatly appreciated.


SUBJECT: Testreplytofrom
From: <accounting@company.com>
Reply-To: <accounting@company.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="FILEBOUNDARY"

--FILEBOUNDARY
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline

TEST MESSAGE
--FILEBOUNDARY

Open in new window

0
Currently I am setting up a Configuration Management System via Ansible.
My playbook site.yml is built with tags so I can start the different parts of the configuration individually.
The first part of the playbook works almost fine - I can run this part via the command "ansible-playbook site.yml --tags initial_config". All machines in my host group (hosts: dmzservers:!raspberrypi) are configured as expected. However, with the exception that a machine outside the host group is also attempted to configure:
PLAY RECAP
auth.dmz.tuxme.dk          : ok=42   changed=0    unreachable=0    failed=0
backend.dmz.tuxme.dk       : ok=43   changed=1    unreachable=0    failed=0   
db.dmz.tuxme.dk            : ok=42   changed=0    unreachable=0    failed=0   
develop.dmz.tuxme.dk       : ok=42   changed=0    unreachable=0    failed=0   
gateproxy.dmz.tuxme.dk     : ok=42   changed=0    unreachable=0    failed=0   
intra.dmz.tuxme.dk         : ok=42   changed=0    unreachable=0    failed=0   
ispconf.dmz.tuxme.dk       : ok=42   changed=0    unreachable=0    failed=0   
kolab.dmz.tuxme.dk         : ok=42   changed=0    unreachable=0    failed=0   
mail.dmz.tuxme.dk          : ok=42   changed=0    unreachable=0    failed=0   
mailproxy.dmz.tuxme.dk     : ok=42   changed=1    unreachable=0    failed=0   
master.lan.tuxme.dk        : ok=0    changed=0    unreachable=0    failed=1   
mastodon.dmz.tuxme.dk      : ok=42   changed=0    unreachable=0    failed=0   
proxy.dmz.tuxme.dk       

Open in new window

0
Gotta start 2019 with less stress.

I've been with Hostgator for years and never satisfied, but inertia kept me there.  A couple things recently came up and I gotta get out of there.

I pay $30 a month for their reseller package.  I have about a dozen clients static websites in there. I have the hang of how things work - cpanel and whm. i can move around to different client's cpanels when I log in as me / account owner.

Some have office 365 but some have pop / imap email with hostgator. I think that's the part that kept me from moving sooner - dealing with moving the mail somewhere else and not have them get all the old mail in their pop account, mail getting lost, etc.

1) Any recommendations for hosting companies these days?  Is what I have - reseller with cpanel and whm - common or uncommon?
2) Is moving mail a big deal? Do companies do that for you as part of the move?  Is it pretty seamless?

thank you!
0
Dear Experts,
 
I have a following setup:
 
[list]Home LAN connected to the Internet on 10.0.0.0[/list]
[list]Lab/Test LANs on 192.168.30.x & 192.168.40.x[/list]
[list]VMnet3 for .30 and VMnet4 for .40[/list]
 
I would like some of the machines in the Lab/Test LANs to access the Internet, so I'd tried to setup a router.. without having any success so far
 
Router (RHEL6.9):
eth0 = 10.0.0.100/24, GW: 10.0.0.1
eth1 = 192.168.30.254/24
eth2 = 192.168.40.254/24
 
#netstat -nr
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.0.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.30.0    0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.40.0    0.0.0.0         255.255.255.0   U         0 0          0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth2
0.0.0.0         10.0.0.1        0.0.0.0         UG        0 0          0 eth0
 
Desktop on .30 (also RHEL6.9)
eth0 = 192.168.30.16/24, GW: 192.168.30.254
 
#netstat -nr
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.30.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
0.0.0.0         192.168.30.254  0.0.0.0         UG        0 0          0 eth0
 
I can ping the GW at …
0
"/u11/nfs-server0" is a mount point for an nfs connection.  Redhat v 6.9 apps "du" & "df" counts the nfs mount “/u11/nfs-server0” as local disk consumed.

Here are the examples.
[chill@server0 u11]$ du -h --max-depth=1
121G    ./nfs-server0
207G    ./archive
93G     ./backup
421G    .

[chill@server0 u11]$ df-hP
Filesystem                                Size  Used  Avail  Use% Mounted on
/dev/sda14                                1.0T  421G  552G  44% /u11

Am I correct assuming that file system /u11 actually using only 300 GB of space and has about 675 GB of free space?
What will happened if I attempt to put 600 GB of data on /u11.  Per du/df /u11 would be out of space.
0
How to gain root access to a vulnerable Red hat Linux server?

I only have the following details.
1) There are 3 services running. (SSH, FTP and HTTP)
2) I managed to get some user username and password, however when i tried to login into the server, i recieved the error permission denied.
0
Big Business Goals? Which KPIs Will Help You
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Need expires headers to satisfy yslow on GMetrix.  I am on an Apache 2.4 Linux system.

When I use this code I get an 500 Internal Server Error

# Optimize cache-control
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault “access plus 1 month”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpg “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”
ExpiresByType text/html “access plus 3 days”
ExpiresByType text/xml “access plus 1 seconds”
ExpiresByType text/plain “access plus 1 seconds”
ExpiresByType application/xml “access plus 1 seconds”
ExpiresByType application/rss+xml “access plus 1 seconds”
ExpiresByType application/json “access plus 1 seconds”
ExpiresByType text/css “access plus 1 week”
ExpiresByType text/javascript “access plus 1 week”
ExpiresByType application/javascript “access plus 1 week”
ExpiresByType application/x-javascript “access plus 1 week”
ExpiresByType image/x-ico “access plus 1 year”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresByType application/pdf “access plus 1 month”
<IfModule mod_headers.c>
Header unset ETag
Header unset Pragma
Header unset Last-Modified
Header append Cache-Control “public, no-transform, must-revalidate”
Header set Last-modified “Mon, 1 Oct 2018 10:10:10 GMT”
</IfModule>
</IfModule> 

Open in new window


my headers in htaccess looks like this

# BEGIN Really_Simple_SSL_UPGRADE_INSECURE_REQUESTS
<IfModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
# END Really_Simple_SSL_UPGRADE_INSECURE_REQUESTS

Open in new window


The log says
[Sun Dec 23 12:59:33.053088 2018] [core:alert] [pid 7617:tid 140692416341760] [client 1.1.1.1] /data/web/abc.com/.htaccess: ExpiresDefault takes one argument, an expiry date code

Open in new window


Seems everything on the internet and the plugins are not suited for Apache 2.4.  Please help.

Thanks,
0
VirtualBox guest in windows 10, running a 10 GB xUbuntu client. I want to increase to 20 gb. After a lot if work i got the vmdk to 20 gb. But the  "actual size"  in VirtualBox is still only 10 gb. The partition is a vmdk file. (virtual size 20.00 GB, Actual Size 9.07 GB).

No tool i can find can see the file as a partition and increase it from windows, from inside xUbuntu I have the same problem. How can i get the actual size up to 20 GB?

(no i does NOT autoincrease, its just get full)
0
nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [org.apache.derby.jdbc.ClientDriver]

I am trying to create a spring application to access a apache derby db.

Here is the full message

org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'homeController': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field:
private net.codejava.spring.dao.ContactDAO net.codejava.spring.controller.HomeController.contactDAO;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getContactDAO' defined in class path resource [net/codejava/spring/config/MvcConfiguration.class]:
Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public net.codejava.spring.dao.ContactDAO net.codejava.spring.config.MvcConfiguration.getContactDAO()] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getDataSource' defined in class path resource [net/codejava/spring/config/MvcConfiguration.class]:
Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource net.codejava.spring.config.MvcConfiguration.getDataSource()] threw exception;
0
hello guys,
i've installed owncloud v 10 on centos 7 and i can access it only from the server but i can't access it using another pc although i can ping to the server and connect it using ssh session but failed to access it using http. so how can i fix it?
thanks
0
my spring jdbc program displayed this error...
This works on tomcat on windows, fails on linux.



 i am trying to access a apache jersey db,

HTTP Status 500 – Internal Server Error
Type Exception Report

Message Servlet.init() for servlet [SpringDispatcher] threw exception

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: Servlet.init() for servlet [SpringDispatcher] threw exception
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
      org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
      org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
      org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
      org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
      org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      …
0
I managed to run docker and install wordpress on ubuntu linux but can't seem to get the handle how I can edit the files within the dock as I get permission issues.
I think I am looking at it the wrong way about,
Could somone get me thinking the right way because  I love the performance for local development :).
(PHP ,Wordpress,MYSQL on NGINX).
0

Linux

66K

Solutions

33K

Contributors

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.