[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Ubuntu

223

Solutions

315

Contributors

Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.

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

Sign up to Post

MY SYSTEM
Ubuntu Linux 18.04.1

QUESTION
I need to know what is the best recommended Anti-Virus and Malware protection I can install on my Linux machine.
Please include: Free, Less Expensive, and the Best (no matter what the price), so I can make my decision.
0
Active Protection takes the fight to cryptojacking
LVL 1
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

We have Ubuntu 18.04.1 LTS running on a virtual machine in VMWare Workstation 12.5.7 build-5813279.

The network settings appear to be correct however every time we boot it we get the grey icon with the question mark.  We can disable the network and reenable it and everything is fixed.  Can you tell me how to fix this issue as it is rather annoying?
0
When updating composer (sudo composer update), got the error below:
"- The requested PHP extension ext-memcached * is missing from your system. Install or enable PHP's memcached extension."
Tried very hard to install "PHP extension ext-memcached", but could not get anywhere.
Background: PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) on oracle VirtualBox v5.2.22.

Will any gurus shed some light to it?
0
Hi,

I'm new to Azure and am having issues with my test Ubuntu VM - I am unable to get outbound internet access. I have been trying for a few hours to get this to work and am now completely stuck.

I have gone through the following steps:

The VM has a private IP, which is statically assigned in Azure but acquired using DHCP on the OS.
The network security group that is attached to the network interface allows outbound internet access.
There is no security group defined on the subnet.
There are no custom route tables on the subnet.
To remove DNS from the equation, I also tried to ping an IP address (8.8.8.8).

Can anyone think of something I've missed?

Thanks,
Adrian
0
BACKGROUND

1. My Technical Experience
  • This is my first experience with ROS.
  • This is my first experience with 3D simulators and Gazebo.
  • I am intermediate with Linux in general, but haven't used it since 2012.
  • I am intermediate with C and Perl programming.
  • I have some experience with programming PHP and using mySQL (myPHPAdmin) for Wordpress.
  • No experience with Python.

2. What I'm trying to do
  • Ultimately, I want to run Robot simulations using ROS (Robot Operating System) on a compatible simulator such as Gazebo on an Ubuntu desktop machine.
  • My machine has a Ryzen 3 AMD CPU, integrated Radeon graphics, and 16GB RAM; I am assuming this will be adequate.

QUESTION

  1. Is the ROS Melodic distribution stable, or is it buggy?
  2. Would it be better to use the older, more stable Kinetic distribution in order to avoid dealing with bugs and other problems?
  3. If I switch to Kinetic, will I need to install Ubuntu 16.04 instead of 18.04?
  4. Will the knowledge, skill set, and experience from using Melodic easily allow me to switch to using Kinetic at some time in the future? Or will it be a tricky learning curve to avoid the features not available on the older release?
0
Have Ubuntu 16.04 running as a VM.  Would like to utilize to allow *Windows 98 clients (yes I know Windows 98) to connect to share files.
 Keep getting a IPC$ password prompt, but the password doesn't work.   This would be a completely segmented and closed network - no Internet.
Cannot get the clients to connect to the SMB share.

*The customer currently uses old cardmaking printers and software that only works with Windows 98.  A Novell server is still being used to share
files.  Want to replace the Novell fileserver before it dies.   Eventually, they will be replacing all the printers and software, but who knows when!
1
Hi Experts,

Do we need to setup Ubuntu 18.04 Bionic to syncronize time manually ? My current settings are;

$ timedatectl
                      Local time: Wed 2018-11-21 16:22:02 UTC
                      Universal time: Wed 2018-11-21 16:22:02 UTC
                      RTC time: Wed 2018-11-21 16:22:02
                      Time zone: Etc/UTC (UTC, +0000)
                      System clock synchronized: yes
                      systemd-timesyncd.service active: yes
                      RTC in local TZ: no
$ sudo timedatectl

Open in new window


How do we list the current NTP servers ?

Also how do we messure the monitor drift and get notify if the drift deviates beyond 10s ?

Please advise and thanks !
0
Facing issue with MySQL 5.7.22 and (5.7.24) above
Hello Experts,
Facing issue while inserting data to MySQL 5.7.24 with OS Ubuntu 18.04. It is taking to long time to insert data. 5k-6k/min insert rate
As i checked with MyQL 5.7.19 with Ubuntu 16 it works fine with insert query. 100k-400k/min insert rate

For the above i have googled but no luck someone reported this issue with mysql forum but the only thing for performance that i got is configure the parameter in my.cnf

[mysqld]
skip-log-bin
#log_bin                        = /var/log/mysql/mysql-bin.log
#expire_logs_days       = 10
#max_binlog_size   = 100M

Open in new window


By this it is now increased to 20k-22k/min but this is not up to mark if we look at the performance of the MySQL 5.7.19 with Ubuntu 16

Can anybody help me out to tune mysql parameter or tuning at MySQL level or may be at Ubuntu 18.04 level.
0
If I put Windows 10 on a box it can hit the Internet.  If I reconfigure the box with Ubuntu 18.04 it cannot.

Googling shows that 18.04 is using something new called netplan and many having issues with it.  Haven't seen anything to show that it actually works.

Is Ubuntu 18.04 networkable?
0
I am missing configuration info in the network dialog box.
MissingThe computer used to get on the Internet but was using a rogue router that had been set up with DHCP.  We turned off DHCP on that router so we can use our main router.
Now the Ubuntu 18.04 machine won't grab an IP address.
1
Turn Raw Data into a Real Career
Turn Raw Data into a Real Career

There’s a growing demand for qualified analysts who can make sense of Big Data. With an MS in Data Analytics, you can become the data mining, management, mapping, and munging expert that today’s leading corporations desperately need.

I have just configured a LAMP on my 10.1.1.x network.

The LAMP hits the Internet but shows an IP address of 192.168.0.109/24 (eno1).

Cable (Arris) modem is providing DHCP.

How is it possible for this to happen?  I'm thinking that I want the LAMP to have a 10.1 address.
0
Hi Experts,

I have elasticsearch installed on ubuntu aws machine.  It is running properly,  see below image for reference.

elastic-search.pngI am not able to access this elastic search from windows.

I had tried http://54.252.92.17:9200 on browser. I get this site cannot be reached on the browser.  same way I had installed curl on windows and tried to access it

I had tried curl -XGET "54.252.92.17:9200"  I get failed to connect ipaddress on port 9200: connection refused.  Ip address and ports are open from the aws ubuntu machine.

When I try on ubuntu machine

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/ntdl# curl -XGET '172.17.0.1:9200/_cat/indices?v'
health status index    uuid                   pri rep docs.count docs.deleted store.size pri.store.size
yellow open   ntdl_v01 VSKQjn3RSRSRBHbOaQzEBw   5   1        465            0      2.6mb          2.6mb

the public ip is 54.252.92.17, network.host in elasticsearch.yml is 172.17.0.1 and the port is 9200.

Please help me in resolving this issue.

With Many thanks,

Bharath AK
0
I'm having a heck of a time getting SSL to work on an Ubuntu 18.04 server using Apache2. I've installed Mediawiki to /var/www/html/wiki. I have a mediawiki.conf file that has virtual host entries for both 80 and 443. I have SSLEngine on and for the certificate file and the key file I have them pointed to the correct directory.

I'm having two issues:

1. If i type https://domain.com/wiki, it gives me a 404 not found, yet it fills in the /index.php/Main_Page at the end of the URL but the port says 80
2. If i type https://domain.com/wiki/index.php/Main_page it works and it uses 443. The issue with that is, I'm getting an error with chrome that says I'm getting mixed content. When i go to developer tools in chrome it's telling me that the .png file im using for the logo is not secure.

I haven't messed with ubuntu and apache2 for a while so i'm probably missing something, im just not sure what.

Thank you.
0
I am trying to upgrade to Ubuntu 16.04 and I get a message about a conflict with  /etc/apt/apt/conf.d/50unattended-upgrades - says it was locally modified, but I don't think I ever modified this file   I tried to compare, but the diff does not look like any normal diff I have seen and I am not familiar with this file.

Some background - These machines were manually installed by someone as Ubuntu 14.  I gave them instructions that they went through and that included running some scripts that just pull down some other scripts of mine from a central server and set up some cron jobs etc.  (Simple stuff - running apt-get update/upgrade nightly and running a clamav scan, having a script set up that runs every 5 minutes and grabs from my central server so that I can easily put something there that I want to run on all machines in the next 5 minutes, etc)

In any case here are some screenshots.  Do you think it's safe to just "install the package maintainers version"?


initial warning screen
initial warning screen
diff
diffI
0
Hi Experts,

Subprocess.call fails in my python code.

I get the following error when I run the code. the error is as follows:

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/harvest-territory-stories# python3 run.py process
2018-09-26 14:53:11,262 INFO before main ####
2018-09-26 14:53:11,304 INFO inside main
2018-09-26 14:53:11,306 INFO parse received
2018-09-26 14:53:11,306 INFO add_argument
2018-09-26 14:53:11,306 INFO args Namespace(method='process')

2018-09-26 14:53:11,306 INFO before switch

2018-09-26 14:53:11,559 INFO there are 269825 items to process
/usr/local/lib/python3.6/dist-packages/wand/image.py:2758: CoderWarning: Unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/881
  self.raise_exception()
/usr/local/lib/python3.6/dist-packages/wand/image.py:2758: CoderWarning: Unknown field with tag 42037 (0xa435) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/881
  self.raise_exception()
2018-09-26 14:53:24,938 ERROR Uncaught exception
Traceback (most recent call last):
  File "run.py", line 318, in <module>
    main()
  File "run.py", line 306, in main
    thumbnails()
  File "run.py", line 223, in thumbnails
    create_thumbnails_from_database(destination, thumbnail, cookies, prefix)
  File "/home/ubuntu/workarea/sourcecode/harvest-territory-stories/harvest/extract.py", line 292, in create_thumbnails_from_database
    _handle_pdf(os.path.join(parent, entry.id), 

Open in new window

0
Hi Experts,

I get the following errors with docker compose up

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/harvest-trove# docker-compose up
Recreating harvest-trove_harvest-trove_1 ... done
Creating harvest-trove_trove_review_1    ...
Creating harvest-trove_trove_pull_1      ... error
Creating harvest-trove_trove_push_1      ...
Creating harvest-trove_trove_process_1   ...

ERROR: for harvest-trove_trove_pull_1  Cannot start service trove_pull: invalid header field value "oci runtime error: container_linux.go:247: starting container procesCreating harvest-trove_trove_process_1   ... error

Creating harvest-trove_trove_push_1      ... error
Creating harvest-trove_trove_review_1    ... error

ERROR: for harvest-trove_trove_push_1  Cannot start service trove_push: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"harvest-trove:1.0.3\\\": executable file not found in $PATH\"\n"

ERROR: for harvest-trove_trove_review_1  Cannot start service trove_review: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"harvest-trove:1.0.3\\\": executable file not found in $PATH\"\n"

ERROR: for trove_pull  Cannot start service trove_pull: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"harvest-trove:1.0.3\\\": executable file not found in $PATH\"\n"

ERROR: for trove_process 

Open in new window

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
Installed Ubuntu 16.04 LTS and trying to install Unifi Controller for our switches.

I get the following error. Still new to linux side.  Any thoughts?


Capture.PNG
0
Hi Experts,

     docker container is not picking the recent changes from the source code.     it makes me to build the docker image every time to see the latest changes on the source code.

Please find below the contents of the Dockerfile

FROM ubuntu:16.04

MAINTAINER *****

RUN apt-get update -y
RUN apt-get install -y software-properties-common python-software-properties curl
RUN add-apt-repository -y ppa:fkrull/deadsnakes

RUN apt-get update -y && apt-get install -y curl
RUN apt-get update -y && apt-get install -y \
	git \
	python3.6 \
	python3.6-dev \
	nginx \
	sqlite3 \
	nodejs \
	build-essential \
	libmagickwand-dev \
	cron \
	nginx

RUN rm -f /usr/bin/python3
RUN ln -s /usr/bin/python3.6 /usr/bin/python3
RUN curl https://bootstrap.pypa.io/get-pip.py | python3

WORKDIR /home/trove
COPY . .

COPY build/docker/uwsgi_params .
COPY build/docker/uwsgi.ini .
RUN pip3 install --no-cache-dir uwsgi
RUN pip3 install --no-cache-dir -r requirements.txt

COPY build/docker/start /usr/bin/
COPY build/docker/crontab /etc/cron.d/harvest-cron
RUN chmod 0644 /etc/cron.d/harvest-cron
RUN touch /var/log/harvest.log

RUN echo "daemon off;" >> /etc/nginx/nginx.conf
COPY build/docker/nginx-app.conf /etc/nginx/sites-available/default
COPY build/docker/start /usr/bin/
RUN mkdir /var/log/harvest/
RUN python3 manage.py collectstatic --noinput

WORKDIR /home/trove/
RUN chmod 755 /home/trove
RUN chown -R www-data:www-data /home/trove

EXPOSE 80
CMD ["start"]

Open in new window


please find below the contents of the crontab

SHELL=/bin/bash
* * * * * root ( source /tmp/environment.sh && /usr/bin/python3 /home/trove/run.py $(cat /tmp/method) ) >> /dev/null 2>/var/log/harvest/ts_errors.log

Open in new window

0
The 7 Worst Nightmares of a Sysadmin
LVL 1
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

rsync error on ubuntu 16.04 server.
i try to sync folder between two ubuntu server and say
sshpass -p password@ rsync  ssh -avhre user@ip_server:/home/my/direct/ /home/my/
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [generator=3.1.1]

Help!!!
0
I have an Ubuntu server running Apache2 for my website.  I need to create a dev copy of the site so my web developer can make changes and test.  So far this is what I did.

  1. Cloned the VM server
  2. Changed the IP
  3. Created a new DNS record for the server (dev.contoso.com)
  4. The original url was www.contoso.com and I want to create a new Virtual Host.
  5. Copied both the contoso.com.conf in the Sites-Enabled and Sites-Available directory with the name dev.contoso.com.conf
  6. Restarted the Apache2 service successfully

With all this completed I entered the URL dev.contoso.com in both IE and Chrome and the address is rewritten to https://www.dev.contoso.com 
I looked at the dev.contoso.com.conf and all ReWrites are remarked out.

<VIRTUALHOST *:80>
        ServerName flhlaw.com
        ServerAlias www.flhlaw.com
        Redirect / http://dev.contoso.com
        ServerName contoso.com
        ServerAlias dev.contoso.com
        Redirect /secure  https://dev.contoso.com
</VIRTUALHOST>
<VIRTUALHOST *:443>
    ServerAdmin webmaster@localhost
    ServerName dev.contoso.com
    ServerAlias dev.contoso.com
    DocumentRoot /var/www/www.contoso.com/web
   SSLEngine on
   SSLCertificateFile /etc/apache2/cert/contoso.crt
   SSLCertificateKeyFile /etc/apache2/cert/contoso.key
   SSLCertificateChainFile /etc/apache2/cert/gd_bundle-g2-g1.crt
    <DIRECTORY />
        Options FollowSymLinks
        

Open in new window

0
Hi Experts,

I want to restore postgres database.

I had taken backup with pg_dump.  the command which I used to take backup is

pg_dump -U postgres -h 127.0.0.1 -p 5432 ts > ts.tar
password:

it created the file ts.tar

Steps I had tried to restore is

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/database_backup# pg_restore --host localhost --port 5432 --username "postgres" --dbname "ts" --role "ts" --no-password --verbose "./ts.tar"
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/database_backup# pg_restore --host localhost --port 5432 --username "postgres" --dbname "ts" --role "ts" --no-password < "./ts.tar"
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/database_backup# pg_restore --host 127.0.0.1 --port 5432 --username "postgres" --dbname "ts" --role "ts" --no-password < "./ts.tar"
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/database_backup# pg_restore --host 127.0.0.1 --port 5432 --username "postgres" --dbname "ts" --role "ts"  < "./ts.tar"
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.

root@ip-10-252-14-11:/home/ubuntu/workarea/sourcecode/database_backup# pg_restore --host 127.0.0.1 --port 5432 --username "ts" --dbname "ts" 

Open in new window

0
In ubuntu 16:
it's added a wrong file in /etc/sudores.d/ folder.
I can't do sudo form any user. I can't do any thing.
How can I remove this file from folder sudores.d.
can I remove file if I login in as recover mode?

HELP
0
Backup of sama 4.X domain controller on ubuntu?
I said : sudo samba-tool domain backup offline --target-dir=/mnt/archive/domain
error: samba-tool domain: error: no such option: --target-dir

how to say where target file should be?
0
On Ubuntu 18.04, the maximum number of concurrent open files is 1024.

But we need to reset this value to 65535 permanently and as a global setting. Most documents describe how to set this value temporarily and per process.

Can anyone describe how to do this?


Thank you
0

Ubuntu

223

Solutions

315

Contributors

Ubuntu is an open source software operating system that runs from the desktop, to the cloud, to all your internet connected things.