User contributions for Ardika Sulistija
A user with 285 edits. Account created on 13 May 2024.
21 August 2024
- 14:4714:47, 21 August 2024 diff hist +14,949 N Device Mapper Multipath Created page with "====What is Device Mapper Multipathing?==== ---- What is Multipath? • Multipath is a storage network design technique that allows for fault tolerance or increased throughput by providing multiple concurrent physical connections (paths) from the storage to the individual host systems. multipathd and multipath internally use WWIDs to identify devices. WWIDs are also used as map names by default. ——— Device Mapper Multipathing (DM-Multipath) is a native multipat..." current
- 14:4614:46, 21 August 2024 diff hist +4,911 N Dd Created page with " <b>dd</b> - convert and copy a file. REALLY GOOD ARTICLE: https://www.computernetworkingnotes.com/linux-tutorials/generate-or-create-a-large-text-file-in-linux.html ===How to use dd=== ---- This command will create a file of size <b>count*bs</b>, in which the below will create a file of 1 MB: dd if=/dev/zero of=file.txt count=1024 bs=1024 * <b>/dev/zero</b> is a special file in Unix-like operating systems that provides as many null characters as are read from i..." current
- 14:4614:46, 21 August 2024 diff hist +16,419 N DNS Created page with "DNS (Domain Name Server) ====How I have my websites' DNS records set up==== ---- Before proceeding with the [https://dikapedia.com/wiki/SSL_/_TLS#How_to_install_Let.27s_Encrypt_with_Certbot_on_Amazon_Linux_2_.28Super_Easy.29 Let's Encrypt steps to configure SSL cert], I configured my DNS records with the following (on namecheap): * A record - @ - 23.20.238.64 * A record - www - 23.20.238.64 ====DNS==== ---- https://en.wikipedia.org/wiki/Domain_Name_System Good video..." current
- 14:4614:46, 21 August 2024 diff hist +1,221 N DHCP Created page with " DHCP - DORA https://ipwithease.com/understanding-dora-process-in-dhcp/ ====dhclient==== ---- <b>dchlient</b> - the Dynamic Host Configuration Protocol (DHCP) Client used to allow a client to connect to a DHCP server. * You need this if you are not booting up using a static IP address!! dhclient configuration files: $ which dhclient /usr/sbin/dhclient # Another way of checking if dhclient is installed # Run as root $ dhclient status && dhclient --version..." current
- 14:4514:45, 21 August 2024 diff hist +10,387 N Curl Created page with " <b>curl</b> - transfers a URL. Or make HTTP requests (or HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELENET, LDAP or FILE). https://www.thegeekstuff.com/2012/04/curl-examples/ ---- * Useful for testing web servers at the application level, testing an application's endpoint or connectivity, or checking if a service is healthy. * HTTP uses TCP so if curl works then TCP (and lower levels) must be working, too. Can be used in many different ways: * Designed to work wi..."
- 14:4514:45, 21 August 2024 diff hist +3,157 N Cron Created page with " <b>crond</b> - daemon to execute scheduled commands. <b>crontab</b> - Used to schedule repetitive tasks/commands. *must be root* Good info: * https://cronitor.io/cron-reference/5-places-cron-jobs-live * https://www.geeksforgeeks.org/crontab-in-linux-with-examples/ * https://crontab.guru/ * https://unix.stackexchange.com/questions/212703/crontab-error-no-crontab-for-use * https://serverfault.com/questions/449651/why-is-my-crontab-not-working-and-how-can-i-troubleshoo..."
- 14:4414:44, 21 August 2024 diff hist +249 N Cp Created page with "From cp manpage: -p same as --preserve=mode,ownership,timestamps --preserve[=ATTR_LIST] preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context, links, xattr, all" current
- 14:4414:44, 21 August 2024 diff hist +1,826 N Core Dumps Created page with "Terminology For Unix systems, the term "core dump" generally refers to a dump of the state of an individual process. The term "core dump" is also used in the context of NetWare, but in that context it refers to a dump of the state of a complete system. The equivalent of a NetWare core dump for Unix systems is typically called a "system crash dump" or "kernel crash dump". Core dump analysis Core dumps can be a valuable source of information in certain troubleshooting s..." current
- 14:4414:44, 21 August 2024 diff hist +572 N Context Switch Created page with "<b>Context Switching</b> is when CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via context switch. * Context-switch time is overhead; the system does no useful work while switching. The more complex the OS and the <b>PCB</b> --the longer the context switch. * Context switches are costly as it destroys the TLB buffer. A <b>translation lookaside buffer (TLB)..." current
- 14:4314:43, 21 August 2024 diff hist +1,461 N CloudFormation Created page with "====How to create Redis (cluster mode enabled) with 1 shard using YAML==== ---- <b>CacheParameterGroupName</b> is key to making it cluster mode enabled: AWSTemplateFormatVersion: 2010-09-09 Resources: myReplicationGroup: Type: AWS::ElastiCache::ReplicationGroup DeletionPolicy: Retain Properties: AtRestEncryptionEnabled: true AutomaticFailoverEnabled: true CacheParameterGroupName: 'default.redis5.0.clust..." current
- 14:4314:43, 21 August 2024 diff hist +11,990 N CloudEndure Created page with "====CloudEndure log files==== ---- * Installation log file: <b>./cloudendure.log</b> ** Generated during the agent installation process. ** Located in the directory from which the installation process was initiated. * Agent Logs: <b>/var/lib/cloudendure/agent.log.0</b> ====How to start/stop the CloudEndure Agent==== ---- sudo /var/lib/cloudendure/runAgent.sh sudo /var/lib/cloudendure/stopAgent.sh * <b>Note</b>: stop / starting of the agent causes re-replicati..." current
- 14:4314:43, 21 August 2024 diff hist +9,082 N Cloud-Init and User-Data Created page with "===Cloud-Init=== ---- add notes: https://cloudinit.readthedocs.io/en/latest/topics/dir_layout.html <b>Cloud-init</b> is the industry standard multi-distribution method for cross-platform cloud instance initialization. It is supported across all major public cloud providers, provisioning systems for private cloud infrastructure, and bare-metal installations. Cloud instances are initialized from a disk image and instance data: Cloud metadata User data (optional) Vendo..." current
- 14:4314:43, 21 August 2024 diff hist +2,627 N Chroot Created page with "* Very important to bind /dev since the passwd command makes use of /dev/random which needs to actually exist Robert's way (This example shows how to change a password while chrooted): (all sudo) mount /dev/xvdf1 /mnt mount -o bind /proc /mnt/proc mount -o bind /sys /mnt/sys mount -o bind /dev /mnt/dev mount -o bind /run /mnt/run #This one was recommended but I didn't end up using it chroot /mnt passwd [username] exit umount /mnt/{dev,sys,proc} umo..." current
- 14:4214:42, 21 August 2024 diff hist +112 N Chrome Created page with "Chrome Policy Template json file for Linux: https://gist.github.com/meets2tarun/2161e544f4c458c2f07641cafbdd186d" current
- 14:4214:42, 21 August 2024 diff hist +14,800 N Centrify/Delinea Created page with "This is the Centrify for UNIX/Linux/Mac Command Line Cheat Sheet<br> Ref: https://centrifying.blogspot.com/2016/02/centrify-for-unix-cli-cheat-sheet.html ====AD-bridging commands ("ad" commands)==== ---- <b>adcheck</b> - check OS, network and AD readiness for Centrify DirectControl To check the system with domain (e.g. corp.contoso.com) $ adcheck corp.contoso.com To only perform OS checks $ adcheck --test os To only perform network-related tests $ adcheck --test n..." current
- 14:4214:42, 21 August 2024 diff hist +594 N CPanel Created page with "The cPanel & WHM Log Files https://docs.cpanel.net/knowledge-base/cpanel-product/the-cpanel-log-files/ ====File Manager==== ---- If you don't have direct access to the underlying server of the website but you have access to cPanel, you can use cPanel to access the website files (i.e. public_html, .htaccess (if it's apache), plugins, themes, wp-admin directory, etc.). #. Login to cPanel #. Go to File Manager. ====How to set Expires Headers for Your Site on cPanel=..." current
20 August 2024
- 13:5613:56, 20 August 2024 diff hist +14,422 N Boot Process Created page with " ==== Linux Boot Process ==== ---- Understanding the boot process will help you understand how the hardware and software is working together, and also will give you the required information to begin troubleshooting a booting problem you have. ====Main Stages (short version)==== ---- (sysVinit) <b>BIOS</b> -- Basic Input/Output System; executes MBR. * System starts BIOS located on flash memory. <b>MBR</b> -- Master Boot Record; executes GRUB. * MBR contains the..." current
- 13:5613:56, 20 August 2024 diff hist +6,000 N Bitnami Created page with "List all of Bitnami's configuration files and scripts. ====Bitnami CTL script==== ---- Controls the stack (mysql, php-fpm, apache) $ sudo /opt/bitnami/ctlscript.sh start/restart/stop/status $ sudo /opt/bitnami/ctlscript.sh status apache already running mariadb already running php-fpm already running To restart individual services: $ sudo /opt/bitnami/ctlscript.sh restart php-fpm $ sudo /opt/bitnami/ctlscript.sh restart apache $ sudo /opt/bitnami/ctlscript.s..." current Tag: Visual edit: Switched
- 13:3213:32, 20 August 2024 diff hist +1,037 N Bastions Created page with " A <B>Bastion Host</B> is a special purpose computer on a network specifically designed and configured to withstand attacks. * The bastion generally hosts a single application, for example a proxy server, and all other services are removed or limited to reduce the threat to the computer. * It is hardened in a manner primarily due to its location and purpose, which is either on the outside of a firewall or in a DMZ (demilitarized zone(public subnet)) and usually involve..." current
- 13:3113:31, 20 August 2024 diff hist +2,068 N Bash Scripting Created page with " My fave cheatsheet site: https://devhints.io/bash How to commit scripts to GitHub: [http://dikapedia.com/wiki/index.php/Git Git]</br> [https://github.com/ardikas/Shell-scripts Ardika's GitHub Repo] Add: netstat -plan | awk '/.*[0-9]+.[0-9]+.[0-9]+.[0-9].*/{gsub(/::ffff:/,"",$0);print $4"\t" $5}'|cut -sd. -f 1->netstat.log;echo "Netstat report";echo;echo "Number of Connections to each port:";cat netstat.log |awk {'print $1'}|cut -d: -f 2|sort|uniq -c|sort -nk 1|..." current
- 13:3013:30, 20 August 2024 diff hist +1 MediaWiki:Tweeki-navbar-brand No edit summary current
- 13:2913:29, 20 August 2024 diff hist +5 MediaWiki:Tweeki-navbar-brand No edit summary Tag: Manual revert
- 05:4205:42, 20 August 2024 diff hist +6,718 N Azure Created page with "====Migrating Ubuntu from Azure to AWS ==== ---- [+] Useful links: </br> https://ubuntu.com/aws</br> https://ubuntu.com/blog/ubuntu-on-aws-gets-serious-performance-boost-with-aws-tuned-kernel</br> https://packages.ubuntu.com/search?keywords=linux-aws</br> https://launchpad.net/ubuntu/+source/linux-aws</br> In order to run Ubuntu from Azure in AWS, the Azure kernel needs to be replaced with the 'generic' AWS turned Ubuntu kernel (<b>linux-aws</b>) either on the source o..." current
- 05:4105:41, 20 August 2024 diff hist +839 N AWS CLI Created page with "====How to uninstall AWS CLI v1 (on AL2)==== ---- Uninstall aws cli v1: $ sudo yum remove awscli https://docs.aws.amazon.com/cli/v1/userguide/install-linux-al2017.html#install-amazon-linux-yum-uninstall ====How to install AWS CLI v2 (on AL2)==== ---- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install or another way: $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awsc..." current
- 05:4105:41, 20 August 2024 diff hist +18,988 N Auditd Created page with "====What is Audit Daemon (auditd)?==== ---- auditd is the userspace component to the Linux Auditing System. It's responsible for writing audit records to the disk. Viewing the logs is done with the ausearch or aureport utilities. Configuring the audit system or loading rules is done with the auditctl utility. During startup, the rules in /etc/audit/audit.rules are read by auditctl and loaded into the kernel. Alternately, there is also an augenrules program that reads ru..." current
- 05:4105:41, 20 August 2024 diff hist +153 N Atop Created page with "https://www.redhat.com/sysadmin/analyzing-linux-server-performance-atop Good article: https://haydenjames.io/use-atop-linux-server-performance-analysis/" current
- 05:4105:41, 20 August 2024 diff hist +2,961 N Archiving and Compression Created page with " It is always good to have a backup. You can use the cp command, or you can archive it using tar and compress it using gzip, that way you will save some space. ====Archiving and Compression==== ---- This will archive and compress using gzip! Be sure to end in '.gz' and use -z, -z is for gzip: tar -zcvf [newArchiveName.tar.gz] [file/dir you want to archive] This will archive files and compressing using bzip2! Be sure to end name with '.bz2' and use -j. -j is for b..." current
- 05:4005:40, 20 August 2024 diff hist +12,894 N Apache Created page with " ==== Apache Basics (old notes): ==== ---- To check Apache status: systemctl status httpd systemctl status apache2 service apache2 status # Ubuntu service httpd status To start, stop... Apache: systemctl start|stop|restart httpd service httpd start|stop|restart To auto start Apache upon boot up: systemctl enable httpd chkconfig httpd on ==== Virtual Hosts, Redirects, and SSL==== ---- Redirect examples that have worked for me using VirtualHost in the /e..." current
- 05:4005:40, 20 August 2024 diff hist +18 N Ansible Created page with "Under construction" current
- 05:4005:40, 20 August 2024 diff hist +81 N AWS (General) Created page with "* AWS IP ranges: https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.html" current
- 05:3905:39, 20 August 2024 diff hist +730 N API Created page with " ==== Application Programming Interface ==== ---- TL/DR: APIs just allow applications to communicate with each other.</br> An <B>API</B> is a software intermediary that allows two apps to talk to each other. In other words: * An API is the messenger that delivers your request to the provider that you're requesting it from and then delivers the response back to you. * The way for an application to interact with certain system/application/library/etc. * Integrating lin..." current Tag: Visual edit: Switched
- 04:5704:57, 20 August 2024 diff hist −65 Keep Calm and Sudo On~ No edit summary current Tag: Visual edit: Switched
- 04:2904:29, 20 August 2024 diff hist +641 N Keep Calm and Sudo On~ Created page with " center|275px|class=img-responsive ====Favorite External Links==== * [https://bash-prompt.net/ <b>Bash Prompt</b> - Linux Guides For Linux Users] ** [https://bash-prompt.net/guides/server-hacked/ How To Tell If Your Linux Server Has Been Compromised] * [https://devhints.io/ <b>Rico's Cheatsheets</b> - devhints] ** [https://devhints.io/bash Bash scripting cheatsheet] * [https://tutorialsdojo.com/links-to-all-aws-cheat-sheets/ <b>Tutorial..." Tag: Visual edit: Switched
- 04:2504:25, 20 August 2024 diff hist 0 MediaWiki:Mainpage No edit summary current
- 03:3203:32, 20 August 2024 diff hist −644 Main Page No edit summary current Tag: Visual edit: Switched
- 03:3203:32, 20 August 2024 diff hist −7 MediaWiki:Tweeki-navbar-brand No edit summary Tag: Reverted
- 03:3103:31, 20 August 2024 diff hist 0 MediaWiki:Tweeki-navbar-brand No edit summary Tag: Reverted
- 03:3103:31, 20 August 2024 diff hist 0 MediaWiki:Tweeki-navbar-brand No edit summary Tag: Reverted
- 03:3103:31, 20 August 2024 diff hist +15 MediaWiki:Tweeki-navbar-brand No edit summary Tag: Reverted
- 03:3003:30, 20 August 2024 diff hist −13 MediaWiki:Tweeki-navbar-brand No edit summary Tag: Reverted
- 03:3003:30, 20 August 2024 diff hist +22 N MediaWiki:Tweeki-navbar-brand Created page with "D I K A P E D I A V 2"
- 03:2903:29, 20 August 2024 diff hist −6 Main Page No edit summary Tags: Manual revert Visual edit: Switched
- 03:2803:28, 20 August 2024 diff hist +6 Main Page No edit summary Tags: Reverted Visual edit: Switched
- 03:2803:28, 20 August 2024 diff hist 0 Main Page No edit summary Tag: Visual edit: Switched
- 03:2703:27, 20 August 2024 diff hist −28 Main Page No edit summary Tag: Visual edit: Switched
- 03:2603:26, 20 August 2024 diff hist −27 Main Page No edit summary Tag: Visual edit: Switched
- 03:2503:25, 20 August 2024 diff hist +1 Main Page No edit summary Tag: Visual edit: Switched
- 03:2303:23, 20 August 2024 diff hist +22 N MediaWiki:Mainpage Created page with "Keep calm and sudo on!"
- 03:0703:07, 20 August 2024 diff hist +409 Main Page No edit summary Tag: Visual edit: Switched
- 02:3602:36, 20 August 2024 diff hist +644 Main Page No edit summary