FQDN (Fully Qualified Domain Name)
- Pc name: "deb"
- Domain name: "bar.com"
Alternatives
[1] http://neorouter.com/products-nrfree
Software Developer, Programming, Web resources and entertaiment. Desarrollo de software, programación, recursos web y entretenimiento.
sudo apt-get update sudo apt-get install xrdp
#desktop
sudo apt-get install mate-core mate-desktop-environment mate-notification-daemon
#setting session
sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n mate-session \n' /etc/xrdp/startwm.sh
#firewall
sudo ufw allow 3389/tcp
#Use remmina desktop to connect
service --status-all
printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$GDMSESSION"$wget https://raw.githubusercontent.com/milio48/serveo/master/serveo.sh
ip route list
route
route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.169.5.1
sudo route del -net 192.168.76.0/24
sudo route del -net 192.168.76.0 netmask 255.255.255.0
Mode 1:Recover mode
In recover mode try to remount and after that change password
mount -o remount,rw /
Mode 2: Using live
mkdir /mnt/recover
mount /dev/sda2 /mnt/recover
chroot /mnt/recover
passwd #or
passwd user
exit
umount /mnt/recover
Other way : Using files(for root or any user)
/etc/passwd
/etc/shadow
root:x:0:0:root:/root:/bin/bash
to
root::0:0:root:/root:/bin/bash
References:
[1] http://www.microhowto.info/howto/reset_a_forgotten_root_password_using_a_live_distribution.html
[2] https://www.computersecuritystudent.com/UNIX/UBUNTU/1204/lesson5/index.html
#adduser username
#usermod -aG sudo username
$
su - username
$whoami
$sudo whoami
Examples to use
$fdisk -l
$sudo fdisk -l
$sudo ls -l /root
SHOW GLOBAL STATUS
SHOW VARIABLES LIKE '%size%';
SHOW GLOBAL VARIABLES LIKE '%size%';
SET GLOBAL join_buffer_size = 1024 * 1024 * 128 #128M
or
[mysqld]
join_buffer_size = 128M #default ~256K
References:
[0] Compute memory http://mysqlcalculator.com/
[1]
https://dba.stackexchange.com/questions/74693/how-to-break-table-into-two-without-losing-performance
join_buffer_size
[2] https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html
[3] Example tunning https://dba.stackexchange.com/questions/127862/tuning-mysql-variables-to-accommodate-high-load
[4] Query variables https://dev.mysql.com/doc/refman/8.0/en/show-variables.html
#!/bin/bash iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069 iptables -t nat -A PREROUTING -i eth0 -p tc...