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

Code Block
apt-get install default-mysql-client

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.ext4 /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 ext4 defaults 0 0 EOFF


Translations Ignore


Code Block
languagebash
mount /srv/jtel/shared


Translations Ignore


Code Block
languagebash
df -h


Translations Ignore


Code Block
apt-get -y install samba smbclient lsof


Translations Ignore


Code Block
# SMB Conf cat <<EOFF > /etc/samba/smb.conf [global] workgroup = JTEL security = user passdb backend = tdbsam min protocol = SMB2 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


Code Block
ufw allow 445/tcp ufw allow 137/udp ufw allow 138/udp ufw allow 139/udp

Translations Ignore


Code Block
systemctl enable nmbd systemctl enable smbd systemctl start nmbd systemctl start smbd


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