September 19, 2023

Managing Linux Processes: A Comprehensive Guide to Viewing and Killing Running Processes

 Introduction:

Linux is a versatile and powerful operating system used in various environments, from servers to desktops. One of its crucial aspects is process management. Knowing how to view and manage running processes is essential for system administrators and regular users alike. In this article, we’ll explore how to check all running processes on Linux and discuss the process of killing them when necessary.

Managing Linux Processes

Viewing Running Processes:
To check all running processes on Linux, you can use the ps command. There are several ways to use ps, but one of the most common and informative methods is:

ps aux
  • ps: This is the command for displaying information about running processes.
  • aux: The options "a" and "u" stand for "all users" and "user-oriented output," respectively. This combination provides a detailed list of all processes running on the system.

When you execute this command, you’ll see a table with various columns containing information about each process. Some of the essential columns include:

  • USER: The owner of the process.
  • PID: The Process ID, a unique identifier for each process.
  • %CPU: The percentage of CPU usage by the process.
  • %MEM: The percentage of RAM (memory) usage by the process.
  • VSZ: Virtual memory size in kilobytes.
  • RSS: Resident Set Size, the portion of a process's memory that is held in RAM.

Killing Processes:
Sometimes, you may need to terminate a running process, either because it’s unresponsive or consuming too many system resources. To do this, you can use the kill command. Here's the basic syntax:

sudo kill -9 PID 
  • sudo: This command is used to execute another command with superuser privileges, which are often required to kill processes owned by other users or system services.
  • kill: The primary command for terminating processes.
  • -9: This is a signal number (SIGKILL) that forcefully terminates the process. It should be used cautiously, as it doesn't allow the process to clean up after itself, potentially leading to data corruption or other issues.
  • PID: Replace this with the Process ID of the process you want to kill.

For instance, if you want to terminate a process with a PID of 12345, you’d run:

sudo kill -9 12345

Alternatively, you can use the pkill command to kill processes by their name:

sudo pkill process_name
  • process_name: Replace this with the name of the process you want to terminate.

Conclusion:
Understanding how to view and manage running processes is a fundamental skill for any Linux user or administrator. The ps aux command provides valuable insights into the processes running on your system, while the kill command allows you to terminate processes when necessary. However, exercise caution when using the -9 option with kill, as it can have unintended consequences. Always ensure that you are terminating the correct process, especially when working with critical system processes.

By mastering process management on Linux, you’ll have better control over your system’s performance and stability, ensuring that it operates smoothly and efficiently.

February 14, 2023

How To Install wkhtmltopdf on Ubuntu 22.04
There are 3 ways to install wkhtmltopdf on Ubuntu 22.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them. 
  1. Install wkhtmltopdf Using apt-get
  2. Install wkhtmltopdf Using apt
  3. Install wkhtmltopdf Using aptitude


 

1. Install wkhtmltopdf Using apt-get

Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install wkhtmltopdf using apt-get by running the following command:
sudo apt-get -y install wkhtmltopdf

2. Install wkhtmltopdf Using apt

Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install wkhtmltopdf using apt by running the following command:
sudo apt -y install wkhtmltopdf

3. Install wkhtmltopdf Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude update

After updating apt database, We can install wkhtmltopdf using aptitude by running the following command:
sudo aptitude -y install wkhtmltopdf

How To Uninstall wkhtmltopdf on Ubuntu 22.04

To uninstall only the wkhtmltopdf package we can use the following command:
sudo apt-get remove wkhtmltopdf
Uninstall wkhtmltopdf And Its Dependencies

To uninstall wkhtmltopdf and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove wkhtmltopdf

Remove wkhtmltopdf Configurations and Data

To remove wkhtmltopdf configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge wkhtmltopdf
Remove wkhtmltopdf configuration, data, and all of its dependencies

We can use the following command to remove wkhtmltopdf configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge wkhtmltopdf

Source 

wkhtmltopdf website
wkhtmltopdf on packages.ubuntu.com

Conclusion

In this tutorial we learn how to install wkhtmltopdf package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.

January 19, 2023

How to Install Python 3.8 on Ubuntu 16.04

 

Installing Python 3.8 on Ubuntu with Apt

Installing Python 3.8 on Ubuntu with apt is a relatively straightforward process and takes only a few minutes:

  1. Run the following commands as root or user with sudo access to update the packages list and install the prerequisites:

    sudo apt update
    sudo apt install software-properties-common
    
  2. Add the deadsnakes PPA to your system’s sources list:

    sudo add-apt-repository ppa:deadsnakes/ppa
    

    When prompted press Enter to continue:

    Press [ENTER] to continue or Ctrl-c to cancel adding it.
    
  3. Once the repository is enabled, install Python 3.8 with:

    sudo apt install python3.8
    
  4. Verify that the installation was successful by typing:

    python3.8 --version
    
    Python 3.8.0
    

At this point, Python 3.8 is installed on your Ubuntu system, and you can start using it.

Installing Python 3.8 on Ubuntu from Source

In this section, we’ll explain how to compile Python 3.8 from the source.

  1. Update the packages list and install the packages necessary to build Python:

    sudo apt update
    sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev 
    libssl-dev libreadline-dev libffi-dev wget
    
  2. Download the latest release’s source code from the Python download page using wget:

    wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
    

At the time of writing this article, the latest release is 3.8.0.

  1. When the download finishes, extract the gzipped archive:

    tar -xf Python-3.8.0.tgz
    
  2. Switch to the Python source directory and execute the configure script which performs a number of checks to make sure all of the dependencies on your system are present:

    cd Python-3.8.0
    ./configure --enable-optimizations
    

The --enable-optimizations option optimizes the Python binary by running multiple tests. This makes the build process slower.

  1. Start the Python 3.8 build process:

    make -j 8
    

For faster build time, modify the -j to correspond to the number of cores in your processor. You can find the number by typing nproc.

  1. When the build process is complete, install the Python binaries by typing:

    sudo make altinstall
    

Do not use the standard make install as it will overwrite the default system python3 binary.

  1. That’s it. Python 3.8 has been installed and ready to be used. Verify it by typing:

    python3.8 --version
    

    The output should show the Python version:

    Python 3.8.0
    

Feedback

You have installed Python 3.8 on your Ubuntu 16.04 machine, and you can start developing your Python 3 project.

If you have any questions or feedback, feel free to comment below.

#python #Ubuntu

November 11, 2022

মেধা থাকলেও লাভ নাই, যদি না পকেটে থাকে টাকা!
মেধা থাকলেও লাভ নাই, যদি না পকেটে থাকে টাকা! 

আপনাদের একটা ঘটনা বলি তাহলে আমার কথার সাথে আপনাদের চিন্তা ভাবনার মিল হবে।
গত বুধবার রাতে, রাস্তা দিয়ে কি যেন চিন্তা করতে করতে পায়ে হেটে বাসায় ফিরতেছিলাম। হঠাৎ আটকে গেলাম! মানে, কে যেন আমার পা আকড়ে ধরেছে? তাকিয়ে দেখি এক ভিক্ষুক। আমি তাকানোর সাথে সাথেই বলা শুরু করল:- স্যার কিছু টাকা ভিক্ষা দিন, খাবার কিনে খাব। আমি বললাম পা ধরছেন কেন, তাড়াতড়ি ছাড়েন না হলে পুলিশ ডাকব। ভিক্ষুক বলে:- তারপরও আপনার পা আমি ছাড়তে রাজি না। মনে মনে ভাবলাম, মহা বিপদে পড়লাম তো। তারপর ভিক্ষুককে বললাম, আমি আপনাকে ভিক্ষা দেওয়ার মত সামর্থ অর্জন করিনি। তারপর পা ছেড়ে দিল। 

 :::::::
ভিক্ষুকের মেধা ঠিকই আছে, কিন্তু পকেটে টাকা নাই। তাই বলে সে ভিক্ষা করে। অনেকের টাকা আছে কিন্তু ....................। দুইটাই পরস্পরের সাথে ওতপ্রোতভাবে জড়িত। বাস্তবে>>>আচ্ছা গভীরে না জাই। ধন্যবাদ।

 #ভিক্ষুক #motivation #motivation

September 29, 2022

How to write Linkedin About Section | 7 steps write Linkedin About Section

 7 steps to write Linkedin About Section

7 steps to wirte Linkedin About Section
7 steps to write linkedin about section

If you want to write a beautiful linkedin about section then please follow this 7 steps. 

1. Declare your current position and your location

I’m working as a “software engineer”. I’m living in the City, Country.

2. Talk about your experience

I’ve more than three or 3+ years experience as a “software engineer”.

3. Write down your skills

I’ve arranged this list of my recent set of skills:

  •  Tools: Adobe Illustrator, Photoshop, XD, WordPress.

  •  Tools: Adobe Illustrator, Photoshop, XD, WordPress.

  •  Tools: Adobe Illustrator, Photoshop, XD, WordPress.

  •  Tools: Adobe Illustrator, Photoshop, XD, WordPress.

You can add skills which are suitable to you.

4. Talk about your childhood or after childhood. How did you get the interest?

I started learning to code when I was a teenager, though it was always more of a hobby than a career focus. After secondary school education in Science, and continuing to pursue that hobby, I realized software engineering was the right field for me.

5. Talk your previous experience

Since then, I’ve worked on countless freelance projects and have been involved with a handful of notable startups. Today, I’m working as a designer with the amazing team at XYZ company., and am getting into backend development and machine learning on my own time.

6. Talk more about your interest

I’m familiar with a variety of programming languages, including Python 3. X(Expert), C/C++(Proficient), Java(Proficient), HTML, and CSS, but I’m always adding new skills to my repertoire. I’m also eager to meet other software engineers in the area, so feel free to connect!

7. Write Invite message to get call or reply

I want to add more that I’ve good communication skills, leadership, and people management skills. I also always try to be supportive of my team members.


Thanks for reading. Please share with your friends. If you have feedback then please comment down bellow.

September 25, 2022

Landing Page Template Design - Free Landing Page Template

 

Free Landing Page Template

It's a self project. I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more idea about website development. I designed this website just using three languages HTML, CSS, JavaScript and more.



Landing Page Template Design

It's a self project. I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more idea about website development. I designed this website just using three languages HTML, CSS, JavaScript and more.

Need Technology for Template Design

It's a self project. I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more idea about website development. I designed this website just using three languages HTML, CSS, JavaScript and more.


Live Demo Check Website

If you want to see a demo of my website development then please visit this link https://chinmayroy.github.io/landing_page_for_basic_design/


Technology for Website Template

It's a self project. I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more idea about website development. I designed this website just using three languages HTML, CSS, JavaScript and more.


5 Technology Used for Template Design

It's a self project. I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more idea about website development. I designed this website just using three languages HTML, CSS, JavaScript and more.

Check Website Template

If you want to see a demo of my website development then please visit this link https://chinmayroy.github.io/landing_page_for_basic_design/

Conclusion

I got more knowledge after doing this project. If anyone wants to increment this project, then please contact me. I will help you for your next procedure.

Best Portfolio Website Design - Attractive Portfolio Website for Developers

Best Portfolio Website Template Design

About Design

I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more ideas about website development. I designed this website just using three languages HTML, CSS, JavaScript, and more.


best portfolio website


Website Real View

If you want to see demo of my website development then please visit this link https://chinmayroy.github.io/Portfolio_Website_By_Chinmay

Best Portfolio Website

I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more ideas about website development. I designed this website just using three languages HTML, CSS, JavaScript, and more.


Attractive Portfolio Website

I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more ideas about website development. I designed this website just using three languages HTML, CSS, JavaScript, and more.


Best Template for Developers

I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more ideas about website development. I designed this website just using three languages HTML, CSS, JavaScript, and more.

Best Template for Designer

I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more ideas about website development. I designed this website just using three languages HTML, CSS, JavaScript, and more.

Website Live View

If you want to see demo of my website development then please visit this link https://chinmayroy.github.io/Portfolio_Website_By_Chinmay

Portfolio Website Site Idea

I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more ideas about website development. I designed this website just using three languages HTML, CSS, JavaScript, and more.

Portfolio Template

I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides, I got more ideas about website development. I designed this website just using three languages HTML, CSS, JavaScript, and more.

Free Portfolio Demo View

If you want to see demo of my website development then please visit this link https://chinmayroy.github.io/Portfolio_Website_By_Chinmay

Conclusion

I got more knowledge after doing this project. If anyone wants to increment this project, then please contact me. I will help you for your next procedure.

August 26, 2022

জীবনে বেঁচে থাকার জন্য বেশি টাকার প্রয়োজন নেই!

অনেকেই বলে জীবনে বেঁচে থাকার জন্য বেশি টাকার প্রয়োজন নেই! অল্প কিছু টাকা হলেই ভাল ভাবে জীবন যাপন করা যায়। কিন্তু বাস্তবতা আর এই কথার মাঝে আমি কখনো মিল খুঁজে পাইনি। কারণটা খুঁজতে গিয়ে, আমি দেখেছি কত মানুষের টাকার অভাবে থাকার জায়গা নেই, দুবেলা খাওয়ার মত কোন ব্যবস্থা নেই, এই টাকার জন্য তাকে কতনা বকা শুনতে হয়েছে, কতনা অপমানিত হতে হয়েছে তার কোন শেষ নেই।

এমন অনেককেই দেখেছি টাকার জন্য তাদের প্রিয়জনদের চিকিৎসা পর্যন্ত করাতে পারে নি। করাতে পারিনি নিজের চিকিৎসা। টাকার জন্য মানুষের কাছে হাত পেতে ছিল কিন্তু তাদের পর্যাপ্ত পরিমাণ টাকা হয়নি; চিকিৎসাও ভালভাবে হলো না, তার আপনজন মারা গেল

অনেক যুবককে দেখেছি টাকার জন্য তার স্বপ্নের চাকরি টা পর্যন্ত পাইনি বিভিন্ন দ্বারে দ্বারে ঘুরে ঘুরেও তাঁর স্বপ্নের চাকরি দরজায় পৌঁছাতে পারল না আজও। অনেক মানুষের জীবনের বাধা হয়ে দাঁড়িয়েছে তাদের বিবাহ জীবন সম্পূর্ণ করার জন্য।

আবার টাকার জোরে যে সবকিছু হয় তা কিন্তু না। টাকা মানুষকে সম্মান এনে দিতে পারে ঠিকই, কিন্তু সেই সম্মান কেড়েও নিতে পারে। জীবনের সম্মান অর্জন করার জন্য টাকার প্রয়োজন আছে ঠিকই; আবার টিকিয়ে রাখতেও টাকার প্রয়োজন আছে। তবে টাকার দিকে নজর দিতে গিয়ে যদি নিজের চরিত্রের কথা ভুলে যায় সে ক্ষেত্রে খারাপ হওয়াটাই স্বাভাবিক।

July 08, 2022

How to create a bootable USB flash drive

 To create a bootable USB flash drive

Creat a bootable USB Flash Drive
Bootable USB Flash Drive

  1. Insert a USB flash drive into a running computer. Open a Command Prompt window as an administrator.

  1. Type diskpart.

In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type list disk, and then click ENTER. The list disk command displays all the disks on the computer. Note the drive number or drive letter of the USB flash drive.

At the command prompt, type select disk <X>, where X is the drive number or drive letter of the USB flash drive, and then click ENTER.


  1. Type clean, and click ENTER. (This command deletes all data from the USB flash drive).


  1. To create a new primary partition on the USB flash drive, type create partition primary, and then click ENTER.


  1. To select the partition that you just created, type select partition 1, and then click ENTER.


  1. To format the partition, type format fs=ntfs quick, and then click ENTER.


***Note That***

If your server platform supports Unified Extensible Firmware Interface (UEFI), you should format the USB flash drive as FAT32 rather than as NTFS. To format the partition as FAT32, type format fs=fat32 quick, and then click ENTER.


  1. Type active, and then click ENTER.


  1. Type exit, and then click ENTER.


When you finish preparing your custom image, save it to the root of the USB flash drive. 

Thanks for reading out this article please do like, share, and comment.


March 30, 2022

247Delivery - Online Delivery Company

 

About 247delivery:

An all-time online delivery provider company. it's a self project. I designed this website for personal practice. When I did this project, then I got more knowledge about bootstrap. It's a very powerful framework for website development. Besides I got more ideas about website development. I designed this website just using three languages HTML, CSS, javascript, and more.


247delivery


Demo Website:

If you want to see a demo of my website development then please click here for an actual view.

Conclusion:

I got more knowledge after doing this project. If anyone wants to increment this project then please contact me. I will help you with your next procedure

March 17, 2022

Google Chrome Dinosaur Game - Hack

Google Chrome includes an endless runner Dinosaur game that appears in the absence of an internet connection.

If you are unable to get the No Internet page, open a new tab and type chrome://dino, and press enter.

Playing

  • Space Bar / Up: Jump (also to start the game)
  • Down: Duck (pterodactyls appear after 450 points)
  • Alt: Pause
  • The game enters a black background mode after every multiple of 700 points for the next 100 points.

Chrome Dino

Open Chrome Console

  • Make sure you are on the No Internet Connection page.
  • Right-click anywhere on the page and select Inspect.
  • Go to the Console tab. This is where we will enter the commands to tweak the game.

Tweaking Speed

Type the following command in Console and press enter. You can use any other speed in place of 1000.

Runner.instance_.setSpeed(1000)

Immortality

  • After every command press enter. All the commands are case-sensitive.

  • We store the original game over function in a variable:

    var original = Runner.prototype.gameOver
    
  • Then, we make the game over function empty:

    Runner.prototype.gameOver = function(){}
    

Stopping the game after using Immortality

When you want to stop the game, Revert back to the original game over function:

Runner.prototype.gameOver = original

Setting the current score

Let’s set the score to 12345. You can set any other score less than 99999. The current score is reset on the game over.


Runner.instance_.distanceRan = 12345 / Runner.instance_.distanceMeter.config.COEFFICIENT

Dino jumping too high?

You can control how high the dino jumps by using the below function. Adjust the value as necessary.


Runner.instance_.tRex.setJumpVelocity(10)