http://wiki.webos-internals.org/index.php?title=Samba_Access&feed=atom&action=historySamba Access - Revision history2024-03-29T10:09:14ZRevision history for this page on the wikiMediaWiki 1.35.1http://wiki.webos-internals.org/index.php?title=Samba_Access&diff=1575&oldid=prevHopspitfire at 16:56, 22 July 20092009-07-22T16:56:43Z<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 16:56, 22 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This document is still a work in progress, as once the installation is complete you will have access to your Pre via your home network but it will disable audio i am still in the process of locating why this happens. But this is a great way to just drag and drop files from your Pre to your PC without having to load up a FTP client.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This document is still a work in progress, as once the installation is complete you will have access to your Pre via your home network but it will disable audio i am still in the process of locating why this happens. But this is a great way to just drag and drop files from your Pre to your PC without having to load up a FTP client.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">There have been reports of losing the ability to download apps from the App Catalog. '''Use at your own risk.'''</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''Note: Run this in developer mode at first, if you are not in developer mode this will not work properly.'''</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>'''Note: Run this in developer mode at first, if you are not in developer mode this will not work properly.'''</div></td></tr>
</table>Hopspitfirehttp://wiki.webos-internals.org/index.php?title=Samba_Access&diff=1574&oldid=prevHopspitfire: New page: This document is still a work in progress, as once the installation is complete you will have access to your Pre via your home network but it will disable audio i am still in the process o...2009-07-22T16:55:55Z<p>New page: This document is still a work in progress, as once the installation is complete you will have access to your Pre via your home network but it will disable audio i am still in the process o...</p>
<p><b>New page</b></p><div>This document is still a work in progress, as once the installation is complete you will have access to your Pre via your home network but it will disable audio i am still in the process of locating why this happens. But this is a great way to just drag and drop files from your Pre to your PC without having to load up a FTP client.<br />
<br />
'''Note: Run this in developer mode at first, if you are not in developer mode this will not work properly.'''<br />
<br />
Step 1: Login to your rooted Pre<br />
<br />
Step 2: Remount your Pre with read/write permissions<br />
<pre><nowiki><br />
sudo mount -o remount,rw /<br />
</nowiki></pre><br />
<br />
Step 3: Install the needed components from ipkg-opt<br />
<pre><nowiki><br />
sudo ipkg-opt update<br />
sudo ipkg-opt install samba<br />
</nowiki></pre><br />
^^The following packages are installed with Samba: '''popt, readline, openldap-libs, openssl, libdb, gdbm, cyrus-sasl-libs'''^^<br />
<br />
Step 4: Create/Edit Samba's configuration file<br />
<pre><nowiki><br />
sudo vi /opt/etc/samba/smb.conf<br />
</nowiki></pre><br />
<br />
Step 5: Use the following configuration file.<br />
<pre><nowiki><br />
#Samba 3.2.12-1 from ipkg<br />
#configuration file for Palm Pre WebOS 1.0.3<br />
<br />
[global]<br />
workgroup = WORKGROUP<br />
server string = PalmPre Samba<br />
security = SHARE<br />
smb passwd file = /opt/etc/samba/smbpasswd<br />
encrypt passwords = yes<br />
guest account = nobody<br />
bind interfaces only = yes<br />
config file = /opt/etc/samba/smb.conf<br />
log file = /var/log/samba.%m<br />
socket options = IPTOS_LOWDELAY TCP_NODELAY<br />
interfaces = eth0, lo<br />
debug level = 1<br />
max log size = 10<br />
load printers = no<br />
domain master = no<br />
local master = no<br />
prefered master = no<br />
domain logons = no<br />
wins support = no<br />
wins proxy = no<br />
dns proxy = no<br />
<br />
[tmp]<br />
comment = Temporary File Space<br />
path = /tmp<br />
read only = yes<br />
guest ok = yes<br />
public = yes<br />
create mask = 0744<br />
available = yes<br />
browseable = yes<br />
<br />
[root]<br />
comment = PalmPre Root Directory<br />
path = /<br />
read only = no<br />
browseable = yes<br />
guest ok = yes<br />
</nowiki></pre><br />
^^This is a basic configuration file i used, and it works out quite well: also a side note, Nano is much easier to work with then Vi i would suggest grabbing that package as well^^<br />
<br />
Step 6: Add you a user to the system for sharing purposes. (where username = your account name)<br />
<pre><nowiki><br />
sudo /opt/bin/smbpasswd -a username<br />
</nowiki></pre><br />
<br />
Step 7: Change the samba service to activate for testing.<br />
<pre><nowiki><br />
sudo vi /opt/etc/init.d/S08samba<br />
</nowiki></pre><br />
<br />
Change:<br />
<pre><nowiki><br />
<br />
#!/bin/sh<br />
<br />
# set samba_active=1 to activate samba<br />
samba_active=0<br />
</nowiki></pre><br />
<br />
To:<br />
<pre><nowiki><br />
#!/bin/sh<br />
<br />
# set samba_active=1 to activate samba<br />
samba_active=1<br />
</nowiki></pre><br />
<br />
Step 8: Test if Samba is functioning properly<br />
<pre><nowiki><br />
sudo /opt/etc/init.d/S08samba<br />
</nowiki></pre><br />
<br />
Step 9: set your system back to default read only state<br />
<pre><nowiki><br />
sudo mount -o remount,ro /<br />
</nowiki></pre><br />
<br />
------<br />
Because i have not figured out why we lose audio when this is installed the following is not recommended.<br />
<br />
UpStart for Samba.<br />
<pre><nowiki><br />
description "Samba Daemon for WebOS"<br />
version 1.0<br />
<br />
# don't start until the WebOS finishes it's normal boot<br />
# that way no delay is added to the GUI startup<br />
start on stopped finish<br />
stop on runlevel [!2]<br />
<br />
# don't try to log any output<br />
console none<br />
<br />
# -D sets smbd & nmbd to act as a daemon<br />
exec /opt/sbin/smbd -D<br />
exec /opt/sbin/nmbd -D<br />
<br />
pre-start script<br />
# Add firewall rule to make sure we're not blocking anything<br />
# This will only be available via eth0 (wifi)<br />
/usr/sbin/iptables -I INPUT -i eth0 -p udp --dport 137 -j ACCEPT<br />
/usr/sbin/iptables -I INPUT -i eth0 -p udp --dport 138 -j ACCEPT<br />
/usr/sbin/iptables -I INPUT -i eth0 -p tcp --dport 139 -j ACCEPT<br />
/usr/sbin/iptables -I INPUT -i eth0 -p tcp --dport 445 -j ACCEPT<br />
end script<br />
</nowiki></pre><br />
^^This has not been tested fully as with audio being out, i didn't bother to test it more but the samba portion works as intended^^<br />
<br />
Credits go out to everyone who taught us how to root the pre's as well as the fine folks who got us optware-feeds!</div>Hopspitfire