hello

Welcome to Shellcoder.in.

Welcome to Shellcoder.in. This site provides you with free Tutotial of many Technologies from our vast database which is updated on a regular basis. With our intensive indexing, you can find just the tutorial you were looking for. Moreover, this is absolutely free. You do not even need to sign up to view these tutorials. So, begin your searching and learning now.

How to communicate with base machine using kvm


Creating a bridge device

#brctl addbr "br0" <---------- bridge name 


after this
 

 Adding devices to a bridge

#brctl addif br0 eth0 <----------------hare eth0 is your physical interface
 

use this commands for show your bridge

#brctl show

 
enable stp on bridge


#brctl stp br0 on

 
now up the bridge


#ifup br0

 
than set ip address to bridge like this


#ifconfig br0 192.168.1.253 netmask 255.255.255.0

now select br0 during configure your kvm


configure ip address on kvm machine with range of same network


**************** i hope you Enjoy it ***************


How to set Password Policy to let users Comply rules.

1 number of days for password Expiration.
2 Minimum number of days available of password.
3 number of days for warnings before expiration.
4 limit using a password that was used in past
5 Set minimum password length


open this file

# vi /etc/login.defs
 

(output of this file before changing )
 

16 #
17 PASS_MAX_DAYS 99999
18 PASS_MIN_DAYS 0
19 PASS_MIN_LEN 5
20 PASS_WARN_AGE 7
21 


edit this file like....


change line from 


17 PASS_MAX_DAYS 60
18 PASS_MIN_DAYS 2
19 PASS_MIN_LEN 6
20 PASS_WARN_AGE 2
<<< change all of these according to your need and 


at line number 16 enter this text

password sufficient pam_unix.so sha512 shadow nullok try_first_pass remember=5


save this file and exit

Configure LUKS-encrypted partitions and logical volumes to prompt for password and mount a decrypted file system at boot.


First of all create a partitons than 

# cryptsetup luksFormat /dev/sda7 <----------- sda7 is your partitions number

 enter password now


#cryptsetup luksOpen /dev/sda7 mysecret
 

give your password
 

after that format it
 

#mkfs.ext4 /dev/mapper/mysecret
 

#mkdir /mysecert
 

open fstab file and mount it parmanent

#vi /etc/fstab


/dev/mapper/mysecret              /mysecret                ext4              defaults     0  0

#vi /etc/crypttab


mysecret /dev/sda7


# mount -a 


now your drive is encrypt........


Original Post By Dinesh Dhiman 

Linux HotKeys do you know?


Alt+f1 for Application menu
Ctrl+l to Cear screen
Alt+f2 to Open run application window
Alt+f3 for Find
Alt+f4 to Close application
Alt+f9 to Minimise window
Ctrl-Alt-D Show desktop
Ctrl-Alt-Backspace Restart XWindows


Actual post by Dinesh Dhiman