Monthly Archives: November 2022
add bulk local users using csv and power shell
First row of csv must be user,pass $strComputer=$env:computername $csv = Import-CSV ./users.csv ForEach ($user in $csv ){ Create the user account and assign a default password $objOU = [adsi]”WinNT://.”$objUser = $objOU.Create(“User”, $user.user)$objuser.setPassword($user.pass)$objuser.setinfo() Enable [PasswordNeverExpires] Set-LocalUser -Name $user.user -PasswordNeverExpires:$true Add the User account to the local users Group $computer = [ADSI](“WinNT://” + $strComputer + “,computer”)$group = […]
CyberPanel
You can use this format to run your PHP scripts /usr/local/lsws/lsphp74/bin/php /path/to/your.php Replace lsphp74 with lsphp73 or any other version you need How to Change CLI PHP on CyberPanel How to Change CLI PHP on CyberPanel? Posted April 9, 2021 Updated April 9, 2021 By Usman CyberPanel only install LiteSpeed PHPs from LiteSpeed repos. Installation […]
Debian
Set a fully qualified domain name (FQDN) hostname on your server No matter your server is a testing machine or production server, it’s strongly recommended to set a fully qualified domain name (FQDN) hostname. Enter command hostname -f to view the current hostname: On Debian/Ubuntu Linux, hostname is set in two files: /etc/hostname and /etc/hosts. […]
Hetzner
Installing without KVM Activate Rescue System Tutorial URL: https://community.hetzner.com/tutorials/install-windows apt update && apt install qemu-kvm Download and extract the portable qemu-kvm. /tmp folder is enough for this portable qemu-kvm. wget -qO- /tmp https://nc01.itserver.biz/index.php/s/SPNZJapRYdzLiyc/download/vkvm.tar.gz | tar xvz -C /tmp You need to download the UEFI bios also to support more than 2TB partition. wget -qO- /tmp […]
Next Cloud
Enable the HTTP/2 module Enable your sites The configuration for this will be found in /etc/apache2/sites-enabled/000-default-le-ssl.conf. Note: All sites in which you’ve enabled HTTPS, via Let’s Encrypt, will end with le-ssl.conf. and add the following tag after the <VirtualHost *.443> directive tag: Protocols h2 http:/1.1 Save and close that file. Restart Apache2 with the command […]
pfsense
server: local-data: “*kerberos.*tcp.example.com 3600 IN SRV 0 100 88 dc1.example.com” local-data: “*kerberos.*udp.example.com 3600 IN SRV 0 100 88 dc1.example.com”
Virtual NAS
Zabbix
agents to install CentOS/RHEL 7/6 Step 1 – Add Required Repository CentOS/RHEL 7: rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarch.rpm CentOS/RHEL 6: rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/6/x86_64/zabbix-release-4.0-2.el6.noarch.rpm Step 2 – Install Zabbix Agent yum install zabbix zabbix-agent Debian Run Apt update sudo apt update Install Zabbix Agent LTS on Debian 11 using APT sudo apt install zabbix-agent XEN Server yum –enablerepo […]
zero tier
zerotier-cli join <network_id>. we no longer support Windows 7/Server 2012 R2 Older versions of ZeroTier can be found here: https://download.zerotier.com/RELEASES/ latest version supported on Server 2012 Is 1.4.6? remove How to Clear/Reset your ZeroTier Address – ZeroTier Knowledge Base – Confluence (atlassian.net) sudo systemctl stop zerotier-one or sudo service zerotier-one stop sudo apt remove zerotier-one […]