156 Suara Hewan / binatang
Saturday, December 24, 2016
Monday, December 19, 2016
install samba ubuntu
1.sudo apt-get update
2.sudo apt-get install samba
3.edit smb.conf on /etc/samba
[kodi]
comment = kodi Files
path = /movie/Movie/kodi
guest ok = yes
browsable = yes
read only = no
hosts allow = 192.168.2.4
[Movie]
comment = Movie Files
path = /movie/Movie
guest ok = yes
browsable = no
read only = yes
check
root@ubuntu:~# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Shares]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
restart
4.service smbd restart
5.test open address bar
\\192.168.3.2
2.sudo apt-get install samba
3.edit smb.conf on /etc/samba
[kodi]
comment = kodi Files
path = /movie/Movie/kodi
guest ok = yes
browsable = yes
read only = no
hosts allow = 192.168.2.4
[Movie]
comment = Movie Files
path = /movie/Movie
guest ok = yes
browsable = no
read only = yes
check
root@ubuntu:~# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Shares]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
restart
4.service smbd restart
5.test open address bar
\\192.168.3.2
install mysql ubuntu
- sudo apt-get update
- sudo apt-get install mysql-server
- service mysql status
mysql start/running, process 6394
ubuntu mount Fat32 hdd fstab
detect hdd
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
root@ubuntu:~# lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 232.9G
├─sda1 ext4 487M /boot
├─sda2 ext4 37.3G /
├─sda3 swap 7.5G [SWAP]
└─sda4 reiserfs 187.7G /cache
sdb 465.8G
├─sdb1 1K
└─sdb5 vfat 465.8G /movie MOVIE
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 37G 5.9G 29G 17% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 389M 560K 389M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 2.1M 1.9G 1% /run/shm
/dev/sda4 188G 133G 56G 71% /cache
/dev/sda1 464M 16M 420M 4% /boot
root@ubuntu:~# chgrp plugdev /movie
root@ubuntu:~# chmod 777 /movie
root@ubuntu:~# chmod +t /movie
check manual mount
mount -t vfat /dev/sdb5 /movie
if(no_error)
lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
root@ubuntu:~# lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 232.9G
├─sda1 ext4 487M /boot
├─sda2 ext4 37.3G /
├─sda3 swap 7.5G [SWAP]
└─sda4 reiserfs 187.7G /cache
sdb 465.8G
├─sdb1 1K
└─sdb5 vfat 465.8G /movie MOVIE
chek mount
df -h
root@ubuntu:~# df -hFilesystem Size Used Avail Use% Mounted on
/dev/sda2 37G 5.9G 29G 17% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 389M 560K 389M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 2.1M 1.9G 1% /run/shm
/dev/sda4 188G 133G 56G 71% /cache
/dev/sda1 464M 16M 420M 4% /boot
create dir n permision
root@ubuntu:~# mkdir /movieroot@ubuntu:~# chgrp plugdev /movie
root@ubuntu:~# chmod 777 /movie
root@ubuntu:~# chmod +t /movie
check manual mount
mount -t vfat /dev/sdb5 /movie
if(no_error)
umount -t vfat /dev/sdb5 /movie
edit fstab
/dev/sdb5 /movie vfat defaults 0 0
save
test
mount -a
if(no_error)
df -h
if (error) do not restart pc :D
check your fstab
check your fstab
root@ubuntu:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 37G 5.9G 29G 17% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 389M 560K 389M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 2.1M 1.9G 1% /run/shm
/dev/sda4 188G 133G 56G 71% /cache
/dev/sda1 464M 16M 420M 4% /boot
/dev/sdb5 466G 363G 104G 78% /movie
if ok now restart your pc
taraaa
root@ubuntu:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 37G 5.9G 29G 17% /
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 389M 452K 389M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 2.1M 1.9G 1% /run/shm
/dev/sda4 188G 133G 56G 71% /cache
/dev/sdb5 466G 363G 104G 78% /movie
/dev/sda1 464M 16M 420M 4% /boot
How do I view all available HDD's/partitions?
sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
root@ubuntu:~# sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 232.9G
├─sda1 ext4 487M /boot
├─sda2 ext4 37.3G /
├─sda3 swap 7.5G [SWAP]
└─sda4 reiserfs 187.7G /cache
sdb 465.8G
├─sdb1 1K
└─sdb5 vfat 465.8G MOVIE
root@ubuntu:~#
root@ubuntu:~# sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
sda 232.9G
├─sda1 ext4 487M /boot
├─sda2 ext4 37.3G /
├─sda3 swap 7.5G [SWAP]
└─sda4 reiserfs 187.7G /cache
sdb 465.8G
├─sdb1 1K
└─sdb5 vfat 465.8G MOVIE
root@ubuntu:~#
Subscribe to:
Posts (Atom)