Skip to content

Instantly share code, notes, and snippets.

View mariotpc's full-sized avatar
🎯
Focusing

Mario Enrique Lopez Guzman mariotpc

🎯
Focusing
View GitHub Profile
@mariotpc
mariotpc / Unable to negotiate with <IP> port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
Created January 14, 2023 22:57
Unable to negotiate with <IP> port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
ssh -oHostKeyAlgorithms=+ssh-dss -oPubkeyAcceptedAlgorithms=+ssh-dss -oKexAlgorithms=+diffie-hellman-group1-sha1 <username>@<IP>
@mariotpc
mariotpc / Message: Not connected to the ibus bus
Created January 4, 2023 00:08
Message: Not connected to the ibus bus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
ibus-daemon -drx
@mariotpc
mariotpc / upgrade grub.cfg to boot Linux after change the Kernel Parameters
Created January 2, 2023 17:46
upgrade grub.cfg to boot Linux after change the Kernel Parameters
Per the RedHat documentation:
Changes to /etc/default/grub require rebuilding the grub.cfg file as follows:
On BIOS-based machines, issue the following command as root:
~]# grub2-mkconfig -o /boot/grub2/grub.cfg
On UEFI-based machines, issue the following command as root:
@mariotpc
mariotpc / Hurricane Electric DNS
Created October 12, 2022 14:07
Hurricane Electric DNS
Hurricane Electric
https://dns.he.net/
IPv4 DNS Server:
74.82.42.42
IPv6 DNS Server:
2001:470:20::2
@mariotpc
mariotpc / Google n Cloudfare DNS
Created October 5, 2022 22:36
Google n Cloudfare DNS
CloudFare
**************
For IPv4: 1.1.1.1 and 1.0.0.1
For IPv6: 2606:4700:4700::1111 and 2606:4700:4700::1001
Google
**************
8.8.8.8 8.8.4.4
2001:4860:4860::8844, 2001:4860:4860::8888
<network>
<name>Net1</name>
<uuid>44294e8b-40ea-44f6-a374-389d147cae73</uuid>
<forward mode="nat">
<nat>
<port start="1024" end="65535"/>
</nat>
</forward>
<bridge name="virbr2" stp="on" delay="0"/>
<mac address="52:54:00:bf:2d:d9"/>
@mariotpc
mariotpc / create-hotspot.md
Created February 23, 2022 22:15 — forked from narate/create-hotspot.md
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
@mariotpc
mariotpc / Connect remote to virt manager Libvirtd
Created November 9, 2021 20:17
Connect remote to virt manager Libvirtd
usermod --append --groups libvirt `whoami`
@mariotpc
mariotpc / Boot Physical Disk - KVM Virt Manager
Last active November 9, 2021 18:45
Boot Physical Disk - KVM Virt Manager
<disk type="block" device="disk">
<driver name="qemu" type="raw"/>
<source dev="/dev/sdb" index="1"/>
<backingStore/>
<target dev="sdb" bus="sata"/>
<alias name="sata0-0-0"/>
<address type="drive" controller="0" bus="0" target="0" unit="0"/>
</disk>
@mariotpc
mariotpc / gist:c9eb675a954b41f388afb73833fb783b
Created June 25, 2021 14:33 — forked from mralexgray/gist:2959642
ipv6 tunnelbroker / he.net dyndns setup / update
echo `curl -k --trace -s https://domain.com:[email protected]/nic/update?hostname=domain.com`
// XXXXXXXXXXXXXXXXX = dns.he.net key
-ERROR: Missing parameter(s).
Usage: https://ipv4.tunnelbroker.net/ipv4_end.php?ip=IPV4ADDR&pass=MD5PASS&apikey=USERID&tid=TUNNELID
-or-: https://USERNAME:[email protected]/ipv4_end.php?tid=TUNNELID (auto-detect IP)
https://USERNAME:[email protected]/ipv4_end.php?tid=TUNNELID&ip=IPV4ADDR
IPV4ADDR: Your IPv4 endpoint. Set to AUTO to determine your IP based on the IP you requested this page from. Previously passed as ipv4b.