config backup
This commit is contained in:
2
tools/additional.stuff
Normal file
2
tools/additional.stuff
Normal file
@@ -0,0 +1,2 @@
|
||||
smbclient cifs-utils
|
||||
virtualbox-ext-oracle
|
||||
1
tools/nas.sh
Executable file
1
tools/nas.sh
Executable file
@@ -0,0 +1 @@
|
||||
sudo mount -t cifs //10.0.1.220/data /mnt/truenas -o username=tobimai,password=tobi10203,workgroup=workgroup,iocharset=utf8
|
||||
10
tools/nas_connect.sh
Executable file
10
tools/nas_connect.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/zsh
|
||||
if [[ -z $1 || -z $2 || -z $3 || -z $4 || -z $5 ]]
|
||||
then
|
||||
echo "Not enought arguments found"
|
||||
echo "Input IP, shaqre, username, password and mountname"
|
||||
else
|
||||
sudo mkdir -p /mnt/$5
|
||||
sudo chown -c $USER /mnt/$5
|
||||
sudo mount -t cifs //$1/$2 /mnt/$5 -o username=$3,password=$4,iocharset=utf8,uid=$EUID,vers=2.0
|
||||
fi
|
||||
2
tools/stuff.txt
Normal file
2
tools/stuff.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# list SMB shares
|
||||
smbclient -L 10.0.1.1 -UTobias
|
||||
Reference in New Issue
Block a user