Ubuntu 18.10 Asus GL504GV fn keys (screen and kb backlight) not working

My main problem is that rgb keyboard lighting all day on, as there is no way to turn it off. I tried to change the settings on windows, but keyboard tunrs on after rebooting.

I tryed almost everything I found over the Internet, but no luck. Some posts suggest to manually set bright values on /sys/class/leds/asus::kbd_backlight/* but in my case this directory does not exists.

$   ls /sys/class/leds/ asus::lightbar           input11::scrolllock  input8::kana asus-wireless::airplane  input4::capslock     input8::numlock input11::capslock        input4::numlock      input8::scrolllock input11::compose         input4::scrolllock   phy0-led input11::kana            input8::capslock input11::numlock         input8::compose 

Also having some trouble with modprobe

$   sudo modprobe asus-laptop  modprobe: ERROR: could not insert 'asus_laptop': No such device 

For the screen brightness I guess i can work arround /sys/class/backlight/intel_backlight values

Thanks in advance

How do companies store private keys offline but still sign code with them?

I’ve heard that companies store their private keys offline “in a safe that will never be opened” and stuff like that (the context for this is a console developer like Microsoft keeping the Xbox private keys offline in a safe).

How would they still sign code with their private keys if they’re fully locked away? Does someone go and physically get the keys to sign the code? Is this a figure of speech that I don’t understand?

Sticky keys: Shift starts in “locked” mode after stand-by

I have sticky keys enabled following an injury that prevents me from typing with my left hand.

I have some strange behaviour with the Shift key when coming out of stand-by and suspend.

When I awake my laptop from sleep (by opening the lid) my Shift key starts in a “locked” state (as if it were pressed twice in a row). When I awake it from “suspend” (after using the “Suspend” option in Unity’s gear menu), the Shift key comes up as pressed once.

I’m on Ubuntu 18.04 with Unity 7.5.0 as my desktop. I have indicator-xkbmod from ppa:nilarimogard/webupd8 installed to tell me the state of the keys.

What can I do so the Shift key doesn’t get locked when I wake up my laptop? It can be really annoying if I forget it does this (which is all the time).

Git deployment, multiple users, multiple keys

Say I have a linux server, on which I want to deploy projects hosted on github.

I have a user on that server, as do my collegues. We each have a github account we can use to manage the projects.

For deployment, though, I’d prefer to have a separate system user do the git pulls, using a deploy key for each project.

Now that seems not too practical to setup. Creating and registering deploy keys is easy, but then I have to use an ssh config file to define aliases for each repos, hen change the configuration of each git repo on the server to use those alias their remote url. And that prevents other users from interacting with those repos’ remotes, unless they use the same ssh config aliases.

Is there improvements that could be made to this approach?

I guess an alternative is to use an actual github account linked to that deployment user, instead of deploy keys.

Thanks!

SSH keys and Active Directory

I am trying to figure out a way of stopping disabled users (in AD) from accessing a specific server with their ssh keys. I have multiple users who can access the server however few of them have setup ssh keys for easy and automatic access for purposes of scripts. From my understanding if a user is disabled in AD they can still log into that server with an old SSH key. Is there a way of automatically removing those keys once the user becomes disabled in AD ? (I use SSSD for authentication if this makes it any easier)

ssh with keys work on one Ubuntu box bot not on another Ubuntu box

This is driving me nuts 🙂

I’m trying to ssh from a Synology diskstation to a Ubuntu server. I’ve created a keypair on the Synology box:

ssh-keygen -v -t rsa -f ~/.ssh/backup-ubuntubox2 -P "" 

and copied the ~/.ssh/backup-ubuntubox2.pub from the Synology box to ~/.ssh/authorized_keys on the Ubuntu box.

It works just fine.

Now, I did the exact same things for/on the other Ubuntu box, but ssh keeps prompting me for a password:

why???

backupsvc@NAS9:~/.ssh$   ssh rsyncuser@ubuntubox2 -i /var/services/homes/backupsvc/.ssh/backup-ubuntubox2 -v OpenSSH_7.4p1, OpenSSL 1.0.2o-fips  27 Mar 2018 debug1: Connecting to ubuntubox2 [10.0.0.2] port 22. debug1: Connection established. debug1: identity file /var/services/homes/backupsvc/.ssh/backup-ubuntubox2 type 1 debug1: key_load_public: No such file or directory debug1: identity file /var/services/homes/backupsvc/.ssh/backup-ubuntubox2-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.4 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.8 debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.8 pat OpenSSH* compat 0x04000000 debug1: Authenticating to ubuntubox2:22 as 'rsyncuser' debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256@libssh.org debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ecdsa-sha2-nistp256 SHA256:dNwmsFmQw2apTUYZWTBy6G0pd9hVA+OKS/Q5G1bmlfI debug1: Host 'ubuntubox2' is known and matches the ECDSA host key. debug1: Found key in /var/services/homes/backupsvc/.ssh/known_hosts:2 debug1: rekey after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey after 134217728 blocks debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /var/services/homes/backupsvc/.ssh/backup-ubuntubox2 debug1: Authentications that can continue: publickey,password debug1: Next authentication method: password rsyncuser@ubuntubox2's password: 

Create multisignature wallet from xpub keys in bitcoin core

I can create Multisignature wallet electrum with 2 xpub keys.

How can I create bitcoin core to do that?

Standart use; Add a multisig address from 2 addresses

bitcoin-cli addmultisigaddress 2 “[\”16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\”,\”171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV\”]”

Is there way to do like;

bitcoin-cli addmultisigaddress 2 “[\”tpubDAenfwNu5GyCJWv8oqRAckdKMSUoZjgVF5p8WvQwHQeXjDhAHmGrPa4a4y2Fn7HF2nfCLefJanHV3ny1UY25MRVogizB2zRUdAo7Tr9XAjm\”,\”tprv8erNzbjXdtYpKbKF4HeZpBCQj2W64MS2SAJCcWxgqLueSZ9KLTPZGoDTu8NugecLLqeS2RYan2f6qcexUTjp3m2HGxmpAiP48BaUz7XHxzQ\”]”

Foreign keys in UML Designer [on hold]

I’m trying to create a basic UML diagram for a project and found the UML Designer software which works wonders so far.

The only thing I don’t seem to be able to do (or at least I can’t find how to do it) is link the attribute from one Class to the attribute of another class.

What I want to do is define the attribute from one Class as a foreign key originating from an attribute of another Class (like a normal UML Diagram).

For example I have a Country class and a City class and I would like the City class to have an attribute Country name as a foreign key connected to the Country class Name attribute.

Thanks in advance.

Should I use the same OpenPGP keys in certificates used to provision the YubiKey PIV slots?

I know PIV and OpenPGP are separate standards and independent applications in the YubiKey, but for newcomers like me they look very similar with their signing, encryption and authentication keys, use cases, etc.

After setting up my YubiKey with OpenPGP keys I’m wondering: is it advisable, useful and/or secure to load the PIV slots with certificates issued for the same keys used for OpenPGP?