
Originally Posted by
Insane Lunatic
here's a new question: How do I get to that file to make the changes? I have rooted the device, but now what?
First off you need to get to the Android Linux shell; there are a couple of ways to do that.
First option: You could install an Android terminal application; there are many out there but I can not confirm which one works since I do not access it that way. Maybe someone else can provide a link to a terminal app that works fine on the PBO Alpine. My guess would be that most of the terminal apps will work and this option is slightly easier than the second option since you will be at the Android Linux shell as soon as you start the application.
Second option: This is the one I used since I do development on the Android; is to use the Android Debug Bridge "adb". You can have access to this command after you install the Android software development kit (SDK) on your computer. Google is your friend for that one and installation of the SDK is pretty straight forward. To be honest I am not even sure if you need to install the whole SDK; it is possible that just having the adb file is enough??? I don't know. Once you have adb available (/Android-sdk...../platforms-tools/) you can access the PBO Alpine Linux shell by issuing the following command (Dos/Linux prompt):
Code:
./adb connect [PBO_Alpine_IP_Addresss] ex: ./adb connect 192.168.1.2
./adb shell
You should now be on the Android linux shell
-----------------------------------------------------------------------------------------------
Everything that follows assume that you were successful in accessing the Android Linux shell. All the following commands are issued at the Android linux shell. Now there are also a couple of ways to edit the "/data/data/com.funkyfresh.samba/files/smb.conf" but first off you need to be root so you need to issue the following command:
Beware that the first time you issue that command you should look at your TV screen because the Root app will ask whether it is ok to allow root access to that shell. Just use the remote control and enter that it is ok always if you do not want to do this everytime you log in as root in a shell.
Ok you are now a super user (this is like god mode in a game
) and have access to everything and can really screw things up so make sure you type in the command correctly.
As I mentioned before there are really two ways to edit the file. If you use Z4root to root your PBO Alpine this app also installed busybox for you so you have some extra commands available to you other than the one available in the standard android toolbox. Ok first way is quite easy if you are familiar with the linux "vi" editor and can edit the file right on the PBO Alpine using this command:
Code:
busybox vi /data/data/com.funkyfresh.samba/files/smb.conf
You should now be in the vi editor with file open and able to edit that file to suit your needs; save it and you are done.
The second way if you just hate "vi" is to copy the smb.conf file to a USB Stick connected to your PBO Alpine and then take that stick to your computer for editing and then copy it back to the PBO Alpine. Beware that on a window machine many editor add stuff; you must use a plain text editor to make the changes; even notepad can cause problem; I recommend notepad++ for any editing on a window machine. Ok here we go with the command required:
To copy to the USB Stick:
Code:
# busybox cp /data/data/com.funkyfresh.samba/files/smb.conf /mnt/usb81/ ----> Substitute usb81 for the proper USB stick mount point
If you do not have busybox installed you can do the following also:
Code:
# cat /data/data/com.funkyfresh.samba/files/smb.conf > /mnt/usb81/smb.conf
After the editing is done you can copy it back to the PBO by issuing the following commands:
Code:
# busybox cp /mnt/usb81/smb.conf /data/data/com.funkyfresh.samba/files/ ----> Substitute usb81 for the proper USB stick mount point
Without busybox:
Code:
# cat /mnt/usb81/smb.conf > /data/data/com.funkyfresh.samba/files/smb.conf ----> Substitute usb81 for the proper USB stick mount point
Ok hopefully there aren't any typos in there; I do not have access to my PBO right now so hopefully I have all the paths and filename correct. By the way just as a side note with adb you can also use the command ./adb pull [path/filename] (take file from the PBO to your computer) and ./adb push [path/filename] (take file from your computer and copy them to the PBO).
Anyhow I hope this helps.
Cheers!!!