View Full Version : How to Install Samba to access PC shares ??
fibroman
07-05-2007, 04:52 AM
Hi. I would like to wirelessly connect my new Nokia 770 to my PC so that I may be able to tranfer files wirelessly such as PDF documents and mp3 files.
I was trying to install Samba, but it says that I still need to find Smbfs and install that as well. Where can I find this Smbfs file and how do I add it ??
realjobe
07-30-2007, 04:59 AM
Same here. There seems to be none helps for this problem.
How to access windows workgroup's shares with N770?
What to install on 770 and where. All those FAQ on maemo.org with CIFS and NFS are not too clear.
We need simple instructions how to implement this!
Someone just asked about this about week ago: howtoaccesswindowscifs (http://maemo.org/community/wiki/howtoaccesswindowscifs/)
realjobe
07-30-2007, 07:20 AM
Like i said, the info on that FAQ in inacurate, for instance:
'mount -t cifs //_10.10.10.10/''Nokia770_ myPC -o domain=noworknogroup,user=urbancowboy,password=sec retpassword **
WTF. is the ' mark nessessary and the ** marks also? after cleanin those up, system hails invalid param...
so, what to write to etc/fstab?
realjobe
07-30-2007, 07:37 AM
One more thing: If the HowToAccessWindowsCIFS manual there are two versions of cifs.ko module:
cifs.1.2006.26-8.tar.gz (N770, first IT2006 release)
cifs.2.2006.39-14.tar.gz (N770 second IT2006 release)
what about "SU-18_2006SE_3.2006.49-2_PR_F5_MR0_ARM.bin" flashed N770?
jrock2004
07-30-2007, 04:42 PM
what about this.....
https://garage.maemo.org/projects/smbbrowser/
realjobe
07-31-2007, 12:51 AM
Still this install screams for smbfs pakages..
I found (acording to relasenotes on SambaBrowser)
smbfs and commons from http://maemo-hackers.org/apt/pool/main/s/samba/
but N770 hails for incompatible package from all of the deb files.
smbfs_3.0.22-3_armel.deb for instance and samba-common_3.0.22-3_armel.deb.
The reason why I try do download them to MMC is that I can't find smbfs on my AppManager, although I have http://maemo-hackers.org/apt/ mistral main included..
I'm very confused here. :)
realjobe
07-31-2007, 10:41 AM
So much for others advices.
With below, regular XP's / servers Workgroup with shares is visible to N770:
My environment:
* N770 OS2006 3.2006-49-2
* Workgroup with several XP's and Windows Server 2003 with NO extra installs like NFS or anything. just shares done.
* DropBear SSH installed on Device and Wi-Fi connection LAN ofcource.
1. Extract with PC the http://handhelds.org/~fanoush/maemo/cifs.2.2006.39-14.tar.gz out comes cifs.ko
2. copy this via USB Cable or via MMC reader to you MMC and open File Manager.
3. Copy cifs.ko to your Devices Decuments
4. open SSH connection to N770
- mdkir /etc/modules
- cp /home/user/MyDocs/.documents/cifs.ko /etc/modules/
- cd /etc/modules/
- insmod cifs.ko, system hails "Using cifs.ko".
- cd /home/user/MyDocs/.documents/
- mkdir MyServer
- cd MyServer
- mount -t cifs //192.168.0.x/sharename ./ -o username=user -o password=pass
LEAVE - ON THE FRONT AWAY! :)
Close SSH's and File Manager etc.. Open File Manager and NOW you have under Documents/MyServer in which your files is visible. I do not have Windows FireWall, and My FW did not hail for any alter incoms (Server High settings).
Hope this helps.
realjobe
07-31-2007, 11:01 AM
One problem: Settings does stick so you have to insmod and mount after booting the device.
Question: acording to mount what to put in etc/fstab?
and where to add insmod so that module is automatically started?
:)
Hedgecore
07-31-2007, 02:01 PM
SMBBrowser successfully saw my shares (actually a "windows" share on my Ubuntu desktop) but couldn't mount it. Anyone have any luck?
You can add a fstab entry for the SMB mount but you cannot have it mounted at boot time as the network interface is still down at this point.
Add a line in your /etc/fstab file that looks like this, replacing my info with your own (BACKUP /etc/fstab FIRST):
//10.0.0.3/Raid5 /home/user/MyDocs/.documents/MountPoint cifs username=shareusername,password=sharepassword,rw,n oauto 0 0
I should note storing your password in plain text is pretty ******ed. There really isn't a solution to storing the password in a encrypted format, I believe that CIFS uses a plaintext auth. :/. I would suggest making an account on your computer with permission ONLY to a specific share. While this still sucks its better than giving out admin rights to everyone.
As for auto-insmoding, I'm not sure of the "proper" way to do it. You could add a line to /etc/init.d/minircS, a line above "exit 0" add something like "insmod /path/to/ko/cifs.ko". If anyone knows the proper way to do it please share.
If you do both things I describe above you just need to run the command "mount /home/user/MyDocs/.documents/MountPoint/" to mount it, and a similar command to umount. The statusbar graph plugin would be pretty neat if you added those commands to it
smackpotato
07-31-2007, 06:40 PM
smbbrowser is a very persnickedy app. here are the steps
1)file|set user/password
2)file|Scan host
3) this is the tricky one , do not click on mount, click on the directory to be mounted in the tree view on the main window, for me it is Network,music,storage. so i click on storage.
4)your drive is now mounted quickly close the app before it crashes
gnuite
07-31-2007, 06:41 PM
I should note storing your password in plain text is pretty ******ed. There really isn't a solution to storing the password in a encrypted format, I believe that CIFS uses a plaintext auth.
The "solution" is to store authentication information on your Nokia 770 in a root-owned file with permissions 600, so that only root can read/write the file. The file has a simple format:
username=value
password=value
You then use the "credentials=/path/to/credentials.file" option in fstab (or on the command line with -o), to keep the password from being stored in the fstab file (or shell history). Of course, anyone with root access to your Nokia device can also discover the password...
Over the network, Windows shares use encryption by default, and samba does, too, so long as you don't specify the option "encrypt passwords = no". So your password is safe on the wire (or over wifi).
It's still a good idea to use a username other than root.
jrock2004
07-31-2007, 10:42 PM
So much for others advices.
With below, regular XP's / servers Workgroup with shares is visible to N770:
My environment:
* N770 OS2006 3.2006-49-2
* Workgroup with several XP's and Windows Server 2003 with NO extra installs like NFS or anything. just shares done.
* DropBear SSH installed on Device and Wi-Fi connection LAN ofcource.
1. Extract with PC the http://handhelds.org/~fanoush/maemo/cifs.2.2006.39-14.tar.gz out comes cifs.ko
2. copy this via USB Cable or via MMC reader to you MMC and open File Manager.
3. Copy cifs.ko to your Devices Decuments
4. open SSH connection to N770
- mdkir /etc/modules
- cp /home/user/MyDocs/.documents/cifs.ko /etc/modules/
- cd /etc/modules/
- insmod cifs.ko, system hails "Using cifs.ko".
- cd /home/user/MyDocs/.documents/
- mkdir MyServer
- cd MyServer
- mount -t cifs //192.168.0.x/sharename ./ -o username=user -o password=pass
LEAVE - ON THE FRONT AWAY! :)
Close SSH's and File Manager etc.. Open File Manager and NOW you have under Documents/MyServer in which your files is visible. I do not have Windows FireWall, and My FW did not hail for any alter incoms (Server High settings).
Hope this helps.
That is really cool. The only thing I hate is everytime I reboot I have to do this over again. So I created a script. All you have to do is edit the sharename and the username and password.
Then when ever you reboot you open up xterm gain root and go to directory where file is and type:
sh ./cifs.sh
Here is the file
#!/bin/bash
cd /etc/modules/
insmod cifs.ko
mount -t cifs //ipaddress/sharname /home/user/MyDocs/.documents/MyServer -o username=user -o password=pass
Save file as cifs.sh
Hope this helps
P.S I have not tried but for the people who are afraid with passwors unencypted you could try the following
create a file called credentials.file in it type
username=user
password=pass
then in the cifs change the mount line to this
mount -t cifs //ipaddress/sharname /home/user/MyDocs/.documents/MyServer credentials=/path/to/credentials.file
Again not sure but I think that will work.
Big_DawgTE
08-29-2007, 11:35 AM
I can't figure out why this is not working for me. After I run mount -t cifs //192.168.15.10X/part1 ./ -o username=AAAA -o password=BBBB, it returns failed: No such Device
mkstevo
08-29-2007, 02:57 PM
Just a thought ...
But faced with this very question I decided to load the PC with FileZilla , and then load the 770 with maemoFTP . I can now grab files from the PC using FTP .
Not saying it is ideal , but it was at least relatively easy . The hardest part was figuring out the settings to share different directories in FileZilla .
visit my website it is much easy to file share and you can do it from anywhere in the world.
Is it ok to post links here??(pm me if not)
nokia-770.co.nr
it will take you under 5 mins to set up :)
And how about NFS or Samba on OS2007HE?
Since I've found Wizardmounter I tried to figure why it's not working.
I've found by reading logs on my NFS server - there's something wrong - I needed nfs-common at my n770.
Graphical app-manager didn't show "nfs-common" but apt-cache search proved it to exist.
I installed via apt-get and... ruined my osso-connectivity* - all was removed.
After that I had to reflash my device since I've had no ability to fix it without any connection.
That's for NFS - it doesn't work (i configured it via command line as I did on my Debian desktop).
For samba - I can't find smbfs usable with OS2007HE to be able to mount smb shares.
The question is - doesn't exist - or maybe I'm asking the wrong questions?
sondjata
02-14-2008, 05:04 PM
You'd think that by now a simple installable gui means of mounting SMB shares (AFP Shares would be nice too) would be available. I mean I can use a terminal but sheesh can we think like consumers for a minute? Who do you expect to fire up the terminal, save password files and chmod files for root and fstab sh*t just to access files on their desktops or laptops? C'mon folks. I know we have a bunch of Apple haters in here but think different(ly).
You'd think that by now a simple installable gui means of mounting SMB shares (AFP Shares would be nice too) would be available. I mean I can use a terminal but sheesh can we think like consumers for a minute? Who do you expect to fire up the terminal, save password files and chmod files for root and fstab sh*t just to access files on their desktops or laptops? C'mon folks. I know we have a bunch of Apple haters in here but think different(ly).
The GUI exists (wizardmounter) - works but - doesn't mount - simply because proper command line mounting attempts also fail.
I suppose that wizardmounter would do the job only if there was a capability of using smbfs or nfs.
Hedgecore
02-15-2008, 10:22 AM
I never got wizard mounter to work at all... I did get cli mounting to work after installing the cifs module about a year ago.
I played with wizard mounter but it was pretty unpolished. Should I try waterboarding it to get a verbose error message? :)
And I'm surprised too that there's not a simple GUI out there that takes care of this.
I'm having trouble using cifs.ko with OS2007HE.
cifs.ko for OS2006 loads but without any message (and according to wiki it should itroduce itself as loaded) - lsmod shows module loaded but I can't mount my linux samba share (maybe I'm doing something wrong at small (770) or bigger (server) end?).
cifs.ko for OS2007 doesn't load - throws out some errors when I try to insmod this one.
I've done my CIFS connection.
I lacked CIFS kernel module at my debian box.
After selecting this in kernel - I'm able to acces my shares.
I use OS2007HE on my 770 - insmod'ed kernel cifs.ko module from
Fanoush set: modules-2.6.16.27-omap1.tar.gz then mounted my
remote directory.
I have to browse around for some solution how to set uid or something more in mount parameters to have write access enabled for gui user since now it works only for root from the command line at the tablet side. I can't upload anything using gui-filemanager.
Conclusions:
"Updating" baloon - when opening big share makes me dizzy because it takes quite long.
Performance - when "streaming" over wifi - even small video (320x240 divx or mpeg1) - mplayer output is far from being smooth.
CIFS itself eats up to about 30% of the cpu time (as reported via top command).
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.