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.
Configuration Guide and Best Practices
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 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?
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

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.56.amzn1 <<>>
;; 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 3306
Trying 172.xx.1.78...
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.

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

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

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

Additional Info:

... has gone stale.

Open in new window

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 (xid=0
Dec 15 11:13:47 ip-172-31-16-141 dhclient[2100]: bound to -- renew
al in 1434 seconds.
Dec 15 11:13:47 ip-172-31-16-141 ec2net: [get_meta] Trying to get http://169.254
Dec 15 11:13:47 ip-172-31-16-141 ec2net: [rewrite_aliases] Rewriting aliases of
Dec 15 11:15:29 ip-172-31-16-141 dhclient[2184]: XMT: Solicit on eth0, interval

Open in new window


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.


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?
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
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$JMX_PORT $BIN_DIR/xxxxx-boot-0.0.1-SNAPSHOT.jar${ENV} --static.content.base=$BASE_DIR/static_29376 --server.context-path=/ --applicationURL= --site_base= --pySurveyConsoleUrl= &

and turn it into this

java -jar -Dbase_dir=$BASE_DIR -Dlog_home=$LOG_HOME -Dserver.port=$SERVER_PORT$JMX_PORT $BIN_DIR/xxxxx-boot-0.0.1-SNAPSHOT.jar${ENV} --static.content.base=$BASE_DIR/static_29376 --server.context-path=/ --applicationURL= --site_base= --pySurveyConsoleUrl= &

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' …
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?
Free Backup Tool for VMware and Hyper-V
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

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
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
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.


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.


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!!

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?

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).
My original script:

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

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
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
        rotate 2
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.
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://
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)
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.

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
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

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.






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