Skip to main content

Command Palette

Search for a command to run...

Install yum and add samba support on CentOS7

Updated
1 min read
Install yum and add samba support on CentOS7
N

I’m a backend developer based in Beijing, passionate about crafting efficient and scalable solutions. Amidst my coding endeavors, I’ve embarked on an exciting journey as an active English learner. Exploring the intricacies of language allows me to broaden my horizons and connect with diverse communities worldwide. Join me as I navigate the realms of technology and language, striving for excellence in both.

Install Yum by cURL

Dependencies

  • RPMsupport. If you even missed this, you can do nothing but reinstall the whole OS.

  • cURL support.

  • Internet network enabled.

Step by step

  1. Download 3 essential packages.

curl -O 'http://tel.mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm'
curl -O http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
curl -O http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-54.el7_8.noarch.rpm
=
  1. Install all of them

rpm -ivh --force --nodeps *.rpm

Install and settle Samba/NFS remote mounting

    1. Install all of the filesystem support through yum
  •   yum install cifs-utils nfs-utils
    
  1. TODO [NFS] mounting.
# Create the mount point.
mkdir /mount_path

# Mount
mount -t nfs host:/path /mount_path
  1. TODO [Samba] mounting.
mkdir /mount_path

mount -t cifs -o username=SYNOLOGY_USER_NAME,uid=SYNOLOGY_USER_NAME,gid=SYNOLOGY_USER_NAME \
//host/path /mount_path

Error mapping

  1. mount.cifs: bad UNC using mount -t cifs //host instead of mount -t cifs /host/

  2. mount.nfs: mount(2): No such device Your kernel doesn't support, cede please.

  3. mount error: cifs filesystem not supported by the system Your kernel doesn't support, cede please.

44 views

More from this blog

W

Way to far away

10 posts

I’m a backend developer based in Beijing, passionate about crafting efficient and scalable solutions. Amidst my coding endeavors, I’ve embarked on an exciting journey as an active English learner.