linux_aria
My file bash, and configurate for linux
introduction • table of contents • Download • Related • License
🚀 introduction
this is my linux conf, and my file for run 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
- click icon iso in bottom window virtual machine red hat
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
- chmod owner-group-other
-
sudo chown -R $USER:$USER /path/to/path
-
sudo chmod -R 755 /path/to/path
🔨 download
- Open a terminal or command prompt on your computer.
- Navigate to the directory where you want to save this project.
- Use the following command to download the project from the GitHub repository:
git clone https://github.com/ariafatah0711/dicoding_3.git