Categories
Linux Technology

apt update vs apt upgrade: What’s the difference?

https://dev.to/kcdchennai/apt-update-vs-apt-upgrade-whats-the-difference-2ff8

Categories
Linux Technology

Install def file in ubuntu

Use command below :
sudo dpkg -i PACKAGEFILE

reference :
https://askubuntu.com/questions/1407494/screen-share-not-working-in-ubuntu-22-04-in-all-platforms-zoom-teams-google-m

Categories
Linux Technology

Share screen in ubunut 22

You need to disable Wayland


refrence :
https://askubuntu.com/questions/1407494/screen-share-not-working-in-ubuntu-22-04-in-all-platforms-zoom-teams-google-m

Categories
Linux Technology

Find software which is using a port on linux

lsof -i :8000

Categories
Linux Shell Technology

Watch all tpc port that are listening :

ss -apt
Categories
Linux Technology

Remove A app from linux completely

first , purge main package name :

sudo apt-get purge mariadb-server 

then

sudo apt autoremove

then run this command to find all packages that may are related to the package which you want to purge :

sudo dpkg -l | grep mariadb 

after that purg services that are returned one by one

Categories
Linux Technology

Change server DNS

sudo vi /etc/resolv.conf

remove all content in this file and add below codes :

nameserver [ip]
nameserver [ip]
Categories
Linux Technology

Why my web server doesnt work ? (ubuntu)

Check 80 port on your server :

sudo netstat -tulpn | grep :80

In my case I saw my 80 port have gotten by Nginx but I want to give it to Apache so I used this command :

sudo systemctl stop nginx
sudo systemctl start apache2.service

and it worked perfectly

Categories
devops Linux Technology

How to run our own Smart DNS to bypass geo restrictions – let’s run something like shecan.ir

The article in the link below helps in this way.

Check it out.

https://maj0rmil4d.medium.com/how-to-run-our-own-smart-dns-to-bypass-geo-restrictions-beeeab4f82d7

Categories
Linux Technology

Linux Disk became readonly

it sometimes happens because you have multiple Operating systems, for example, i have windows and Linux on my machine so I got this problem:

after you tried to mount and unmount your disk you can use the command below as super admin:

sudo fsck -f /dev/sdxx

sdxx is the name of your disk, you can get disk names by command below :

sudo mount