-
HowTO: install mysql5.7 on debian 12 (bookworm)
script: If you receive error on installing libmysqlclient-dev about libc6-dev brakes the install.. then you should remove it now. If not, skip next and continie and then continue you may hit an error for missing package: libaio1 .. if yes then install it: and continue …and this was it… .a.k.a. just do your happy hacking
-
upgrade debian 11 (bullseye) to debian 12 (bookworm)
Hit a couple of time Enter key, overwrite or not configs in questions during the upgrade.. and then: restart it may be not bad idea to do #update-grub and double-check before restart…
-
FIX: OpenVPN Client can’t connect with server log: TLS Error: cannot locate HMAC in incoming packet from [AF_INET]IP_ADDR:57442
Simptomatic ( symptoms ): Jul 19 03:52:51 HOSTNAME ovpn-HOSTNAME.DOMAIN_NAME.com[737]: Outgoing Control Channel Authentication: Using 512 bit message hash ‘SHA512’ for HMAC authenticationJul 19 03:52:51 HOSTNAME ovpn-HOSTNAME.DOMAIN_NAME.com[737]: Incoming Control Channel Authentication: Using 512 bit message hash ‘SHA512’ for HMAC authenticationJul 19 03:52:51 HOSTNAME ovpn-HOSTNAME.DOMAIN_NAME.com[737]: TCP connection established with [AF_INET]IP_ADDR:57442Jul 19 03:52:51 HOSTNAME ovpn-HOSTNAME.DOMAIN_NAME.com[737]: IP_ADDR:57442 TLS: Initial…
-
HowTo: Linux history command: Overview and Examples with Description
this post is complete copy/pasteplease refer to original source here! history command in Linux with Examples history command is used to view the previously executed command. This feature was not available in the Bourne shell. Bash and Korn support this feature in which every command executed is treated as the event and is associated with an…
-
sysadmin tools (collection-like selection) as bookmarks
Terminal:(Linux/Unix) clusterssh – parallel ssh commander with simple text hosts file, hosts groups etc.: github link, description and howto tutorial pssh – parallel ssh program -> man page tutorial/howto link DBs: pt-table-checksum – check MySQL Replication synced data, compare master and slaves, works on STATEMENT based replication only -> Percona Toolkit pt-table-sync – if found…
-
HowTo: remote reboot Linux with D state processes ( dead processes ) + LINUX MAGIC SYSTEM REQUEST KEY HACKS doc !!!
Originally posted on LINE BY LINE ON COMMAND LINE: #echo b > /proc/sysrq_trigger
-
StorCLI / StorCLI64 Cheat Sheet … Intel RAID Controllers Standalone utility
StorCLI Official URL: https://www.intel.com/content/www/us/en/download/17809/storcli-standalone-utility.html direct download(ver. 7.19.07.00): StorCLI Official Reference Manual URL: https://docs.broadcom.com/doc/12352476 direct download() Reference Material Broadcom (LSI/Avago) StorCLI Reference/User Guide original article: https://forums.servethehome.com/index.php?resources/broadcom-lsi-avago-storcli-reference-user-guide.42/ Introduction The StorCLI is a command line tool used for managing and configuring Broadcom HBAs and RAID controllers. It supports all 12Gb/s and newer HBAs/RAID controllers and is the only command…
-
CheatSheet: typescript on MacOS X && Linux … (script command and args)
MacOS X: Record typescript session with timestamps and output in same file: Record typescript session quietly (with timestamps and output in same file): Play typescript session record with timestamps and output in same file Play typescript session if recorded over different files for script and for timing. It’s another tool/command: scriptreply with a playback speed…
-
APT Command
Syntax The basic syntax is as follows: apt command Let us see how to use the apt command to install security updates or new set of packages on Ubuntu or Debian Linux server. How to fetch updates To download package information from all configured sources, enter: To upgrade all packages currently installed on the system,…
-
QuickHowto: Compile nginx with some modules on Debian GNU/Linux 11
#apt source nginx #apt install dpkg-dev #dpkg-source –no-check -x nginx_1.18.0-6.1+deb11u3.dsc #wget https://github.com/openresty/set-misc-nginx-module/archive/refs/tags/v0.33.tar.gz && tar zxvf v0.33.tar.gz #wget https://github.com/vision5/ngx_devel_kit/archive/refs/tags/v0.3.2.tar.gz && tar zxvf v0.3.2.tar.gz #cd nginx-1.18.0 Install Configure pre-requirements and build and install nginx in /opt/nginx #apt-get install libpcre3-dev #apt install libssl-dev #apt install libz-dev #./configure –prefix=/opt/nginx –with-http_ssl_module –add-module=../ngx_devel_kit-0.3.2 –add-module=../set-misc-nginx-module-0.33 #make && make install
-
CHEATSHEET: IPMI ssh CLI Commands
Logging In to the CLI You can access the command line through the serial port or over the Ethernet. The embedded lights out manager (Embedded LOM) supports a maximum of 10 active sessions, including serial, SSH, and web interface sessions. To Log In Using SSH This section describes how to log in to the service processor…
-
CheatSheet: linux/unix SED command magic kombos
Remove only the last match #Example: remove last dot and last number from OID
-
SOLVED: Unable to negotiate with $IP_ADDRESS port 22: no matching host key type found. Their offer: ssh-rsa
When you are unable to login to ssh, instead you connecting and kicked out with message like this: then goto terminal and execute the following command lines:
-
Check yourself for “sudo unescape_overflow” bug vulnerability
Sudo versions 1.7.7 through 1.7.10p9, 1.8.2 through 1.8.31p2, and 1.9.0 through 1.9.5p1 are affected. Vulnerability CVE: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3156 Check your host with simple $ sudoedit -s / if the command line exits with it’s regular help message, eg: then it’s ok… you are save and your sudo is not vulnerable BUT, if output is something else,…
-
Fix: NGINX can’t start on boot
ISSUE: nginx will not start on boot when there are upstream configurations when using FQDN as backend server’s address. FIX: Add the particular HQDN/hostname with it’s IP address in /etc/hosts -or- use IP address in your nginx upstream servers configuration. Logged in nginx’s error.log: #tail -1 /var/log/nginx/error.log Systemd status output:#systemctl status nginx.service SOLUTION Configuration Output:#tail…
-
FIX: Unable to negotiate with X.X.X.X port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,kexguess2@matt.ucc.asn.au
When trying to ssh to an old box, with only sha1 support, you most probably will end up in this: … or something like it. So.. it’s not a bug or error, you just need to force using sha1 by the client, like that: .. and that’s all… but… wait for it… what? there’s more?…
-
QuickTip: Install LSI Raid tool MegaCli / MegaCli64 on linux (debian)
download download wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip unzip unzip 8-07-14_MegaCLI.zip convert .rpm to .deb package cd Linux sudo alien MegaCli-8.07.14-1.noarch.rpm install debian package sudo dpkg -imegacli_8.07.14-2_all.deb run MegaCli /opt/MegaRAID/MegaCli/MegaCli64 -h Continue with MegaCli help page here: https://iamsto.wordpress.com/2022/08/21/howto-megacli64-h/ – and – look at the most used and usefull MegaCli command options here: https://iamsto.wordpress.com/2022/06/16/megacli-megacli64-cheatsheet-lsi-raid-controllers-linux-management-tool-most-used-commands/
-
MegaCli / MegaCli64 CheatSheet .. LSI Raid Controllers Linux management tool most used commands:
Here are some useful commands: View information about the RAID adapter For checking the firmware version, battery back-up unit presence, installed cache memory and the capabilities of the adapter: View information about the battery backup-up unit state View information about virtual disks Useful for checking RAID level, stripe size, cache policy and RAID state: View…
-
HowTo: config nginx to “load balance” thru http redirects (not proxy or reverse_proxy loadbalance)
# /opt/nginx/sbin/nginx -V # ls /usr/src|grep nginx # grep . /opt/nginx/conf/nginx.conf # grep . /opt/nginx/conf/sites-enabled/loadbalancer.conf
-
HowTo: Ubuntu 20.04 LTS configure LACP(Bonding) permanently (the old-school way)
echo ‘bonding’ >> /etc/modules #apt install ifenslave……..#apt remove netplan.io…….. #cat /etc/network/interfaces : #systemctl restart networking The CISCO Switch side:
-
HowTo: Log FULL terminal session and mail as attachment ( inc. ssh ) #linux #typescript examples
Use script command to record, in files, full terminal session with timestamps. Use mail command to mail them as attachments. Put in user’s .profile file. ( and mail with some additional data ) so here it is” #cat ~/.profile
-
QuickCheat: Remove ProxMox “You do not have a valid subscription for this server….” after login banner
HowTo Remove PROXMOX after login banner with non-subscription warning: “You do not have a valid subscription for this server….” Proxmox Version 7.0: now, find these lines: comment them out and add just: That’s All. So:
-
HowTo: Fix inactive linux md raid array state
When you can assemble previously created raid array, but for some reasons it’s run in inactive state + and/or all the drives in md array is marked with: (S)->which means SPARE DRIVE. In my case there was raid5 array from 4 drives with one failed drive. So firstly raid was successfully run with 3 out…
-
(SOLVED) – Pure-ftpd WebUI userslist table upgrade for multiple languages
ALTER TABLE userlist ADD `language` varchar(50) COLLATE utf8_bin DEFAULT NULL; That’s all. 🙂
-
CheatSheet: ip route command reference by example !
Linux ip route command reference by example Original Date and Source: Mon 19 December 2016 in Linux #Linux NOTE: All the commands below take effect immediately after you hit Enter, and do NOT survive reboot. ip address ip address show #show all IP addresses (also ip ad sh) ip address show ens36 #show IP…