Linux

64K

Solutions

32K

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

Have a website.  I am trying to create a test website based on the main website to troubleshoot an issue.  I created the site using FileZilla.  I copied the files from the main site "internal.mysite.com" to "internaltest.mysite.com".

I logged into apache and modified the apache.conf file using "sudo nano /etc/apache2/apache2.conf"

Copied below
<VirtualHost *:80>
   DocumentRoot "/home/webserver/www/internal.mysite.com"
   ServerName internal.mysite.com
   <Directory "/home/webserver/www/internal.mysite.com">
       Require ip 172.16.2.0/24
       Require ip 172.16.10.0/24
       Require ip 172.16.20.0/24
       Require ip 10.0.0.0./255.0.0.0
       Require ip 127.0.0.1
   </Directory
</VirtualHost>

Open in new window


To
<VirtualHost *:80>
   DocumentRoot "/home/webserver/www/internaltest.mysite.com"
   ServerName internaltest.mysite.com
   <Directory "/home/webserver/www/internaltest.mysite.com">
       Require ip 172.16.2.0/24
       Require ip 172.16.10.0/24
       Require ip 172.16.20.0/24
       Require ip 10.0.0.0./255.0.0.0
       Require ip 127.0.0.1
   </Directory
</VirtualHost>

Open in new window


Then hit ctrl+x and then Y for save

Restarted server with "sudo service apache2 restart".

Server restarted successfully.

I can access internal.mysite.com but internaltest.mysite.com returns a DNS error -> can’t find the server at internaltest.mysite.com.

I did the exact same steps to a previous site and it works but this one is not.

I also checked the file permissions and ensured that internaltest.mysite.com matched internal.mysite.com.

Any ideas?
0
The Eight Noble Truths of Backup and Recovery
LVL 4
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Hello experts,

I am using a htaccess file for browser caching/ gzip /url rewrites.
I ussually use windows hosting where I can drop it in the root folder...
However now on a linux server when I try to upload it to the cgi-bin folder inside public_html folder it does nothing.
When uploaded to the root of public_html it generates a 500-error

Is the cgi-bin in the public_html folder the right location to upload this file or are there errors inside my rules?

Any help will be much appreciated!...

WKR RV

////

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
#ACTIVATE IMAGE CACHING ON STATIC SITES
#ExpiresByType image/jpg "access 1 month"
#ExpiresByType image/jpeg "access 1 month"
#ExpiresByType image/gif "access 1 month"
#ExpiresByType image/png "access 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
#ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access plus 1 month"  
ExpiresByType application/javascript "access plus 1 month"  
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
#ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-font-ttf    "access plus 1 month"
ExpiresByType font/opentype             "access plus 1 month"
ExpiresByType application/x-font-woff   "access plus 1 month"
ExpiresByType image/svg+xml             "access plus 1 month"
ExpiresByType …
0
Hi, please need guidance on how to fix the npm error. Thanks so much in advance.

# rpm --query centos-release
centos-release-6-6.el6.centos.12.2.x86_64

Open in new window


# node --version
v0.10.48

Open in new window


# npm --version

module.js:340
    throw err;
          ^
Error: Cannot find module 'npmlog'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /usr/lib/node_modules/npm/bin/npm-cli.js:18:11
    at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:86:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

Open in new window

0
I have really problems to understand makefile and its rules.
I created a makefile that works perfect. Now I want to remove objects before compile but it do not work with rm -f *.o
I get always the message "Missing seperator. stop"

# Build
# /opt/rh/devtoolset-4/root/user/bin/
clean:
    rm -f *.o

root := /usr/share/doc/xsd/examples

include $(root)/build/cxx/rules.make
include $(root)/build/xsd/tree-rules.make

XSDValidator: XSDValidator.o 05_bxf2.o
05_bxf2.o: 05_bxf2.cxx 05_bxf2.hxx
XSDValidator.o: XSDValidator.cpp 05_bxf2.hxx

Open in new window


Any Idea what I do wrong? Without "clean: rm-f *.o" it works well. I also tried to use a tab before "rm"
But nothing helps. It looks like "rm" do not work in makefile?
0
Hi,
I compiled my first app on Linux and I get an error:
./XSDValidator: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./XSDValidator)

Open in new window


I made a check:
strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX_3.4.1
GLIBCXX_3.4.1
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13

Open in new window


And yes, it is not present. But how this error comes? I use gcc 5.1.0 is this the problem?

The software I compile use xerces-c as depency but this was installed with yum on my machine so I think it will not install things that link against a wrong libstdc++, right?

How to avoid this linking to an wrong libstdc++ ?
0
Just looking for some tutorials on setting up a public (no auth) repo for the aforementioned versions of CentOS.  Does anyone have any suggestions where to start?  My goal is to host an RPM we create that has multiple versions.  I'd like to be able to do a yum update and have it pull that package.

Really looking for a place to start.

THanks!
0
Hi, Iam new to Linux and I have some problems compiling C++ code there.
A default "Hello World" software works fine. Compile and run well.

But now I want to add another code for XML and it looks like that I do something wrong in my makefile.

I use in my code:
# Build
root := /usr/share/doc/xsd/exmaples

include $(root)/build/cxx/rules.make
include $(root)/build/xsd/tree-rules.make

Open in new window


Bu the make/compiler give me the message that rules.make and other files cannot be found.
Can anyone help and explain what I did wrong?
0
I have a cloud database
The database  is postgresql and the operating system is Linux Unbuntu 16.04
The server has email configured

Each time i log in I get the attached message which suggest to me
that the system checks for mail and cant  find any mail . Thats why
it reports no mail in the message

My requirement is that the loggin name of the user logging in should be sent to
my email address  techsupport@datatronicsnig.com

What modification do i need to do in my login script to achieve this

How can i achieve  this functionality  for every login

O.A. Oluwole
login-message.PNG
0
Hi Everyone,
I have a Dell D830 with Ubuntu 17.04 installed.  It has a Broadcom Wireless adapter but:
>I cannot identify any WiFi network
>Appears that the WiFi adapter is not working

*I verified it is using a 3rd party adapter by following:
>Click the button at the far right side of the menu bar and select System Settings.
>In the System section, click Software & Updates.
>Switch to the Additional Drivers tab.

Any suggestions to make the WiFi work?
20170710_120341.jpg
0
This drive clicks constantly, about once every two seconds. I am suspecting a driver problem as

a. the drive checks out as being sound
b. the problem doesn't happen when it's being used under Linux

Any suggestions?
0
NFR key for Veeam Backup for Microsoft Office 365
LVL 1
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

I have a centos server sitting behind a proxy. I know the url contains zscaler and our windows servers are configured to use automatic script. Does anyone know how to use this type of proxy with CENTOS especially yum?
0
I am using putty with the attached configuration (visual) and I want to connect on the sqldeveloper on my Windows desktop using putty

I use this command below from  MAC or Linux, but ssh does not work on native windows. I connect back to sql developer on ip 127.0.0.1 (local host) via port 1580

ssh -C -f myUserId@LinuxProdServer -L 1580:OracleDBServer:1521 -N

Block diagram of desired SSH tunnel using putty
0
I need a little help understanding why the pecl install yaml is failing.

WHM/cPanel server
CentOS 6.9
PHP Version 7.0

I was able to get yaml to install under php 5.6 but would like it to work under 7.0 as I am using 7.0 in my development now.

Under php 5.6 I can see it in phpinfo.

yaml

LibYAML Support      enabled
Module Version      1.3.0
LibYAML Version      0.1.3
Directive      Local Value      Master Value
yaml.decode_binary      0      0
yaml.decode_php      1      1
yaml.decode_timestamp      0      0
yaml.output_canonical      0      0
yaml.output_indent      2      2
yaml.output_width      80      80

root@server [/usr/local/src]# pecl install yaml
downloading yaml-1.3.0.tgz ...
Starting to download yaml-1.3.0.tgz (37,075 bytes)
..........done: 37,075 bytes
8 source files, building
running: phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
configure.in:149: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:4139: _LT_SYS_MODULE_PATH_AIX is expanded from...
aclocal.m4:7278: _LT_LINKER_SHLIBS is expanded from...
aclocal.m4:8353: _LT_LANG_C_CONFIG is expanded from...
aclocal.m4:3255: _LT_SETUP is expanded from...
aclocal.m4:3184: LT_INIT is expanded from...
aclocal.m4:3219: AC_PROG_LIBTOOL is expanded from...

Open in new window

0
Dear Experts,

How to copy or transfer a file from one Linux server to multiple Linux server in same network from a single cmd or script ? It should be a single line cmd for copy my file to multipal servers, don't want to use separate line for every server.

for example:
scp report_zonal 192.168.7.111 192.168.7.112 192.168.7.113 192.168.7.114:/home/Zonal/Desktop

i dont know it is possible or any other way to make it possible, please suggest

Currently i am using this method, it is working also, but i don't want to use this process.

[root@200 ftp]# cat FileTransfer.sh
#!/bin/bash
# transfer file to server
cd /root/
#DC Zonal
scp report_zonal 192.168.7.111:/home/Zonal/Desktop
scp report_zonal 192.168.7.112:/home/Zonal/Desktop
scp report_zonal 192.168.7.113:/home/Zonal/Desktop
scp report_zonal 192.168.7.114:/home/Zonal/Desktop
0
I have the yara rule shown below from Kaspersky. I've put it in my Linux system running clamav-milter. I'd like to test this rule by sending a message. I've sent a message contaning string $a3, but it was not caught.

To test yara generally, I have created a simple rule with a single string and sent a message containing that string and it was caught, so yara rule checking is enabled.

Perhaps just sending string $a3 is insufficient? What does "uint16(0)" mean? That appears to be an "and" condition.
rule ransomware_exPetr {
meta:

    copyright = "Kaspersky Lab"
    description = "Rule to detect PetrWrap ransomware samples"
    last_modified = "2017-06-27"
    author = "Kaspersky Lab"
    hash = "71B6A493388E7D0B40C83CE903BC6B04"
    version = "1.0"

strings:

    $a1 = "MIIBCgKCAQEAxP/VqKc0yLe9JhVqFMQGwUITO6WpXWnKSNQAYT0O65Cr8PjIQInTeHkXEjfO2n2JmURWV/uHB0ZrlQ/wcYJBwLhQ9EqJ3iDqmN19Oo7NtyEUmbYmopcq+YLIBZzQ2ZTK0A2DtX4GRKxEEFLCy7vP12EYOPXknVy/+mf0JFWixz29QiTf5oLu15wVLONCuEibGaNNpgq+CXsPwfITDbDDmdrRIiUEUw6o3pt5pNOskfOJbMan2TZu" fullword wide
    $a2 = ".3ds.7z.accdb.ai.asp.aspx.avhd.back.bak.c.cfg.conf.cpp.cs.ctl.dbf.disk.djvu.doc.docx.dwg.eml.fdb.gz.h.hdd.kdbx.mail.mdb.msg.nrg.ora.ost.ova.ovf.pdf.php.pmf.ppt.pptx.pst.pvi.py.pyc.rar.rtf.sln.sql.tar.vbox.vbs.vcb.vdi.vfd.vmc.vmdk.vmsd.vmx.vsdx.vsv.work.xls" fullword wide
    $a3 = "DESTROY ALL OF YOUR DATA! PLEASE ENSURE THAT YOUR POWER CABLE IS PLUGGED" fullword ascii
    $a4 = "1Mz7153HMuxXTuR2R1t78mGSdzaAtNbBWX" 

Open in new window

0
Arnold and David helped me find an error I had in bashrc.  It looks like it is either line 8 or line 110 because under expert guidance I tried bash -x -c ".bashrc" and I got those line numbers .  one is an if and one is a case.  Apparently I don't understand bash syntax.   I changed .bashrc and tried to localize the aliases in .bash_aliases.  I then tried to move them back to find an error I was having in the aliases.  I can't make up my mind where to put it and it seems I've messed up bashrc.  It's kind of a seesaw.  Do you see a problem?
DOTbashrc
0
The topic is setting up remote admin GUI access for FreePBX on a virtual server. There is not an issue to resolve at the moment. The remote admin access will need to be set up in a couple of days and want to learn the correct config before attempting trial and error.
We have been using a different PBX app in the past, which was not compatible with a virtual machine environment. For that app, we had access to the admin interface via SSH port 443, and am not certain the same will apply for FreePBX
Thanks in advance ...
0
from the command line in MySQL how do I add a username and grant permissions?

I am using version 5.1 or should I have installed a newer version?
Also do I need to create a table ? I have already created the database.

Michael
0
Which driver to use for Seagate Barracuda 500GB 7200.12 ?
0
Back Up Your Microsoft Windows Server®
LVL 4
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

What file is giving me an error?
errorEE.png
0
I'm chasing what I think should be an obvious issue, but I can't find it.

The host is a Pogoplug E02 running Debian jessie.

Logged into the system as root, the following two commands turn the green LED on and off as expected.

root@www:# echo "default-on" > "/sys/class/leds/status:green:health/trigger"
root@www:# echo "none" > "/sys/class/leds/status:green:health/trigger"

Open in new window


Below is a little program adapted from one at https://github.com/suetanvil/ledflash/blob/master/ledflash.c.  To my mind this code should blink the green LED on and off a few times:

#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <syslog.h>
#include <string.h>
#include <sys/stat.h>

#   define FLASHFILE   "/sys/class/leds/status:green:health/trigger"
#   define ON          "default-on"
#   define OFF         "none"

void main() {
    FILE *ledfile;
    int status;

  ledfile = fopen(FLASHFILE, "w");
  if (ledfile == NULL) {
    printf("Unable to open '" FLASHFILE "' for write\n");
    printf("Error: %d (%s)\n", errno, strerror(errno));
    exit(0);
  }

  status = fputs("none", ledfile);
  sleep(1);
  status = fputs("default-on", ledfile);
  sleep(1);
  status = fputs("none", ledfile);
  sleep(1);
  status = fputs("default-on", ledfile);
  sleep(1);
  status = fputs("none", ledfile);
  sleep(1);
  status = fputs("default-on", ledfile);
  sleep(1);
  status = fputs("none", ledfile);
  sleep(1);
  status = fputs("default-on", ledfile);
  sleep(1);
  status = fputs("none", ledfile);
  sleep(1);
  status = fputs("default-on", ledfile);
  sleep(1);
  status = fputs("none", ledfile);

  exit(0);
}

Open in new window


The program's effect is exactly nothing. No error on the LED device file open, no blinking LED.  Clearly something is different between echoing the command from a console prompt, and writing it to the device from a program.  I don't know what it might be, though.

Any ideas?
0
how can I pipe standard error and standard error right to the screen

like if I do a sudo service start < some service>

and it fails is there a way to get verbose information  on why ?


thanks

I am new to this
0
Can anyone help with this?  I am porting a legacy c program from UNIX Tru64 to Intel64.  I have not had any luck in mapping the following options:
-source_listing
 -assume noaligned_objects
 -D_INLINE_INTRINSICS
-show source, header, statistics  

The complete compile options line is as follows:
 Tru64
 CGFLAGS=-source_listing -show source,header,statistics -assume noaligned_objects -O0 -D_INLINE_INTRINSICS

Intel64
I have identified -O0
I have not identified:
-source listing   I don't believe this is critical
-show source,header,statistics   I found -xc for source, but header is not the same, and nothing on statistics.
-assume noaligned objects   No information
-D_INLINE_INTRINSICS  No information
0
I am looking for a command that will tell me in the whole host if I have the rights to the entire file system , if any files have changed in the last one minute or 5 minutes

I thank you very very much in advance and will reward pts right away !!!!
0
Hi All,

I have qcow2 cloud image of sles 12u1. i have 2 users  "root" and "cloud".

when i am trying to login via key only root able to login but cloud not.

please elp me with some solution or suggestion
0

Linux

64K

Solutions

32K

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.