Skip to content

Instantly share code, notes, and snippets.

View healperci's full-sized avatar

Héctor Alexis Pérez Cifuentes healperci

View GitHub Profile
@healperci
healperci / HP speakers.md
Created March 15, 2024 13:52 — forked from musikid/HP speakers.md
Activate rear/front speakers on HP laptops

Activate rear speakers on HP laptops

Some laptops, mostly from the HP brand, are equipped with rear and front speakers to improve the sound experience. Sadly, they aren't detected on Linux. The reason is because those speakers are under "unconnected" ports, which makes Linux not using them because it considers them to be inactive. So, I made this little tutorial to (try to) get them working.

Installation

  • First, you have to install hdajackretask to activate the hidden ports, which you can find under the package alsa-tools on most distributions.

Debian:

sudo apt install alsa-tools
@healperci
healperci / systemctlstatus.nsdc
Created June 6, 2018 22:47
systemctl status -M nsdc samba
● samba.service - Samba domain controller daemon
Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2018-06-05 14:21:57 -05; 1 day 3h ago
Main PID: 25
CGroup: /machine.slice/nsdc.service/system.slice/samba.service
├─3066 /usr/sbin/samba -i --debug-stderr
├─3275 /usr/sbin/samba -i --debug-stderr
├─3276 /usr/sbin/samba -i --debug-stderr
├─3277 /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground
├─3278 /usr/sbin/samba -i --debug-stderr
@healperci
healperci / account-provider-test.dump
Created June 5, 2018 22:26
account-provider-test dump
[root@nethserver ~]# account-provider-test dump
{
"BindDN" : "ldapservice@AD.INFO2.UNICENTROBOGOTA.COM",
"LdapURI" : "ldaps://ad.info2.unicentrobogota.com",
"StartTls" : "",
"port" : 636,
"host" : "ad.info2.unicentrobogota.com",
"isAD" : "1",
"isLdap" : "",
"UserDN" : "dc=ad,dc=info2,dc=unicentrobogota,dc=com",