4 - Apps Installation Tutorials
4.1 - How To Select A Kernel As Default?
Step 1: Open the loader.conf file
sudo subl /efi/loader/loader.conf
Step 2: Edit the default
field.
There is a default entry inside /efi/loader/loader.conf
that determine the default boot entry.
On a new install, it will look something like this:
default 665eca4ae83246df8ec17d1cbc6a1763*
That first string of characters is you entry token which identifies the install. That is important if you are dual-booting with another Linux, otherwise it can be replaced with *.
That line supports wildcards and so if you want to boot the LTS kernel by default you could use something like this:
default 665eca4ae83246df8ec17d1cbc6a1763*lts.conf
Alternatively, if you want to boot the mainline kernel by default, something like this should work:
default 665eca4ae83246df8ec17d1cbc6a1763-*-arch?-?.conf
These changes will take effect on the next reboot and nothing else is required except modifying the file.
4.2 – How To Remove Steam?
Open your terminal then type the following commands:
yay -Rns steam steam-launcher steam-devices steam-manjaro
rm -rf ~/.local/share/Steam
rm ~/.steampath
rm ~/.steampid
4.3 – How To Remove Any Program?
- Step 1 – Open your terminal and type:
yay -Rns package1 package2
- Step 2 – Delete any traces by checking the folders below:
$USR/.*
$USR/Applications/*
$USR/.cache/*
$USR/.config/*
$USR/.kde4/share/*
$USR/.local/share/*
$USR/.local/share/applications/*
usr/share/applications/*
usr/local/share/applications/*
4.4 – How To Install Font Files?
-
Step 1: Create a .fonts folder in your home directory (if it doesn't exist) then unpack/copy all your fonts there.
-
Step 2: Manually rebuild the font cache by typing the command below:
fc-cache -f -v
4.5 – How To Install XAMPP & WordPress Locally?
Step 1: The Basics
- Download & Install XAMPP: https://www.apachefriends.org/download.html
- Edit the permissions of the downloaded file and make it executable.
- Download & Install WordPress : https://wordpress.org/download/
- Extract the files of
WordPress
and rename the extracted folder aslab
. - Launch Thunar in sudo mode using:
sudo thunar
. - Cut the lab folder using
Thunar
and paste it in/opt/lampp/htdocs/
. - Change the permission of the folder
/opt/lampp/htdocs/lab
recursively to777
.
Step 2: Launch XAMPP
Navigate to the /opt/lampp/
directory then launch the XAMPP manager using the following command:
sudo ./xampp-linux-x64-8.2.12-0-installer.run
Step 3: Create The Database
- Go to: http://localhost/phpmyadmin/
- Create a new database.
- Give the database the name of:
lab
.
Step 4: Run the WordPress Installation
- Go to: http://localhost/lab
- Follow the on-screen instructions to install WordPress locally.
Step 5: Create The .htaccess
File
- Go to:
/opt/lampp/htdocs/lab
- Create a new file with the name:
.htaccess
- Edit the permissions of
.htaccess
and make it777
. - Open the
.htaccess
file, then paste the following inside the file:
php_value memory_limit 2048M
php_value upload_max_filesize 2048M
php_value post_max_size 2048M
php_value max_execution_time 5000
php_value max_input_vars 5000
php_value max_input_time 5000
Step 6: Edit The php.ini
File
- Go to:
opt/lampp/etc/php.ini
- Replace
memory_limit=?M
with:
memory_limit=2048M
post_max_size=2048M
upload_max_filesize=2048M
max_input_vars=5000
max_execution_time=5000
max_input_time=5000
suhosin.post.max_vars=5000
suhosin.request.max_vars=5000
Note: ?
in memory_limit=?M
stands for whatever number you see there.
Step 7: Edit The `wp-config.php' File
- Go to:
/opt/lampp/htdocs/lab
- Open the file:
wp-config.php
- Find the line:
define('WP_DEBUG', false);
and replace it with the following:
define('WP_DEBUG', true);
define('FS_METHOD', 'direct');
define('WP_ALLOW_MULTISITE', true);
define('WP_AUTO_UPDATE_CORE', true);
define('WP_DEBUG_DISPLAY', true);
define('WP_MAX_MEMORY_LIMIT', '2048M');
define('WP_MEMORY_LIMIT', '2048M');
define('WP_POST_REVISIONS', 0);
define('WP_POST_REVISIONS', false);
define('AUTOSAVE_INTERVAL', 86400);
set_time_limit(5000);
Step 8: Edit the default-constants.php
File
- Go to:
/opt/lampp/htdocs/lab/wp-includes/default-constants.php
- Set all statements that has
WP_MEMORY_LIMIT
to the value of2048M
4.6 – How To Install & Configure Poedit Pro?
Step 1 – Make sure “Snap” is installed:
yay -S snapd --noconfirm
Step 2 – Install Poedit:
sudo snap install poedit
Step 3 – Configure Snap & Poedit:
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap connect poedit:password-manager-service
sudo snap connect poedit:removable-media
Step 4 – Run Poedit:
/snap/bin/poedit
4.7 – How To Install Oracle VM VirtualBox?
Follow the tutorial at: https://wiki.manjaro.org/index.php?title=VirtualBox
4.8 – How To Configure TeamViewer?
- Launch your terminal.
- Type the following command:
sudo teamviewer --daemon enable
- Exit TeamViewer then launch it again.
4.9 - Docusaurus Commands
4.9.1 - Create New Docusaurus Site
npx create-docusaurus@latest my-website classic
or
npm init docusaurus
or
yarn create docusaurus
4.9.2 - Install & Upgrade Yarn / Node
npm i @docusaurus/core@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@latest @docusaurus/types@latest
or
yarn upgrade @docusaurus/core@latest @docusaurus/preset-classic@latest && yarn upgrade
4.9.3 - Install Local Search
npm install --save @easyops-cn/docusaurus-search-local
or
yarn add @easyops-cn/docusaurus-search-local
Then add the following lines to your docusaurus.config.js file:
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
hashed: true,
}),
],
],
4.9.4 - Update NPM & Yarn Globally
Step 1 - Install NodeJS, NPM, and NVM:
yay -S nodejs npm nvm;
Step 2 - NPM/Yarn Commands:
npm install -g npm@latest; npm update -g; npm install -g npm-check-updates
or
npm install --global yarn
4.9.5 - Update NPM Dependencies Locally
ncu -u
4.9.6 - Build & Serve
npm run build && npm run serve
or
yarn build && yarn serve
4.9.7 - Run Development Server
npm run start
or
yarn start
4.9.8 - Clean Modules & Locks
rm -rf node_modules yarn.lock package-lock.json
Links For Reference:
https://docusaurus.io/ https://github.com/easyops-cn/docusaurus-search-local