2017, January, 13

Move or migrate user accounts from old Linux server to a new Linux server

A. You can migrate users from old Linux server to new Linux sever with standard commands such as tar, awk, scp and others. This is also useful if you are using old Linux distribution such as Redhat 9 or Debian 2.x.

Following files/dirs are required for traditional Linux user management:
* /etc/passwd – contains various pieces of information for each user account

* /etc/shadow – contains the encrypted password information for user’s accounts and optional the password aging information.

* /etc/group – defines the groups to which users belong

* /etc/gshadow – group shadow file (contains the encrypted password for group)

* /var/spool/mail – Generally user emails are stored here.

* /home – All Users data is stored here.

Read More
2016, December, 20

vlan(802.1q) in linux (centos)

 

1. Check that the module is loaded by running the command: 
#lsmod | grep 8021q
2. If the module is not loaded, proceed to run the following command to load it: 
#modprobe 8021q 
3. Proceed to configure your physical interface in /etc/sysconfig/network-scripts/ifcfg-eth1. For example,
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
Read More
2016, December, 20

Setup bridge device on CentOS

#yum install bridge-utils

#mii-tools

#vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
BRIDGE=virbr0
HWADDR=00:12:3F:4E:9E:BF
Read More
2016, November, 23

Night Security Light with Hacked PIR sensor

Security lighting is widely used as a preventive measure against intrusions on a physical piece of property. Since adequate lighting around a physical structure reduces the risk of an intrusion, security lighting can be used in residential settings to increase the feeling of safety. Presented here is a trusty security light activated by a passive infrared sensor, turning on only when a person (or other mammal) approaches. This battery operated security light provides rich illumination without harsh brightness great for kids rooms, the elderly, and for comforting your pets. An important feature of this security light is that it wakes up only at nighttime!

 

Described security light circuit design is centered around an inexpensive passive infrared (PIR) motion detector module, type HC-SR501. The PIR motion detector module is used here with an added ambient light detection (day/night) feature, supported by a generic photodiode. Following part is prepared to help you get started with your new HC-SR501 passive infrared motion detector module, so let’s start

Read More
2016, November, 23

How to copy tv remote features to IPTV/setup box remote

 

This example is taken from  NETTV remote

 

Bring both the remotes in front of each other (facing each other), with a distance of about 3cm-6cm. Now follow these steps:

 

1. Press and hold SET  buttons together for 5 seconds in NETTV. The LED will blink press till it light contiuses.

 

 2. Press & release the button of NETTV remove which you want to program, and then program that button on your tv remote which you want to program in your NETTV remote.

 

 3.  The LED will blink twice to indicate success.

Repeat same method for all buttons.

 

 

Page 2 of 3