Setup Development Station Based on CentOS 8

Install Samba

sudo dnf install samba samba-client
sudo systemctl enable --now {smb,nmb}

Configuring the firewall

sudo firewall-cmd --info-service samba
sudo firewall-cmd --permanent --add-service=samba
sudo firewall-cmd --reload
sudo firewall-cmd --list-services

Update /etc/samba/smb.conf

    workgroup = SAMBA
    security = user

    passdb backend = tdbsam

    printing = cups
    printcap name = cups
    load printers = yes
    cups options = raw
    map to guest = bad user

    comment = Home Directories
    valid users = %S, %D%w%S
    browseable = No
    read only = No
    inherit acls = Yes

    comment = All Printers
    path = /var/tmp
    printable = Yes
    create mask = 0600
    browseable = No

    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @printadmin root
    force group = @printadmin
    create mask = 0664
    directory mask = 0776

    path = /home/pantao/Shared
    guest ok = no
    writable = yes

Setup SELinux for samba

sudo chcon -R -t samba_share_t /mnt/shared
sudo semanage fcontext -a -t samba_share_t "/mnt/shared(/.*)?"
sudo semanage fcontext -l | grep /mnt/shared
sudo setsebool samba_enable_home_dirs=1

Install Google Chrome

  1. Download Google Chrome rpm installer from
  2. cd ~/Downloads
  3. dnf install google-chrome-stable_current_x86_64.rpm
  4. Start google chrome via terminal: google-chrome

Install Postman

  1. Download Postman from
  2. cd ~/Downloads
  3. tar -zxf postman.tar.gz -C /opt
  4. ln -s /opt/Postman/Postman /usr/bin/Postman
  5. Add desktop icon

    [Desktop Entry]
    Exec=/opt/Postman/app/Postman %U

Install latest git

  1. Remove existed git version: sudo dnf remove git
  2. sudo dnf install wget unzip curl
  3. sudo dnf groupinstall "Development Tools"
  4. sudo dnf install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel
  5. Download Git source code from
  6. cd ~/Downloads
  7. tar -zxf git-VERSION.tar.gz
  8. sudo make prefix=/usr/local all install
  9. config git

    git config --global "Your Name"
    git config --global ""

Install VSCode

  1. Import Microsoft GPG key

    sudo rpm --import
  2. Add VS Code repository: sudo vi /etc/yum.repos.d/vscode.repo

    name=Visual Studio Code
  3. Install Visual Studio Code on CentOS 8

    sudo dnf install code

Install Oracle Java SDK

  1. Download Java SE Development Kit from
  2. sudo dnf install ~/Downloads/jdk-8u231-linux-x64.rpm

标签: none