Linux

65K

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

Hi I have worked in the capacity of  Microsoft Exchange server and AD for sometime, but recently have received additional duties and one of them is reading email headers. For example making a determination of why an email was blocked, tagged etc.. on firewall appliance. Any guidance on where I can receive resources to learn RFC's and how internet email work. I don't see a lot of material but only unix resources like postfix and sendmail. I I have been kind of winging it and using google but would like some more formal information about this stuff.
0
Amazon Web Services
LVL 12
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

If my rsyslog.conf is configured to write *.info *.warn *.kern and some others to /var/log/messages is there any way to identify the local6 *.info messages apart from the *kern and *.warn and others in  /var/log/messages? I've noticed sometimes that the messages contain kern and warn but not just sure what *.info are and if there's an easy way to identify them
I'd rather not have to configure /etc/rsyslog.conf to have another log file for just *.info if it can be avoided. If there's no other way then I might just have to do it but I'm curious what the local 6 information messages actually are.
0
Does anyone know How can I see the interface up and down logs in the ubuntu 18.4? there should be something like /var/log/dmesg shows logs
0
Ubiquiti Unifi NVR running on Ubuntu 16. I cannot seem to find how to configure email alerts?  Can it now be done unless you have the physical NVR?
0
how to grep multiple awks

$ awk '{print;}' employee.txt
100  Thomas  Manager    Sales       $5,000
200  Jason   Developer  Technology  $5,500
300  Sanjay  Sysadmin   Technology  $7,000
400  Nisha   Manager    Marketing   $9,500
500  Randy   DBA        Technology  $6,000


$ awk '{print $2,$5;}' employee.txt
Thomas $5,000
Jason $5,500
Sanjay $7,000
Nisha $9,500
Randy $6,000

in above query how to tweak to see  see all records whose name starts with 'S' and Salary greater than '6000'

also
in above query how to tweak to see  see all records whose name starts with 'S' and Salary greater than '6000' and Department Starts with  'T'


100  Thomas  Manager    Sales       $5,000     08/08/1988 6:00:01AM
200  Jason   Developer  Technology  $5,500 08/08/1989 7:00:02AM
300  Sanjay  Sysadmin   Technology  $7,000 08/08/1982 9:00:03AM
400  Nisha   Manager    Marketing   $9,500 08/08/1981 10:00:04AM
500  Randy   DBA        Technology  $6,000 08/08/1981 11:00:5AM
if it has joined date and time as above
in above query how to tweak to see  see all records whose name starts with 'S' and Salary greater than '6000' and Department Starts with  'T' and joined between particular date time to particular date time say  08/08/1982 9:00:03 AM till 08/08/1981 10:00:04AM
i need to use above in a zgrep command

https://www.thegeekstuff.com/2010/01/awk-introduction-tutorial-7-awk-print-examples/
0
Dear Experts

We are having web-based application on linux which uses LAMP  which is production server recently the web-based application stops working for some time later it resumes back and when checked the /var/log/messages can find the following
kernel: Out of memory: Kill process 249606 (httpd) score 32 or sacrifice child
Sep 13 13:19:27 NYSWB kernel: Killed process 249606, UID 48, (httpd) total-vm:2826972kB, anon-rss:1334424kB, file-rss:2044kB
attached /cat/proc/meminfo and also fdisk -l , the system has 32G of physical RAM,
please suggest should i have to create one more swap partition OR should I have to edit swap config if yes please help me with steps, or any other steps on any config to be done please let me know, thank you.
memandfdisk.txt
0
I have several linux systems. Normally I login on them with my account, and after I login i execute sudo -s, so I can get admin privileges.
Sometimes I need to edit some files or copy some files out of the linux systems and in the past I ofter used the winscp program.
Unfortunately when I login with winscp with my account I don't have admin privileges, and thus I am not able to open and edit needed files, I am not able to copy files out of the system. Can you tell me how to login with winscp with admin privileges
0
I'd like to determine in my bash script which NIC the default gateway is on in order to determine if i need to add static routes via the script or not. Since there are two instances of 0.0.0.0 in the routing table where the default gateway is I'n trying to determine the NIC mentioned in the routing table where there are two instances of 0.0.0.0. Then if it matches ${DftNic} below I no I won't have to add static routes on the server. Scratching my head on this so any help would terrific.

DftNic=$(ip route show | grep default  awk '{print $7}')
0
Hi,

I have a linux based system where I incorrectly assigned the MAC address within U Boot.
Unfortunately "setenv ethaddr" is disabled in this version (Can't overwrite "ethaddr")

Is there an alternative way to remove this environment variable without using the standard command?

Any ideas would be appreciated.

Many thanks,

James
0
Dear EEs, is there any free software for Linux which can serve similar like Online Office server in Window?

We'd like to edit document online on web browser on OwnCloud.

Many thanks!
0
10 Tips to Protect Your Business from Ransomware
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Dear Wizards, I'm testing the owncloud in Ubuntu 14 but got these troubles:
1. the LDAP features are unavailable, I tried to reboot server but it did not help, we had php5-ldap packages

oc2.PNG
oc1.PNG

2. Can we edit documents online like GoogleDrive?

Can anyone help please? Many thanks!
0
Dear Experts

I am running crm system web-based which is LAMP stack the web root is /var/ww/html/crmapp and the CRM system reads the files from windows share that is from 2 windows server and executes the logic as per the process developed but I am getting following error from /var/log/messages , attached /etc/fstab, df -h and nswitch.conf, can you please help me in first windows share mount to the same path of web root is it recommend and also is the fstab entires are correct please suggest as the system is very slow.

automount[2560]: syntax error in map near [ * -fstype=autofs,-Dhost=& file: ]
Sep 11 20:06:15 NYSWB automount[2560]: syntax error in map near [ * -fstype=autofs,-Dhost=& file: ]
Sep 11 20:06:17 NYSWB automount[2560]: syntax error in map near [ * -fstype=autofs,-Dhost=& file: ]
Sep 11 20:06:19 NYSWB automount[2560]: syntax error in map near [ * -fstype=autofs,-Dhost=& file: ]
Sep 11 20:06:21 NYSWB automount[2560]: syntax error in map near [ * -fstype=autofs,-Dhost=& file: ]
Sep 11 20:06:23 NYSWB automount[2560]: problem reading master map, maximum wait exceeded
Sep 11 20:06:23 NYSWB automount[2560]: automount: warning: could not read at least one map source after waiting, continuing ...
Sep 11 20:06:23 NYSWB automount[2560]: syntax error in map near [ * -fstype=autofs,-Dhost=& file: ]
fstabanddf.txt
0
Dear Experts

it is observed the  crm application running on LAMP stack often crashes, users unable to use the application webserver is on one server and database mysql 5.5 is on another server did perform the mysql tuner and attached is report, the system has 64G RAM as per the recommendations from mysql tuner can I set my.cnf as per the following, please suggest
total physcial ram capacity is 64G
based on the mysql tuner recommendations should I have to to set as per the below
innodb_buffer_pool_size = 55.2G
innodb_log_file_size= 25% of above i,e 55.2 which is 13.75G
please suggest can I change in my.cnf as above.
mysql-tunerlog.txt
0
Hi there,

I copied the OS drive from the Azure environment as I want to work on a copy of the VM locally instead of in the cloud.  When I turn on the VM, it fails because it is trying to attach a data disk that I didn't download.  The data disk is 1TB so I don't want to download it just to attach it and not use it.  How can I fix this copied VM so that it only tries to boot and not look for this second drive?  I believe I can remove it by putting int he root password so that I can do some maintenance, but with Azure VMs, the root password isn't set and I don't want to change it just in case something happens on the live VM.   Is there another way around it?

I'm getting these errors:

fsck.ext4: Unable to resolve 'UUID=451a8a0d-0c99-4b34-8702-361627fda1a2a' [FAILED]
*** An error occurred during the file system check.  
Give root password for maintenance (or type Control-D to continue):

Thanks!!
0
Dear Experts
We are having CRM application which is web-based runs on LAMP stack. the operation team reports between specific time period user get time out when they save the records or convert the records or retrieve the records, can you please suggest on how to capture log files which occurs during that time for example 5pm to 6pm, only during this time I would like to capture a following log files.
1) /var/log/mysql.log
2)/var/www/html/crmapp/crm.log
3) /var/log/slowquerylog
4)/var/log/httpd/error.log
please help with steps on above 1 to 4 log capture during specific time period , this will be helpful to investigate , thank you very much.
0
How do I update BIOS on Centos?

I'm running Centos 7 on a Lenovo m83 and I can't figure out how to update the bios. I'm very new to Linux so if anyone can help me out I'd appreciate it.

https://support.lenovo.com/us/en/downloads/ds035753

I downloaded fbj9d1usa.iso from the site, threw it onto a flash drive, and now I can't figure out how to navigate to it or run it.
0
please advise the clear steps..
How to make log rotation by file size in apache-tomcat
0
Hi Experts,

     I had build and run a docker image like this.

docker build -t harvest-trove:1.0.3 .
docker run --name trove_pull ${trove_environment[@]} -d -restart always harvest-trove:1.0.3 start pull                 

Open in new window


I want to use docker compose for the above two commands

I had created the docker compose like this.

version:'3'
services:
   harvest-trove:
      build: .
      image: harvest-trove:1.0.3
      volumes:
                -  .:/home/trove
           env_file:
        -  web-variables.env
            command: python3 manage.py migrate
  trove-pull:
    container_name:trove-pull     
    image: harvest-trove
    env_file:
       - web-variables.env
       depends_on:
         - harvest-trove
       command: harvest-trove:1.0.3 start pull
       restart:always

Open in new window


when I run docker-compose up I get the following error.

error with docker-compose up
Please help me in fixing this issue.

With Many thanks,
Bharath AK
0
How to connect already running mariadb container

I found this query

$ docker run --name appName --link some-mariadb:mysql -d application-that-uses-mysql

i am confuse with the syntax ?
can any one tell me how to use this ??
0
Exploring SharePoint 2016
LVL 12
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Hi EE,

Running the command:

ss -t | grep 22


Result:

State      Recv-Q Send-Q                                         Local Address:Port                                             Peer Address:Port
ESTAB      0      0                                                  127.0.0.1:59392                                               127.0.0.1:38537
ESTAB      0      52                                              10.2.112.119:ssh                                                10.98.4.13:64686
ESTAB      0      0                                                  127.0.0.1:38537                                               127.0.0.1:59392
ESTAB      0      0                                                  127.0.0.1:59392                                               127.0.0.1:38535
ESTAB      0      0                                                  127.0.0.1:38535                                               127.0.0.1:59392

What is the correct syntax for only displaying connections that are using port 22 for comms?

Any assistance is welcome.

Thank you.
0
Hi EE,

Trying to find the OS name of a very old version of Linux the two commands I have run are below:

uname -r
2.6.32-358.el6.x86_64

uname -a
Linux uch-crhotp-01 2.6.32-358.el6.x86_64

Any other commands I could run that could give the OS name and version?

Any assistance is appreciated.

Thank you.
0
I created a 301 redirect on .htaccess file on linux shared server website

I did it incorrectly and have changed redirect to another website

But firefox browser windows 10 (my machine only: I did not try on other computers) still has first redirect.
I dont want to close browser or restart my windows 10 computer
0
How do you append the output value of a command  that is run plus the value of other variables to a log file in a bash script?
This is what I have just now

#!/bin/bash
host=$(hostname)
date=$(date '+%d%m%Y:%H%M)
log="installlogfile.txt"
runbinary  2>&1 | tee -a ${installlogfile.txt}  <- instead of this i want to be able to append also ${date} and ${host} to the installlogfile.txt but tee -a with multiple variables doesn't work. Any ideas on how to do this in bash would be much appreciated. If i echo or print the variables before i run the command there would be newline characters and I would like the output in the log file to be $(hostname) ${date} output from the command.
0
How can I Read more than 10280 bites data using PHP
$read = socket_read($sock,10240);
it can showing max 3000 bites.
0
previous answer to
https://www.experts-exchange.com/questions/29117145/non-www-version.html

If you mean what I think you do, you can set up a .htaccess file to do this. In there, you can create a rule to redirect users to a specific url. So, if they type in www.yoursite.com it will redirect to http://yoursite.com

can I do this with my server
0

Linux

65K

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.