User contributions for Ardika Sulistija

A user with 300 edits. Account created on 13 May 2024.
Jump to: navigation, search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

11 September 2024

  • 14:3514:35, 11 September 2024 diff hist +53 N VPC EndpointsCreated page with "center|class=img-responsive" current
  • 14:3514:35, 11 September 2024 diff hist +418 N UsersCreated page with "https://www.thegeekstuff.com/2009/03/4-ways-to-identify-who-is-logged-in-on-your-linux-system/ <b>users</b> command is used to print the user name who are all currently logged in the current host. It is one of the command don’t have any option other than help and version. If the user using, ‘n’ number of terminals, the user name will shown in ‘n’ number of time in the output. $ users john jason ramesh" current
  • 14:3514:35, 11 September 2024 diff hist +1,003 N Upstart and SysVinitCreated page with "<b>/etc/init</b> is where the upstart init configs live. While they are not scripts themselves, they essentially execute whatever is required to replace sysvinit scripts. Short story: <b>/etc/init/name.conf</b> will get picked up. It will be used automatically as their 'start on' stanzas control and/or manually by you. And it will put a log in /var/log/upstart/name.log In Red Hat Enterprise Linux 6, init from the sysvinit package has been <b>replaced with Upstart</b>..." current
  • 14:3514:35, 11 September 2024 diff hist +78 N UmaskCreated page with "https://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html" current
  • 14:3414:34, 11 September 2024 diff hist +1,030 N UlimitCreated page with "<b>ulimit</b> is a built-in Linux shell command that allows you to view or configure system resource amount limits that individual users consume. Limiting resource usage is valuable in environments with multiple users and system performance issues. https://phoenixnap.com/kb/ulimit-linux-command # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f..." current
  • 14:3414:34, 11 September 2024 diff hist +1,502 N UfwCreated page with "<b>ufw</b> - Uncomplicated Firewall https://wiki.ubuntu.com/UncomplicatedFirewall The following are some examples of how to use ufw: https://ubuntu.com/server/docs/security-firewall The ufw application is capable of doing anything that iptables can do. This is achieved by using several sets of rules files, which are nothing more than iptables-restore compatible text files. Fine-tuning ufw and/or adding additional iptables commands not offered via the ufw command is..." current
  • 14:3414:34, 11 September 2024 diff hist +4,585 N UdevCreated page with "Read more: https://dev.to/enbis/how-udev-rules-can-help-us-to-recognize-a-usb-to-serial-device-over-dev-tty-interface-pbk Udev is the mechanism used to create and name /dev device nodes corresponding to the devices that are present in the system. Udev uses matching information provided by sysfs with rules provided by the user to dynamically add the required device nodes. Udev rule files are kept in the /etc/udev/rules.d/ directory. I.e: $ cat /etc/udev/rules.d/70-per..." current
  • 14:3414:34, 11 September 2024 diff hist +20,664 N UbuntuCreated page with "==== How to upgrade Ubuntu linux kernel ==== ---- Update/upgrade kernel: $ sudo apt-get update && sudo apt-get upgrade $ sudo apt-get dist-upgrade $ sudo reboot If the reboot doesn't work and it is still booting to the old kernel, then follow steps 3+ in section "How to Change the Default Ubuntu Kernel on AWS" on this page. ==== How to perform a major release upgrade ==== ---- <b>Ubuntu 14.04 LTS ------> Ubuntu 16.04 LTS ------> Ubuntu 18.04 LTS </b> I tried r..."
  • 14:3314:33, 11 September 2024 diff hist +192 N TracerouteCreated page with "https://www.thegeekstuff.com/2012/05/traceroute-examples/ Good example from Anam: Traceroute in a loop: while true; do sudo traceroute <IP address>; sleep 2; echo "*****************"; done" current
  • 14:3314:33, 11 September 2024 diff hist +25,435 N TopCreated page with " '<b>top</b>' - display Linux processes. It is part of the <b>procps package</b>, a set of Linux utilities that provide system information. And other tools such as free, vmstat, ps, and more. Top gets most of its info from several files under the <b>/proc</b> directory. It pretty much summarizes most of them into one window. ====The Basics==== ---- <b>CPU</b> In accordance with the USE method, I'm going to split this up based on the different resources, starting w..." current
  • 14:3314:33, 11 September 2024 diff hist +266 N TmuxCreated page with "====Use Tmux to scroll up and down a long output==== ---- If you have a long output of something and you want to be able to view the whole output by scrolling, you can use tmux by running: # <b>ctrl</b> + </b>b</b>, then <b>[</b> # Then <b>Q</b> to quit scroll mode" current
  • 14:3314:33, 11 September 2024 diff hist +77 N TimedatectlCreated page with "https://www.howtogeek.com/782032/how-to-use-the-timedatectl-command-on-linux/" current
  • 14:3314:33, 11 September 2024 diff hist +769 N ThreadsCreated page with "Related topics: * <b>Processes</b> * <b>Zombie Process</b> * <b>Orphan Process</b> * <b>Process Control Block (PCB)</b> ---- <b>Threads</b> are the smallest unit of processing that a scheduler can work, and can have the same resources such as memory, address space, open files. Also called "<i>light weight processes</i> (LWPs). <u><b>Threads</b> vs <b>Processes</b></u>: * <b>Threads..." current
  • 14:3214:32, 11 September 2024 diff hist +242 N Test-NetConnectionCreated page with "For Windows PS C:\windows\system32> test-NetConnection 172.18.12.43 -port 22 ComputerName : 172.18.12.43 RemoteAddress : 172.18.12.43 RemotePort : 22 InterfaceAlias : Ethernet 3 SourceAddress : 172.24.113.86 TcpTestSucceeded : True" current
  • 14:3214:32, 11 September 2024 diff hist +151 N TerraformCreated page with "My Terraform Notes: https://docs.google.com/document/d/15NuOrpV3ALFUAlvN8qVydKgcYYySfnLn/edit?usp=sharing&ouid=113385906598888138625&rtpof=true&sd=true" current
  • 14:3114:31, 11 September 2024 diff hist +4,608 N TenableCreated page with "====What is <b>Tenable</b>?==== ---- Ref: https://docs.tenable.com/nessus-agent/Content/GettingStarted.htm Tenable Nessus Agents are lightweight, low-footprint programs that you install locally on hosts to supplement traditional network-based scanning or to provide visibility into gaps that traditional scanning misses. Tenable Nessus Agents collect vulnerability, compliance, and system data, and report that information back to a manager for analysis. With Tenable Nessu..."
  • 14:3114:31, 11 September 2024 diff hist +1,242 N TelnetCreated page with " <b>telnet</b> -- user interface to the TELNET protocol. Useful to do a quick connection test to a remote server on a specific port. (<b>Nmap</b> might be more useful at times) ====How to use Telnet==== ---- To test is port 22 (SSH) is open on a remote server: $ telnet 34.195.120.102 22 Trying 34.195.120.102... Connected to 34.195.120.102. Escape character is '^]'. SSH-2.0-OpenSSH_7.4 To escape, hit <b>ctrl + ]</b>. You will get dropped down to th..."
  • 14:3114:31, 11 September 2024 diff hist +530 N TeeCreated page with "https://askubuntu.com/questions/103643/cannot-echo-hello-x-txt-even-with-sudo If you have to write to a file in a script using sudo like <b>sudo echo "word" > file</b> won't work because the redirection is done by the shell before sudo is even started. So make sure the redirection happens in a shell with the right permissions by using <b>tee</b>, like so: echo "blacklist nouveau" | sudo tee /etc/modprobe.d/denylist.conf Use <b>-a</b> to append: echo "options nouveau..." current
  • 14:2914:29, 11 September 2024 diff hist +6,860 N TcpdumpCreated page with " * <b>TCP</b> Add notes: https://packetlife.net/blog/2010/jun/7/understanding-tcp-sequence-acknowledgment-numbers/ ------ UNDER CONSTRUCTION, PLEASE VISIT BACK SOON. https://support.rackspace.com/how-to/capturing-packets-with-tcpdump/ https://linux.die.net/man/8/tcpdump https://opensource.com/article/18/10/introduction-tcpdump https://www.thegeekdiary.com/examples-of-using-tcpdump-command-for-network-troubleshooting/ <b>This one</b> How to use tcpdump for ca..." current
  • 14:2914:29, 11 September 2024 diff hist +510 N Tainted KernelsCreated page with "* Module verification failed - signature and/or required key missing - tainting kernel (Red Hat) https://access.redhat.com/solutions/3484741 * <module_name>: module verification failed: signature and/or required key missing - tainting kernel (Red Hat) https://access.redhat.com/solutions/800133 * What is a tainted kernel in Linux? https://unix.stackexchange.com/questions/118116/what-is-a-tainted-kernel-in-linux * Tainted kernels https://www.kernel.org/doc/html/late..." current
  • 14:2914:29, 11 September 2024 diff hist +3,350 N TCPCreated page with "https://www.geeksforgeeks.org/tcp-connection-termination/ https://packetlife.net/blog/2010/jun/7/understanding-tcp-sequence-acknowledgment-numbers/ sliding window, three way handshake PAGE UNDER CONSTRUCTION!!! Add notes: https://docs.google.com/document/d/1QaI4mHGB5_tPimuyBVQRROpx5ErqumGSWZEa12dANXU/edit TCP header image; http://www.networksorcery.com/enp/protocol/tcp.htm ===TCP/IP Model=== ---- <b>TCP/IP Model</b> - Transmission Control Protocol/Internet Protoco..." current
  • 14:2814:28, 11 September 2024 diff hist +6,023 N SystemdCreated page with "==== Making Changes to Systemd unit files/configuration ==== ---- When you have made changes to the unit file of a service on the filesystem. In order for the service to use that new configuration, we need to tell the service to reload its configuration file. So run <b>systemctl reload <service></b>, to tell the service to dump the current configuration you are using and RELOAD its configuration from the filesystem into memory, and now it would use that newly modified v..." current
  • 14:2814:28, 11 September 2024 diff hist +2,727 N SysstatCreated page with "Add SAR notes here.</br> https://www.thegeekdiary.com/how-to-view-past-performance-with-sar-in-linux/ By default, sar stats are collected every 10 minutes. The data is collected using a simple cron job configured within /etc/cron.d/sysstat. This job can be amended to collect the data as frequently as you require. Example /etc/cron.d/sysstat file is provided below. # cat /etc/cron.d/sysstat # Run system activity accounting tool every 10 minutes */10 * * * * root /usr..." current
  • 14:2814:28, 11 September 2024 diff hist +8,159 N SubaruCreated page with "center|class=img-responsive * <b>Oil Filter</b>: 15208AA12A * <b>Oil</b>: 5w-30 * <b>Changing the oil and oil filter</b>: 4.5 US qt (4.3 liters, 3.8 Imp qt) * <b>Cabin Air Filter</b>: 72880FJ000 * <b>Engine Air Cleaner Element</b>: 16546AA180 * [https://static.oemdtc.com/OwnerManual/MSA5M2005A.pdf <b>Owner's Manual</b>] * [https://docs.google.com/spreadsheets/d/1GwGuTHZGoA_LwRzqZ449osxSmVT08P36/edit#gid=1485007918 <b>Maintenance Logs</b>] {| class..." current
  • 14:2814:28, 11 September 2024 diff hist +231 N StraceCreated page with "https://www.tecmint.com/strace-commands-for-troubleshooting-and-debugging-linux/ ====How to run strace and output to a file==== ---- Example: sudo strace -f -o strace.txt sudo python ./installer_linux.py -t <token> --no-prompt" current
  • 14:2814:28, 11 September 2024 diff hist +224 N SplunkCreated page with "the key command you will want to use to set up a universal forwarder to be a clean template on an VM image would be: /opt/splunkforwarder/bin/splunk clone-prep-clear-config There is also a seed.conf file that can be used." current
  • 14:2714:27, 11 September 2024 diff hist +55 N SplitCreated page with "THIS PAGE IS UNDER CONSTRUCTION, PLEASE VISIT BACK SOON" current
  • 14:2714:27, 11 September 2024 diff hist +1,380 N SosreportCreated page with "Add notes here Very useful! https://access.redhat.com/solutions/3592 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/pdf/generating_sos_reports_for_technical_support/red_hat_enterprise_linux-8-generating_sos_reports_for_technical_support-en-us.pdf ==== How to get sosreport on AL2 ===== - https://github.com/sosreport/sos/issues/1563 Which mentions GitHub repo for sos-amazon-linux: - https://github.com/TurboTurtle/sos/tree/amazon-linux And t..." current
  • 14:2714:27, 11 September 2024 diff hist +6,023 N SedCreated page with "ADD NOTES: https://stackoverflow.com/questions/29399790/comment-out-lines-in-fstab-with-bash-script </br> https://www.bitdoze.com/sed-insert-append-text/#appending-text-with-sed You can use sed to print out specific lines of a file. I'm sure there's more you can do with sed but this is what I have for now. How to remove a line that contains a string like "aws-replication" from a file: # grep -i aws-replication test disk:x:6:aws-replication aws-replication:x:1001:..."
  • 14:2714:27, 11 September 2024 diff hist +11,414 N SUSE LinuxCreated page with "====SUSE Public Cloud Infrastructure Update==== ---- SUSE has recently made changes to their Public Cloud Update Infrastructure starting June 1, 2020, which is known to cause issues when trying to reach the SUSE repositories as the repositories were no longer present. SUSE has shifted from IP based restrictions to Instance billing code-based restrictions. Per SUSE's official documentation [1], the instances must upgrade the package "<b>cloud-regionsrv-client</b>" to ve..." current
  • 14:2614:26, 11 September 2024 diff hist +4,542 N SSMCreated page with " ====Run Command Troubleshooting Checklist==== ---- * Verify if the instance is online (SSM agent pre-requisites). Is the Agent up to date? * Verify if SSM document supports the type of instance you want to target (Windows and Linux) * Ask for command ID and verify the status in SSM K2 page from SSM dashboard or from Admiral page. * Check the logs and the stdout location: ** The agent also stores the script (_script.ps1) and outputs (stderr and stdout) in the worker (<..." current
  • 14:2614:26, 11 September 2024 diff hist +23,396 N SSL / TLSCreated page with "ADD NOTES:</br> <b>What Happens in a TLS Handshake?</b>: https://www.cloudflare.com/learning/ssl/what-happens-in-a-tls-handshake/</br> <b>Good Video</b>: https://www.youtube.com/watch?v=T4Df5_cojAs</br> ====What is SSL?==== ---- <b>How Does SSL Work?</b>: https://www.cloudflare.com/learning/ssl/how-does-ssl-work/</br> <b>SSL</b> stands for Secure Sockets Layer. A protocol for encrypting and securing communications that take place on the Internet. SSL was replaced..."
  • 14:2614:26, 11 September 2024 diff hist +15,852 N SSHCreated page with " <b>ssh</b> — SSH stands for <b>Secure Shell</b>. OpenSSH SSH client (remote login program). The <b>SSH</b> protocol <b>uses encryption to secure the connection between a client and a server</b>. All user authentication, commands, output, and file transfers are encrypted to protect against attacks in the network. Uses for SSH protocol: * Providing secure access for users and automated processes. * Interactive and automated file transfers * Issuing remote commands..." current
  • 14:2614:26, 11 September 2024 diff hist +58 N SSCreated page with "https://www.rootusers.com/21-ss-command-examples-in-linux/" current
  • 14:2514:25, 11 September 2024 diff hist +5,665 N SFTPCreated page with " <B>SFTP</B> - Secure File Transfer Protocol ---- To open an SFTP connection to a remote system, use the sftp command followed by the remote server username and the IP address or domain name: sftp remote_username@server_ip_or_hostname Once connected, you will be presented with the sftp prompt, and you can start interacting with the remote machine: # To 'get' Download file usin SFTP from remote server to your local machine. sftp> get [file] # To 'put Upload f..." current
  • 14:2514:25, 11 September 2024 diff hist +47 N SELinuxCreated page with "https://phoenixnap.com/kb/enable-selinux-centos" current
  • 14:2514:25, 11 September 2024 diff hist +1,255 N SCSICreated page with "SCSI CONTROLLERS: ----------------- Windows vCenter ioc0:0:0:4:0 ioc0:0:0:3:0 ioc0:0:0:2:0 ioc0:0:0:0:0 ioc0:0:0:1:0 ioc2:1:0:4:0 you can see the address of device and ioc0, ioc2 mean different SCSI controllers in original vCenter LINUX -- Determine SCSI ID from Device Names in Linux (/dev/sdX) -------------------------------------------------------------------- To determine the SCSI ID from device names enter ls -d /sys/block/sd*/device/scsi_device/* linux:~ #..." current
  • 14:2414:24, 11 September 2024 diff hist +810 N SCPCreated page with " <B>SCP</B> - Secure copy (remote file copy program) ---- Examples: # Copy files from current directory in local machine to remote host: scp -i "/home/ardika/.ssh/main_ardika_vm_key" ec2_instance.sh num_files_dir.sh subnet_script.sh subnet_script_v2.sh ardika@3.83.174.147:git_scripts # Copy files from remote host directory to local machine: scp -i "~/.ssh/ireland_key" ec2-user@54.216.87.247:~/packetcap.pcap ~/Downloads/ ====Use SCP to download/upload file fr..." current
  • 14:2414:24, 11 September 2024 diff hist +783 N RsyncCreated page with " <B>rsync</B> - A fast, versattile, remote (and local) file-copying tool. Like SCP, but faster and you can sync. ==== How to Use Rsync Between Remote and Local Servers ==== ---- Basic SSH format: rsync -avpe '[ssh]' [source] [destination@x.x.x.x:/dir/] To copy from remote server to local host: rsync -avpe "ssh -i /home/user/.ssh/key" user@lo.cal.i.p:/home/user/file /dir/file # Example: rsync -avpe "ssh -i /home/ardika/.ssh/home_vm_key" ardika@192.168.0.2:/hom..." current
  • 14:2414:24, 11 September 2024 diff hist +925 N Rocky LinuxCreated page with "https://docs.rockylinux.org/books/admin_guide/10-boot/ https://docs.rockylinux.org/fr/books/admin_guide/12-network/ https://docs.rockylinux.org/guides/network/basic_network_configuration/ ====Rocky Linux 8 in Vmware==== ---- Upon creating a Rocky Linux 8 (minimal) in vCenter, the primary network interface ens192 will only not have an IPv4 because it is deactivated. You can confirm that that by running: nmcli device status To fix this, run: nmtui And then select "Ac..." current
  • 14:2314:23, 11 September 2024 diff hist +1,721 N Resize2fsCreated page with "====“resize2fs: Permission denied to resize filesystem” error while online resize of a filesystem==== ---- Reference: https://www.thegeekdiary.com/resize2fs-permission-denied-to-resize-filesystem-error-while-online-resize-of-a-filesystem/ <u>The Problem</u>: On CentOS/RHEL 6, an LVM volume group size has been extended and an attempt to do online resize of ext4 filesystem on LVM volume group failed with following error. resize2fs /dev/mapper/P05TRF1vg-vol_control..." current
  • 14:2314:23, 11 September 2024 diff hist +3,379 N Red Hat SatelliteCreated page with "====How to Enable a Red Hat Repository in Satellite==== ---- #. Log in to RHEL Satellite #. Go to Content > Red Hat Repositories #. Find the Red Hat Repository you are looking for on the left side, "Available Repositories" #. Then select it and click the plus "+" symbol. It will move it to the right, "Enabled Repositories". ====How to create a new repository in Satellite==== ---- #. Go to Red Hat Satellite > Content > Product (select organization) > Software Center >..." current
  • 14:2314:23, 11 September 2024 diff hist +16,067 N RHELCreated page with "==== Red Hat Enterprise Linux ==== ---- Releases:</br> https://access.redhat.com/articles/3078 Where to download old RHEL ISOs:</br> https://access.redhat.com/downloads/content/69/ver=/rhel---5/5.11/x86_64/product-software ====How to install packages on RHEL5.11 using DVD ISO==== ---- * Note: there is no lsblk command in RHEL5. But you can run things like: ls -al /dev/disk/by-path; Make sure the ISO is attached to the VM. Tested on RHEL5.11: mkdir /mnt/rhel5dvd..."
  • 14:2214:22, 11 September 2024 diff hist +8,616 N RAIDCreated page with " <b>RAID</b> - Redundant Array of Inexpensive Disks. ---- Disk failures can be disastrous. RAID is a system that distributes or replicates data across multiple disks. RAID not only helps avoid data loss but also minimizes the downtime associated with hardware failures (often to zero) and potentially increases performance. RAID can do two basic things: * First, it can improve performance by “<b>striping</b>” data across multiple drives, thus allowing several dr..." current
  • 14:2214:22, 11 September 2024 diff hist +38,793 N PythonCreated page with "To quickly test python scripts, you can use AWS Cloud9 IDE, jupiter notebook, or any windows/Linux machine to run python scritps. Basic Practice: http://codingbat.com/python More Mathematical (and Harder) Practice: https://projecteuler.net/archives List of Practice Problems: http://www.codeabbey.com/index/task_list A SubReddit Devoted to Daily Practice Problems: https://www.reddit.com/r/dailyprogrammer A very tricky website with very few hints and touch problems..."
  • 14:2214:22, 11 September 2024 diff hist +2,125 N PsCreated page with "<b>ps</b> - report a snapshot of the current processes. ====How to read PS (Basics)==== ---- Example: $ ps PID TTY TIME CMD 8741 pts/0 00:00:00 bash 8863 pts/0 00:00:00 ps * PID = Process ID * pts = Psuedo Terminal Session Show all processes running on the system: $ ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 May10 ? 00:00:25 /usr/lib/systemd/systemd --switched-root --system --deserialize 22 root..." current
  • 14:2214:22, 11 September 2024 diff hist +7,736 N ProxyCreated page with " What is Proxy Server? A proxy server is a dedicated computer or a software system running on a computer that acts as an intermediary between an endpoint device, such as a computer, and another server from which a user or client is requesting a service. The proxy server may exist in the same machine as a firewall server or it may be on a separate server, which forwards requests through the firewall. ====How to configure proxy environment variable in Linux using http_p..." current
  • 14:2214:22, 11 September 2024 diff hist +1,838 N ProcessesCreated page with "Related topics: * <b>Zombie Process</b> * <b>Orphan Process</b> * <b>Process Control Block (PCB)</b> * <b>Threads</b> ---- <b>Processes</b>: program in execution. * Address space (memory) the program can use * State (registers, including program counter and stack pointer) * OS keeps track of all processes in a process table. * Processes can create other processes. A <b>program</b> i..." current
  • 14:2114:21, 11 September 2024 diff hist +886 N Process Control Block (PCB)Created page with "Related topics: * <b>Processes</b> * <b>Zombie Process</b> * <b>Orphan Process</b> * <b>Threads</b> ---- <b>Process Control Block (PCB)</b> is information associated with each process, which may also be a called a "<i>task control block</i>." It is a data structure that keeps track of process metadata. * <b>Process state</b> - running, waiting, etc. * <b>Program counter</b> - location of instruction t..." current
  • 14:2114:21, 11 September 2024 diff hist +12,829 N PostfixCreated page with "<b>Best Postfix Documentation</b>: http://www.postfix.org/BASIC_CONFIGURATION_README.html <b>postfix</b> - Postfix control program The postfix(1) command controls the operation of the Postfix mail system. To submit mail, use the Postfix sendmail(1) command. Postfix has several hundred configuration parameters that are controlled via the <b>main.cf</b> file. Fortunately, all parameters have sensible default values. <u>In many cases, you need to configure only two or t..." current
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)