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 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
Become a Microsoft Certified Solutions Expert
LVL 13
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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
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
i have ipa server running on centos 7. i create user from ipa ldap.
id "username"  return uid, gid and groups successfully.
i try to login to server via su - "username"  return
su: cannot set groups: Invalid argument
What is wrong?
ls -l /bin/su  is also ok. permission  -rwsr-xr-x 1 root root 32128 Aug  9 03:10 /bin/su
The same permission for /etc/shadow and /etc/passwd
-rw-r--r-- 1 root root 1467 Sep 22 20:59 /etc/passwd
-rwsr-s--- 1 root root 827 Sep 23 11:11 /etc/shadow

Help
0
Hello!
I've found onine is pretty decent video tutorial about BASH. But it's dated around 2010. I think Ubuntu 10.10 or so... You think I can still learn today by using that old tutorial or there're changes in BASH in last years that render that course obsolete?
0
Hello!
I've got Ubuntu 16.04 and OpenVPN installed and seems to be working fine. But when I check firewall rules using "sudo ufw status", then I see this:
Status: active

To                         Action      From
--                         ------      ----
80                         ALLOW       Anywhere                  
443                        ALLOW       Anywhere                  
53                         ALLOW       Anywhere                  
465                        ALLOW       Anywhere                  
25                         ALLOW       Anywhere                  
110                        ALLOW       Anywhere                  
995                        ALLOW       Anywhere                  
143                        ALLOW       Anywhere                  
993                        ALLOW       Anywhere                  
10025                      ALLOW       Anywhere                  
10024                      ALLOW       Anywhere                  
80 (v6)                    ALLOW       Anywhere (v6)             
443 (v6)                   ALLOW       Anywhere (v6)             
53 (v6)                    ALLOW       Anywhere (v6)             
465 (v6)                   ALLOW       Anywhere (v6)             
25 (v6)                    ALLOW       Anywhere (v6)             
110 (v6)                   ALLOW       Anywhere (v6)             
995 (v6)                   ALLOW       Anywhere (v6)             
143 (v6)                   ALLOW       

Open in new window

0
i have an iso of 18.04.3 desktop-amd64.iso.  how do i burn this to a dvd?  i've done it before but i forget.  i'm currently running ubuntu 16.04.
0
Let's say following Yocto project image or embedded linux distribution was created by using remote virtual linux box from windows computer:

Image Name:  fsl-image-validation-imx
Target:  Builds an i.MX image with a GUI without any Qt content.

Please refer to section 5.2 in attached i.MX_Yocto_Project_User's_Guide.pdf

The created filename that needs to be loaded in Secure Digital(SD) card is:  fsl-image-validation-imx-imx8qxpmek-20190904151816.rootfs.sdcard

This file has been copied from linux virtual box to windows computer.

How do I load this file into SanDisk Ultra 8GB class 10 SDHC card using my windows computer?

After successful load, this SD card will be inserted into NXP i.MX 8QuadXPlus Multisensory Enablement Kit(MEK) evaluation board to boot embedded linux kernel.

What do I need to know about SD card in order to successfully load image into it from my windows computer.  Do I need to format SD card first?  I'm familiar
with formatting hard disk but never formatted SD card?  Do I need to create partitions?  In hard disk paritions are created to load different OS in each partition.  what
about SD card?

Hard disk internal structure consists of tracks and sectors.  Do I need to know SD card structure for successfully loading image into it from windows computer?
i.MX_Yocto_Project_User-s_Guide.pdf
0
Hello!
I have Ubuntu 16.04 (Desktop Edition) with OpenVPN server and BIND9 installed. I used a script when I installed OpenVPN. My OpenVPN client is a W10 netbook with 4G USB modem.
When I choose to use Google DNS during OpenVPN installation then I can surf the Internet via OpenVPN just fine (on my OpenVPN client W10 machine). But if I choose to use a current DNS settings (ie. my own BIND9 server), then I can connect from client to server, but DNS doesn't work. I know that I must edit config file of OpenVPN server server.conf AND to also edit client.ovpn client's OpenVPN file too. And I don't know exactly whether my DNS server (BIND9) is properly configured to play this kind of role.
When I go to W10's CMD and do ipconfig /all I do see DNS server with a correct IP of my BIND9 (it's a public IP of my Ubuntu machine, actually). Nevertheless, DNS doesn't work on a client machine and I couldn't find a complete step-by-step manual how to enable this scheme.
0
CompTIA Cloud+
LVL 13
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Hello

Having a somewhat surprising issue - our mail flow on our Zimbra server is down (both inbound and outbound) yet the server seems healthy and no error seems reported.

1. Server is up (8.8.10_GA_3786) on Ubuntu 16
2. Admin health status page shows every service up & running (green)
3. Webmail access is ok
4. IMAP access is ok

However, no mail is flowing in or out.

Trying to send triggers the following errors:

SMTP

19:03:25 Ready to run action (retry count: 0)
19:03:25 Clearing connection to zimbrams.domain.com
19:03:25 Trying to connect to zimbrams.domain.com on port 465 (CFNetwork) with STARTTLS (required)
19:03:25 Resolved hostname (zimbrams.domain.com).
19:03:25 Error: Connection error (Connection refused).
19:03:25 Error code: 2
19:03:25 Failed action (0). Reset observed read/write timeouts: 8/8

Open in new window

or
MBP13:~ alex$ telnet zimbra.domain.com 25
Trying *.*.187.68...
telnet: connect to address *.*.187.68: Connection refused
telnet: Unable to connect to remote host
MBP13:~ alex$ 

Open in new window


(ie the connexion is actively refused)

webmail

method:	[unknown]
msg:	try again: Unable to connect to the MTA
code:	mail.TRY_AGAIN
detail:	soap:Receiver
trace:	qtp66233253-2518:1568314842997:7a36c58c222c3898
request:	
Body: {
  SendMsgRequest: {
    _jsns: "urn:zimbraMail",
    m: {
      e: [
        // [0]:
        {
          a: "someone@gmail.com",
          t: "t"
         },
        // [1]:
        {
          a: 

Open in new window

0
Was told by one of the vendor selling Ivanti (LanDesk related)
patch mgmt product that RedHat had since controlled it such
that any products that do patching for RHEL must have a
Satellite server with valid subscriptions for each RHEL endpoints
to be patched.

We don't want to do 'yum' (ie permit backend servers' connecting
to RHEL).


Q1:
So without Satellite, is there any products our there that could
do patching of RHEL endpoints?  

Q2:
Is this requirement to have Satellite something that Bigfix also
require?  Seems like the vendor selling Satellite is not aware.

Q3:
Is there any scripts or tools out there that could pull all the
patches down with a single RHEL subscription, build a patch
repository which can be propagated down to our RHEL
endpoints?   I recall an ex-colleague who has built an RHEL
VM that could do something like this but I've lost touch with
him.

Q4:
Some years ago, a member in SunManagers list shared with
me that Satellite could patch Solaris as well (possibly that's
in the days of RHEL Ver 4.x): is this still the case today that
Satellite could patch Solaris?   What about Ubuntu, Debian,
& CentOS Linuxes?
0
i take a snapshot of my lxd:
i stop lxd (lxd stop "server_name) then i take snapshut (lxc snapshot "server_name" "snap_name")
i check with lxc ls snap was created and i start server (lxc start " servername) i make a ls igen lxc ls snapshot was there.
now i try to restore to snapshut
i  make lxc ls   snapshot for that server missing. the snapshot column is 0 .
is it possible to this snapshot is hide under some place and can restore to that
0
I have a digital scale connected via USB to my Ubuntu laptop and I would like to read the measurements from it.
The serial protocol is very simple (9600,8N1, ttyUSB0) and I'm able to correctly read the measurements by using putty (VT100+) from terminal.

The scale needs to receive the command
"READ<CR><LF>"

Open in new window

in order to send the measurement.
Each measurement has this format:
01ST,GS,   2.5,kg<CR><LF>

Open in new window

if, for example, I'm measuring a 2.5Kg load.

Now, I'm trying to send the READ command from a C application, but I'm not able to get any answer.

#include <errno.h>
#include <fcntl.h> 
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>

int set_interface_attribs(int fd, int speed)
{
    struct termios tty;

    if (tcgetattr(fd, &tty) < 0) {
        printf("Error from tcgetattr: %s\n", strerror(errno));
        return -1;
    }

    cfsetospeed(&tty, (speed_t)speed);
    cfsetispeed(&tty, (speed_t)speed);

    tty.c_cflag |= (CLOCAL | CREAD);    /* ignore modem controls */
    tty.c_cflag &= ~CSIZE;
    tty.c_cflag |= CS8;         /* 8-bit characters */
    tty.c_cflag &= ~PARENB;     /* no parity bit */
    tty.c_cflag &= ~CSTOPB;     /* only need 1 stop bit */
    tty.c_cflag &= ~CRTSCTS;    /* no hardware flowcontrol */

    /* setup for non-canonical mode */
    tty.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);
    tty.c_lflag &= ~(ECHO | ECHONL | ICANON |

Open in new window

0
i have slapd on my ubuntu 18.04 services is running and ok
i try ldapsearch -x get error : Operations error (1)
Additional information: 00002020: Operation unavailable without authentication
and in /var/log/auth.log: ldapsearch: DIGEST-MD5 common mech free
0
I have an electronics board which has 16 relays and it works over TCP/IP.
The IP address of the board is 192.168.1.4 and the port is 3000.
I would like to control it with C/C++ under Ubuntu.

There is a list of HEX commands that it is possible to use in order to remotely switch ON and OFF each relay on the board.
This is the list:
"580112000000016C",  // switch on the relay 1

"580111000000016B",  // switch off the relay 1
"580112000000026D", // switch on the relay 2
"580111000000026C", // switch off the relay 2
"580112000000036E", // so on..
"580111000000036D",
"580112000000046F",
"580111000000046E",
"5801120000000570",
"580111000000056F",
"5801120000000671",
"5801110000000670",
"5801120000000772",
"5801110000000771",
"5801120000000873",
"5801110000000872",
"5801120000000974",
"5801110000000973",
"5801120000000A75",
"5801110000000A74",
"5801120000000B76",
"5801110000000B75",
"5801120000000C77",
"5801110000000C76",
"5801120000000D78",
"5801110000000D77",
"5801120000000E79",
"5801110000000E78",
"5801120000000F7A",
"5801110000000F79",
"580112000000107B",
"580111000000107A",
"5801130000FFFF77",
"580113000000007B",
"5801100000000069"

I'm correctly able to switch on and off each relay by sending command line commands under Ubuntu:

echo '580112000000016C' | xxd -r -p | nc 192.168.1.4 3000

Open in new window

The above code correctly turns on the relay.

I would like to do the same with C/C++ code since I want to control the …
1
Hello expert,
We are not able to run any command in our Ubuntu 18 LTS and we are getting the following error "cannot create temp file for here-document: No space left on device". So, how can I free up space if the root account is itself looked.
0
Q1:
Is there any hardening guide for RHEL 8?
If there's none, can I assume it's very close to RHEL 7's hardenings?
Then I'll ask vendors to harden RHEL 8 as per CIS RHEL7's benchmark.

Q2:
We're hosting docker/microservices in an RHEL host: previously the
vendor tested using RHEL7: can I safely say it makes no difference/
impact to the services/app whether we use RHEL 7 or 8?

Q3:
at the VMs level is there any difference/impact?  The docker
instances is spinned from the various Ubuntu, Debian images,
so I'm guessing it doesn't matter which version of RHEL runs
on the VMs
0
i have a nas which is mounted in ubuntu 16.
nas is restarted and ubuntu missing this mount.
Now i can't mount it because the old one is running i can't find the process via ps -ef | grep nfs
and i do not like to reboot server because of that.how to find process it's no possible to make ls -l /mnt/archive because it old one running
i can without any problem mount it under fx. /test but i need to stop the old one.
0
PMI ACP® Project Management
LVL 13
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

how to connect a backend ldap (fx. slapd)  with a samba (ubuntu) active directory?
0
I've written some simple Python scripts and now I would like to write a Python script that can be installed and run as a service.

I know how to take a Python program and run it as a service but how would I write a Python program that can be installed?

My operating system is Ubuntu 18.04.
0
I'm developing a WxWidgets application under Ubuntu and I'm using CodeBlocks as IDE.

I need to:

  • read the data stored in a magnetic card band
  • check if they are OK
  • parse the string in order to get the code, the name and the surname

I'm using a USB magnetic card reader and I set a TextCtrl as "focused" so it immediately gets the data from the reader automatically.

The format of the string is like this:

%URSMCC84R04E815LURSO  MARCO_ò8038001605011036724_

Open in new window


The control characters are always the same and I need to read everything between % and _.
I need to obtain three strings:
  • the first one containing the first 16 chars
  • the second contains the surname which goes from the 17th till the first space
  • the third string contains the name and goes from the first char after the space till the _

What is the best way to do this in Wxwidgets?
Moreover, since the reader emulates a keyboard, the output string is read a char at a time, so how can I design the parsing code?

This is the code I'm using to read the string.

void ProjectFrame::OntesseraText(wxCommandEvent& event)
{
    wxString stringa_tessera = tessera->GetValue(); // I read the string coming from the USB reader
    TextCtrl2->ChangeValue( stringa_tessera ); // I load the string in the second TextCtrl just for test
}

void ProjectFrame::OnTextCtrl2Text(wxCommandEvent& event)
{
// TextCtrl used to display the parsed string
}

Open in new window


I see that there is a class wxStringTokenizer, should I use it?
I'm sorry but I'm just a beginner :(

Thank you!
0
my printer is a brother hl-l2340dw.  i am using ubuntu as my OS.  is there something i should do to get this printer to work?  i am hoping to get around switching to Windows.  i don't like their updates very much.  where it tells you to not shut you're computer down.
0
How do I disable chef-client on a node?  7 days then autoenable is preferred.
0
I connect to remote Linux VM from my windows PC puTTy terminal or from remote desktop.

The Linux VM distribution is Ubuntu 18.04.2 LTS.  It is 64-bit.

What is python3-pexpect.  It isn't installed.  Will 'sudo apt-get install python3-pexpect' install it?
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).