Posts

Showing posts from November, 2017

Setting Up Syncthink by Command Line on a Server

Props to this site for the info I based the following on! First, install syncthing: $ sudo apt-get update  $ sudo apt-get install syncthing $ syncthing You will need to change the address of the web gui by editing the syncthing config.xml. $ sudo nano ~/.config/syncthing/config.xml  <gui enabled="true" tls="false"> <address>127.0.0.0:8384</address> [to]: <gui enabled="true" tls="false"> <address>192.168.1.119:8384</address> s ystemd is a system and service manager for Linux that runs as PID 1 (Process ID 1) and starts the rest of the system. It uses a script file called a Unit for each service, they are located in  /etc/systemd/system/multi-user.target.wants/ to get this to work you need to put this file into that directory. This is the Unit text *********************************************************************** [Unit] Description=Syncthing - Open Source Continuous Fi

Samba Setup

Installation and Setup: First install the following: apt-get install samba-common smbclient samba-common-bin smbclient cifs-utils Next, authorize users to access samba shares: sudo smbpasswd -a Make a safe backup copy of the original smb.conf file. sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bkup Edit the file "/etc/samba/smb.conf" sudo nano /etc/samba/smb.conf Add this to the end of the file: [folder_name] path = /home/user_name>/folder_name valid users = read only = no Restart samba: sudo service smbd restart Use this command to check your smb.conf for any syntax errors. testparm Determine the LAN address of the computer: sudo ifconfig List all shares: smbclient -L // / -U Connect: smbclient // / -U Mounting Local Shares: smbclient -L XXX.XXX.X.X -U username Then, create a local directory and mount the remote share: mkdir /mnt/abc mount -t cifs //server/share /mnt/abc Depending on the access you give to your