Renaborges.com

Showing category "resources" (Show all posts)

Discovering Docker & Kubernetes - Work in Progress (WIP)

Posted by Reny Borges on Friday, July 21, 2023, In : Containers 

·       About Docker

·       Namespaces

·       Control Groups

·       Container Image

·       Container Runtimes

·       Container Orchestration

·       Kubernetes Cluster

·       Kubernetes Main Resources (Pods, Services, Replication Controllers, Persistent Volume, Persistent Volume Claims)

·       Docker Commands

·       Docker Client Verbs

·       Managing Containers

Docker uses a client-server architecture, described below:    

                                 Client                      ...


Continue reading ...
 

Ping from a script

Posted by Renata Shaw on Monday, July 3, 2023, In : Linux 

Method: We can write our own script using the ping command to query list of IP addresses and check whether they are alive or not as follows:

 

#!/bin/bash

#Filename: ping.sh

# Change base address 192.168.0 according to your network.

 

for ip in 192.168.0.{1..255} ;

do
       #Amount of packets transmitted "-c 2"
       #/dev/null is a virtual file. This will discard anything written to it.

ping $ip -c 2 &> /dev/null ;

if [ $? -eq 0 ];

then

echo $ip is alive

fi

done

 

...
Continue reading ...
 

Git main commands

Posted by Renata Shaw on Monday, July 3, 2023,

Git status

Git add .      (this adds everything or choose specific file to be added)

Git commit -m "my message"

Git push

Enter passphrase for key '/c/Users/rxxxxxxx/.ssh/id_rsa':



Continue reading ...
 

For Machines Without Telnet Installed

Posted by Renata Shaw on Monday, July 3, 2023, In : Linux 

cat < /dev/tcp/IP/PORT

cat < /dev/tcp/192.90.70.200/3306

OR

curl -v telnet://ip:port'

curl -v telnet://192.90.70.200:3306

curl -v telnet://192.90.70.2001:3306



Continue reading ...
 

Helper Script

Posted by Renata Shaw on Monday, July 3, 2023, In : Linux 

#!/bin/bash

 

echo "----------------------------"

echo "Sourcing Functions:"

echo "----------------------------"

echo " - nodes_up: Checks what hosts are up or down using nmap"

echo " - slbs_status: Check if NGINX Process and Status in AZ1 & AZ2"

echo " - slbs: Check if NGINX nodes are up / down using nmap in AZ1 & AZ2"

echo " - service_db_netwk: Checks connectivity between the Service in AZ1 and MySQL in AZ2 and vice-versa"

echo " - tail_service_log: Tail 100 lines of the service.lo...


Continue reading ...
 

IF statements arguments / flags / options / operation

Posted by Renata Shaw on Monday, July 3, 2023, In : Linux 

Test operators

-e file exists

-f file exists and is not a directory

-s file is not empty

-d directory exists

-x file is executable (for the user running the test)

-r file is readable (for the user running the test)

-w file has write permission (for user running the test)

-h / -L file is a symbolic link

! "not"

 

Compound Comparison

-a logical 'and' similar to &&

-o logical 'or' similar to ||

 

Integer Comparison

-eq is equal to

-ne is not equal to

-gt or > is greater t...


Continue reading ...
 

Learning awk

Posted by Renata Shaw on Monday, July 3, 2023, In : Linux 

Print column 1 & 2

ps | awk '{print $1,$2}'


To separate the columns titles you can use "\t" between the numbers:

ps | awk '{print $1"\t"$2}'


By default the field separator for awk is a space, if it's not the case tell awk which one it is by using F for field separator. In the example of /etc/passwd file the separator is semi-colon

awk -F ":" '{print $1}' /etc/passwd

You can also grep:

awk -F ":" '{print $1}' /etc/passwd | grep myservice

 

To search for every last field in the line, but r...


Continue reading ...
 

Learning sed

Posted by Renata Shaw on Monday, July 3, 2023, In : Linux 

sed > Stream editor allow filter and transform texts, find pattern and replace with whatever is that you want to replace with, it's like search and replace.

You can use other separators instead of slashes (/). Example pipe | or hash #

1 - sed substitution -- s for substitution. replaces only the first occurrence in each line of the file and save to a new file

sed 's/word/newword/' < oldfile > newfile

 

2 - replaces every occurrence of 'word'. g for global

sed 's/word/newword/g' < oldfi...


Continue reading ...
 

A Quick Explanation About the Output from the Free Command in Linux

Posted by Rena Borges / Renata Shaw on Saturday, August 22, 2020, In : Linux 
First I would like to quickly explain about Buffer and Cache, so things can make sense up ahead :)
Difference between Buffer and Cache:

Buffer is a temporary location for storing data for a particular application and this data is not used by any other application.

Cache is a memory location to store frequently used data for faster access.

Both are temporary store for your data processing. However memory specified as buffer/cache can be made available when an application needs it, so we count it ...

Continue reading ...
 

Linux Directory Structure Explained

Posted by Reny Borges / Renata Shaw on Friday, April 10, 2020, In : Linux 
 Apart from the home folder, you need administrator privileges to access the other folders. Although you can look.
  
= This is the root directory which should contain only the directories needed at the top level of the file structure.  
  
root folder - home directory for the super user = That's where the root home users directory is if you have a root user account activated on your system. This is different from the / directory, which is the system's root directory.
  
/bin - essential binary c...

Continue reading ...
 

Explaining and Managing Service Management Facility (SMF) - Oracle Solaris Administration

Posted by Rena Borges / Renata Shaw on Wednesday, April 1, 2015, In : Solaris 
Service Management  Facility (SMF) is a way to organize and manage the services in Solaris. It's a unified mechanism to manage the services Start / Stop, Restart services with dependencies. When the OS boot up the SMF run a Start-up Services Configuration for all the services with dependencies; Without Run Control (RC) scripts, it's easy to manage. If you come across a problem with one of the services you can take actions with the commands from SMF to manage the service. These actions can be...

Continue reading ...
 

What is Boot Environment and How to Manage It

Posted by Rena Borges on Tuesday, March 31, 2015, In : Solaris 
Boot Environment (BE) is a bootable instance of the image of the Oracle Solaris operating system and of any other software packages  installed in this image. Think in your particular OS, let's say Windows 7, with all your programs and updates installed on it,  creating a BE of this OS is to have all your  programs and updates saved in a partition as a file, where you can boot in case the main one in use gets corrupted for instance. However, Boot Environment belongs particularly for Solaris be...

Continue reading ...
 

Getting Information About Packages in Solaris - Image Packaging system (IPS)

Posted by Rena Borges on Tuesday, March 31, 2015, In : Solaris 
The pkg list command will tell you if a package is installed, frozen, obsolete or renamed under the column IFO.

I "i" = Package is installed
F "f" = If a package is frozen, you can only install or update to packages that match the frozen version.
O "r" = It indicates that package has been renamed.
O "o" = It indicates that package is obsolete. You cannot install a package that is marked obsolete.

reny@solaris11_2:~$ pkg list gedit
NAME (PUBLISHER)                                  VERSION          ...

Continue reading ...
 

Identifying Processors in Solaris - psrinfo / psradm

Posted by Rena Borges on Friday, March 27, 2015, In : Solaris 
Usually a solaris box has several processors on-board. Here I show you some simple commands like how to enable / disable / spare the processors using  psradm.
When comes to troubleshoot hardware issues it comes handy.

-bash-4.1$ psrinfo
0       on-line   since 02/05/2015 13:36:38
1       on-line   since 02/05/2015 13:36:41
2       on-line   since 02/05/2015 13:36:41
3       on-line   since 02/05/2015 13:36:41
4       on-line   since 02/05/2015 13:36:41
5       on-line   since 02/05/2015 13:36:41
6   ...

Continue reading ...
 

Changing the host-name in Solaris 11

Posted by Rena Borges on Friday, March 27, 2015, In : Solaris 

If would like to change the host-name in Solaris 11, it's quite simple and much simpler nowadays. You can basically do it in only 2 steps.
 
1 - First of all you should check the current properties of the system using svccfg:
 
reny@solaris11_2:~$
svccfg -s system/identity:node listprop config
config                       application        
config/enable_mapping       boolean     true
config/ignore_dhcp_hostname boolean     false
config/nodename             astring     solaris11_2
config/loopbac...

Continue reading ...
 

What can you do with a 3D Printer?

Posted by Rena Borges on Friday, February 21, 2014, In : New Technologies 


You have probably heard about 3D printers, but probably does not have one at home. These machines are becoming more popular and leading to profound changes in the market to offer a choice between mass production and customization of industry and manufacturing. 3D printing is the boundary between the physical and virtual, the digital and the real world.

However, it is misleading to think that 3D printing is something new, the technology has existed for 30 years. What happened in recent years ha...

Continue reading ...
 

SanDisk launches pendrive for Android Smartphones and tablets

Posted by Rena Borges on Thursday, February 13, 2014, In : smartphone 




Having more storage space on tablets and Smartphones or to be able to use files that are on  USB sticks are some of the difficulties for users of mobile devices. To be able to download these files with ease, the manufacturer SanDisk introduced on Tuesday ( 11 ) the stick "Ultra Dual USB Drive" with USB input - to connect to a PC, and a micro - USB, which is attached to mobile phones and tablets.

According to the company, the flash drive allows you to store and backup data, and free up mor...

Continue reading ...
 

How to install a fully portable desktop on a USB for on-the-go access

Posted by Rena Borges on Sunday, August 18, 2013, In : Linux 

Porteus is a portable Linux operating system which is able to be installed on a portable USB device.
"Porteus manages to offer a full-blown distribution by installing in a compressed state (to keep its footprint small). During the boot process, it uncompresses and boots very quickly. Porteus also offers a package manager so you can easily install more applications. The package manager has a dedicated Porteus repository to select from, but you can install applications from any repository...

Continue reading ...
 

Fix MS Bluetooth Notebook Mouse 5000 v1.0 connection

Posted by Rena Borges on Wednesday, January 9, 2013, In : Windows 7 


I am running on Windows 7 64bit on a Samsung S3511. My MS Bluetooth Notebook Mouse 5000 v1.0 always stop working after hours of use. I simply could not get my laptop to pair with the device this time. When I try to add it again, everything seems to work, but then no response from the pointer, and after few seconds the device disappear from the list of bluetooth devices. 

Here's what finally solved it for me:

1. Disable "Power Management".  Click on Bluetooth icon, select Open Settings.  G...

Continue reading ...
 

Ubuntu on Smartphones

Posted by Rena Borges on Tuesday, January 8, 2013, In : smartphone 

After the suspense generated with the counter available on the official website of Ubuntu until yesterday, finally announced the long-awaited news: the Ubuntu operating system for mobile phones.
Canonical sought to provide a better experience leveraging the edges of the screen. On the right edge you can switch between open applications with a simple drag. On the left you see the application launcher, which remains hidden until it is invoked by the user.



At the top a bar similar to that in o...

Continue reading ...
 

Share mouse and keyboard with other PCs

Posted by Rena Borges on Monday, September 24, 2012, In : Open-Source Apps 


If you have got back problems switching back and forth between keyboards and mice on your desk you need Synergy.

Synergy is an easy to set up open source application that allows you to share the keyboard and mouse of your main PC between multiple networked computers in your desk that are different platform like Mac, Windows and Linux.
 

The transition between the computers using the shared mouse and keyboard occur without any problems or complications, just move your mouse off the edge of on...

Continue reading ...
 

What is an Ultrabook?

Posted by Rena Borges on Tuesday, September 11, 2012, In : Ultrabooks 



Ultrabook! You have probably heard that name somewhere. So what is the difference between a conventional laptop and an ultrabook?

The ultrabook is a proposal developed by Intel that aims to offer laptops thinner and lighter than traditional laptops, but with a processing capacity greater than the current netbooks. The idea is that ultrabook can offer portability that tablets have, but with a greater range of possibilities.

According to Intel, for a notebook to carry the ultrabook name it must...

Continue reading ...
 

What's the difference between a Hub, a Switch and a Router?

Posted by Rena Borges on Sunday, September 11, 2011, In : Computer Network 
Hubs, switches, and routers are all devices that let you connect one or more computers to other computers, networked devices, or to other networks. Each has two or more connectors called ports into which you plug in the cables to make the connection. 


A hub is typically the least expensive, least intelligent, and least complicated of the three. Its job is very simple: anything that comes in one port is sent out to the others. That's it. Every computer connected to the hub "sees" everything t...

Continue reading ...
 

Virtualization

Posted by Rena Borges on Tuesday, August 23, 2011, In : Virtualization 
Hey everyone, I have found a great website explaining everything about virtualization with videos, tutorials, forums and news. Check it out http://www.virtualization.net/
If you have any question, please let me know.

Continue reading ...
 

Explaining Virtualization

Posted by Rena Borges on Thursday, August 11, 2011, In : Virtualization 
Virtualization isn't a new concept. Computer scientists have been creating virtual machines on supercomputers for decades. In the last few years virtualization has become more practical for small, medium and large organisations. In the world of information technology (IT), server virtualization is a hot topic. It's still a young technology and several companies offer different approaches. Virtualization is a method of running multiple independent virtual operating systems on a single physica...

Continue reading ...
 

How to Show Desktop in Windows 7

Posted by Rena Borges on Wednesday, August 3, 2011, In : Windows 7 
If you are wondering where the "Show desktop" button is in the Windows 7 finish reading this. Although the Show Desktop icon which located inside the Quick Launch Bar have been made obsolete and removed from Windows 7, the Show Desktop function is still been retained in different location and can still be used, and does exactly what Show Desktop does. In order to quickly show desktop in Windows 7, just click on the Show Desktop bar at the  right end of the Windows Taskbar and notification are...

Continue reading ...
 

Explaining Binary, Bit, Byte, Kilobyte, Megabyte, Gigabyte and Terabyte

Posted by Rena Borges on Friday, July 22, 2011, In : Binary 


Binary is a number system used by digital devices like computers, cd players, etc.

In Binary you can write just zeroes and ones; In other words, Binary has only 2 different numerals (0 and 1) to denote a value, unlike Decimal which has 10 numerals (0,1,2,3,4,5,6,7,8 and 9).

Here is an example of a binary number: 10011100

If you separate the binary in columns like this, you will have your zeros and ones for our known normal numbers called decimal.


                        
If we would continue wi...

Continue reading ...
 

Unix Tutorial (3) Files

Posted by Rena Borges on Tuesday, July 5, 2011, In : Unix 
COPYING FILES

cp (copy)

cp file1 file2 is the command which makes a copy of file1 in the current working directory and calls it file2

MOVING FILES

mv (move)

mv file1 file2 moves (or renames) file1 to file2

To move a file from one place to another, use the mv command. This has the effect of moving rather than copying the file, so you end up with only one file rather than two. It can also be used to rename a file, by moving the file to the same directory, but giving it a different name.

 
 

 
...
Continue reading ...
 

Unix Tutorial (2) - Directories

Posted by Rena Borges on Sunday, June 19, 2011, In : Unix 

Unix commands come in all shapes and sizes, from simple and common to rare and hellish. The command itself is a rather brief set of letters (usually, but not always), possibly followed by options and / or arguments. To open an UNIX Terminal window, click on the "Terminal" icon from Applications/Accessories menus.





When you first login, your current working directory is your home directory. Your home directory has the same name as your user-name, for example, reny, and it is where your personal...

Continue reading ...
 

Unix Tutorial for Beginners (1)

Posted by Rena Borges on Friday, June 17, 2011, In : Unix 
April 27, 2011



What is Unix?

Unix is not that easy to define. At the lowest level it is simply the kernel (suite of programs which make the computer work) of an operating system. It was first developed in the 1960s, and has been under development ever since. It is a stable, multi-user, multi-tasking system for servers, desktops and laptops.
UNIX systems also have a graphical user interface (GUI) similar to Microsoft Windows which provides an easy to use environment. However, knowledge of UNI...

Continue reading ...
 

Utility to destroy your iPhone's tracking data

Posted by Rena Borges on Friday, June 17, 2011, In : Apple 
Posted by Rena Borges on Wednesday, April 27, 2011 Under: Apple



You have learnt that Apple have been tracking iPhone and iPad users, creating a map of all the places you have been since you bought the device. If you are shocked with that news, now you can learn how to stop that!

Untrackerd is a utility that will not put any icon in your home screen, it runs in the background of the device cleaning the stored location data. There is a problem, it requires a jailbroken device. We do not recomm...

Continue reading ...
 

Apple is watching you!

Posted by Rena Borges on Friday, June 17, 2011, In : Apple 
Posted by Rena Borges on Wednesday, April 20, 2011 Under: Apple






I have just read that iPhone and iPad owners are being watched by Apple! There is an application that tracks your automatic back up every time you connect to iTunes. This application makes a record of the places you have been according to the transmissions from the cellular tower triangulation. Regardless of whether you have GPS turned on, and whether you have allowed other applications to have access to your location Appl...

Continue reading ...
 

Samsung Plans to Release a 2GHz Dual-Core Smartphone by 2012

Posted by Rena Borges on Friday, June 17, 2011, In : smartphone 
Posted by Rena Borges on Monday, April 18, 2011 Under: Smartphones



It was two years ago when the first 1 GHz smartphone came onto the market, now Samsung promises us the new milestone of a 2 GHz mobile phone. Cool? Yeah! But how about the battery life of these new gadgets? Has anyone thought about taking the battery technology to the next level? I think the company that will have the breakthrough in this new battery technology will be dominant, because before anything, what we need is not on...

Continue reading ...
 
 
blog comments powered by Disqus
blog comments powered by Disqus