Posts

Showing posts with the label ubuntu

Install Docker Desktop on Ubuntu 22.04 LTS

Install Docker Desktop on Ubuntu Prerequisites For non-Gnome Desktop environments, gnome terminal must be installed:      $ sudo apt install gnome-terminal Set up the repository 1. Update the apt package index and install packages to allow apt to use a repository over HTTPS: $ sudo apt-get update $ sudo apt-get install ca-certificates curl gnupg lsb-release 2. Add Docker’s official GPG key: $ sudo mkdir -p /etc/apt/keyrings $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg 3. Use the following command to set up the repository: $ echo \    "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null...

Solution for Screen Sharing not working on Ubuntu 22.04

Recently, I upgraded my system OS from ubuntu 20.04 LTS to 22.04 LTS which I have been waiting for a long-time. It seems all goes well until I faced issues while sharing my screen over MEET or ZOOM meetings. I searched for solutions and found most of the solutions on Stackoverflow suggesting to disable the Wayland display feature and working with X11 which was used in earlier versions of Ubuntu OS. But disabling the Wayland UI scheme is not the correct solution,  because will slow down the system because the Wayland display feature is very fast in performance as compared to Xorg X11. Moreover, the Wayland display feature is more secure than Xorg X11 while providing access to the system. Actually, it is not a problem with Ubuntu OS itself. It is problem with the browser hasn't developed a feature compatible with Wayland security protocols. If anyone is facing problems with screen sharing because of OS upgraded to ubuntu 22.04, Here is the solution (without disabling the Wayla...

Ubuntu Terminal - Commands for User Groups, Directory, Permissions and Ownership

When you are working on Ubuntu/Linux OS, some important command given below can help you in managing Users groups and directories. 1. Check user-groups, a user account belongs to: $ groups 2. Add new user-group $ sudo groupadd user-group-name 3. Add user-account to a user-group: $ sudo usermod -a -G examplegroup exampleusername OR $ usermod -a -G group1,group2,group3 exampleusername 4. Change user account’s primary group: $ usermod -g groupname username 5. To change ownership of a folder: $ sudo chown -R www-data:www-data /var/www/ OR $ sudo chown -R $USER:$USER /var/www/example.com/public_html $USER will take account of the current user logged in. 6. Check permissions to specific directory: $ ls -ld /directory/ 7. Link command (creating shortcut): $ sudo ln file1.txt file2.txt or we can also use ln to create symbolic links with the -s option $ sudo ln -s file1.txt file2.txt

Create Virtual host (vhost) in linux - Ubuntu 18.04, 16.04

Virtual Host is a well-known term in web development. Generally, the remote server where we keep your website code/files is called a hosting server. Similarly, when are working on local system with any installed server like Apache or Nginx, it acts as a host. So to access the website on our system with any a custom domain name like 'yourproject.com' instead of something like 'localhost/yourproject', which sometimes create a problem when accessing relative URLs to base URL of the project. So the best way to create virtual host your local system which we work as the remote website works with a domain name. To Create Virtual Hosts(vhost) for apache2 server in Linux/Ubuntu using terminal follow below steps: 1. Copy default site conf file with the name of the your-website name i.e. laravel-demo.com.conf $ sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/ laravel-demo .conf 2. Open new conf file into an editor with root permission: ...