Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Content imported from a Scroll Translations translation file.

...

Sv translation
languagede

Status
colourRed
titleTHIS PAGE IS ONLY AVAILABLE IN ENGLISH

Sv translation
languagefr

Translations Ignore


Code Block
languagebash
# Show free space on existing devices df -h # Show drives ls /dev/sd* # Show partitions fdisk -l # Show partitions ls /dev/sd* # Re-scan the SCSI bus echo "- - -" > /sys/class/scsi_host/host0/scan echo "- - -" > /sys/class/scsi_host/host1/scan echo "- - -" > /sys/class/scsi_host/host2/scan ... # View physical volumes managed by LVM lvm pvs # Display logical volumes managed by LVM lvm lvs # Display logical volume groups managed by LVM lvm vgs # Where is what mounted mount


Translations Ignore


Code Block
languagebash
fdisk /dev/sdb   # --> Edit the partitions on /dev/sdb   n # --> Create new partition p # --> New primary partition 1 # --> Create new partition 1 (view output at fdisk -1 above) Enter # --> Confirmation that the first available cylinder should be used Enter # --> Confirmation that the last available cylinder is to be used (gives the maximum size in total) t # --> Change partition type 8e # --> Linux LVM w # --> When OK, write


Translations Ignore


Code Block
languagebash
lvm pvcreate /dev/sdb1


Translations Ignore


Code Block
languagebash
lvm vgcreate "vg_jtelshared" /dev/sdb1


Translations Ignore


Code Block
languagebash
lvm lvcreate -l +100%FREE vg_jtelshared -n lv_jtelshared


Translations Ignore


Code Block
languagebash
mkfs.xfs -L data /dev/vg_jtelshared/lv_jtelshared


Translations Ignore


Code Block
languagebash
mkdir /srv/jtel mkdir /srv/jtel/shared  chown -R jtel:jtel /srv/jtel


Translations Ignore


Code Block
languagebash
cat <<EOFF >> /etc/fstab /dev/mapper/vg_jtelshared-lv_jtelshared /srv/jtel/shared xfs defaults 0 0 EOFF


Translations Ignore


Code Block
languagebash
mount /srv/jtel/shared


Translations Ignore


Code Block
languagebash
df -h


Translations Ignore


Code Block
dnf -y install samba samba-client lsof


Translations Ignore


Code Block
# SMB Conf cat <<EOFF > /etc/samba/smb.conf [global] workgroup = JTEL security = user passdb backend = tdbsam min protocol = SMB3 reset on zero vc = yes [shared] comment = jtel ACD Shared Directory public = no read only = no writable = yes locking = yes path = /srv/jtel/shared create mask = 0644 directory mask = 0755 force user = jtel force group = jtel acl allow execute always = True EOFF


Translations Ignore


Code Block
setsebool -P samba_enable_home_dirs=on samba_export_all_rw=on use_samba_home_dirs=on use_nfs_home_dirs=on firewall-cmd --zone=public --add-port=445/tcp --add-port=139/tcp --add-port=138/udp --add-port=137/udp --permanent firewall-cmd --reload


Translations Ignore


Code Block
systemctl enable nmb systemctl enable smb systemctl start nmb systemctl start smb


Translations Ignore


Code Block
ln -s /srv/jtel/shared /home/jtel/shared


Status
colourRed
title

Translations Ignore


Code Block
printf '<password>\n<password>\n' | smbpasswd -a -s jtel 


Status
colourRed
title

Translations Ignore


Code Block
useradd -m Administrator printf '<password>\n<password>\n' | smbpasswd -a -s Administrator