rpm cheat sheet

rpm command cheat sheet for Linux rpm is a powerful Package Manager for Red Hat, Suse and Fedora Linux. It can be used to build, install, query, verify, update, and remove/erase individual software packages. A Package consists of an archive of files, and package information, including name, version, and description: Syntax Description Example(s) rpm -ivh … Continue reading rpm cheat sheet

rpm vs yum

Difference Between YUM & RPM During the initial Linux installation, larger selection of programs is installed by default, but there may be occasions where a user needs new programs installed. Some time back, users were required to compile and build source code to install a new program. But now, users can easily install pre-built programs … Continue reading rpm vs yum

package management

[root@yumserver ~]# yum repolist Loaded plugins: product-id, refresh-packagekit, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. repo id                                                repo name     … Continue reading package management

puppet

What is Puppet? Automate. Move Faster. Increase Reliability. It's not easy being in IT operations today. The volume and complexity of infrastructure you manage is growing and getting smarter. On top of that, you've got demands from the business to do more and faster, without sacrificing security and reliability. How do you strike that balance? … Continue reading puppet

ftp

What is ftp server? ==>The File Transfer Protocol (FTP) is a standard network protocol used to transfer computer files between a client and server on a computer network. ==>FTP is built on a client-server model architecture and uses separate control and data connections between the client and the server.FTP users may authenticate themselves with a … Continue reading ftp

nis

[root@server-rhel6 ~]# yum install rpcbind ypserv ypbind -y [root@server-rhel6 ~]# vim /etc/sysconfig/network NETWORKING=yes HOSTNAME=server-rhel6 NISDOMAIN=rafi.com [root@server-rhel6 ~]# rpcinfo -u localhost ypserv rpcinfo: RPC: Port mapper failure - Unable to receive: errno 111 (Connection refused) program 100004 is not available [root@server-rhel6 ~]# /usr/lib64/yp/ypinit -m At this point, we have to construct a list of the hosts … Continue reading nis

sendmail

Sendmail is an MTA, meaning it accepts email messages sent to it using the SMTP proto- col and transports them to another MTA email server until the messages reach their destinations. It also accepts email for the local network and delivers them to local mail spools, one for each user. 1.Mail User Agent(MUA) A client … Continue reading sendmail

vnc with flux-box

[root@rafi ~]# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet 192.169.178.204/32 brd 192.169.178.204 scope global lo:1 inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether fa:16:3e:3b:24:6d brd ff:ff:ff:ff:ff:ff inet 10.192.7.166/23 brd … Continue reading vnc with flux-box

ntp

[root@server-rhel6 ~]# yum install ntp -y [root@server-rhel6 ~]# date Tue Feb 23 16:43:07 PST 2016 vim /etc/ntpd.conf ====> comment this lines first and add required lines #server 0.rhel.pool.ntp.org iburst #server 1.rhel.pool.ntp.org iburst #server 2.rhel.pool.ntp.org iburst #server 3.rhel.pool.ntp.org iburst restrict 172.16.28.0 mask 255.255.255.0 nomodify notrap server 127.127.1.0 #local clock fudge 127.127.1.0 stratum 10 driftfile /var/lib/ntp/ntp.drift logfile … Continue reading ntp

ldap

LDAP stands for Lightweight Directory Access Protocol. LDAP is a solution to access centrally stored information over network. This centrally stored information is organized in a directory that follows X.500 standard. The information is stored and organized in a hierarchical manner and the advantage of this approach is that the information can be grouped into … Continue reading ldap