20.04 – Help running windows on Ubuntu

Please I need some guide? I am using Ubuntu 20, but want to run windows virtually on it so I can use some apps that runs only on Windows for now or that i am yetto fully get ysed to on linux. I have seen some names like Linux-KVM, QEMU, Virtualbox, VMWare, Play On Linux – Please do you mind to tell me a little about this? I have seen many write ups but I cant really tell what is okay.

reactjs – What is the best way to add translation.json file to a React app running inside docke

I am working on a react web application, which may require multi language support. I am using i18n-next which internally loads the required configuration file from specific directory based on the language selected by user.
enter image description here

The word or scentences that needs to be translated may increase based the screens that user going to add and also if use adds new folder, we will loading those languages into our application.

What is the best way (I mean Scallable, Easy to configure, platform provided…) to satisfy the requirement?

( 🙁 All I can think of is mounting an external locales folder to the folder inside container.. Is that the only way.. or something else is there..)

Note: kubernetes and rancher is there to manage. Plase provide solution/suggestion around that.

Nandri.

server – Does Samba 4.7.6 running on Ubuntu 18.04 support the storing of a Windows encrypted file or folder without losing encryption?

I have a single text file on my Windows 10 Desktop that I’ve encrypted using the Windows “Files->Properties->General->Advanced “Encrypt contents to secure data.” When I try to save this to my share on my Ubuntu 18.04/Samba 4.7.6 Server, Windows returns: “Do you want to copy this file without encryption?
You are copying the file to a destination that does not support encryption.” Of course, I can say “copy without encryption,” and it copies to the server without a problem–except the file is no longer encrypted.

I used to get a Windows 10 error message similar to this when I copied Windows files that had more than one data stream, and I added the line “vfs objects = streams_xattr” to the smb.conf file under the share that I’m using–and copying Windows files with more than one data stream now works perfectly fine.

So my question is this: Does Samba 4.7.6 support copying intact a single Windows encrypted file to the server such that it retains its Windows encryption? Is there a line I need to add to the smb.conf file that would enable this capability? Maybe this is not possible as I haven’t been able to find anything on it. My Ubuntu server runs EXT4 disks and runs as a standalone server with a workgroup defined. BTW: I have multiple users with individual permissions to shares and they all have been working for the last two years.

So, to be clear, I’m not interested in whether my data travels from Windows to the server in an encrypted format (though it probably does), nor do I want to encrypt any of the server disks. All I want to do is be able to copy a Windows encrypted file or folder with files to the Ubuntu/Samba server and retain Windows encryption “property.” –Same as copying Windows files with multiple data streams and preserving them.

Thanks so much for any help.

centos – Identify processes running inside Docker, in Process List

I realize that processes that run inside Docker containers appear on the hosts’ process list:

# ps aux | grep mariadb
root     12486  0.0  0.0 112812   976 pts/0    S+   14:47   0:00 grep --color=auto mariadb

Is there a way to identify whether a process is running on the Host or on a Docker container, or a way to filter the Docker processes out?

unity – Game not build and running to android after making a keystore?

Thanks for contributing an answer to Game Development Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, see our tips on writing great answers.

python – Client-server application for logging running processes

My first client-server application. It’s a simple Python script that gets a list of running processes from Server_1 and writes it to a datetime-named file on Server_2, every 5 seconds.

I am planning on refactoring this code into one or two functions, maybe one for securing the connection and one for implementing the logic.

I also know nothing about security best-practices, and I’m looking for some pointers. Any feedback on any aspect of the code is welcome.


import os
import paramiko
from time import sleep
from datetime import datetime

SERVER_1 = os.getenv('HOST_1') or ""
SERVER_1_PASS = os.getenv('PASS_1') or ""
SERVER_2 = os.getenv('HOST_2') or ""
SERVER_2_PASS = os.getenv('PASS_2') or ""

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(SERVER_1, username='root', password=SERVER_1_PASS)

ssh2 = paramiko.SSHClient()
ssh2.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh2.connect(SERVER_2, username='root', password=SERVER_2_PASS)

while True:

    now = datetime.now()
    dt_string = now.strftime("%d-%m-%YT%H:%M:%S")

    stdin, stdout, stderr = ssh.exec_command("ps -aux")

    processes = stdout.readlines()
    output = (line.strip() for line in processes)

    ftp = ssh2.open_sftp()
    try:
        file = ftp.file(dt_string, "a", -1)
        file.write('n'.join(output))
        file.flush()
        ftp.close()
    except IOError as e:
        print("Could not write to file")
        print(e)

    sleep(5)
```

algorithms – Running time of heapsort on an array sorted in decreasing/increasing order

The site here https://courses.csail.mit.edu/6.046/fall01/handouts/ps2sol.pdf mentions :

The running time of HEAPSORT on an array A of length n that is sorted in decreasing order will
be $Theta(nlg n)$.
This occurs because even though the heap will be built in linear time, every time the
max element is removed and the HEAPIFY is called it will cover the full height of the tree.

It’s the last line which I can’t understand. I tried the array A <7, 6, 5, 4, 3, 2, 1>. The first time MAX-HEAPIFY is called, the full height of the tree is covered and I get <6, 4, 5, 1, 3, 2> 7. However, the second time itself the full height of the tree is not covered and I get <5, 4, 2, 1, 3> 6, 7. How does that statement hold then?

Also I see people writing on similar lines saying each call to MAX-HEAPIFY performs full lgk operations, where k (I’m assuming) is the number of nodes in the modified heap in each iteration, thereby obtaining the summation.
$$ sum_{i=1}^{n-1}lg{(n-i)} = lgBig((n-1)!Big) = Theta(nlg{n}) $$

Can someone help me realize this. I just want to understand how MAX-HEAPIFY covers the full height of the tree each time it is called.