Ubuntu

367

Solutions

419

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

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
How to Generate Services Revenue the Easiest Way
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

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).  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
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
Build an E-Commerce Site with Angular 5
LVL 19
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

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

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
i update (normal update after that upgrade ) my ubuntu 16 domain server(samba4 domain server)
After that not possible to login as domain user only on that server.
Authlog (under /var/log) says: fatal: Access denied for user [REALM]\\\\user by PAM account configuration [preauth]
debug1: do_cleanup
debug3: monitor_read_log: child log fd closed
debug3: sshpam_thread_cleanup entering
debug1: audit_event: unhandled event 12
0
Hi there.

My brother got an issue with a Seagate Central network disk. The network part doesn't work anymore, and he wants to rescue the data and copy to a usb-disk/computer drive etc...
The challenge is that Seagate utilizes a file format related to Ubuntu/Linux. He tried to pull out the hard disk from the storage unit and hook up to a Windows computer via USB. That didn't work that well, because the 3TB drive apparently is formatted in like 500GB partitions with a Ubuntu/Linux format. That is not recognized by Windows.
So the task is how to move/copy data to a "normal" disk that will work with Windows.
I found a Gparted software that is supposed to do the trick, but we're a bit insecure about what to do and if this is the right procedure.
Did any of you out there try a similar task? We would prefer if it's possible to do the whole thing with a Windows based software.
Looking forward to your suggestions.  :-)

Best regards

Ulrich
0
I created an Azure VM using the CIS Hardened Ubuntu image. When setting up the VM I chose to use a public/private key to access the VM. This was in April of this year. Now when I logon its telling me my password has expired but we never gave the user a password.

I'm guessing that this is due to the hardened CIS image and it wants us to change the password. However we dont know what the old password would be. Using the serial console in Azure I can create another admin user and i tried to use chage -d -1 <user> but that doesnt seem to work.

I'm wondering if anyone else has come across this issue or can help me find a way to remove the password expiration.
0
I'm having serious problems to make my kiosk printer (Nippon Primex NP-VK30) work correctly under Ubuntu 19.04.
The manufacturer provides no support for Ubuntu, but I've found on Github a very simple library made in Python.
I attached the Python files to this topic.

I tried to launch "test.py" and my printer worked fine!

Since I need to print some text strings from my C/C++ application, I would like to translate the python code into C/C++ code so I can easily import it in my original application.

Unfortunately, I'm just a beginner and I never coded in Python.
Can you help me, please?

Thank you!

This is the code for test.py:

#!/usr/bin/python
from w2k203dpi import Printer

p = Printer()

p.println('test')

p.bold(True)
p.println('test')
p.bold(False)

p.underline(True)
p.println('test')
p.underline(False)

p.qrcode('test')

p.fullcut()

Open in new window


This is the code for the class file:

class Printer:

    def __init__(self):
        DEVPATH = '/dev/usb/lp0'
        self.f = open(DEVPATH, 'w')
        self.mode = 0x00

    def raw(self, data):
        for i in data:
           self.f.write(i)
        self.f.flush()

    def esc(self, data):
        self.raw('\x1b' + data)

    def font(self, value):
        if value:
            self.mode |= (1 << 0)
        else:
            self.mode &= ~(1 << 0)
        self.esc('!' + chr(self.mode))

    def bold(self, value):
        if value:
            self.mode |= (1 << 3)
        else:
         

Open in new window

0
hello,
i need to install an erpnext open source in my company, could anyone provide me with guide to install it i tryed many links but not working,
installing can be on ubuntu 18.04 or cento 7

thanks,
0

Ubuntu

367

Solutions

419

Contributors

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

Top Experts In
Ubuntu
<
Monthly
>