Skip to main content

Mounting CIFS/Samba from OSMC (raspberry pi) to Windows

There are severals ways to mount samba share folders into OSMC.

the first step is to turn on the SSH Services in your OSMC
go to setting OSMC and choose services
by default OSMC SSH will use osmc as its default user and osmc as its default password.

second step is to share the folder(s) you want to share to osmc
to do this just do a share configuration in windows,
there are many links to provide this tutorial.

third step is to mount the shares folder(s) to the OSMC.

forth step is to make sure that the cifs-util module are loaded to the osmc

fifth step is to mount them
you can use the mount command
or you can mapped the samba folders through fstab

to do manual mount type in:
mount -t cifs -o username=Administrator,password=Password /// /mnt/

or you can edit the /etc/fstab
//source_ip/share_folder /target_directory cifs username=YOURUSERNAME,password=YOURPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777

That's it
but when osmc rebooted, you might want to re-mount if you are using mount command
if you are using fstab, then you must refresh and re-mount them using the "mount -a" command

for SMBv2 and above:
additional parameter required are sec and vers parameter
so it would looks like this
//source_ip/share_folder /target_directory cifs sec=ntlmv2,vers=2.0,username=YOURUSERNAME,password=YOURPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777

I get flickr in network connection sometimes with my raspberry pi, but it because it is undervoltage, since i'm not using the recommended output as per raspberry documentation

Comments

Popular posts from this blog

Installing g2ipmsg in intrepid

prerequisites package: - gettext - libpanel-applet2-dev - libgnomeui-dev - gnome-network-admin command #sudo apt-get install gettext libpanel-applet2-dev libgnomeui-dev gnome-network-admin donlod g2ipmsg from here i'm using the g2ipmsg-0.9.6 source package and ubuntu intrepid 8.10 after that untar the package with: #tar zxvf g2ipmsg-0.9.6.tar.gz #cd g2ipmsg-0.9.6 # ./configure --prefix=/usr --sysconfdir=/etc --enable-systray \ --with-ext-charcode=CP932 --disable-doxygen-doc Check if the configure command is working with no errors and after there are no errors go to the next step which is: #make Check if this has errors too hopefully the prerequisites are helping, and after a sucessfull 'make' the next step is: #make install after this u will be able to check if the installation successfull or not simply just try to find an icon on your desktop or list this file 'g2ipmsg' in /usr/bin folder. after u are able to find the file try to run in with: $sudo /usr/...

Windows Subsystem for Linux (WSL)

APA ITU WSL? Windows Subsystem for Linux adalah sebuah fitur windows 10 yang memungkinkan kita menjalankan native linux command-line tools langsung di windows. UNTUK SIAPA? WSL diperuntukkan untuk para developers -- terutama web developers dan mereka yang akan/sedang mengerjakan project open source. dengan ini mereka yang memerlukan BASH untuk menjalankan Linux command-line tools seperti awk, ls, ruby, python dll. dapat memanfaatkan tools ini agar bisa running bersamaan dengan windows. APA YANG BISA DILAKUKAN WSL? WSL menyediakan sebuah aplikasi bernama Bash.exe yang, ketika di run, akan membuka sebuah konsol Windows baru dimana dengan konsol ini kita dapat menjalankan shell Bash. Dengan menggunakan Bash, Kita bisa menjalankan tool dan aplikasi Linux command-line. Misalnya, ketik lsb_release -a dan tekan enter; Anda akan melihat detil distro Linux yang sedang berjalan. Kita juga dapat mengakses filesystem komputer lokal Anda dari dalam shell Bash Linux - Kita akan menemukan d...

Mengakses iLO dari ESX CLI

untuk melakukan perubahan pada konfigurasi iLO, kita bisa menggunakan web Interface yang tersedia, tapi, jika hal ini tidak memungkinkan ada alternatif mengubah konfigurasi ini melalui ESX CLI (command line interface). tools yang akan dipakai berupa script dengan file bernama hponcfg pertama tama kita harus mempunyai akses SSH terhadap ESX yang dimana iLO nya akan kita ubah. 1. lakukan koneksi SSH dan login dengan user root  kedalam ESX mesin. lalu masuk ke dalam direktori /opt/tools 2. untuk melihat help dari perintah hponcfg  kita dapat menjalankan perintah: #./hponcfg -h   3. untuk mengambil informasi server: #./hponcfg -g     4. untuk melakukan perubahan pada konfigurasi iLO kita harus mengexport konfigurasi ini kedalam suatu file, dan file ini akan kita edit lalu setelah pengeditan pada file konfigurasi selesai, file ini akan kita upload ke dalam iLO dan iLO akan kita reset (restart). untuk mengexport konfigurasi iLO: #./hponcfg -w /tmp/hp-ilo.txt  gu...