Kubuntu installation and keyboard are not working properly

I just installed Kubuntu 18.04 lts and my keyboard and mouse pointer did not work properly during installation. After installation, it stops responding. But somehow Libre Office opened and the entire keyboard worked there. Nothing seems to work after the office closes. Had to shut down the system by force.

You need a solution for that. Could this be because I didn't check the ISO file before mounting it in USB (I didn't know how to check it either)?

Use Unity and C # to index properly in Json

If I wanted to index myself price or galleryId in this json file:

"searchId": null,
"listings": ({
    "sid": 0,
    "id": 25,
    "status": 3,
    "art": {
        "sid": 0,
        "artId": 24,
        "token": "v",
        "name": "A",
        "description": "F",
        "width": 18.0000,
        "height": 24.0000,
        "metricWidth": 0.4572,
        "metricHeight": 0.6096,
        "mediaType": "",
        "fullSizeImageUrl": "http",
        "thumbnailImageUrl": "http",
        "artist": {
            "token": null,
            "firstName": "V",
            "lastName": "G",
            "visibleInSearch": false,
            "inventoryVisibleInSearch": false
    "galleryId": 1,
    "price": 1750,
    "listed": "2020-01-18T21:49:41.447"

Would this be the correct syntax?


        for (int i = 0; i < itemData(0)("listings").Count; i++)

         database.Add(new Art(itemData(0)("listings")(i)("galleryId").ToString(), 

postgresql – How do I either set a password for postgres, use the postgres user properly, or prevent postgres from asking me for a password?

I'm fairly new to programming and use Postgres 12.2.

I have big problems setting up Postgres. When I try to connect to a database, e.g.

psql -U postgres -d demo

This is the first command in the list of commands here. I am asked to enter a password that I have never set.

As far as I can tell, postgres should be a "superuser" with no password. By using resources online, I used the initdb command to create an initial database cluster (though I don't know how to use that cluster) and I set the bin file to be in the path system variable what i don't understand the purpose of.

Here is an example:

C:>psql -U postgres -d C:usrlocalpgsqldatabase1

Password for postgres users:
psql: Error: Unable to connect to the server: FATAL: Password authentication for user "postgres" failed

openssl – How to properly generate a restricted use x509 certificate

I put certificates in a repository that does not allow a successive certificate with more limited use than the previous one. I need a first dummy certificate / key / chain to boot the process, the use of which is no more open than Let & # 39; s encrypt host certificates that allow serverAuth and clientAuth. All I need is a dummy host certificate that has these uses or less. However, given the many iterations of commands, I was unable to generate this after reading many articles and SO articles yesterday and today.

Here's what I work with:


#!/bin/bash -e

rm dummy*


openssl genrsa -out dummy-root.key 2048

openssl req -new -x509 -days $days -subj '/C=US/ST=TX/O=foo/OU=bar/CN=dummy-root.com' -key dummy-root.key -out dummy-root.crt

openssl genrsa -out dummy-class2.key 2048

openssl req -new -subj '/C=US/ST=TX/O=foo/OU=bar/CN=dummy-class2.com' -key dummy-class2.key -out dummy-class2.csr 

openssl x509 -req -days $days -in dummy-class2.csr -CA dummy-root.crt -CAkey dummy-root.key -CAcreateserial -out dummy-class2.crt

openssl genrsa -out dummy-host.key 2048

openssl req -new -config gen.host.cfg -key dummy-host.key -out dummy-host.csr -extensions my_server_exts

openssl x509 -req -days $days -in dummy-host.csr -CA dummy-class2.crt -CAkey dummy-class2.key -set_serial 1 -out dummy-host.crt -sha256  -ext subjAltName

rm *.srl *.csr
cat dummy-host.crt dummy-class2.crt dummy-root.crt > dummy-chain.crt

# this always fails?
# openssl verify --CAfile dummy-root.crt -untrusted dummy-class2.crt dummy-host.crt

openssl x509 -noout -ext extendedKeyUsage < dummy-host.crt

And for the configuration file that is required for the extensions (see above):


( req )
prompt             = no
default_bits       = 2048
default_md         = sha256
distinguished_name = my_dn
req_extensions     = my_server_exts

( my_dn )
# The bare minimum is probably a commonName
            commonName = dummy-host2.com
           countryName = US
      organizationName = foo
organizationalUnitName = bar

( my_server_exts )
basicConstraints = critical,CA:false
keyUsage = keyEncipherment
# extendedKeyUsage = serverAuth
extendedKeyUsage =

The last line of gen.sh tries to read the extensions and always says "No extensions in the certificate", which is interpreted as "ANY" use when sending to the certificate repository, and then refuses to use the update when using a Lets Encrypt to reduce cert.

Why doesn't my specified EKU make it to the certificate? Or how else can I create a certificate that has limited use?

vnc – TightVNC and Ubuntu 18.04 desktop do not work properly

I have a home server with Ubuntu Desktop 18.04. I am trying to get the full Gnome desktop with TightVNC in a headless configuration. I can't seem to find the right arguments for the Xvnc session file.

This is my current session file:

export XDG_CURRENT_DESKTOP="GNOME-Flashback:Unity"
export XDG_MENU_PREFIX="gnome-flashback-"
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-panel &
unity-settings-daemon &
gnome-flashback &
metacity &
nautilus &

With this I get a single window, but without the desktop as shown below.
VNC client view

What arguments am I missing from the session file to get the full desktop in Ubuntu 18.04?

Unity – snake tail in snake play is not working properly

I'm doing a simple snake game in Unity 2D. And the snake tail doesn't follow directly behind the snake's head as it is intended.

The following happens: https://imgur.com/a/zG6hbd7

This is my code:

using System.Collections;

using System.Collections.Generic;
with UnityEngine;
using System.Linq;

public class SnakeMovement: MonoBehaviour

private Vector3 fp;   //First touch position
private Vector3 lp;   //Last touch position

private float dragDistance;  //minimum distance for a swipe to be registered
private float speed = 13f;

private Rigidbody2D rb;
private Vector2 moveVelocity;

public GameObject tail;

public List tailPositions;

void Start() {
    dragDistance = Screen.height * 5 / 100; //dragDistance is 5% height of the screen
    rb = GetComponent();

void Update() {

    if (Input.touchCount == 1) // user is touching the screen with a single touch
        Touch touch = Input.GetTouch(0); // get the touch
        if (touch.phase == TouchPhase.Began) //check for the first touch
            fp = touch.position;
            lp = touch.position;
        else if (touch.phase == TouchPhase.Moved) // update the last position based on where they moved
            lp = touch.position;
        else if (touch.phase == TouchPhase.Ended) //check if the finger is removed from the screen
            lp = touch.position;  //last touch position. Ommitted if you use list

            //Check if drag distance is greater than ?% of the screen height
            if (Mathf.Abs(lp.x - fp.x) > dragDistance || Mathf.Abs(lp.y - fp.y) > dragDistance)
            {//It's a drag
             //check if the drag is vertical or horizontal

                if (Mathf.Abs(lp.x - fp.x) > Mathf.Abs(lp.y - fp.y)) {   //If the horizontal movement is greater than the vertical movement...
                    if ((lp.x > fp.x)) {   //Right swipe
                        if(moveVelocity != Vector2.left) {
                            moveVelocity = Vector2.right;
                    else {   //Left swipe
                        if(moveVelocity != Vector2.right) {
                            moveVelocity = Vector2.left;
                else {   //the vertical movement is greater than the horizontal movement
                    if (lp.y > fp.y) {   //Up swipe
                        if(moveVelocity != Vector2.down) {
                            moveVelocity = Vector2.up;
                    else {   //Down swipe
                        if(moveVelocity != Vector2.up) {
                            moveVelocity = Vector2.down;



void FixedUpdate() {
    Vector3 lastPos = transform.position;

    rb.MovePosition(rb.position + moveVelocity * speed * Time.deltaTime);

    if (tailPositions.Count >= 1) {
        tailPositions.Last().position = lastPos;
        tailPositions.Insert(0, tailPositions.Last ());
        tailPositions.RemoveAt(tailPositions.Count - 1);

void OnTriggerEnter2D(Collider2D trigger) {
    Vector2 spawnPos = new Vector2(5, 5);

    if (trigger.tag == "Food") {
        GameObject newTail = Instantiate(tail, spawnPos, Quaternion.identity) as GameObject;
        newTail.transform.parent = GameObject.Find("Tail Holder").transform;


Thank you for taking the time to help me.

How to properly write multiple Google Sheets functions to the set.formula function

I linked a Google spreadsheet to a Google form. If a new response is sent, the formula in the top lines should be copied to the newly added line (via Google form).

I have used once onformsubmit Triggers another similar situation. But when it comes to writing the formula, I want to be copied into a script, since I'm neither a programmer nor a programmer, it's a real problem again.

Here is the formula I wanted to use:

if($D6<>"aroonbank",if($F6="Income (Kirim)",5010,if($F6="Advance returned (Qaytarilgan avans)",5010,if($F6="Bank (Bankka pul topshirish)",5110,))),if($F6="Income (Kirim)",5110,if($F6="Advance returned (Qaytarilgan avans)",5110)))

Could someone please help translate this formula into "Google Script" language?

Rendering – Unreal Engine – Occlusion culling doesn't seem to be working properly

I play around with some environments bought from the market, one of which has a fairly intense map with lots of houses and lots of detailed interiors for houses. I got the impression that Unreal enables dynamic occlusion culling by default, but it seems that occluded meshes are still being rendered. See comparison of & # 39; stat initviews & # 39; below:

Enter the image description here

To open:
Enter the image description here

There is no big difference in the number of hidden (hopefully discarded) objects between these two camera views, and my performance is very similar in both. Am I wrong in understanding how occlusion culling works in UE or is it not working properly for me? How do I make sure that hidden objects are not rendered?

Kernel – Not installing properly

Asrok A320 M-HDV, Athlon200ge, Rx580 video card. Do not install from USB without & # 39; nomodeset & # 39 ;, 04/18 and 10/19. If you use the & # 39; nomodeset & # 39; install, the system will not work without & # 39; nomodeset & # 39; downloaded. Installation of official driver from amd.com amdgpu- pro for RX 580 from amd.com ends next error:
Nomode set recognized in kernel parameters amdgpu requires KMS

amdgpu dkms could not run the kernel.

I need VULKAN to support my video adapter. Please fix this error.

Nvidia GEFORCE GTX 1050 TI is not working properly

I just want to know if someone is facing the problem I am now facing and a cure for this itching.
I have a NVIDIA GEFORCE GTX 1050 TI with 6 GB RAM, 2nd generation Intel i3 processor and a Foxin 800 SMPS.

When I insert the card into the slot, it works fine. But sometimes with a little trembling mouse and keyboard, hibernation is over ( I mean, it depends ).

I recently had to remove the card when I added the card monitor back. I don't get any display at all via the HDMI connection VGA, it works well.

Is my card faulty or does something else happen that causes the mouse and keyboard to get stuck?