Login CakePHP 4 script

CakePHP 4 , login biasanya menggunakan Authentication plugin . Berikut alurnya: 1. Install Authentication Plugin Jalankan di terminal: composer require cakephp/authentication 2. Load Plugin di Application.php Di file src/Application.php , tambahkan: $this->addPlugin('Authentication'); 3. Middleware Authentication Masih di Application.php , tambahkan ke middleware() : use Authentication\Middleware\AuthenticationMiddleware; $middlewareQueue->add(new AuthenticationMiddleware($this)); 4. Konfigurasi Authentication Di src/Application.php , dalam method getAuthenticationService() : use Authentication\AuthenticationService; use Authentication\AuthenticationServiceInterface; use Authentication\Identifier\IdentifierInterface; use Authentication\Middleware\AuthenticationMiddleware; use Psr\Http\Message\ServerRequestInterface; public function getAuthenticationService(ServerRequestInterface $request): AuthenticationServiceInterface { $service = new Authenticatio...

Setup dual boot window 7 and ubuntu

 Certainly! Here's a step-by-step guide to dual booting Windows 7 and Ubuntu using the BIOS legacy mode:


Note: Before proceeding, ensure that you have a backup of your important data.


Step 1: Prepare a bootable USB or DVD:

- Download the ISO file for Ubuntu from the official website (https://ubuntu.com/download) and save it to your computer.

- Create a bootable USB or DVD using a tool like Rufus (https://rufus.ie/) or UNetbootin (https://unetbootin.github.io/).


Step 2: Partition your hard drive:

- Boot into your Windows 7 system and go to "Disk Management" by right-clicking on "Computer" and selecting "Manage."

- Shrink your existing Windows partition to free up space for Ubuntu. Right-click on the partition, select "Shrink Volume," and specify the amount of space you want to allocate to Ubuntu. Leave it as unallocated space.


Step 3: Disable Secure Boot and Fast Startup:

- Restart your computer and enter the BIOS settings by pressing the appropriate key (usually Esc, F2, F10, or Del) during startup.

- Look for the Secure Boot option and disable it.

- Additionally, disable Fast Startup in the Windows 7 Control Panel under "Power Options."


Step 4: Install Ubuntu:

- Insert the bootable USB or DVD into your computer.

- Restart your computer and enter the BIOS settings again.

- Set the boot order to prioritize the USB or DVD drive.

- Save the changes and exit the BIOS settings.

- Your computer will now boot from the Ubuntu installation media.

- Follow the on-screen instructions to install Ubuntu.

- When prompted, choose the option to install alongside Windows 7.

- Allocate the unallocated space you created earlier for the Ubuntu installation.

- Complete the installation process by following the remaining prompts.


Step 5: Configure the boot menu:

- After the Ubuntu installation is complete, restart your computer.

- You will see the GRUB boot menu, which allows you to choose between Windows 7 and Ubuntu at startup.

- Select the desired operating system to boot into.


That's it! You have successfully set up a dual boot configuration with Windows 7 and Ubuntu using BIOS legacy mode.


Please note that the steps may vary slightly depending on your specific computer model and BIOS version. It's always a good idea to refer to the documentation provided by your computer manufacturer for detailed instructions.


Let me know if you have any further questions!

Comments