Created
June 19, 2019 13:26
-
-
Save ilude/f0047141a50cb5a2066eb8f5afee8f38 to your computer and use it in GitHub Desktop.
Scale Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#idVendor 0x0b67 Fairbanks Scales | |
#idProduct 0x555e SCB-R9000 | |
sudo apt-get update | |
sudo apt-get install -y ruby ruby-dev bundler samba samba-common-bin libusb-dev libhidapi-hidraw0 libhidapi-libusb0 | |
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig | |
sudo bash -c "cat /dev/null > /etc/samba/smb.conf" | |
sudo tee -a /etc/samba/smb.conf >/dev/null <<'EOF' | |
[global] | |
# 3 to debug, 0 default | |
log level = 0 | |
workgroup = WORKGROUP | |
server string = Samba Server %v | |
netbios name = scale | |
security = user | |
map to guest = bad user | |
dns proxy = no | |
load printers = no | |
printing = bsd | |
printcap name = /dev/null | |
disable spoolss = yes | |
[homes] | |
comment = Home Directories | |
browseable = yes | |
valid users = %S | |
writable = yes | |
browsable = yes | |
EOF | |
sudo service smbd restart | |
sudo smbpasswd -a $USER | |
sudo systemctl enable smbd.service nmbd.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment