Category: docker
Explore InfluxDB: Part 1
I have been trying to manage time to explore InfluxDB for observability. This article is one of many about InfluxDB and Telegraf. I will cover basic installation here.
My Understanding about RUN, CMD and ENTRYPOINT in Dockerfile
Containerization gives us many benefits from packaging to distribution and others. Thus, Docker is widely used as a containerization tool which is designed for running specific tasks and processes, not for hosting operating systems or like other virtualization tools like VMWare, VirtualBox etc. You create a container to serve a single unit task. Once it completes the given task, it stops. The container life-cycle depends on the ongoing process inside of it. Once the process stops,
Development Environment with Docker Compose
There are a lot of tools I need to work with. Installing some tools in my workstation and bloating the system is not an option with limited memory capacity, specially in MacBook Air M1 with 8GB of ram. So, I am using docker when using those tools. The day to day life depends on these DB tools –
GetDockerized: An Initiative to Learn Docker as Deep as Possible, Once Again
Category: linux
RaspberryPi with DHT22 Sensor for Humidity and Temperature Data with InfluxDB
I have been playing with RaspberryPI for a while. There are several project I tried to do with RaspberryPI. These boards play a significant role in my home lab for different experiments like Docker Private Repository, Media Server, Ad Blocker with pi-hole, Secure Proxy for anonymity, secure network access with VPN, Home Security Camera/Surveillance, Data Collector or scraper etc. But This time, I did buy a “DHT-22” sensor for monitoring room temperature and humidity. Humidity is my main concern and wanted to see how it fluctuates.
So, my main plan was to get a DHT-22 to connect properly
Ansible to change user password
One of the most basic things to do in a Linux Server. We can use just passwd <user>
to change the password of a user. But to do that in 100s of server can be a tricky one. Ansible is the savior on that perspective.
Explore InfluxDB: Part 1
I have been trying to manage time to explore InfluxDB for observability. This article is one of many about InfluxDB and Telegraf. I will cover basic installation here.
Category: monitoring
RaspberryPi with DHT22 Sensor for Humidity and Temperature Data with InfluxDB
I have been playing with RaspberryPI for a while. There are several project I tried to do with RaspberryPI. These boards play a significant role in my home lab for different experiments like Docker Private Repository, Media Server, Ad Blocker with pi-hole, Secure Proxy for anonymity, secure network access with VPN, Home Security Camera/Surveillance, Data Collector or scraper etc. But This time, I did buy a “DHT-22” sensor for monitoring room temperature and humidity. Humidity is my main concern and wanted to see how it fluctuates.
So, my main plan was to get a DHT-22 to connect properly
Explore InfluxDB: Part 1
I have been trying to manage time to explore InfluxDB for observability. This article is one of many about InfluxDB and Telegraf. I will cover basic installation here.
Category: programming
RaspberryPi with DHT22 Sensor for Humidity and Temperature Data with InfluxDB
I have been playing with RaspberryPI for a while. There are several project I tried to do with RaspberryPI. These boards play a significant role in my home lab for different experiments like Docker Private Repository, Media Server, Ad Blocker with pi-hole, Secure Proxy for anonymity, secure network access with VPN, Home Security Camera/Surveillance, Data Collector or scraper etc. But This time, I did buy a “DHT-22” sensor for monitoring room temperature and humidity. Humidity is my main concern and wanted to see how it fluctuates.
So, my main plan was to get a DHT-22 to connect properly
Finding an Efficient Solution on Reading and Comparing CSV files
I have always worked with Linux Systems and thus Bash was my go to tool for some specific tasks. But now I am much more aware with Python than Bash as it does give me better grasp on things. I am not saying that for server scripting, Bash can not do some tasks. It can be used in a vast area of things to solve. But I am now comfortable with Python more.
Recently, I did stumble upon of a task that was related to comparing two huge CSV files.
SSH Config and Ansible Host Generator and Why I am doing it this way?
I am recently playing the role as an SRE and that is why I have to deal with a lot of servers. Not only cloud once or clusters but also bare metals as well as Virtual Machines. For more systematic environment preparation, I have Gitlab pipeline. But for basic tasks like change the config on demand or check a specific directory or search something or any other unpredictable or repeated tasks, I need Ansible for better grasp from my local machine or Bastion server. So, what do I have to do?
- Create an entry to the .ssh/config file
- Create an entry ansible host file as inventory
Repeated tasks? For me, yes. I needed to manage these. So, created a python script
My Understanding about RUN, CMD and ENTRYPOINT in Dockerfile
Containerization gives us many benefits from packaging to distribution and others. Thus, Docker is widely used as a containerization tool which is designed for running specific tasks and processes, not for hosting operating systems or like other virtualization tools like VMWare, VirtualBox etc. You create a container to serve a single unit task. Once it completes the given task, it stops. The container life-cycle depends on the ongoing process inside of it. Once the process stops,
Effective use of Redis with Python and Connection Pool
I have been working with redis and python for sometime. It is fun to play with python and redis. There are so many things can be solved by redis.
- Session persistency
- Caching
- Volatile Datastore
- Job or Message Queue
- Search
And many more. But recently I was thinking about using it as main database. I am not yet sure what kind of problem I might face or what things to optimize when it is about scalability or reliability. I will for sure share my experience.
Here I want to talk about –
How to run Python Flask Application?
I mostly use Python Flask when I need to develop a Web App or API.
Why? Because it is:
- lightweight
- Very Flexible
- Micro-Service Friendly
- Fast Development
These are one of the main reasons I choose Flask. But mostly I love to code with Flask. There are so many ways to run flask applications. I will write some of them here with code examples.
Apache Kafka in Docker Container and Implement it’s Functionalities with Python
According to the website, Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
In this post, I am going to share a basic way to start using Apache Kafka with python.
Pythons datetime of a timezone
In python, we can use datetime module from standard library for manipulating dates and times. From the documentation, we can say, date and time objects may be categorized as “aware” or “naive” depending on whether or not they include timezone information. How can we get a datetime?
Raspberry Pi and Docker Registry
Recently I have been using a Raspberry Pi 3B+ bought from a classified advertisement site called Bikroy.com. A student wanted to sell this, as his final college project was done. It was cheaper with an acrylic casing and a fan. However, I wanted to use this Pi for several pet projects. Initially I did install Pi-Hole for network wide adblocker and along with samba with a spare portable hard disk. It was working OK. No extra pressure in this 1GB ram Pi. I thought Why not give it a little bit more pressure?
Thus, I planned to install docker registry in it for my “local private docker hub” type of need. Let me share what I had to do.
Again Fibonacci Series and Python
I have already wrote a piece about generating Fibonacci series in BASH, here in my blog. But today I am gonna do some practice stuff with Python.
We all I guess know about Fibonacci. It is connected to nature through the golden ratio and the spirals. It is a very interesting series to learn or research deeply. However, I came to know that there is a day declared as “Fibonacci Day” which is every 23rd, November. But why?
Multi line Log Parser in Python
So, I have a log file that is not single line log. It is kind of java stack trace. What I needed to do is read those log files and create some actions depending on them. I could use already built tools. But I thought why not just do this as simply as printing strings.
This is an example of the log format I wanted to play with. It seems too simple to pile up the Filebeats or elastic stack.
Some coding practice with Json, Itertools and Lambda in Python
I enjoy coding and solving problems. But as I go forward, I find myself in a sea of unknowns. Thus I decided to learn as much as possible to be confident. So, I am learning even the simplest it seems.
Other side of Python eval() function
The built-in function “eval()” of python is useful in many cases. But I am gonna talk about it’s negative one.
Let, you have a function that take arguments from user. If you do eval() on that input, it might create a havoc.
What does eval() do in Python?
I have always loved the fact that The Python interpreter has a number of functions and types built into it. I am going to explore “eval()” in this article.
Some git tips to survive in versioning world – Part 1
I am gonna talk about Git. We all somehow use git and thus it is important for us to better use .gitignore.
Category: proxy-server
Squid proxy Server with multiple IP
My dear readers. I am here again for your help with squid proxy server. I will show you today how to use squid server to work with several IP in a vps/system. This is very useful if you do Craigslist work or something like that. Proxy is interesting. Squid proxy is like a Swiss Army Knife which has numerous feature to make you comfortable with proxy.
Here are two ways of configuring squid’s proxy to use the other IPs assigned to your server (besides the default one).
Solve Google,Facebook etc site Loading Problem in Squid Proxy
If you see that your newly created Squid proxy server can’t access Google, Facebook and other sites then you are right place to get the solution. Actually this problem arises when your ISP have no IPV6 for you. And Google,Facebook type giant sites has IPV6. So Squid just route you to access by IPV6 whether you have or not. As you have no IPV6 , you are facing problem.
Squid Proxy Server Download/Upload Limit
We can limit the download/upload limit for particular user/ip range/time . This will help to not to create high load in the server during ofice time or some particular time or maybe some users .
Blocking IP,Domain,Time to Access Websites in Squid Proxy Server !
We can control website or ip to access or accessed by squid proxy server . We can set timely access rule or some ip range to acccess the server or also can block some website or ip for a range of ip or for some limited time .
Squid Proxy Server Working or Not ?
If you have completed your installation of squid proxy server then you can see how your proxy server working and how it is handling caching or contents .
Ban domain access in squid proxy server
Some times we need to control internet users in public hotspot or wifi or also school-college-university network . Anyone can control domains accessed by squid proxy by this tutorial .
Installing Squid Proxy Server with User & Password
If you work remotely, or have to handle corporate files on the road, then chances are you’ve used a specific type of proxy and may not even be aware of it. In fact, proxies are used by workers all over the world in the form of a VPN. A virtual private network is one specific type of proxy which provides you with the ability to work remotely and securely.So , here i will help you to install and configure squid proxy server in your vps or server .
Installing Squid Proxy Server in Ubuntu
Log in on Ubuntu Server, then type command below to Install squid :
Category: purchase-decison
Wireless Mouse A4tech FG35 Buying experience in Bangladeshi online stores
I have been using two mouse for my daily work in my laptop. Among them, I have Mi Portable Mouse and another a local made without branding. But recently both of them showing faults on scroll wheel. Which is very annoying. Also Xiaomi does eat a lot of power. So, I though I should get a new wireless mouse. Thus I came to know about A4tech FG35. It seems will fit my need. I have found this mouse in several online stores.
Category: python
Finding an Efficient Solution on Reading and Comparing CSV files
I have always worked with Linux Systems and thus Bash was my go to tool for some specific tasks. But now I am much more aware with Python than Bash as it does give me better grasp on things. I am not saying that for server scripting, Bash can not do some tasks. It can be used in a vast area of things to solve. But I am now comfortable with Python more.
Recently, I did stumble upon of a task that was related to comparing two huge CSV files.
SSH Config and Ansible Host Generator and Why I am doing it this way?
I am recently playing the role as an SRE and that is why I have to deal with a lot of servers. Not only cloud once or clusters but also bare metals as well as Virtual Machines. For more systematic environment preparation, I have Gitlab pipeline. But for basic tasks like change the config on demand or check a specific directory or search something or any other unpredictable or repeated tasks, I need Ansible for better grasp from my local machine or Bastion server. So, what do I have to do?
- Create an entry to the .ssh/config file
- Create an entry ansible host file as inventory
Repeated tasks? For me, yes. I needed to manage these. So, created a python script
My Understanding about RUN, CMD and ENTRYPOINT in Dockerfile
Containerization gives us many benefits from packaging to distribution and others. Thus, Docker is widely used as a containerization tool which is designed for running specific tasks and processes, not for hosting operating systems or like other virtualization tools like VMWare, VirtualBox etc. You create a container to serve a single unit task. Once it completes the given task, it stops. The container life-cycle depends on the ongoing process inside of it. Once the process stops,
Effective use of Redis with Python and Connection Pool
I have been working with redis and python for sometime. It is fun to play with python and redis. There are so many things can be solved by redis.
- Session persistency
- Caching
- Volatile Datastore
- Job or Message Queue
- Search
And many more. But recently I was thinking about using it as main database. I am not yet sure what kind of problem I might face or what things to optimize when it is about scalability or reliability. I will for sure share my experience.
Here I want to talk about –
How to run Python Flask Application?
I mostly use Python Flask when I need to develop a Web App or API.
Why? Because it is:
- lightweight
- Very Flexible
- Micro-Service Friendly
- Fast Development
These are one of the main reasons I choose Flask. But mostly I love to code with Flask. There are so many ways to run flask applications. I will write some of them here with code examples.
Apache Kafka in Docker Container and Implement it’s Functionalities with Python
According to the website, Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
In this post, I am going to share a basic way to start using Apache Kafka with python.
Pythons datetime of a timezone
In python, we can use datetime module from standard library for manipulating dates and times. From the documentation, we can say, date and time objects may be categorized as “aware” or “naive” depending on whether or not they include timezone information. How can we get a datetime?
Again Fibonacci Series and Python
I have already wrote a piece about generating Fibonacci series in BASH, here in my blog. But today I am gonna do some practice stuff with Python.
We all I guess know about Fibonacci. It is connected to nature through the golden ratio and the spirals. It is a very interesting series to learn or research deeply. However, I came to know that there is a day declared as “Fibonacci Day” which is every 23rd, November. But why?
Multi line Log Parser in Python
So, I have a log file that is not single line log. It is kind of java stack trace. What I needed to do is read those log files and create some actions depending on them. I could use already built tools. But I thought why not just do this as simply as printing strings.
This is an example of the log format I wanted to play with. It seems too simple to pile up the Filebeats or elastic stack.
Some coding practice with Json, Itertools and Lambda in Python
I enjoy coding and solving problems. But as I go forward, I find myself in a sea of unknowns. Thus I decided to learn as much as possible to be confident. So, I am learning even the simplest it seems.
Other side of Python eval() function
The built-in function “eval()” of python is useful in many cases. But I am gonna talk about it’s negative one.
Let, you have a function that take arguments from user. If you do eval() on that input, it might create a havoc.
What does eval() do in Python?
I have always loved the fact that The Python interpreter has a number of functions and types built into it. I am going to explore “eval()” in this article.
Category: study
Again Fibonacci Series and Python
I have already wrote a piece about generating Fibonacci series in BASH, here in my blog. But today I am gonna do some practice stuff with Python.
We all I guess know about Fibonacci. It is connected to nature through the golden ratio and the spirals. It is a very interesting series to learn or research deeply. However, I came to know that there is a day declared as “Fibonacci Day” which is every 23rd, November. But why?
Prestressed Concrete Concepts and Classification
Prestressed Concrete: Prestressed concrete is a method for overcoming concrete’s natural weakness in tension. It can be used to produce beams, floors or bridges with a longer span than is practical with ordinary reinforced concrete.
An overview of the Design and Construction activities of the Maghbazar-Mouchak Inter-change (Flyover) Project
Introduction: Bangladesh has got its independence in 1971. 42 years have passed and its population is growing from 3.7642 billion to 7.0439 billion. We have improved our life style by urbanization and agricultural success with industrialization. But people of Bangladesh are city-centric.
Draw an Involute Curve From a Given Circle
Drawing an Involute Curve is a tough one to draw. I will give you tips to draw easily. Involute is very important in Gear industry.
Shell Script to Generate Fibonacci Series Iteratively and Recursively
By definition, the first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two. I will show you two shell script to generate Fibonacci series recursively and iteratively. Also you will get idea about the application of Fibonacci series/numbers.
Types of Bridges
Bridges are a very important structure of a society or civilization. A bridge can connect people and can improve the life of people by giving numerous opportunities including many business sector. However, I am here to describe different types of bridges. I have collected this information from Wikipedia and other sites. You will definitely learn something interesting. I was researching this as my course teacher asked me to submit an assignment paper about Types of Bridges and their little information including pictures.
Road Marking and Street Lighting
Road traffic crashes are one of the world’s largest public health and injury prevention problems. The problem is all the more acute because the victims are overwhelmingly healthy prior to their crashes. According to the World Health Organization (WHO), more than a million people are killed on the world’s roads each year. I am writing this article to make you well acquainted with street safety factors and how street lights and markings will cause a relief from grief of a family.
Civil Engineering Softwares List
- 3D Nature’s World Construction Set
– photorealistic 3D terrain visualization for cartography,
architecture, civil engineering, golf, forestry and land planning. - 3D Structural Modeling Software – 3D+
-An AutoCAD based parametric modeling, analysis, design and drawing system for structural engineers. Includes program description with downloadable videos. Offers online ordering and technical support.
Category: technology
RaspberryPi with DHT22 Sensor for Humidity and Temperature Data with InfluxDB
I have been playing with RaspberryPI for a while. There are several project I tried to do with RaspberryPI. These boards play a significant role in my home lab for different experiments like Docker Private Repository, Media Server, Ad Blocker with pi-hole, Secure Proxy for anonymity, secure network access with VPN, Home Security Camera/Surveillance, Data Collector or scraper etc. But This time, I did buy a “DHT-22” sensor for monitoring room temperature and humidity. Humidity is my main concern and wanted to see how it fluctuates.
So, my main plan was to get a DHT-22 to connect properly
Count Characters in a Google Sheet
I was trying explore some data in Google Sheet and stumble upon a unique problem. There were several columns and rows of data containing strings. I wanted to count specific string.
I wanted to find out how many “aD” in whole set.
Ansible to change user password
One of the most basic things to do in a Linux Server. We can use just passwd <user>
to change the password of a user. But to do that in 100s of server can be a tricky one. Ansible is the savior on that perspective.
Finding an Efficient Solution on Reading and Comparing CSV files
I have always worked with Linux Systems and thus Bash was my go to tool for some specific tasks. But now I am much more aware with Python than Bash as it does give me better grasp on things. I am not saying that for server scripting, Bash can not do some tasks. It can be used in a vast area of things to solve. But I am now comfortable with Python more.
Recently, I did stumble upon of a task that was related to comparing two huge CSV files.
Explore InfluxDB: Part 1
I have been trying to manage time to explore InfluxDB for observability. This article is one of many about InfluxDB and Telegraf. I will cover basic installation here.
SSH Config and Ansible Host Generator and Why I am doing it this way?
I am recently playing the role as an SRE and that is why I have to deal with a lot of servers. Not only cloud once or clusters but also bare metals as well as Virtual Machines. For more systematic environment preparation, I have Gitlab pipeline. But for basic tasks like change the config on demand or check a specific directory or search something or any other unpredictable or repeated tasks, I need Ansible for better grasp from my local machine or Bastion server. So, what do I have to do?
- Create an entry to the .ssh/config file
- Create an entry ansible host file as inventory
Repeated tasks? For me, yes. I needed to manage these. So, created a python script
Getting habit to use TMUX
Recently been practicing TMUX for my day to day tasks. To be honest, I am late. I should have get used to it earlier. It is much more robust and well sorted than the other terminal multiplexers such as screen. How am I adapting?
My Understanding about RUN, CMD and ENTRYPOINT in Dockerfile
Containerization gives us many benefits from packaging to distribution and others. Thus, Docker is widely used as a containerization tool which is designed for running specific tasks and processes, not for hosting operating systems or like other virtualization tools like VMWare, VirtualBox etc. You create a container to serve a single unit task. Once it completes the given task, it stops. The container life-cycle depends on the ongoing process inside of it. Once the process stops,
Effective use of Redis with Python and Connection Pool
I have been working with redis and python for sometime. It is fun to play with python and redis. There are so many things can be solved by redis.
- Session persistency
- Caching
- Volatile Datastore
- Job or Message Queue
- Search
And many more. But recently I was thinking about using it as main database. I am not yet sure what kind of problem I might face or what things to optimize when it is about scalability or reliability. I will for sure share my experience.
Here I want to talk about –
How to create a ramdisk?
Whether you have SSD with NVME Protocol or good old HDD, It is not going to make you feel superior than your Random Access Memory or RAM.
By creating a ramdisk, you can use your unused memory as a super fast disk space and work with it. I do need to use nginx and for caching, I always go to tmpfs which is filesystem type that typically uses ram. How do I create one?
How to run Python Flask Application?
I mostly use Python Flask when I need to develop a Web App or API.
Why? Because it is:
- lightweight
- Very Flexible
- Micro-Service Friendly
- Fast Development
These are one of the main reasons I choose Flask. But mostly I love to code with Flask. There are so many ways to run flask applications. I will write some of them here with code examples.
Development Environment with Docker Compose
There are a lot of tools I need to work with. Installing some tools in my workstation and bloating the system is not an option with limited memory capacity, specially in MacBook Air M1 with 8GB of ram. So, I am using docker when using those tools. The day to day life depends on these DB tools –
Apache Kafka in Docker Container and Implement it’s Functionalities with Python
According to the website, Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.
In this post, I am going to share a basic way to start using Apache Kafka with python.
Raspberry Pi and Docker Registry
Recently I have been using a Raspberry Pi 3B+ bought from a classified advertisement site called Bikroy.com. A student wanted to sell this, as his final college project was done. It was cheaper with an acrylic casing and a fan. However, I wanted to use this Pi for several pet projects. Initially I did install Pi-Hole for network wide adblocker and along with samba with a spare portable hard disk. It was working OK. No extra pressure in this 1GB ram Pi. I thought Why not give it a little bit more pressure?
Thus, I planned to install docker registry in it for my “local private docker hub” type of need. Let me share what I had to do.
Multi line Log Parser in Python
So, I have a log file that is not single line log. It is kind of java stack trace. What I needed to do is read those log files and create some actions depending on them. I could use already built tools. But I thought why not just do this as simply as printing strings.
This is an example of the log format I wanted to play with. It seems too simple to pile up the Filebeats or elastic stack.
Some quick and useful git commands
Using git is somehow easier when you just stick into normal workflow or working all alone in a project. Also it is easier as there are many GUI available. But there are some possibility on falling into critical situations where GUI may not be the right tool to stick with. I will share some situations here and the right commands which will save you from doing useless commits.
Some coding practice with Json, Itertools and Lambda in Python
I enjoy coding and solving problems. But as I go forward, I find myself in a sea of unknowns. Thus I decided to learn as much as possible to be confident. So, I am learning even the simplest it seems.
Date Query in MongoDB
Some git tips to survive in versioning world – Part 1
I am gonna talk about Git. We all somehow use git and thus it is important for us to better use .gitignore.
nginx to white-list ip or ask for password
Let, you want to protect a page or any site in nginx by certain IP addresses access only. How would you do it in nginx? I will discuss some cases here about the situation.
লিনাক্স এর কনসোল বা টার্মিনাল এ ফাইল কিভাবে খুজে পাবো?
লিনাক্স এর টার্মিনাল থেকে ফাইল খুজাটা প্রায়ই জরুরী হয়ে উঠে। বিশেষ করে যারা হেডলেস লিনাক্স সার্ভার ব্যবহার করেন তাদের তো এটা প্রতিদিন এর টাস্ক হয়ে উঠে। আমি সহজ এবং প্রতিদিন এর উপকারি কিছু কমান্ড
How to request limit with nginx ?
You might somehow face a huge traffic on your site which is not legitimate at all and kind of DOS. If you can identify the traffic which eventually lessen the site performance by the Basic HTTP Floods DOS, you can save yourself from being affected by mild DOS attack. I will show you how can lessen the chance of being easily affected by those attacks.
How to Get Ubuntu Back after installing Windows ?
Whatever you say against Ubuntu, you can’t just make it less popular. It is the most popular Linux distribution. Many companies rely on this distribution. I personally use it on my laptop and in my servers. Normally people use windows, and when it comes to Linux it becomes a whole other matter. If someone use Ubuntu but later he wanted to install install latest windows or old alongside Ubuntu, he may face problem as loosing Ubuntu. That is what i am gong to explain “Ubuntu Recover Procedure”.
Install Nginx and Configure Load Balancing for Heavy Traffic
Load Balancing is the mechanism which will balance the load upon server towards several servers which ultimately can handle heavy traffic. I will show you the basic configurations with normal HTML based webpages only but it will help you to build for PHP based websites.
Install Shadowsocks Tunnel Proxy and Bypass Firewall
I am going to explain how you can bypass any firewall and become anonymous with the steps to install shadowsocks and then i will also show you how you can connect to one server/location but will show your public ip another. Shadowsocks is very fast tunnel proxy which can bypass the most dangerous firewall like “Great Firewall of China“.
How To Solve Any Linux Distributions Brightness Problem ?
I have Acer Aspire 5733 and i couldn’t change brightness of my laptop. This is annoying and painful. I have tried many things to do this but couldn’t solve it as there is no linux graphics driver. At last i have found a solution and i have written an script which will be helpful for you.
Encrypt Any Files in Linux
I have been trying to encrypt files and folders lately. It is fun but useful. You can encrypt any file which can take several years to decrypt for a hacker. That “Several” is not less. According to recent super computer “K Computer” which is the fastest can calculate 8,200,000,000,000,000 (8.2 quadrillion) calculations per second. Lets see how many seconds would take to decrypt an encrypted file by the way i am showing.
Linux Server Monitoring with Munin
This article is about showing how to monitor any server or remote server by a tool named munin. Munin the monitoring tool surveys all your computers and remembers what it saw. It presents all the information in graphs through a web interface. Its emphasis is on plug and play capabilities. I will show you how to set it up with a remote server too.
Windows Batch Script to Put Ping Output in a Text File
In DOS, OS/2, and also Microsoft Windows, batch file is the name given to a type of script file, a text file containing a series of commands to be executed by the command interpreter. A batch file may contain any command the interpreter accepts interactively at the command prompt. A batch file may also have constructs (IF, GOTO, Labels, CALL, etc.) that enable conditional branching and looping within the batch file. Recently i was playing with it and got a cool script while playing with ping command which will output ping results in a text file in Desktop.
Shell Script to Generate Fibonacci Series Iteratively and Recursively
By definition, the first two Fibonacci numbers are 0 and 1, and each subsequent number is the sum of the previous two. I will show you two shell script to generate Fibonacci series recursively and iteratively. Also you will get idea about the application of Fibonacci series/numbers.
Transfer Files by Rsync
rsync is a free software computer program for Unix and Linux like systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. This tool is very appropriate to keep backup or setup mirror service. In this article you will get some clear idea.
Change Websites Default Folder to Another Folder in Apache
Apache is the most used server. It is used to serve more than half of all active websites. It will be very helpful to understand Apache. Understanding the configuration of virtual host of Apache is important as sometime it will be a tough job to do. I will show you how to set default folder of a website other than root directory of Apache.
Resetting Administrator Password in Windows 2008
I have normally worked with linux servers but sometimes i used Windows too. I have faced password forgetting moments and then after searching and trying i have got the solution to reset Windows Server 2008 R2.
How to Add and Switch Keyboard Layout in LXDE ?
Lubuntu is good. Actually LXDE is good. I love its simplicity. One tricky thing is though how to add a keyboard layout on Lubuntu/LXDE (if you didn’t specify an additional language at installation). To configure keyboard layouts a big flaw of LXDE. So here is what I did to add a new keyboard layout.
Clear Bash History Completely?
If you have linux server or linux operating system(distribution) in your pc then you are using bash. Bash is a command processor and Unix Shell, typically run in a text window, allowing the user to type commands which cause actions. Bash can also read commands from a file, called a script. Bash keep records of executing commands and all. Sometimes if you want to clean all your records you can follow this.
Get Rid of WordPress Website Footer Smiley Face
Me and also many people use WordPress to run website or blog. What is the most fascinating thing of WordPress ? Obviously its resources. It has so many plugins and themes that can make a simple WordPress website act like a super-platform. I am here to show you how to remove little smiley face on the bottom of Wordpres sites.
Dual User Permission at Same Folder in Linux
It is a pain to handle folder permission for new linux users or VPS users. Even some Pro-Linux users also face this problem. However, I will explain here how to give two users to read-write access of a same folder.
Squid proxy Server with multiple IP
My dear readers. I am here again for your help with squid proxy server. I will show you today how to use squid server to work with several IP in a vps/system. This is very useful if you do Craigslist work or something like that. Proxy is interesting. Squid proxy is like a Swiss Army Knife which has numerous feature to make you comfortable with proxy.
Here are two ways of configuring squid’s proxy to use the other IPs assigned to your server (besides the default one).
Benchmark of Ghost Blog Against WordPress
This week i was trying to be familiar with node and ghost Blog. Launched a blog in my VPS. I will say Over whelming performance. As you can see i have posted how to install it with Apache server. I will now show you some benchmark report by Apache Benchmark tool. Lets see.
Easy installation of Ghost Blog
“Ghost Blog” is a blogging platform. Just blog. If you are into blogging and sharing your thoughts and nothing else, then you will definitely looking for this one. Very lightweight and super stylish with simplicity look. It is a platform where you will be motivated to write. But it is tricky to install. I will make it simple here.
Some Eye Catching Terms of Service and Privacy Policy
We do use internet everyday for mailing,sharing thoughts,working,uploading files etc in several sites like Facebook,Twitter,Tumblr,Gmail etc. They are free. But we have to agree with their Terms of service and Privacy Policies. No one reads those i guess 🙂 . But i have found some interesting lines there. I am collecting those lines for fun.
Take Screenshot By Command or Terminal in Linux Based Machine
Taking screenshot is now a days very important. This is used for many purpose like writing blog post, sharing problem facing in the system and much more things. There are many tools to take shot of your desktop but here i will show you how to take screenshot by terminal or command line interface in linux based machine.
Single Command to Download and Install All Bangla Fonts in Your Linux
I have created a script which will download and install 70 Bangla fonts(with variations of them) without searching. Just run this script in your Linux based PC/Laptops terminal and get all Bangla fonts instantly without hassle.
Monitoring Tools You Should Install in Your VPS
Monitoring server is very important. You can prevent many unwanted things by monitoring regularly. I am assuming that you own a VPS as you are reading this post. You are new happy owner of your personal VPS. So why don’t you take a look about some monitoring tools?
Solve IPV6 Neighbor Table Overflow
There are sometimes you will get some errors in /var/log/syslog.log saying IPV6 Neighbor Table Overflow and which are really annoying. For fixing this you should follow this.
Shell Script to Test Your VPS or Servers Efficiency
Server lover like me and you will always try our best to get the full performance from our VPS/Server. Here is a script to show you some interesting thing about your server including download speed from popular Data Center, cpu model, frequency, ram, swap, Uptime I/O Speed etc.
SolusVM API PHP Script
The client API is a http based API that allows you and your clients to interact directly with a virtual server with security and ease. The client API can be disabled at any time and access is only granted with a key and hash on a per vps basis.Currently available options are:
Best VPS OS
Hello VPS user. Obviously you are or intend to a VPS user as you are reading this. I will share my own experience with you about choosing OS for your VPS. There are plenty of Operating system that can give you pleasure handling the VPS.
ISPConfig: Where are the templates for the config files and default pages?
IspConfig is a very powerful free server control panel with many features. It has a interesting feature as it generate error pages and default index of each domain. Which you can easily edit and get all future generated pages by your choice.
Crontab Rsync without Password
Perform rsync asks for password on the remote server before starting the transfer. Sometimes we need to run rsync by crontab where it is not possible to give password. Here is a solution to use crontab to execute rsync without any password.
This is helpful when you are scheduling a cron job for automatic backup using rsync.
Bangladesh Submarine Cable Network
Bangladesh decided to connect to world wide web in late 1995 by VSAT or Very Small Aperture Terminal. On June 4, 1996 the VSAT base data circuit was commissioned for the first time in the country. Upon VSAT commissioning, internet connectivity was established & its services were made available to the public. After internet was launched, the June 1996 National polls results were made available to the netizens of the world using World Wide Web. This was the first ever usage event of its kind in Bangladesh. The effort was appreciated in many corners especially among the Bangladeshis living abroad.
After the introduction of Internet,
Server Read Only By “fstab” and Rescue It
As you are reading this post i can assume you are the victim of server system read-only. It happens when you messed up your fstab. But you can’t re-edit the /etc/fstab file as your system is in read-only state now. So what to do ? You need a
Solve Google,Facebook etc site Loading Problem in Squid Proxy
If you see that your newly created Squid proxy server can’t access Google, Facebook and other sites then you are right place to get the solution. Actually this problem arises when your ISP have no IPV6 for you. And Google,Facebook type giant sites has IPV6. So Squid just route you to access by IPV6 whether you have or not. As you have no IPV6 , you are facing problem.
How to Redirect ‘http’ to ‘https’ in NGINX ?
Here we will learn how to redirect all http request to https in nginx server. Assuming you have success fully installed ssl and can access https manually.
Squirrelmail Error With Ispconfig
If you have installed ispconfig by following http://www.howtoforge.com/ then you have also installed squirrel mail. You may face attachment problem, Saying data directory is not writable. Here is the solution.
How To Setup a PPTP VPN in Ubuntu Server ?
VPN secures your computer’s internet connection to guarantee that all of the data you’re sending and receiving is encrypted and secured from prying eyes. You can get cheap vpn from many vpn providers. But i will show you how to get a private VPN maintained by yourself by less then 4$.
How to output text file list of contents of a directory?
If you have a folder with huge contents and you want to get a list from them what will you do ? Write down one by one ? 😛
In Linux based distributions you can get a list by a simple command.
Lighttpd Server with SSL
Lighttpd is one of the speediest webserver which will make you feel like you got a highspeed internet connection with low price. However , i will explain you how to create ssl certificate and use it in lighttpd vhost for accessing particular websites with particular certificate.
Adding swap with a File in Your VPS
If you don’t have any additional disks, you can create a file somewhere on your filesystem, and use that file for swap space. Normally some vps providers don’t give swap. For those who has that type of vps will need this tutorial to get a swap to faster website or vps.
Multiple WordPress in Lighttpd & Php5 in Ubuntu VPS or Server
Lighttpd = Security, speed, compliance, and flexibility.
It is pronounced as “Lighty”. Lighttpd is rapidly redefining efficiency of a webserver . It is Designed and optimized for high performance environments. With a small memory footprint compared to other webservers. 128mb ram can run it like a mig29 with several wordpress(I will try two today). It has advanced feature set like FastCGI, SCGI, Auth, Output-Compression,URL Rewriting and many more. It is perfect for every server and also for VPSs with low memory. You will be amazed by its speed with low ram and swap. It is totally free.
Change The Maximum Upload File Size in Php
This is annoying to get file exceeds the max size allowed when you try for uploading files. How can you be able to upload bigger files without any caution or error ? We have to find php.ini file from your system.
Bundle CSS to Load Page Faster
A test with a simple HTML page over a DSL connection shows that one big stylesheet or css of 50 KB can speed up load time by factor 2 compared to five stylesheets that are 10 KB each in size:
- 5 Stylesheets (10KB each): 1100ms
- 1 Stylesheet (50KB): 500ms
So , How to make them one without breaking or editing them ? I am going to show you how to do this .
Browser Caching with htaccess
Browser caching is a good idea to make/feel your site speedy . Your sites visitors will find it much speedier after first visit . If you test your page in pingdom and google speed analysis tool you will see a recommendation there to enable caching . That is why i am sharing this .
Linux File/Folder Search from Terminal
Sometimes we need to find file or folder . It is easy in graphical file manager . But in terminal you have to be tricky .
Caching with Varnish
Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. In contrast to other web accelerators, such as Squid, which began life as a client-side cache, or Apache and nginx, which are primarily origin servers, Varnish was designed as an HTTP accelerator. Varnish is focused exclusively on HTTP, unlike other proxy servers that often support FTP, SMTP and other network protocols.
Here , I will explain how to get varnish in front of apache2 or accelerate apache2 with varnish .
Htaccess to block ip
Websites are naturally geeks guinea pig . You will get much more spam if you get a website to comment or something . They just don’t stop . Try and try . You will find it very much annoying . You can pause them . Not stop but it will give you peace i think . Now open any text editor and
Category: বাংলায়-লিনাক্স
লিনাক্স এর কনসোল বা টার্মিনাল এ ফাইল কিভাবে খুজে পাবো?
লিনাক্স এর টার্মিনাল থেকে ফাইল খুজাটা প্রায়ই জরুরী হয়ে উঠে। বিশেষ করে যারা হেডলেস লিনাক্স সার্ভার ব্যবহার করেন তাদের তো এটা প্রতিদিন এর টাস্ক হয়ে উঠে। আমি সহজ এবং প্রতিদিন এর উপকারি কিছু কমান্ড