ariafatah0711 / linux_aria

My file bash, and configurate for linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

linux_aria

My file bash, and configurate for linux

introductiontable of contentsDownloadRelatedLicense

🚀 introduction

this is my linux conf, and my file for run linux

Bash linux

📋 Table of Contents

Dokumentasi
ubuntu
  • install ubuntu
redhat
  • install redhat with cli

    • before install in option installasion click "TAB"
    • and add in prompt "inst.text"
  • mount package

    • click icon iso in bottom window virtual machine red hat
      • and click rhel9dvd or ur iso red hat
    • make folder /mnt/disc/ mkdir -p /mnt/disc/
    • mount repository mount /dev/sr0 /mnt/disc/
    • make file repository conf with vi /etc/yum.repos.d/rhel9dvd.repo
      [BaseOS]
      name=BaseOS Package Red Hat Enterprise Linux 9
      metadata_expire=-1
      gpgcheck=1
      enabled=1
      baseurl=file:///mnt/disc/BaseOS/
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
      
      [AppStream]
      name=AppStream Packages Red Hat Enterprise Linux 9
      metadata_expire=-1
      gpgcheck=1
      enabled=1
      baseurl=file:///mnt/disc/AppStream/
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
      
    • change subscription manager conf with vi /etc/yum/pluginconf.d/subscription-manager.conf
      • change enabled 1 to 0
    • yum clean all
    • yum repolist
package error
  • process id

    • ps aux | grep -i apt
    • sudo kill <process_id>
    • sudo kill -9 <process_id>
    • sudo killall apt apt-get
  • lsof dpkg lock

    • sudo lsof /var/lib/dpkg/lock

    • sudo lsof /var/lib/apt/lists/lock

    • sudo lsof /var/cache/apt/archives/lock

    • sudo rm /var/lib/apt/lists/lock

    • sudo rm /var/cache/apt/archives/lock

    • sudo rm /var/lib/dpkg/lock

    • sudo dpkg --configure -a

  • dpkg front-end

    • sudo lsof /var/lib/dpkg/lock-frontend
      lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
      COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
      unattende 2823 root    5uW  REG    8,2        0 145221 /var/lib/dpkg/lock-frontend
      
    • sudo kill -9 PID
    • sudo rm /var/lib/dpkg/lock-frontend
    • sudo apt update
firewall-cmd
  • firewall-cmd --permanent --add-port=1000-1100/tcp
  • firewall-cmd --permanent --add-port={80/tcp,443/tcp}
  • firewall-cmd --permanent --add-port=21/tcp
  • firewall-cmd --permanent --remove-port=21/tcp
  • firewall-cmd --reload
  • firewall-cmd --list-ports
ufw
  • ufw status
  • ufw enable
  • ufw disable
  • ufw allow 23
file permission
  • sudo chmod 777 file.txt

    • chmod owner-group-other
      • 4 = read
      • 2 = write
      • 1 = execute
    • ls -a => all file
    • ls -l => list permission
  • sudo chown -R $USER:$USER /path/to/path

  • sudo chmod -R 755 /path/to/path

🔨 download

  1. Open a terminal or command prompt on your computer.
  2. Navigate to the directory where you want to save this project.
  3. Use the following command to download the project from the GitHub repository:
    git clone https://github.com/ariafatah0711/dicoding_3.git

📈 related

©️ license

About

My file bash, and configurate for linux

License:MIT License


Languages

Language:Shell 86.4%Language:PHP 11.3%Language:Perl 2.3%