Browsed by
Category: Linux

How to Mount a SMB/CIFS Share as an Automount on CentOS/Fedora/RHEL

How to Mount a SMB/CIFS Share as an Automount on CentOS/Fedora/RHEL

How to Mount a SMB/CIFS Share as an Automount on CentOS/Fedora/RHEL or Using the fstab file approach 1-Install the  Automounter #  yum install autofs 2-Install samba (client) #yum install samba-client samba-common 3-Next you have to add an entry to the file /etc/auto.master, like so: # file: /etc/auto.master # … # … /mnt/cifs_share    /etc/auto.cifs    –timeout=600 –ghost 4-Now we’ll need to create the mount point: % mkdir /mnt/cifs_share 5-now create the file /etc/auto.cifs: share_data    -fstype=cifs,rw,noperm,credentials=/etc/credentials.txt    ://192.168.1.x/windows_data 6-And finally, create the credentials.txt file….

Read More Read More

Mounting NFS Volumes in Linux using mount or /etc/fstab

Mounting NFS Volumes in Linux using mount or /etc/fstab

What a Linux hodge-podge… Command Line approach 19.2. NFS Client Configuration NFS shares are mounted on the client side using the mount command. The format of the command is as follows: mount -t <nfs-type> -o <options><host>:</remote/export></local/directory> Replace <nfs-type> with either nfs for NFSv2 or NFSv3 servers, or nfs4 for NFSv4 servers. Replace <options> with a comma separated list of options for the NFS file system (refer to Section 19.4, “Common NFS Mount Options” for details). Replace <host> with the remote host, </remote/export>…

Read More Read More

Configuring Linux Samba (SMB) – How to Setup Samba (Linux Windows File Sharing)

Configuring Linux Samba (SMB) – How to Setup Samba (Linux Windows File Sharing)

Configuring Linux Samba (SMB) – How to Setup Samba (Linux Windows File Sharing) Resource sharing, like file systems and printers, in Microsoft Windows systems, is accomplished using a protocol called the Server Message Block or SMB. For working with such shared resources over a network consisting of Windows systems, an RHEL system must support SMB. The technology used for this is called SAMBA. This provides integration between the Windows and Linux systems. In addition, this is used to provide folder…

Read More Read More

Linux VI Command Editor

Linux VI Command Editor

Starting and Ending VI Starting VI vi filename Edits filename vi -r filename Edits last save version of filename after a crash vi + n filename Edits filename and places curser at line n vi + filename Edits filename and places curser on last line vi +/string filename Edits filename and places curser on first occurance of string vi filename file2 … Edits filename, then edits file2 … After the save, use :n Ending VI ZZ or :wq or 😡…

Read More Read More

Docker on Red Hat Enterprise Linux

Docker on Red Hat Enterprise Linux

Red Hat Enterprise Linux Docker is supported on Red Hat Enterprise Linux 7. This page instructs you to install using Docker-managed release packages and installation mechanisms. Using these packages ensures you get the latest release of Docker. If you wish to install using Red Hat-managed packages, consult your Red Hat release documentation for information on Red Hat’s Docker support. Prerequisites Docker requires a 64-bit installation regardless of your Red Hat version. Docker requires that your kernel must be 3.10 at…

Read More Read More

Linux CHMOD File Permission Secret Coding from the 1970s

Linux CHMOD File Permission Secret Coding from the 1970s

CHEATER CALCULATOR — > http://chmod-calculator.com/ chmod owner|group|world filename Numeric equivalents (octal) based on the table below: 4 read (r) 2 write (w) 1 execute (x) Practical Examples: chmod 400 mydoc.txt read by owner chmod 040 mydoc.txt read by group chmod 004 mydoc.txt read by everyone chmod 200 mydoc.txt write by owner chmod 020 mydoc.txt write by group chmod 002 mydoc.txt write by everyone chmod 100 mydoc.txt execute by owner chmod 010 mydoc.txt execute by group chmod 001 mydoc.txt execute by…

Read More Read More

Recover a forgotten root password on Redhat 7 Linux system

Recover a forgotten root password on Redhat 7 Linux system

Recover a forgotten root password on Redhat 7 Linux Selinux system The way on how you can reset a forgotten root password on a Linux system have not changed for many years. Resetting a root password on RHEL7 Linux system have not change much except that now we deal with SElinux and the system is now using systemd instead of init. Nevertheless, those who have already did reset root password on the Linux system will be with the following steps…

Read More Read More

Common administrative commands in Red Hat Enterprise Linux 5, 6, and 7

Common administrative commands in Red Hat Enterprise Linux 5, 6, and 7

Common administrative commands in Red Hat Enterprise Linux 5, 6, and 7 Updated September 25 2015 at 2:31 PM – English Lists common administrative commands for Red Hat Enterprise Linux 5, 6 and 7. Printable poster also available. System basics Task RHEL5 RHEL6 RHEL7 View subscription information /etc/sysconfig/rhn/systemid /etc/sysconfig/rhn/systemid subscription-manager identity subscription-manager identity Configure subscription rhn_register subscription-manager 1 rhn_register rhnreg_ks subscription-manager subscription-manager2 rhn_register 3 View RHEL version information /etc/redhat-release View system profile sosreport dmidecode hwbrowser sosreport dmidecode lstopo lscpu Basic…

Read More Read More

Using a Red Hat Enterprise Linux Installation DVD as a Software Repository

Using a Red Hat Enterprise Linux Installation DVD as a Software Repository

Using a Red Hat Enterprise Linux Installation DVD as a Software Repository Using a Red Hat Enterprise Linux Installation DVD as a Software Repository To use a Red Hat Enterprise Linux installation DVD as a software repository, either in the form of a physical disc, or in the form of an ISO image file. If you are using a physical DVD, insert the disc into your computer. If you are not already root, switch users to the root account: su…

Read More Read More

Linux Mount of a Windows SMB Share from the Command Line

Linux Mount of a Windows SMB Share from the Command Line

Mount Windows share using mount command This is simple way to share data between windows and linux system. You would like to access MS-Windows share called //windowsserver/sharename by mounting to /mnt/win directory under Linux system. Type the following command (replace username, windows server name, share name and password with actual values): # mkdir -p /mnt/win # mount -t smbfs -o username=winntuser,password=mypassword //windowsserver/sharename /mnt/win # cd /mnt/win # ls -l   (or in CentOS, as root) mount.cifs //server/smbsharefolder /mnt/mountfolder user=username,pass=thepassword,dom=domainname  …

Read More Read More

Using a Red Hat Enterprise Linux Installation DVD as a Software Repository

Using a Red Hat Enterprise Linux Installation DVD as a Software Repository

Using a Red Hat Enterprise Linux Installation DVD as a Software Repository To use a Red Hat Enterprise Linux installation DVD as a software repository, either in the form of a physical disc, or in the form of an ISO image file. If you are using a physical DVD, insert the disc into your computer. If you are not already root, switch users to the root account: su – Create a mount point for the repository: mkdir -p /path/to/repo where…

Read More Read More

How To Install the BIND DNS Server on CentOS 6

How To Install the BIND DNS Server on CentOS 6

How To Install the BIND DNS Server on CentOS 6 Jun 12, 2013 DNS CentOS Preamble This article will show you how to setup and configure the BIND DNS Server. If you are looking for a guide on how to use DigitalOcean’s integrated DNS service, you may want to review the “How to Set Up a Host Name with DigitalOcean” article instead. Before we begin, it is recommended you have at least two cloud servers to run your nameservers. Two…

Read More Read More