Ubuntu

373

Solutions

423

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

I have an Ubuntu server running 10.04.6 LTS.  It is providing web services.  I have setup sftp and given permission to an 'sftp' group to login but have set their root directory to be /var/www/html.  They are able to connect to the server but cannot write to the folder.  I use setfacl to give the group write permission.  If they are already logged in, they can now create folders and files.  However, once they logout, they can no longer login.   If I remove the acl, the condition reverses again.  It is not limited to acls though.  I even tried just giving 'other' write-access.  Same thing happened.

sshd_config snippet:
Match group sftp
ChrootDirectory /var/www/html
X11Forwarding no
ForceCOmmand internal-sftp

Error when trying to write:
Permission denied.
Error code: 3
Error message from server: Permission denied

Error when trying to login (from session log):
! 2019-12-11 08:23:42.538 Using username "ddinkin".
. 2019-12-11 08:23:42.569 Server offered these authentication methods: publickey,password
. 2019-12-11 08:23:42.569 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2019-12-11 08:23:44.955 Sent password
. 2019-12-11 08:23:44.963 Access granted
. 2019-12-11 08:23:44.963 Opening session as main channel
. 2019-12-11 08:23:45.127 Network error: Software caused connection abort
* 2019-12-11 08:23:45.181 (EFatal) Network error: Software caused connection abort
* 2019-12-11 08:23:45.181 Authentication log (see session log for …
0
Acronis in Gartner 2019 MQ for datacenter backup
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

i upload a folder to nextcloud on ubuntu (lxd)(just drop folder in webpage) all file is uploaded except for .files (hiden file).
How to upload hiden file where is it to accept which file extension is ok to upload. (i want to accept all type files).
1
Hi all i am currently going made trying to move my python project to a linux server,
1. i have got the mysql  database one there
2. i am trying to install all on the modules but having some issues i am trying  to get pip3 install parse , it tells me it works but it still comes up with a error when i run the python
3. i tried sudo pip3 install urllib
Collecting urllib
Exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python3/dist-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File …
0
nginx on ubuntu 16.04 not redirect permanently.
i running nginx version 1.12.2
my ssl  page not working and  curl -I  http://webserver.com says
HTTP/1.1 302 MOves Temporrarily

i have the same on other ubuntu exactly same nginx and no problem. what is wrong?
0
Hi all i am trying to setup my ubuntu server so i can run my python scripts and when i try to install mysql-client or mysql for python i am getting a error
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-nwk7rejx/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-10shw23u-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nwk7rejx/mysqlclient/

i have  tried good old google and all the ones i have found on there to try didnt work any help would be great
0
I installed Ubuntu v19.10 in a VMWare virtual machine (running Workstation 15.5), and discovered an issue with Firefox in this environment.

If you go to www.cnn.com, and then attempt to play any of their videos, you get a "forever spinning circle" and a message at the upper left part of the video that says "Something went wrong during native playback."   This happens no matter which video I select.

I went to www.yahoo.com to see if their videos would play, and in that case I get a "Video Not Available" message, with a subtext that says "Unfortunately, this video is missing or damaged and cannot be played" -- but in this case there's no "forever spinning circle".

If I go to www.youtube.com and play one of their videos, everything works fine.

Just for grins, I installed Chromium, and all of the videos play perfectly in this browser.

Interestingly, Firefox works fine for all of these in virtual machines I set up for a couple other Linux distros -- Elementary v5.0 and Linux Mint v19.2.

Just for grins, I also installed the latest LTS version of Ubuntu (v18.04.3) … and it has the exact same issue with Firefox.

Any ideas ??
0
I have Darter Pro Linux Laptop running Ubuntu 18.04 LTS (64-bit).  It was shipped with vi editor pre-installed.  In following thread I asked how to install vim.
https://www.experts-exchange.com/questions/29165311/How-to-install-vim-in-Linux-laptop-that-is-pre-installed-with-vi.html
I selected following solution.
>> vim and vi in newer versions are one and the same, run vi --version;

Attached version information shows that I have vim 8.0.  I think lot of features are missing.  There is no multiple file support.  I open many files from
command prompt but only One file opens.
There is no support for python.  See attached     -python3, meaning python3 feature is missing.
Also, it says small version without GUI.  Please see attached version information.
0
I have Darter Pro Linux Laptop running Ubuntu 18.04 LTS (64-bit).  vi editor is installed but I want to install vim editor.
Attached file show that vi is installed but vim isn't installed.

What is the best way to manage this installation?  Should I remove vi and then install vim?  vi came installed with this new laptop.  Is it even possible to remove it?
Screenshot-from-2019-11-24-21-49-17.png
0
anaconda not starting in my ubuntu
curl -O https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  621M  100  621M    0     0   854k      0  0:12:24  0:12:24 --:--:--  991k
python@python-VirtualBox:/tmp$ sha256sum Anaconda3-2019.03-Linux-x86_64.sh
sha256sum: Anaconda3-2019.03-Linux-x86_64.sh: No such file or directory
python@python-VirtualBox:/tmp$ ls
Anaconda3-5.2.0-Linux-x86_64.sh
config-err-80MCXE
ssh-bM5S1pofRzcW
systemd-private-869adb399f9b4bb29d1faede46df776f-apache2.service-WtkZd0
systemd-private-869adb399f9b4bb29d1faede46df776f-bolt.service-Gy1KOQ
systemd-private-869adb399f9b4bb29d1faede46df776f-colord.service-ueDFWp
systemd-private-869adb399f9b4bb29d1faede46df776f-fwupd.service-YzXstt
systemd-private-869adb399f9b4bb29d1faede46df776f-ModemManager.service-dB7it9
systemd-private-869adb399f9b4bb29d1faede46df776f-rtkit-daemon.service-53koIw
systemd-private-869adb399f9b4bb29d1faede46df776f-systemd-resolved.service-lmGjYY
python@python-VirtualBox:/tmp$ bash Anaconda3-2019.03-Linux-x86_64.sh
bash: Anaconda3-2019.03-Linux-x86_64.sh: No such file or directory
python@python-VirtualBox:/tmp$ sudo bash Anaconda3-2019.03-Linux-x86_64.sh
[sudo] password for python:
bash: Anaconda3-2019.03-Linux-x86_64.sh: No such file or directory
python@python-VirtualBox:/tmp$ conda list
conda:
0
vboxclient not starting in my ubuntu
vboxclient32
0
Success in ‘20 With a Profitable Pricing Strategy
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

I have Linux laptop.  It is running Ubuntu 18.04 LTS (64-bit)

I'll be creating Yocto Project or custom Linux distribution on my Linux laptop.  These embedded Linux distributions will be loaded on embedded target board.
Do I need xterm for creating Yocto Project?
My understanding is that 'xterm' emulates video terminal.  Since my Linux laptop already has a display, there is no need for 'xterm' program?

What might be the 'Window System' in my Linux laptop?  If it's not 'X Window System' then xterm won't apply?

Does 'xterm' program only apply when accessing Linux server from windows ssh?
0
I want to install that on my Ubuntu web server ( the web host already has a copy on there but cant config it to send me an email for this, so i have to have my own copy)... any tips on how to set it up so that I get an email whenever a specific domain on that box has a 500 error?
0
trying to expand a partition in ubuntu 18.04 server
everything i see is either for LVM or using gparted
there must be a way to extend this without rebooting
i did a rescan of the scsi bus (all 3 of them) and still shows the disk as 60gb; i extended the virtual disk in vcenter to 75gb so there is 15gb of free space
fdisk should be showing a 75gb disk so i can extend / the extra 15gb
parted shows the same as fdisk
0
I'm looking to install Ubuntu, I need to specify Partitions in "Something Else".  How would i utilize this with the "Encrypt Ubuntu New Installation for security" option?  Also what's the best practices when manually creating partitions in Ubuntu?

Thanks!
0
Hello,
I have webmin installed on vps ubuntu 16.4 it's show me notification about virtual memory is full  is 256MB how I can increase   it ?
thanks.
0
Hi - I need quick working tips to tweak my Mac mini - Mojave - 10.14.5 , swift 4.2 , xcode 10.2.1
processor 2.5 ghz intel core i5, ram memory 8gb , intel hd graphics , hardisk 500gb 50% free space available , desktop monitor 23 inches. using xcode or other apps takes long time and doing remote vpn connecting with vnc shows very slow refresh rates. while my ubuntu remote vpn working is faster. Kindly help.
0
I am seeing a strange issue with sssd on Ubuntu 16.04.  I am using sssd to authenticate to AD.  The logins work great and is almost instantaneous as long as you have recently logged in (within the last minute or two).  If you wait longer between logins, then it will login you into, but you do not get a prompt for up to 30 seconds.

Note that these systems are in Azure and our AD is also in Azure.

I am using offline caching and setting the site.  I am stumped as to how to correct this issue.

Below are my conf files (sanitized for security).

-----------------------------------------------------------------------------------------
/etc/sssd/sssd.conf

[sssd]
services = pam, nss
config_file_version = 2
domains = XXXX.COM
sbusTimeout = 30
#debug_level = 7

[domain/XXXX.COM]
id_provider = ad
krb5_realm = XXXX.COM
access_provider = ad
#debug_level = 7
default_shell = /bin/bash
ldap_id_mapping = True
ad_site = XXXXXXX
min_id = 50000
cache_credentials = true

# Use this if users are being logged in at /.
# This example specifies /home/DOMAIN-FQDN/user as $HOME.  Use with pam_mkhomedir.so
override_homedir = /home/XXXX/%u

# Uncomment if the client machine hostname doesn't match the computer object on the DC.
# ad_hostname = mymachine.myubuntu.example.com

# Uncomment if DNS SRV resolution is not workin#g
# ad_server = _srv_

# Uncomment if the AD domain is named differently than the Samba domain
# ad_domain = MYUBUNTU.EXAMPLE.COM

# …
0
I have migrated a test database to a domain joined Ubuntu 18.04 server with MS SQL Server Studio instance. The AD domain security group authentication has been set up on the database but when I try connecting as a group user, the CRM client software gives the following error:

"Login failed. The login is from an untrusted domain and cannot be used with integrated authentication."

I was told to add "Integrated Security = true" to the client connection string though because before this I was getting:

"Login failed for user ''.
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)"
0
Is it possible to set up a script on an Apache web server to email me whenever a 500 error happens? How would I do that? We use Symfony and if there's a code failure I want to know about it bright away... the Symfony logs don't show a 500 error but the server logs do.
0
Learn SQL Server Core 2016
LVL 19
Learn SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

I have a laptop that gets connected to the internet through WiFi. but many WiFi’s and depends where I am (home,office, customer,etc...)
my laptop is windows 10 Pro.
I have a virtual box installed and I have installed on it Ubuntu.
unfortunately I am not being able to make my Ubuntu VM connect to the internet.
can someone help me on how to achieve this ?
the weird thing is that I also have another VM that is windows 2012 server and this VM has internet without me doing any configuration change !
thank you
0
Hello how would one go about setting up an offline repository to keep Ubuntu updated?
0
My application (C++, WxWidgets, Ubuntu) have to play different mp3 files depending on user actions. At the moment, I use vlc library and I always call a new function to reproduce the audio file, but this requires too much code and I think it's not so professional. Since I do not want to stop the flow of the application while the mp3 is playing, I use threads.

I tried to write a class for the mp3, but I think it is not correct since I get this error:

  /home/isola/Documents/Isola02/secondpanel.cpp:68:102: error: invalid use of void expression
  pthread_create(&thread, NULL, mp3->play_mp3("/home/user/Project/audio/scegli-rifiuto.mp3"), NULL);

Open in new window


This is the code of my class:

rePlay.cpp
#include "rePlay.h"
#include <vlc/vlc.h>

rePlay::rePlay()
{
    //ctor
}

rePlay::~rePlay()
{
    //dtor
}

void rePlay::play_mp3(const char* path){
  // load the vlc engine
    inst = libvlc_new(0, NULL);
    printf("apro il file %d\n", inst);
    // create a new item
    m = libvlc_media_new_path(inst, path);
    // create a media play playing environment
    mp = libvlc_media_player_new_from_media(m);
    // no need to keep the media now
    libvlc_media_release(m);
    // play the media_player
    libvlc_media_player_play(mp);
    printf("Done.\n");
}

void rePlay::stop_mp3(){
  // stop playing
    libvlc_media_player_stop(mp);
    // free the media_player
    libvlc_media_player_release(mp);
    libvlc_release(inst);
}

Open in new window

and the header rePlay.h
#ifndef REPLAY_H
#define REPLAY_H
#include <vlc/vlc.h>

class rePlay
{
    public:
        rePlay();
        virtual ~rePlay();
        void play_mp3(const char*);
        void stop_mp3();
    protected:
        libvlc_instance_t *inst;
        libvlc_media_player_t *mp;
        libvlc_media_t *m;
    private:
};

#endif // REPLAY_H

Open in new window

My idea is to call:

pthread_t thread;
rePlay *mp3;
pthread_create(&thread, NULL, mp3->play_mp3("/home/user/Project/audio/scegli-rifiuto.mp3"), NULL);

Open in new window


by passing the path of the file each time I want to reproduce a mp3 and then to call:

pthread_create(&thread, NULL, mp3->stop_mp3, NULL);

Open in new window


when I want to stop it.

At the moment, I get this error from the compiler regarding the pthread_create, but I think there should be other problems since I do not know if the play_mp3() and stop_mp3() could work.

Can you help me, please?
0
I'm using Ubuntu and I have a C++ application which uses WxWidgets and sends a string over TCP several times. It works pretty fine only if the router and the connection are OK, otherwise it gets stuck and I need to manually quit the application.
I would like to send the data without blocking the application flow in case of errors.

I call the function in this way:

   
 SendCommand ptr;
    if ( ptr.sendcommand(16,16,1) ){
    printf("Porta Aperta\n");
    } else {
    printf("Errore di comunicazione - porta non aperta\n");
    }

Open in new window


and this is the function:

int SendCommand::sendcommand(int relay_on, int relay_off, int stop){
    printf("eseguo la funzione nella classe\n");

    std::array<uint8_t, 8> command1;
    std::array<uint8_t, 8> command2;

    switch(relay_on){

    case 16: command1 = {0x58, 0x01, 0x12, 0x00, 0x00, 0x00, 0x10, 0x7B}; // switch on the relay 16
    break;

    }

    switch(relay_off){

    case 16: command2 = {0x58, 0x01, 0x11, 0x00, 0x00, 0x00, 0x10, 0x7A}; // switch off the relay 16
    break;

    }

    int sockfd, n;
    struct sockaddr_in servaddr;

    std::string serveraddr = "192.168.1.4";

    sockfd = socket(AF_INET, SOCK_STREAM, 0);

    if ( sockfd < 0 )
    {
        cerr << "Error creating socket! " << strerror(errno) << endl;
        return -1;

    }

    bzero(&servaddr, sizeof(servaddr));
    servaddr.sin_family = AF_INET;
    servaddr.sin_addr.s_addr = inet_addr(serveraddr.c_str());
    servaddr.sin_port

Open in new window

0
We got some threshold alert on CPU usage sometimes. Thus we want to find out which process caused high CPU utilization on Linux.
After we use top and ntop command, all processes used only 0.7 to 1% CPU resources from time to time. We have no idea which process caused the issue.
Any command or tools could help us with this problem? Thank you.

RedHat and Ubuntu.
0
Hi, i have just installed Ubuntu Server 16 and i have installed firefox, my aim would be to have firefox launch automatically when machine starts up on a web address https://www.iradio.ie
0

Ubuntu

373

Solutions

423

Contributors

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