January 07, 2024

Configuring Odoo: A Comprehensive Guide to Odoo.conf

Configuring Odoo is a crucial step in ensuring optimal performance and functionality.


The odoo.conf file plays a central role in customizing the behavior of your Odoo server. In this article, we'll walk through a well-organized odoo.conf file, highlighting key parameters and explaining their significance. By the end, you'll have a clearer understanding of how to tailor Odoo to your specific requirements. 

1. Setting Administrator Password

admin_passwd = admin_password

Specify the admin password to secure your Odoo instance. 

2. Database Configuration

db_host = False
db_port = False
db_user = odoo
db_password = db_password
db_name = odoo

Configure database-related parameters, including host, port, user, password, and name. 

3. Timezone Configuration

timezone = UTC

Set the timezone for your Odoo server, ensuring accurate time representation. 

4. XML-RPC and Web Interface Configuration

xmlrpc_interface = 127.0.0.1
xmlrpc_port = 8069
netrpc_interface = 127.0.0.1
netrpc_port = 8072

Define the XML-RPC and web interface addresses and ports for server communication. 

5. Addons Configuration

addons_path = /path/to/your/custom/addons,/path/to/odoo/addons

Specify the paths to your custom addons and the default Odoo addons. 

6. Logging Configuration

log_level = info
logfile = /var/log/odoo/odoo.log

Configure logging settings, including log level and file location. 

7. Additional Settings

demo = False
auto_reload = False
workers = 4
limit_time_cpu = 300
db_maxconn = 64
Adjust various settings such as enabling or disabling demo data, auto-reloading modules, defining the number of workers, setting CPU time limits, and controlling database connections. By following this guide, you'll be equipped to create a well-organized odoo.conf file tailored to your specific deployment needs. Remember to restart your Odoo service after making changes for them to take effect.

October 20, 2023

Enabling Remote Connections to PostgreSQL on Ubuntu

Enabling remote connections to a PostgreSQL server on Ubuntu 20.04 involves several steps to configure the PostgreSQL server and open up the necessary ports. Additionally, I'll provide information on changing the password for an existing PostgreSQL user if needed.


 

Step 1: Modify the PostgreSQL Configuration File

Open the PostgreSQL configuration file "postgresql.conf" using a text editor. The file is typically located in the /etc/postgresql/12/main directory. To open the file from the Linux Terminal, execute:

sudo nano /etc/postgresql/12/main/postgresql.conf

Find the line #listen_addresses = 'localhost' and uncomment it by removing the # character at the beginning of the line.

Next, change the value of listen_addresses to "*", allowing PostgreSQL to listen on all available IP addresses. Alternatively, you can specify a specific IP address or a range of IP addresses that are allowed to connect to the server.

Step 2: Modify the pg_hba.conf File

Open the "pg_hba.conf" file using your preferred text editor, typically located in the /etc/postgresql/12/main directory. To open the file from the Linux Terminal, execute:

sudo nano /etc/postgresql/12/main/pg_hba.conf

Find the section that allows local connections and modify it as follows:

# IPv4 local connections: host all all 127.0.0.1/32 md5

Change it to allow connections from any IP address (0.0.0.0/0):

# IPv4 local connections: host all all 0.0.0.0/0 md5

Step 3: Allow Port 5432 Through the Firewall

To enable traffic on port 5432 through the firewall, execute the following command:

sudo ufw allow 5432/tcp

Step 4: Restart PostgreSQL

Restart the PostgreSQL service to apply the changes:

sudo service postgresql restart

Changing the Password for an Existing PostgreSQL User:

If you need to change the password for an existing PostgreSQL user, you can follow these steps:

Log in to the PostgreSQL database as a superuser or a user with administrative privileges. You can do this by using the psql command:

sudo -u postgres psql

Change the password for the user using an SQL command. Replace username with the actual username and new_password with the new password you want to set:

ALTER USER username WITH PASSWORD 'new_password';

Exit the PostgreSQL prompt:

\q

After completing these steps, you should be able to connect to the PostgreSQL server from a remote machine and have successfully changed the password for an existing user. However, please keep in mind that allowing remote access to a PostgreSQL server can pose security risks. Therefore, it's recommended to use strong passwords, encryption, and firewall rules to protect your system.

 

September 29, 2023

ReactXO is a simple web-based game developed in React

 

ReactXO

ReactXO is a simple web-based game developed in React that emulates the classic game of Tic Tac Toe, but with a modern twist. Challenge your friends or play against the computer to see who can achieve victory in this entertaining game of Xs and Os.

Table of Contents

  • Demo
  • Features
  • Getting Started
  • Usage
  • Contributing
  • Screenshot

Demo

You can check out a live demo of ReactXO here.

Features

  • Play Tic Tac Toe with a modern, responsive interface.
  • Choose to play against a friend or an AI opponent.
  • Engaging animations and user-friendly design.
  • Keep track of the game's history and move through previous moves.

Getting Started

To run ReactXO locally on your machine, follow these steps:

  1. Clone this repository to your local machine:

  2. Navigate to the project directory:

    cd reactxo

  3. Install the required dependencies using npm:

    npm install

  4. Start the development server:

    npm start

  5. Open your web browser and visit http://localhost:3000 to play ReactXO.

Usage

  • Upon launching the game, choose whether you want to play against a friend or against the computer (AI).
  • Take turns placing your symbol (X or O) on the grid by clicking on an empty cell.
  • The game will automatically detect a winner or a draw and display the result.
  • You can also view the game's history by clicking on the "History" button and jump back to any previous move.

Contributing

Contributions are welcome! If you'd like to contribute to ReactXO, please follow these guidelines:

  1. Fork the repository on GitHub.
  2. Clone your forked repository to your local machine.
  3. Create a new branch for your feature or bug fix.
  4. Make your changes and commit them with descriptive commit messages.
  5. Push your changes to your GitHub fork.
  6. Submit a pull request to the original repository, describing the changes you've made.

Screenshot
ReactXO

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/

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/

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/

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

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

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

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

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

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