Mengubah Permission File dan Direktori Secara Menyeluruh

Untuk mempermudah perubahan izin akses terhadap direktori dan file kita bisa menggunakan perintah sebagai berikut :

# find   -type d -exec chmod 755 {} \;

Jika folder tertentu saja , bisa gunakan perintah seperti ini :

# find nama_folder/ -type d -exec chmod 755 {} \;

Mengubah seluruh file dengan izin akses tertentu :

# find  -type f -exec chmod 644 {} \;

Mengubah izin akses file pada direktori tertentu :

# find nama_folder/ -type f -exec chmod 644 {} \;

Ketika Instalasi Packet PIP error

Ketika instalasi packet pip3 error seperti dibawah ini :

─# pip3 install -r requirements.txt
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Kali-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have pypy3-venv installed.
    
    If you wish to install a non-Kali-packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    For more information, refer to the following:
    * https://www.kali.org/docs/general-use/python3-external-packages/
    * /usr/share/doc/python3.13/README.venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Untuk menghadapi kendala seperti ini ikuti perintah dibawah ini :

# python3 -m venv my_env
# source my_env/bin/activate

Instalasi Password Pada MariaDB / MySQL dan Membuat User dan Database

Instalasi Password pada akun root MariaDB / MySQL adalah sebagai berikut

Langkah 1 : Instalasi password

# mysql -u  root -p
ALTER USER root@localhost IDENTIFIED VIA mysql_native_password;
SET PASSWORD = PASSWORD(‘passwordbaru');

Langkah 2 : Kemudian lakukan tes pada login apakah password sudah terpasang

# mysql  -u root  -p
Continue reading “Instalasi Password Pada MariaDB / MySQL dan Membuat User dan Database”

Install Clamav di Debian

Hal yang perlu diperhatikan adalah menambangkan link repository untuk memperbarui packages :

Langkah 1 : Menambahkan Link Repository

deb http://http.us.debian.org/debian stable main contrib non-free

Langkah 2 : Update dan Upgrade

apt update
apt upgrade
apt install libclamunrar9

Langkah 3 : install clamav

apt install clamav-daemon

Tahap 4 : enable daemon

systemctl is-enabled clamav-daemon
systemctl status clamav-daemon

Tahap 5 : stop freshcalm

/etc/init.d/clamav-freshcalm stop

Tahap 6 : update data clamav

freshcalm

Seting Zona Waktu Jakarta Pada Debian

Zona waktu adalah wilayah geografis yang menggunakan waktu standar yang sama. Biasanya, pengaturan zona waktu dilakukan saat instalasi sistem operasi, namun dapat diubah dengan mudah sesuai kebutuhan.

Penggunaan zona waktu yang tepat sangat penting untuk berbagai tugas dan proses dalam sistem. Misalnya, jika kita berada di Indonesia tetapi menggunakan server yang berlokasi di Amerika Serikat, dan ingin menjadwalkan cron job antara pukul 1 hingga 4 pagi waktu Indonesia, maka kita tidak perlu repot menghitung konversi dari UTC ke WIB.

Continue reading “Seting Zona Waktu Jakarta Pada Debian”

Add User Accounts / Menambahkan Pengguna

Cara menambahkan user akun pada Linux Debian adalah sebagai berikut :

# adduser bookworm

Adding user `bookworm' ...
Adding new group `bookworm' (1001) ...
Adding new user `bookworm' (1001) with group `bookworm' ...
Creating home directory `/home/bookworm' ...
Copying files from `/etc/skel' ...
New password:            # set user password
Retype new password:     # confirm
passwd: password updated successfully
Changing the user information for bookworm
Enter the new value, or press ENTER for the default
        Full Name []:    # input user info (OK with empty all if you do not need)
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y

Melimit user akun untuk berpindah ke user root :

# vi /etc/pam.d/su
# line 15 : uncomment and add the group

auth       required   pam_wheel.so group=adm

Menghapus user :

# deluser bookworm 
# deluser bookworm --remove-home