Linux

Title Code
Linux software update
1st: Go to the software update option from search, then next next.

2nd: terminal
sudo apt update
sudo apt upgrade
Software install
sudo apt install vlc kmplayer vscode
Software install(deb)
Google chrome install. This software don't have default on linux. So download google for google chrome on deb application

sudo dpkg -i '.deb file link'
If you select the deb file and throw the terminal, automatically path working
Unstall app
sudo apt remove vlc
mp3, mp4 not open?
sudo apt install ubuntu-restricted-extras
Linux battery backup problem
If battery charge loss quickly. Run this 2 command

sudo apt install preload
sudo apt install tlp tlp-rdw
Linux version
uname -r
uname -a
lsb_release -a
Windows software install linux
1st:
sudo dpkg --add-architecture i386 
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

2nd: check linux version : lsb_release -a
then install version wise command:
see link: https://wiki.winehq.org/Ubuntu
Then : sudo apt update

3rd: Install Wine
Three option have, but install anyone. (Stable branch	
: is better)

https://www.youtube.com/watch?v=9jBt8RAj1ks&ab_channel=ProgrammingKnowledge2
Linux mouse one click
Go any folder
3 dot
Step 2: Click on the menu icon (3 horizontal lines) at the top right. Then click on the "Preferences" option on the dropdown menu.

action to open item (single click)
tar.gz file install
sudo apt-get install alien (1st time)
sudo aline -d 'file path'

see the .deb file

then install .deb file
sudo dpkg -i "path"
Linux system restore
sudo dconf dump
dconf reset -f /
whatsapp
sudo snap install whatsapp-for-linux
Server install
sudo apt install git

Apache Web Server
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04


PHP-FPM
https://www.digitalocean.com/community/tutorials/how-to-run-multiple-php-versions-on-one-server-using-apache-and-php-fpm-on-ubuntu-20-04


mysql
https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04


phpmyadmin
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04
phpMyAdmin
phpMyAdmin
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04
error
Problem : sudo: /etc/sudo.conf is world writable
Solution : sudo chmod -R 640 /etc/sudo.conf
sudoers.so = 644 (File permission)

https://www.youtube.com/watch?v=QeOlLqh8YYU&ab_channel=LinuxeHub
Permission (folder, file)
sudo chmod -R 777  (folder, file name path)
Popup Notifications not working
sudo apt-get install --reinstall mate-notification-daemon-common
sudo apt-get install --reinstall mate-notification-daemon
The stream or file "/var/www/html/storage/logs/laravel.log"
sudo chmod o+w ./storage/ -R
Laravel showing code of index.php on home page
sudo a2enmod actions fcgid alias proxy_fcgi
404 Not Found The requested
1) sudo a2enmod rewrite

2) Goto and open [/etc/apache2/apache2.conf]
Or sudo nano /etc/apache2/apache2.conf

3)
Original
<Directory /var/www/>
     AllowOverride None
</Directory>

Update To
<Directory /var/www/>
    AllowOverride all
</Directory>

4) systemctl restart apache2

https://stackoverflow.com/questions/18853066/404-not-found-the-requested-url-was-not-found-on-this-server
Laravel: file_put_contents() failed to open stream:
sudo chown -R $USER:www-data storage
sudo chown -R $USER:www-data bootstrap/cache
sudo chmod -R 775 storage
sudo chmod -R 775 bootstrap/cache
vlc
sudo snap install vlc
anydesk install
sudo dpkg -i anydesk.deb path
sudo apt-get install libgtkglext1
sudo apt --fix-broken install

link: https://www.youtube.com/watch?v=fqOPukxJ8oE&ab_channel=CodeWithArjun
sql file import
mysql -u root -p
Enter password

mysql> create database newDB;
mysql> show databases;
mysql> use newDB;
mysql> source /var/www/html/newDB;
save history
history -w print.txt
or
history > print.txt
vscode uninstall
sudo apt remove code
sudo apt purge code