Header Shadow Image


Archive for the 'NIX Posts' Category

Converting a Integer to Binary

Let’s take a number: 78 and convert it to binary.  We know an 8 bit number is between 0 and 255, let’s draw this out and use 0’s initially, where the top row represents the integer equivalent: POS 1 2 3 4 5 6 7 8 INT 128 64 32 16 8 4 2 1 […]

[ERROR] waitforx: Unable to find any RandR outputs and FATAL: Module nvidia not found in directory

Recently ran into this lovely message: root@g73sw01:~# root@g73sw01:~# systemctl status gdm3 -l ? gdm.service – GNOME Display Manager Loaded: loaded (/usr/lib/systemd/system/gdm.service; static) Active: active (running) since Sat 2024-09-14 14:42:24 EDT; 1 day 21h ago Main PID: 3254 (gdm3) Tasks: 4 (limit: 19063) Memory: 5.7M (peak: 50.2M) CPU: 2.239s CGroup: /system.slice/gdm.service ??3254 /usr/sbin/gdm3 Sep 16 11:52:32 […]

SSSD krb5_child Disk quota exceeded

Getting this? Sep 14 14:04:08 g73sw01.nix.mds.xyz krb5_child[53814]: Disk quota exceeded Digging further: root@g73sw01:~# cat /proc/key-users 0: 163 162/162 131/1000000 2746/25000000 101: 1 1/1 1/200 9/64000 108: 1 1/1 1/200 9/64000 110: 4 4/4 4/200 44/64000 113: 2 2/2 2/200 18/64000 123: 1 1/1 1/200 9/64000 128: 4 4/4 4/200 44/64000 135: 1 1/1 1/200 9/64000 […]

Mount Samba Share on Ubuntu

Getting this? root@g73sw01:~# mount -t cifs -o credentials=/home/unbeknownst/.smbcredentials,vers=3.0 //nfs-c01.nix.mds.xyz/nfs-bob ./test -vv mount: /root/test: mount(2) system call failed: No route to host. root@g73sw01:~# Solve it with: root@g73sw01:~# apt-get install keyutils cifs-utils Next hurdle, was the following: tom@g73sw01:~$ id uid=1000(tom) gid=1000(tom) groups=1000(tom),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),135(lxd),136(sambashare) tom@g73sw01:~$ mount -t cifs -o credentials=$(pwd)/.smbcredentials,vers=3.0,uid=1000,gid=1000 //nfs-c01.nix.mds.xyz/nfs-vincent ./samba mount.cifs: permission denied: no match for /home/tom/samba […]

Identifying Ubuntu NVMe Drives based on Bus Number

There are three NVMe’s in a laptop. Two of the NVMe’s are the exact same model, Intel, and the other is a Kingston NVMe. All NVMe’s are 512GB. All are running either Windows 11 on the two identical drives, or Windows 10 on the Kingston drive. I want to keep only the second NVMe drive […]

Ubuntu Disable RST while Windows Partitions Exist

Windows 11 already has the AHCI drivers by default.  There’s a number of articles that explain how to modify regex settings.  Usually this is not for the average user, or even an experienced one since if it doesn’t work, those settings would need to be reverted.   And there may not be an easy way to […]

Ubuntu: network unclaimed error

Getting a: network unclaimed error after a recent NVIDIA or apt update command? After a recent upgrade, system wouldn’t boot to a UI.  Blank screen is shown.  To solve this, hit SHIFT + F2 at the blank screen, to switch to a terminal login screen.  Once at the login screen, change directory to /lib/modules/: cd […]

OpenVPN Setup on Ubuntu

To get the latest version of OpenVPN, which will be 2.6 since files for 3.0 are still not yet available at the time of this article, we first need to import the OpenVPN repository key: # ls -altri /etc/apt/keyrings/ # curl -fsSL https://swupdate.openvpn.net/repos/repo-public.gpg | gpg –dearmor > /etc/apt/keyrings/openvpn-repo-pub-key.gpg Change ‘arch’ to match your CPU architecture. […]

IPA Fails to start: Timeout Exceeded and No Route to Host when IPV6 disabled

IPA doesn’t start? Just prints the following when an attempt is made to start it? # strace -f -s 256 ipactl start . . . . socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET, sin_port=htons(389), sin_addr=inet_addr(“127.0.0.1”)}, 16) = 0 getsockname(4, {sa_family=AF_INET, sin_port=htons(51027), sin_addr=inet_addr(“127.0.0.1”)}, [28->16]) = 0 close(4) = 0 socket(AF_INET6, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_IP) = 4 connect(4, {sa_family=AF_INET6, […]

Find Which Device Is Connected to a Cisco Switch Port

Issue the following: mdscisco07#sh mac address-table interface gigabitEthernet 1/19 Unicast Entries vlan mac address type protocols port ——-+—————+——–+———————+——————– 5 abcd.1234.wxyz dynamic ip,ipx GigabitEthernet1/19 HTH


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License