Linux Distributions

27K

Solutions

20K

Contributors

A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).

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

Sign up to Post

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
Starting with Angular 5
LVL 19
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

I hv an urgent need to install aide & syslog-ng on
my RHEL 7 VMs (going live on Mon) but somehow
my RHEL account can't download packages from RHN.

Can I use those packages meant for CentOS 7 &
Fedora  from pbone.net ?


Also, for the following, is a subscription-manager rpm required to be installed?
$ subscription-manager identity
This system is not yet registered. Try 'subscription-manager register --help' for more information.
0
hi how can i add user to a group in linux i what to move user from root group to another user
group
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
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’m looking for a secure way to Remote Desktop from a MacBook to the Linux (Ubuntu) GUI.

Currently, we are using NoMachine, but we are encountering significant problems with crashed Ubuntu sessions, often to the point where someone needs to physically access the hardware to reset it.

I’ve invested using VNC but our security team have concerns about it.

Please don’t suggest SSH :)  We already use this method, but occasionally it’s also important to get access to the Ubuntu GUI.

The tool must be secure, ideally low cost or free, and must be peer to peer (no third party go-between like TeamViewer).

Thank you.
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
Learn Ruby Fundamentals
LVL 19
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

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

I have my MySQL 8.0.12 router, shell and community server installed and by some reason once MySQL shelled to the router it will prompt for login and never can login as it prompt for the following message:

 I have bootstrap mysql router and start mysqlrouter accordingly.

first messagge
I connection using MySQL shell and it has error:

 

Any reason why is that?

IP address of DB instance can be ping from that MySQL router node so connectivity is not a problem.

any reason why ?

this is the mysqlrouter.conf:

MysQL-router-3.jpg
0
OWASP: Forgery and Phishing
LVL 19
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

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 have a CentOS 7.7-1908 clean install on a sever.  I was having trouble with YUM updating packages and I attempted to clear out the broken YUM records and start fresh.  I made it worse, and now the server isn't working at all.  I keep getting a message:

[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>


Only there are no repositories in the list when I try to run the suggest commands.  Is there any way to get this back without wiping the server and starting over?  Tried some research but nothing seems to work.
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
How to best prep a new machine for running LXD containers?
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

Linux Distributions

27K

Solutions

20K

Contributors

A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).