Linux

65K

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

Hi Experts.

I'm having a sql file about 3.5GB with some tables about 7 millions records , and a Ubuntu 16.04 server configured to run on 32GB RAM. (Boot To RAM)
When importing that sql file, its took about 3 hours and a half to finish.
I have try using some parameters change as we can find on the Internet like max_allowed_packet... but the time reduce not so much.
So i would like to know if there's any way to improve performance when importing such a large sql file.

Thanks and Best Regards.
0
Configuration Guide and Best Practices
LVL 1
Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

I'm taking on a few clients in 2018 and by 2019 I hope to have enough of a portfolio to pay rent by taking on new clients full time.

I am going to offer hosting to my clients, renting out VPS servers and providing security updates, SSL certificates for maybe $25 a month.

I was thinking it would be best to pool money and rent a 8 core 16GB server and host sites on it. I figure the sites can handle more fluctuations of traffic.

I don't know how to monitor this.

I was going to use pingdom.com or a similar service to make sure the sites are always up and that I'm notified if they go down.

What would be the best way to monitor the server resources that the sites take up. Is it as primitive as just keeping stats or can we do better than that?

Also is $25 a good price to charge?
0
I have an AMI amazon Linux , In the SAME VPC I have an RDS database running


I cannot even telnet over port 3306 to this RDS instance , I have added port 3306 on the network access list , in the security group and I am not sure where else I have to open port 3306 ?

New to AWS and  confused

I know the RDS aurora database is running and the connection string is right

If I dig it
[ec2-user@ip-172-xxx-4-103 ~]$ dig gs-db-instance1.cdtxxxtqfzr.us-east-1.rds.amazonaws.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.56.amzn1 <<>> gs-db-instance1.cdtmxxxxqfzr.us-east-1.rds.amazonaws.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47907
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

If I telnet over port 3306 I get this
[ec2-user@ip-172-xx-4-103 ~]$ telnet gs-db-instance1.cdtxxxxxxxxfzr.us-east-1.rds.amazonaws.com 3306
Trying 172.xx.1.78...
^C
0
Hi All,

I was wondering if anyone can point me in the right direction. I am currently trying to set up a monitoring system for our internal solr system with Nagios monitoring system with a plugin called Opsview, I would like to test this in a virtual environment such as Ubuntu before I roll this out in a live solr server but essentially I am trying to get alerts for the solr system.

I am currently using this as a guideline.

https://leanjavaengineering.wordpress.com/2011/12/07/monitoring-apache-solr/

If anyone has good information that can help, please let me know.

Thanks.
0
AWS AMI getting the below error in the logs.

This seems to be tie with the intermittent nagios alerts.


**Subject: PROBLEM jenkins/Memory is CRITICAL

Notification Type: PROBLEM

Service: Memory
Host: jenkins
Address: jenkins
State: CRITICAL

Date/Time: Fri Dec 15 09:36:12 UTC 2017

Additional Info:

... has gone stale.

Open in new window



129260ms.
Dec 15 11:13:47 ip-172-31-16-141 dhclient[2100]: DHCPREQUEST on eth0 to 172.31.1
6.1 port 67 (xid=0x7a75a61f)
Dec 15 11:13:47 ip-172-31-16-141 dhclient[2100]: DHCPACK from 172.31.16.1 (xid=0
x7a75a61f)
Dec 15 11:13:47 ip-172-31-16-141 dhclient[2100]: bound to 172.31.16.141 -- renew
al in 1434 seconds.
Dec 15 11:13:47 ip-172-31-16-141 ec2net: [get_meta] Trying to get http://169.254
.169.254/latest/meta-data/network/interfaces/macs/0a:e8:9e:54:f4:81/local-ipv4s
Dec 15 11:13:47 ip-172-31-16-141 ec2net: [rewrite_aliases] Rewriting aliases of
eth0
Dec 15 11:15:29 ip-172-31-16-141 dhclient[2184]: XMT: Solicit on eth0, interval
117400ms.

Open in new window

0
Hi,

I am looking for a solution that I can use to be able to remote control into my Ubuntu 17.10 from Windows 10.

I would like to be able to do this without having to change my "Display Manager". So I want to keep using the same
one that is there. Forgive me as I don't know the correct term.

Is this possible to do this? If so what are the steps.

Thanks,

Ward.
0
I have rsync some files to a remote server.  Some of those files have been updated on the remote server and others of those files have been updated on the original server.  

I want to update the remote server so that it includes any changes to updated files on the original server but I don't want to overwrite anything on the remote server that has more recently been changed on the remote server than the original server.

Which rsync option should I use for this?
0
My new server has CentOS7 installed. I’ve used LVM to span together 4 - 1TB drives into a large Logical Volume. I’ve encrypted the volume. I installed Samba and shared a folder.

It all works well until I look at the "size on disk" reported from Windows 10. The “Size On Disk” being reported is sometimes double the real size.

When I test the same from my Windows 7 workstation, the file sizes are reasonable. Please see screenshots attached.

Other NAS shares on my network don’t display this issue from W10 or W7. Is there a fix on the CentOS server for this?

Thank you!

John Caspary
dllhost_2017-12-13_13-28-41.png
dllhost_2017-12-13_13-30-47.png
mstsc_2017-12-13_13-29-37.png
mstsc_2017-12-13_13-32-19.png
0
Hey everyone,

I have a rather large edit I need to make using sed. But the outcome is the file is doubled.

I need to take this paragraph....
java -jar -Dbase_dir=$BASE_DIR -Dlog_home=$LOG_HOME -Dserver.port=$SERVER_PORT -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false $BIN_DIR/xxxxx-boot-0.0.1-SNAPSHOT.jar --spring.profiles.active=${ENV} --static.content.base=$BASE_DIR/static_29376 --server.context-path=/ --applicationURL=https://test.xxxxx.com --site_base=https://test.xxxxx.com/public --pySurveyConsoleUrl=https://test.xxxxx.com/adm/login/ &

and turn it into this

java -jar -Dbase_dir=$BASE_DIR -Dlog_home=$LOG_HOME -Dserver.port=$SERVER_PORT -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false $BIN_DIR/xxxxx-boot-0.0.1-SNAPSHOT.jar --spring.profiles.active=${ENV} --static.content.base=$BASE_DIR/static_29376 --server.context-path=/ --applicationURL=https://ohiotest.xxxxx.com --site_base=https://ohiotest.xxxxx.com/public --pySurveyConsoleUrl=https://ohiotest.xxxxx.com/adm/login/ &

the only things that need to change is the references to ohiotest which replace test

When I try to accomplish that using this sed script, I get both paragraphs squished together. meaning, doubled up, and not one edited paragraph.

Heres the sed script I'm using.....

sudo sed -i 's#changethismess#tothatmess#g' …
0
I read about binary compatibility between Linux distributions, however... Ubuntu and RHEL are usually not compared or even mentioned in regards with each other.

Are they?
0
Free Backup Tool for VMware and Hyper-V
LVL 1
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

i have 2 ubuntu servers on in home and one on a remote server and both are running ubuntu server 16.04

i followed this guide to install and configure strongswan https://raymii.org/s/tutorials/IPSEC_vpn_with_Ubuntu_16.04.html

it worked fine on my localserver but not on the remote server even when accessing the my localserver remotely it works just fine

i am stuck .. im not sure what i am doing wrong .. hoping someone on here can help- my host says that my ubuntu install is mostly* stock with little to no mods - though ive noticed some file permissions where changed

https://imlost.me/server.txt https://imlost.me/client.txt
0
I see 2 of my Centos guests with the same name and cannot edit, or remove from inventory  and most other functions , are greyed out , I am not sure where to look next
0
I am not familiar with Linux but have configured a Linux appliance. The box is configured and I can log into it via console. I never use putty and tried to SSH into but get the following below. I know am able to authenticate via console, but not SSH. I was wondering if I need to enable something to allow remote access.  If so, what commands must I put in to enable it? Please advise.

2017-12-13_8-17-22.png
2017-12-13_8-20-44.png
2017-12-13_8-21-27.png
0
Hi,


I am running linux commands from powershell. Made a connection from powershell to linux vm. it is working properly but when I use sudo command ( for ex . sudo useradd test) , it gives below error "sudo: sorry, you must have a tty to run sudo bash: could: command not found" .
I need to use sudo because I am not executing the script as 'root'. I need to execute this as a user.

PFA


Thanks
1.png
0
Hello there,

Now I have a jar application on my Ubuntu server and is located in /home/steve/deployment/bear.server-1.0-SNAPSHOT-fat.jar and everytime i want to run my application I need to run this cmd
 java -jar bear.server-1.0-SNAPSHOT-fat.jar -conf config.json

Open in new window

. I want to know how I can run this cmd with a shotcut for e.g. run myapp. Please help!!

cheers
Zolf
0
We are using a Wordpress plugin that requires basic authentication for an API JSON request. Basic Authentication has been enabled on cPanel however the plugin returns a "rest_forbidden_context Sorry, you are not allowed to create entries 403" error.

What else needs to be done for this to work properly?
0
Hello

We are experiencing some issues with third party generated  ZIP files.

Although WinZip or 7zip actually manage to unzip them (while complaining about format errors) Linux built-in utilities will silently (!) fail with them.

Although I have already raised the issue with the provider it would be very useful if someone with proper expertise could let me know exactly what's wrong with the files we receive (see attached exemple).
5a2fe9b0d9f22.zip
0
My original script:

#!/bin/bash
UTIL=/opt/dcm4che-5.11.0/bin
INPUT=/opt/notes/cs1fill/2017/missing_cs1
suid=/opt/notes/cs1fill/2017/0020000D/suid.txt
cnt=0
START=1
count=$START
END=25000
awk -v S=$START -v E=$END 'NR>=S&&NR<=E {print $1}' $INPUT  | while read input1  #starting at a certain row
do
 echo "Row $count" | tee -a rowcount25k.txt
 ((cnt++))
 echo "Moving :" ${input1}
 $UTIL/findscu -c STORESCP@10.0.0.1:104 -m 00080050=${input1} -r0020000D --out-dir /opt/notes/cs1fill/2017/0020000D --out-file suid.txt
 $UTIL/movescu -c STORESCP@10.0.0.1:104 -m 0020000D=${suid1} --dest cs1FIR
  ((count++))
   if (( cnt == 50 )); then
    echo "Sleeping for 5 Seconds on $(date), I have moved $count exams"
    sleep 5
    cnt=0
   fi
exec 0<$3 #Restore old stdin.
done
echo "Counter:" $((count-START)) # Show moved items



The first command will read from input1 (a list of numbers with one column) and will write to a file named 'suid.txt'.

The 2nd command will read from the file 'suid.txt' to perform the last task.

My problem is that the first command that runs 'findscu' will overwrite the 'suid.txt' instead of adding to it, so I need the 2nd command to finish its task and then go back to the 1st command until it is finished reading from 'input1'.

How can I re-write this to make it do what I expect?

thanks
0
I normally force most of our clients to use a white list of sites which I enforce via a custom hosts file.  nsswitch is configured like this

hosts:  files mdns4_minimal [NOTFOUND=RETURN]

Open in new window


It's been a long time since I turned dns back on - Im trying to confirm if this should do it

hosts:  files mdns4_minimal [NOTFOUND=RETURN] dns

Open in new window


but I am not sure what
mdns4_minimal [NOTFOUND=RETURN]

Open in new window

does exactly
1
Upgrade your Question Security!
LVL 11
Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

We have Oracle Linux Server release 7.4, with kernel version: 4.1.12-103.7.1.el7uek.x86_64

We have an application (Oracle RAC) that creates and/or adds to about 1,500 log files every day.  These log files are all in a single subdirectory of the Oracle executables.  Oracle does not offer a configuration option or parameter to direct these log files to a different volume (like a log volume, where we wouldn't risk filling up the executable volume).

I'm trying to use logrotate to help me manage these logs, but I haven't found a combination of parameters yet for logrotate that works reliably.  One of the complicating factors is the fact that these log files are produced by three different Linux user accounts (root, oracle and emagent).  These log files do all get created with same group name: oinstall.  Another complicating factor is the permissions in the parent directory: "rwxrwxr-x".  The Oracle software install creates this directory and sets these permissions.  Many of these log files are very small and get created with unique file names (that include a five or six digit number).  Some of these log files though keep the same (non-unique) name every day and can grow rather large (at least 10s of mbytes).

Here is my latest attempt at a config file (named: crs_logs.conf in: /etc/logrotate.d) for logrotate:

/u01/app/oracle/diag/crs/zvm186-g-qa-db3/crs/trace/* {
        su oracle oinstall
        create 0640 oracle oinstall
        copytruncate
        rotate 2
  …
0
I have a project where I need to move files from a Linux file system to a Microsoft SQL server.

The app that I have resides on a Linux server and allows for older data records to be purged in form of small files. (1kb each)
I need to get these files to the windows server to allow a script (SSIS or other) to read the files and import them into SQL.

This routine will be run nightly, so the thought of a backup or anything else the requires a lot of intervention is not practical.

What's the best way to get this done ?  

   1.   If I have SAMBA loaded on the Linux server, I could easily read the files from a folder share ?
   2.   I could use [s]FTP to move the files from one system to the other ?
   3.   Write a script to run on the Linux system to read the files and insert them directly to SQL server via ODBC ?
   4.   Any other options ?

Thank you.
0
Hello Experts,
We are using Vicidial version 2.6-381a with Asterisk 1.4.44-VICI, I have strange issue one of my user extension 508 voice mail going into ext 801 voicemail box when using DID but when dial extension 508 it goes into right mailbox of 508, i have checked the user phone settings, DID settings to make sure DID rings and send voicemail to right extension from vicidial gui, here is Dial plan for ext 508 which is setup properly can someone please help me figure this out. Thanks

exten => 3508,1,AGI(agi://127.0.0.1:4577/call_log)
exten => 3508,n,AGI(agi-NVA_recording.agi,BOTH------Y---Y---Y)
exten => 3508,n,Wait,2
exten => 3508,n,Playback(/var/lib/asterisk/sounds/44048020)
exten => 3508,n,Wait,2
exten => 3508,n,Playback(/var/lib/asterisk/sounds/85100075)
exten => 3508,n,Wait,2
exten => 3508,n,Dial(SIP/508,15,Ttr)
exten => 3508,n,Wait,2
exten => 3508,n,Playback(/var/lib/asterisk/sounds/85100031)
exten => 3508,n,Dial(SIP/508&SIP/801&SIP/505&SIP/507&SIP/509,15,Ttr)
exten => 3508,n,Wait,2
exten => 3508,n,Playback(/var/spool/asterisk/voicemail/default/508/unavail)
exten => 3508,n,VoiceMail(508@default)
0
can someone help me to install vsftp Server on Debian with SSL certification?

I followed many guiedes but no success.

my Server can connect locally but after certification install no 21 port from externally.

thanks
0
Hi.
We want to start building our own chromium browser for use in our Digital signage solution.

We have set up an environment on a Windows PC, and have successfully build a default chromium browser.

We do, however have some trouble finding our way around in the code.

Therefor, maybe som waypoints could help us.

Can anyone tell me, where I could find some code regarding:
The address bar
Tabs
Forward/backwards arrows

A code snippet is enough, or maybe even better in which  files are they.

Also, hints on how to find elements, without having to guess our way through and making searches in Visual Studio, without knowing the name of what we're actually looking for

/BR
Rene
0
This is using Jenkins server 2.87 on Redhat Enterprise Linux 6.8. Using local linux user database is the default settings. I saw that there is this LDAP option, but, no matter how I try, It can't seem to communicate with our production MS Windows Server 2012 R2-based AD domain.

I saw there is a plug-in section, does this mean I have to download and install this AD plug-in? How to get this Jenkins to connect to MS Windows AD Domain for authentication?

Thanks in advance.
0

Linux

65K

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.

Vendor Experts

Naveen SharmaKernel Data Recovery Learn more about Kernel Data Recovery
Sandeep KumarKernel Data Recovery Learn more about Kernel Data Recovery