mount windows shared folder in Linux, Fedora & Ubuntu

#mkdir /mnt/win-shared-folder
#mount -o username=administrator,password=*****  //192.168.239.17/shared-folder /mnt/win-shared-folder

create or add a new local user account in windows using command line

Create or add new local user account in windows using command line

net user /ADD /active:yes /expires:never /fullname:user-test /passwordchg:no

net user new-user 123!@# /ADD /active:yes /expires:never /fullname:wucc-test /passwordchg:no

linux file shareing server

Linux has 3 types of File Shareing Servers. P
1.FTP (File Transfer Protocol)
FTP usages port number 20 & 21
2.NFS(Network File Shareing)
NFS usages port number 204 and 111
3.Samba(It is a network service for file and print shareing)
Usages port number 137,138 & 139

Installation and configuration will be updated soon.....


ftp(File Transfer Protocol) server installation and configuration in linux

Before install and configuration of ftp server in linux.The ftp server called in linux is vsftpd(Very Secure FTP Daemon). Default ports for FTP are 20 and 21.
Port 20 is used for Data Channel or Data Communication(Upload or Download Data).
Port 21 is used for Control Channel or  establish connection

Install vsftpd in linux:  yum install vsftpd*
If we have download rpm of  vsftpd then got the directory and ran below command
rpm -ivh vsftpd*
Once vsftpd is installed, it will create a default directory in /var/ftp/pub . By default vsftp allow only download.

To enable upload we need create a folder in /var/ftp/pub and  allow download in vsftpd configuration file.
vsftpd.conf is a configuration of vsftpd located in /etc/vsftpd/.
1.Create download folder in /var/ftp/
mkdir -p /var/ftp/download
chmod 777 /var/ftp/downlad ###give full permission to download folder
2.Open vsftpd.conf and allow download
vi /etc/vsftpd/vsftpd.conf
Uncomment or remove "#" form line number 27th   ###This will enable uploading
Uncomment or remove "#" form line number 83rd  ###This will provide message to user
Uncomment or remove "#" form line number 27th  ###This will enable log file option. By default vsftpd doesn't creat any log file. Once we enable log then a log file will be created as vsftpd.log in /var/log/vsftpd.log
Need to restart vsftpd service to effect the chanes.
service vsftpd restart ### The settings temporary
chkconfig vsftpd on  ### Settings saved permanently

 Commands to  connect ftp server and upload or download data.
ftp   
ls                  ###List
get               ### Download data
mget            ### Download multiple
mget *         ###Download complete data
put              ### Upload Data
mput           ###Upload multiple files or folders
mput *        ###Upload complete data
!                 ### Exit form ftp session temporarily
exit            ### To back to ftp session
lcd /opt      ### Change Directory
bye           ### Quit ftp session
prompt     ### To enable or disable passive mode



map or disconnect a network drive in Windows


We can use the net use command to map or disconnect a network drive in Windows.
To map a network drive.
1.Click Start, and then click Run.
2.In the Open box, type cmd.
3.Type net use y: \\computer name or IP address\shared folder name, where y: is the drive letter you want to   assign to the shared resource.
Ex: net use y:\\192.168.x.x\\abc
     net use y:\\server-002\\abc
To disconnect a mapped drive:
1.Click Start, and then click Run.
2.In the Open box, type cmd.
3.Type net use y: /delete, where y: is the drive letter of the shared resource.

inittab file in ubuntu and linux

There is no /etc/inittab file in Ubuntu because Ubuntu has /etc/event.d/rc-default file
runlevel  # to check current runlevel
The following runlevels are defined:
       N      System bootup (NONE).
       S      Single user mode (not to be switched to directly)
       0      halt
       1      single user mode
       2 to 5 multi user mode
       6      reboot

mkfs blkid fstab

mkfs: This command stands for make file system and it is used to format the partition by using file system.

Syntax: mkfs.
       Ex: mkfs.ext3 /dev/hdb
             mkfs.ext4 /dev/hda
blkid: This command is used to check file-system type of partion.

Ex: blkid /dev/hda

fstab: This is one of the inbuilt file of linux which is used to mount partition permanently across the reboot.


partprobe(partitionpro)

Syntax: partprobe (device name) ### It will update partition table without reboot
Ex: partprobe /dev/sda



partition tools in linux

We can create linux partition in 2 ways. i.e. Pre-Installation and Post-Installation
Pre-Installation partition is Disk Druid
Post-Installation  partition tools are
fdisk
cfdisk
sfdisk
parted

minumum and maximum partitions in linux

fdisk can create maximum 15 partitions in RHEL5
fdisk can create maximum 63 partitions in RHEL6
parted can create maximum 63 partitions in RHEL6

add loopback adapter in windows xp

1.Open control Panel
2.Double Click on Add Hardware
3.Click Next
4.Select on Yes I have already connected the hardware and Click on Next
5.Click on Select a New hardware device and Click on Next
6.Select Install the hardware that I manually select a list(Advanced)
7.Select Network Adapter and Click on Next
8.Choose Manufacturer "Microsoft" from list and "Microsoft Loopback Adapter" form Network adapter list, then Click on Next
9.Click Next, this process will install Loopback adapter driver
10.Click on Finish to finish Loopback adapter installation.