Wednesday, June 25, 2014
Tuesday, June 24, 2014
How to Configure Name Based Web Server in Linux
Red Hat® Certified Engineer (RHCE®) is a
Red Hat Certified System Administrator (RHCSA) who possesses additional
skills, knowledge, and abilities required of a senior system
administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
How to create multiple virtual host using name based virtual host.
First install web server in system
configure the httpd configuration file
Both sample1.com and sample2.com domains will have same ip address. Like this we can create more sites using single ip address with help of name based virtual host.
Both virtual host have different document root.
Now we can move file to particular document root.
check the configuration status with help of above command and now restart the web server service
check the domain names in URL or elinks command.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
How to create multiple virtual host using name based virtual host.
First install web server in system
root@linuxstorage:~#yum install https* -y
configure the httpd configuration file
root@linuxstorage:~# vi /etc/httpd/conf/httpd.conf
to enable Name Based virtual host change line by removing symbol in front of line
#NameVirtualHost *:80
to
NameVirtualHost xx.xx.xx.xx(Domain ip ):80
copy last 7 line of sample and paste it below, then edit it as given below
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
change like this
<VirtualHost xx.xx.xx.xx:80>
ServerAdmin webmaster@linuxstorages.com
DocumentRoot /var/www/html/sample1
ServerName sample1.com
ErrorLog logs/sample1.com-error_log
CustomLog logs/sample1.com-access_log common
</VirtualHost>
<VirtualHost xx.xx.xx.xx:80>
ServerAdmin webmaster@linuxstorages.com
DocumentRoot /var/www/html/sample2
ServerName sample2.com
ErrorLog logs/sample2.com-error_log
CustomLog logs/sample2.com-access_log common
</VirtualHost>
:wq!
Both sample1.com and sample2.com domains will have same ip address. Like this we can create more sites using single ip address with help of name based virtual host.
Both virtual host have different document root.
Now we can move file to particular document root.
root@linuxstorage:~#cd /var/www/html/sample1
root@linuxstorage:~#vi index.html
test1
:wq!
root@linuxstorage:~#cd /var/www/html/sample2
root@linuxstorage:~#vi index.html
test2
:wq!
root@linuxstorage:~#httpd -s
check the configuration status with help of above command and now restart the web server service
root@linuxstorage:~#service httpd restart
check the domain names in URL or elinks command.
root@linuxstorage:~#elinks http://sample1.com
test1
or
root@linuxstorage:~#elinks http://sample2.com
test2
By:
Unknown
On
5:23 PM
Monday, June 23, 2014
Opera For Linux is Finally as Beta
Opera for Linux is finally here, but only as a beta
Opera has finally released a version of its popular browser for Linux. The Developer version of Opera 24 brings familiar Windows and Mac features to the open source platform and users can get it from the experimental Developer channel. Opera 24 will be an alternative to Chrome and Firefox, which are the two most used browsers on Linux.
Opera claims to have repurposed the browser based on the Blink rendering engine, that the company adopted when Google, along with Opera, ditched WebKit. “We’ve had many questions about Opera on Linux from our users,” says Zhenis Beisekov, Product Manager of Desktop Products at Opera Software. “We focused on rebuilding the entire browser, adding a new engine and the same features you can find in the Windows and Mac versions. Now, you can finally get a web experience completely re-thought for the Linux platform.”
With this Developer version, Linux users will get their first taste of Opera features such as the quintessential Speed Dial, Stash and Discover features. The Speed Dial is essentially your home page on the browser and gives you an overview of your bookmarks, folders, and recent history. Stash lets users collect webpages and arrange them in categories. Think of it like Pinterest within the browser, designed to help you plan your work, travel or home life with collections of links. Discover is essentially an RSS reader, which gathers articles based on your interests and specified topics.
For now, Opera for Linux is only available in a Developer or beta version, while a stable version has been planned for the future.
By:
Unknown
On
6:26 PM
Saturday, June 21, 2014
How to Configure a WebServer in Linux
Red Hat® Certified Engineer (RHCE®) is a
Red Hat Certified System Administrator (RHCSA) who possesses additional
skills, knowledge, and abilities required of a senior system
administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Implement a webserver
CMD:
Install web server packages using yum command
Configure the web server configuration in below path
Connect FTP server using lftp command
get - download file from server to local
bye - exit ftp server connection
Rename data.html to index.html
Enter ip address details in host file
Check status of web server configuration file after configuring
Check the URL using elinks command in terminal
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Implement a webserver
CMD:
Install web server packages using yum command
root@linuxstorages:~#yum install httpd* -y
Configure the web server configuration in below path
root@linuxstorages:~#vim /etc/httpd/conf/httpd.conf
Copy the last 7 line and paste in last. Then change all dummy into your hostnameChange directory to document root of web server
Change document root is /var/www/html
:wq!
root@linuxstorages:~#cd /var/www/html
Connect FTP server using lftp command
root@linuxstorages:~#lftp server id
>cd /var/www/ftp
>get data.html
>bye
get - download file from server to local
bye - exit ftp server connection
Rename data.html to index.html
root@linuxstorages:~#mv data.html index.html
Enter ip address details in host file
root@linuxstorages:~#vim /etc/hosts
Add ipaddress hostname(fully) hostname(half)
xx.xx.xx.xx user.linuxstorages.com user.linuxstorages
:wq!
Check status of web server configuration file after configuring
root@linuxstorages:~#httpd -t
syntax ok
root@linuxstorages:~#service httpd restart
root@linuxstorages:~#chkconfig httpd on
Check the URL using elinks command in terminal
root@linuxstorages:~#elinks user.linuxstorages.com
By:
Unknown
On
10:00 AM
Friday, June 20, 2014
RHEL 7 Features
Red Hat has launched Red Hat Enterprise Linux 7 beta which will
introduce a variety of new virtualization, cloud, networking, file
system, and live update features.
Celebrating the launch of Red Hat Enterprise Linux 7! Check out the features: http://red.ht/overviewrhel7 #RHEL7 #RedHat
File systems have continued to be a major focus of development in within RHEL. XFS is currently the default file system in RHEL 7, allowing support file systems as large as 500TB. But scalability enhancements to ext4 file systems allow them to be 16TB to 50TB standalone with block sizes of up to 1MB.
This simplifies and speeds up block allocation and defragmentation. Emerging file system Btrfs is available as a technology preview within Red Hat Enterprise Linux 7.
Networking is now faster (with 40Gb Ethernet link support), more responsive, and includes TCP Fast Open and Early Retransmit for TCP.
Celebrating the launch of Red Hat Enterprise Linux 7! Check out the features: http://red.ht/overviewrhel7 #RHEL7 #RedHat
File systems have continued to be a major focus of development in within RHEL. XFS is currently the default file system in RHEL 7, allowing support file systems as large as 500TB. But scalability enhancements to ext4 file systems allow them to be 16TB to 50TB standalone with block sizes of up to 1MB.
This simplifies and speeds up block allocation and defragmentation. Emerging file system Btrfs is available as a technology preview within Red Hat Enterprise Linux 7.
Networking is now faster (with 40Gb Ethernet link support), more responsive, and includes TCP Fast Open and Early Retransmit for TCP.
By:
Unknown
On
8:39 AM
Thursday, June 19, 2014
Linux Basic Commands Video Part1
By:
Unknown
On
4:25 PM
Wednesday, June 18, 2014
Email Forwarding In Linux
Red Hat® Certified Engineer (RHCE®) is a
Red Hat Certified System Administrator (RHCSA) who possesses additional
skills, knowledge, and abilities required of a senior system
administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Configure an email alias for your MTA such that mail sent to admin is received by the local user sowmya
CMD:
Reload the configuration file by using newaliases command
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Configure an email alias for your MTA such that mail sent to admin is received by the local user sowmya
CMD:
root@linuxstorages:~#vim /etc/aliases
admin: sowmya
:wq!
Reload the configuration file by using newaliases command
root@linuxstorages:~#newaliases
By:
Unknown
On
10:00 AM
Monday, June 16, 2014
How to configure NFS Server In Linux
Red Hat® Certified Engineer (RHCE®) is a
Red Hat Certified System Administrator (RHCSA) who possesses additional
skills, knowledge, and abilities required of a senior system
administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Export your /central directory via NFS to the linuxstorages.com domain only.
CMD:
Install NFS packages using yum command
Edit the nfs configuration file
Restart nfs service after configuring the configuration file.
Use exportfs command to check configuration is working fine
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Export your /central directory via NFS to the linuxstorages.com domain only.
CMD:
Install NFS packages using yum command
root@linuxstorages:~# yum install nfs* -y
Edit the nfs configuration file
root@linuxstorages:~#vim /etc/exports
/central *.linuxstorages.com(rw,sync)
:wq(save file)
Restart nfs service after configuring the configuration file.
root@linuxstorages:~#service nfs restart
root@linuxstorages:~#chkconfig nfs on
Use exportfs command to check configuration is working fine
root@linuxstorages:~#exportfs
By:
Unknown
On
7:58 PM
Friday, June 13, 2014
How to Mount Windows NTFS Partition in Linux
First you need to enable EPEL (Extra Packages for Enterprise Linux)
Repository. You may refer the article on how to enable EPEL Repository
under RHEL, CentOS and Fedora systems.
To mount any NTFS based filesystem, you need to install a tool called NTFS3G. Before heading up for installation let’s understand NTGS3G.
What is NTFS3G
To mount any NTFS based filesystem, you need to install a tool called NTFS3G. Before heading up for installation let’s understand NTGS3G.
What is NTFS3G
NTFS3G is an open source
cross-platform, stable, GPL licensed, POSIX, NTFS R/W driver used in
Linux. It provides safe handling of Windows NTFS file systems viz
create, remove, rename, move files, directories, hard links, etc.
Once EPEL is installed and enabled, let’s install ntfs-3g package using the below command with root user.
Fuse Install
Next, install and load FUSE driver to mount detected devices with below command. FUSE module is included in the kernel itself in version 2.6.18-164 or newer.
Identify NTFS Partition
Once fuse module is loaded, type below command to find out NTFS Partitions in Linux.
Device Boot Start End Blocks Id System
/dev/sdb1 1 21270 7816688 b W95 FAT32
Mount NTFS partition
First create a mount point to mount the NTFS partition.
Simply run the following command to mount the partition. Replace sda1 with your actual partition found.
Once it’s mounted on /mnt/ntfs, you may use regular Linux ls -l command to list the content of mounted filesystem.
Once EPEL is installed and enabled, let’s install ntfs-3g package using the below command with root user.
root@linuxstorages:~# yum -y install ntfs-3g
Fuse Install
Next, install and load FUSE driver to mount detected devices with below command. FUSE module is included in the kernel itself in version 2.6.18-164 or newer.
root@linuxstorages:~# yum install fuse
root@linuxstorages:~# modprobe fuse
Identify NTFS Partition
Once fuse module is loaded, type below command to find out NTFS Partitions in Linux.
root@linuxstorages:~# fdisk -l
Device Boot Start End Blocks Id System
/dev/sdb1 1 21270 7816688 b W95 FAT32
Mount NTFS partition
First create a mount point to mount the NTFS partition.
root@linuxstorages:~# mkdir /mnt/nts
Simply run the following command to mount the partition. Replace sda1 with your actual partition found.
root@linuxstorages:~# mount -t ntfs-3g /dev/sda1 /mnt/nts
Once it’s mounted on /mnt/ntfs, you may use regular Linux ls -l command to list the content of mounted filesystem.
By:
Unknown
On
2:23 PM
How to Convert DEB to RPM & RPM to DEB Packages
DEB - A Debian "package", or a Debian archive file, contains the executable
files, libraries, and documentation associated with a particular suite of
program or set of related programs. Normally, a Debian archive file has a
file name that ends in .deb
RPM - Red Hat Package Manager or RPM Package Manager (RPM) is a
package management system. The name RPM variously refers to the .rpm file
format, files in this format, software packaged in such files, and the package
manager itself. RPM was intended primarily for Linux distributions; the file
format is the baseline package format of the Linux Standard Base.
1. Convert RPM to DEB
Install alien command on Debian / Ubuntu
Install alien command on Ubuntu as shown below.
Use alien command to convert rpm to deb file
The following example converts the linuxconf-devel rpm file to linuxconf-devel deb file. Once you generate the deb file, you can install it on Ubuntu or Debian.
linuxconf-devel_1.16r10-3_i386.deb generated
Install deb packages using the dpkg command — Debian: How to Install or Remove DEB Packages Using dpkg
2. Convert DEB to RPM
Use alien to convert deb to rpm file
Use alient -r option to convert a deb file to rpm file. The following example converts libsox deb file to libsox
rpm file. Once you generate the rpm file, you can install it on Red Hat, or CentOS.
libsox1-14.2.0-2.i386.rpm generated.
# sudo apt-get install alien
Use alien command to convert rpm to deb file
The following example converts the linuxconf-devel rpm file to linuxconf-devel deb file. Once you generate the deb file, you can install it on Ubuntu or Debian.
# alien linuxconf-devel-1.16r10-2.i386.rpm
linuxconf-devel_1.16r10-3_i386.deb generated
Install deb packages using the dpkg command — Debian: How to Install or Remove DEB Packages Using dpkg
2. Convert DEB to RPM
Use alien to convert deb to rpm file
Use alient -r option to convert a deb file to rpm file. The following example converts libsox deb file to libsox
rpm file. Once you generate the rpm file, you can install it on Red Hat, or CentOS.
# sudo alien -r libsox1_14.2.0-1_i386.deb
libsox1-14.2.0-2.i386.rpm generated.
By:
Unknown
On
2:12 PM
Thursday, June 5, 2014
How To Configure Samba Server In Linux
Red Hat® Certified Engineer (RHCE®) is a
Red Hat Certified System Administrator (RHCSA) who possesses additional
skills, knowledge, and abilities required of a senior system
administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Share the /central directory via SMB:
CMD:
Install smaba packages using yum
Configure samba configuration file
Create shared directory
Create samba user and password
Use this command if selinux is enabled for selinux permission
Restart samba service and enable in chkconfig
check the share directory with the ipaddress
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Share the /central directory via SMB:
CMD:
Install smaba packages using yum
root@linuxstorages:~#yum install samba* -y
Configure samba configuration file
root@linuxstorages:~#vim /etc/samba/smb.conf
change workgroup as STAFF in line no 74
Add
[common]
Path = /central
Browseable = yes
Writeable = yes
Host allow = 192.168.0.
Valid user = sowmya
:wq
Create shared directory
root@linuxstorages:~#mkdir /central
Create samba user and password
root@linuxstorages:~#smbpasswd -a sowmya
Use this command if selinux is enabled for selinux permission
root@linuxstorages:~#chcon -Rt samba_share_t /central
Restart samba service and enable in chkconfig
root@linuxstorages:~#service smb restart
root@linuxstorages:~#chkconfig smb on
check the share directory with the ipaddress
root@linuxstorages:~#smbclient //ipaddress/common -U sowmya
By:
Unknown
On
9:31 PM
Monday, June 2, 2014
How To Configure FTP Access In Linux
Red Hat® Certified Engineer (RHCE®) is a
Red Hat Certified System Administrator (RHCSA) who possesses additional
skills, knowledge, and abilities required of a senior system
administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Configure FTP access on your system
CMD:
First install FTP packages in your system
Edit hosts.deny file for deny particular domain
Restart FTP service after change in configuration file
Add a ftp service in chkconfig
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Configure FTP access on your system
CMD:
First install FTP packages in your system
root@linuxstorages:~#yum install vsftpd* -y
Edit hosts.deny file for deny particular domain
root@linuxstorages:~#vim /etc/hosts.deny
ADD following line in this file
vsftpd: ALL EXCEPT *.linuxstoraages.com
:wq!
Restart FTP service after change in configuration file
root@linuxstorages:~#service vsftpd restart
Add a ftp service in chkconfig
root@linuxstorages:~#chkconfig vsftpd on
By:
Unknown
On
7:55 PM
How To Configure SSH Access In Linux
Red Hat® Certified Engineer (RHCE®) is a Red Hat Certified System Administrator (RHCSA) who possesses additional skills, knowledge, and abilities required of a senior system administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Configure SSH access
CMD:
Install SSH server in your system using yum command
Block ip which need to in hosts.deny file
Restart the SSH service after changing configuration file
Enable in chkconfig service
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Configure SSH access
CMD:
Install SSH server in your system using yum command
root@linuxstorages:~#yum install open-ssh-server* -y
Block ip which need to in hosts.deny file
root@linuxstorages:~#vim /etc/hosts.deny
ADD following line in this file
sshd: 192.168.1.1/255.255.255.0
:wq! (save file)
Restart the SSH service after changing configuration file
root@linuxstorages:~#service sshd restart
Enable in chkconfig service
root@linuxstorages:~#chkconfig sshd on
By:
Unknown
On
7:44 PM
Sunday, June 1, 2014
How To Enable Selinux Enforcing In Linux
A Red Hat® Certified Engineer (RHCE®) is a
Red Hat Certified System Administrator (RHCSA) who possesses additional
skills, knowledge, and abilities required of a senior system
administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol (FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Enable SELINUX enforcing mode
CMD:
First check the selinux status by using getenforce commad
Change the selinux status to enforcing in configuration
Restart the system
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol (FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Enable SELINUX enforcing mode
CMD:
First check the selinux status by using getenforce commad
root@linuxstorages:~#getenforce
Premissive
Change the selinux status to enforcing in configuration
root@linuxstorages:~#vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
Restart the system
root@linuxstorages:~#init 6Now check the status,
root@linuxstorages:~#getenforce
Enforcing
By:
Unknown
On
6:50 PM
Ip Forwarding In Linux
A Red Hat® Certified Engineer (RHCE®) is a Red Hat Certified System Administrator (RHCSA) who possesses additional skills, knowledge, and abilities required of a senior system administrator responsible for Red Hat Enterprise Linux® systems.
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol (FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Enable IP forwarding
CMD:
An RHCE is capable of:
Configuring static routes, packet filtering, and network address translation.
Setting kernel runtime parameters.
Configuring an Internet Small Computer System Interface (iSCSI) initiator.
Producing and delivering reports on system utilization.
Using shell scripting to automate system maintenance tasks.
Configuring system logging, including remote logging.
Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer Protocol (FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).
Enable IP forwarding
CMD:
root@linuxstorages:~#vim /etc/sysctl.conf
change from 0 to 1
root@linuxstorages:~#sysctl -p
By:
Unknown
On
6:17 PM
Subscribe to:
Posts
(
Atom
)