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

[global]
    workgroup = SAMBA
    security = user

    passdb backend = tdbsam

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

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

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

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

[shared]
    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 https://google.com/chrome
  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 https://www.getpostman.com/downloads/
  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]
    Encoding=UTF-8
    Name=Postman
    Exec=/opt/Postman/app/Postman %U
    Icon=/opt/Postman/app/resources/app/assets/icon.png
    Terminal=false
    Type=Application
    Categories=Development;

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 https://github.com/git/git/releases
  6. cd ~/Downloads
  7. tar -zxf git-VERSION.tar.gz
  8. sudo make prefix=/usr/local all install
  9. config git

    git config --global user.name "Your Name"
    git config --global user.email "youremail@yourdomain.com"

Install VSCode

  1. Import Microsoft GPG key

    sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
  2. Add VS Code repository: sudo vi /etc/yum.repos.d/vscode.repo

    [code]
    name=Visual Studio Code
    baseurl=https://packages.microsoft.com/yumrepos/vscode
    enabled=1
    gpgcheck=1
    gpgkey=https://packages.microsoft.com/keys/microsoft.asc
  3. Install Visual Studio Code on CentOS 8

    sudo dnf install code

Install Oracle Java SDK

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

标签: none

添加新评论