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-servicesUpdate /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 = yesSetup 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=1Install Google Chrome
- Download Google Chrome
rpminstaller from https://google.com/chrome cd ~/Downloadsdnf install google-chrome-stable_current_x86_64.rpm- Start google chrome via terminal:
google-chrome
Install Postman
- Download Postman from https://www.getpostman.com/downloads/
cd ~/Downloadstar -zxf postman.tar.gz -C /optln -s /opt/Postman/Postman /usr/bin/PostmanAdd 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
- Remove existed git version:
sudo dnf remove git sudo dnf install wget unzip curlsudo dnf groupinstall "Development Tools"sudo dnf install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel- Download Git source code from https://github.com/git/git/releases
cd ~/Downloadstar -zxf git-VERSION.tar.gzsudo make prefix=/usr/local all installconfig git
git config --global user.name "Your Name" git config --global user.email "youremail@yourdomain.com"
Install VSCode
Import Microsoft GPG key
sudo rpm --import https://packages.microsoft.com/keys/microsoft.ascAdd 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.ascInstall Visual Studio Code on CentOS 8
sudo dnf install code
Install Oracle Java SDK
- Download Java SE Development Kit from https://www.oracle.com/
sudo dnf install ~/Downloads/jdk-8u231-linux-x64.rpm