[Q] mount VPN-drive with rw permissions on sdcard - General Questions and Answers

dear all,
this is my first thread - I used the search (as usual) but this time neither XDA forums nor goolge could find a answer for my issue... so lets go:
I have a working VPN connection (openVPN) to my QNAP NAS. Furthermore I am able to mount my QNAP on the sdcard - so far everything is great ( I am able to listen to my music and have access to all my files from anywhere)
BUT: whatever I try I do not get write access at this folders...
setup:
- VPN connection via "OpenVPN Settings"-app
- mounting with "Script Manager"-app
code:
#!systm/bin/sh
#insmod /system/lib/modules/cifs.ko
mount -t cifs -o username=user, password=pass, -rw 'host' /sdcard/nas
I am not familiar with linux at all. I just googled for several ideas and connected them.
Any help is highly appreciated.
rgrds
p.s.: device G2 @ andro alpha v10

Nobody else wanna have a 1.000 GB sdcard?
;-(
Sent from my HTC Vision using XDA App

Related

Help with CIFS mounting

Hey,
I am trying to mount CIFS and NFS shares from my G1 but with no success.
Right now I have JF-RC33 1.41 and I am trying to do the mounting with a guid I found on Android Community forum.
http://androidcommunity.com/forums/f28/browse-your-computer-from-android-9292/
I successded doing it with RC30 but for some reason I can't mount my shares again in RC33.
When I am trying to run the command
busybox insmod cifs
It returns an error saying that it can't find the cifs module.
Does anyone can help me fix this, since there is a nice application gscript it can be really easier now to mount remote shares.
Thanks,

[SOLVED] How to import digital certificates on Android 2.2

Hello,
I'm using Motorola Milestone 2 A953 (Android 2.2)
I used z4root to root it. Successfully.
I am trying to follow the tutorial "How to Import a Private Root Certificate to an Android Device to be Used with Citrix Receiver for Android" (http://support.citrix.com/article/CTX125431).
/system is already mounted as following:
c:\android-sdk-windows\platform-tools> adb shell
$ su
# mount
/dev/block/mmcblk1p21 /system ext3 rw,relatime,barrier=1,data=ordered 0 0
So I don't need to remount it as (right?):
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
c:\android-sdk-windows\platform-tools>adb push cacerts.bks /system/etc/security
But when I try the command under appears the error:
"failed to copy 'cacerts.bks' to '/system/etc/security/cacerts.bks': Permission d
enied"
Any ideas, please?
Cordially.
Hello,
I copied the file cacerts.bks using Windows Explorer to the sdcard.
Then using an app Terminal Emulator on the smartphone, I copied the file to /system/etc/security.
I can log on the Metaframe, but it shows another error now: "SSL/TLS error: The certificate validation failed."
So, I think it's time to a new thread.
Regards.
Hello,
After I did do this procedure, I'm having several issues with other apps such as Logmein Ignition, Amazon Kindle and Trillian. They are showing connection errors so they are not working.
Any ideas, please?
Nothing is perfect.
cviniciusm said:
Hello,
After I did do this procedure, I'm having several issues with other apps such as Logmein Ignition, Amazon Kindle and Trillian. They are showing connection errors so they are not working.
Any ideas, please?
Click to expand...
Click to collapse
Hello,
I reverted to the original cacerts.bks to be able to run these apps.
Regards.
P.S.: the new cacerts worked, I was able to use Brazil's CA certs, but unfortunately I lost the old ones.
Hello,
I have installed the Brazil's CA certs using "Certificate Manager" and "Certificate Installer" by Dolphin HD interface.
So I'm able to use Citrix Receiver with success.
Help on getting Citrix Receiver certs fixed
cviniciusm said:
Hello,
I have installed the Brazil's CA certs using "Certificate Manager" and "Certificate Installer" by Dolphin HD interface.
So I'm able to use Citrix Receiver with success.
Click to expand...
Click to collapse
I'm trying (and trying) to get Citrix Receiver going, and don't quite understand your post. I've loaded Dolphin, but am not clear what step 2 is.....
Would you mind explaining a bit more?
Hello,
Go to a web page with certificates that you want to import, then touch each certificate so the "Certificate Manager" and "Certificate Installer" will appears. The rest is intuitive.
Regards.
cviniciusm said:
Hello,
Go to a web page with certificates that you want to import, then touch each certificate so the "Certificate Manager" and "Certificate Installer" will appears. The rest is intuitive.
Regards.
Click to expand...
Click to collapse
Thank you for responding. I'll give it a shot.

[Q] Cifs Manager help

Does anybody have cifs manager working and able to mount their shared network drive? I tried pushing two different cifs.ko modules using adb.. but when I go try to mount my network drive I get "no such device". Neither one seems to work. I'm using the tiamat 1.4.1 kernel.
My NAS drive is shared, I'm able to access it on any other computer through the web, so I know that part should be fine.
Please help!
update:
I reflashed the 1.4.1 kernel and it seems to be recognizing the cifs.ko file now, because now I'm getting a different error when trying to mount:
When I only put admin as the username, I get "permission denied", but when i try to put the password in for my NAS, it says "no such device or address".

[Q] Tiamat Manta Ray and OpenVPN

Having installed Tiamat 2.0.1 Manta Ray, I would like to be able to access OpenVPN. The list of Tiamat features indicates OpenVPN support, but I haven't found how this can be done.
Could someone help with this?
Thank you
Gordon
I never received any replies to my initial post regarding using OpenVPN, so I'd like to try again. If Manta Ray (no, I am not using Hammerhead yet) has built in support for OpenVPN, what do I need to do? Is it just a matter of creating and installing conf and certificate files. If so, where should they be placed?
Anyone had any experience of this?
Thank you
Gordon1M
http://forum.xda-developers.com/showthread.php?t=972550 tutorial work great for me, but I didn’t need to put the tun.ko in place, it was already there in the last taimat kernel.
Thanks for the reply. I saw the tutorial, but it seemed a bit old, given that Manta Ray has OpenVPN included in the ROM. However, maybe I should look at it again to see if I can adapt it. One downside of the tutorial seemed to be that one has to set things up each time OpenVPN is used.
Anyway, it's encouraging that OpenVPN is working well for you.
I have tried to follow the tutorial at http://forum.xda-developers.com/showthread.php?t=972550, but I can't get it to work. My Xoom is rooted. The steps I have taken are as follows:
Install Busybox ... Manta Ray comes with Busybox installed in /system/xbin/busybox, so I have skipped this step.
Install Openvpn Installer ... done.
Run Openvpn Installer ... In Manta Ray, the file openvpn is already installed in /system/xbin. There is also a file openvpn-up. I don't know what this file is for. Given that openvpn is already installed, I moved the original to another location, so that the Openvpn Installer could do its work, without any potential clash with an existing copy of openvpn. I then ran Openvpn Installer and, as instructed, specified /system/xbin as the installation location. The installer also asked me for the location of ifconfig and route, offering /system/xbin/bb, which I selected. I then let the installer continue, but there was no indication of any failure (the tutorial says it will fail but that it would leave "the bit we need on the sdcard"). I can't see that anything has been left on sdcard. Furthermore there is no /mnt/sdcard/openvpn directory (was this what should have been left?).
Regardless of the above, I continued with the tutorial and opened a terminal shell.
su worked fine.
I made the /system/xbin/bb directory without a problem.
I created the two symbolic links for busybox
I then tried to: cp /mnt/sdcard/openvpn /system/xbin/. Of course, this failed, as the source directory, /mnt/sdcard/openvpn did not exist.
So, where do I go from here? It seems that the Openvpn Installer should be doing something that it isn't. Should it be creating the /mnt/sdcard/openvpn directory and putting something in it? If so, this is not happening.
Any help much appreciated.
Thank you
Gordon
In the end, the solution was straightforward:
Install BusyBox and provide a link for ifconfig and route in a newly created directory, /mnt/system/bb.
For Manta Ray, openvpn was already there in /system/xbin (already set to chmod 555), so it wasn't necessary to install it.
tun.ko was also available in Manta Ray in /system/lib/modules, so I just copied it to a newly created directory /mnt/sdcard/openvpn.
Also, I placed (via a USB stick) the openvpn configuration files and certificates, client.ovpn, client2.key, client2.crt and ca.crt in the /mnt/sdcard/openvpn directory.
My existing Windows version of client.ovpn needed to be edited (on a PC) to specify the key and crt names that I had chosen (client2.key and client2.crt).
I saved client.ovpn in Linux file format (using LF for end-of-lines). Whether this was really necessary. I am not sure.
The last step was to use the OpenVPN Settings app from the Market to specify the paths for the location of openvpn and its configuration/certificate files.
From a remote location, I connected through the openvpn tunnel (having turned it on with VPN Settings) to my openvpn server and was able to see my home LAN, check IMAP4 e-mail on my home mail server (using LAN IP addresses) and use a VNC client.
So, this has worked all very satisfactorily in the end, despite my initial teething problems. Now that I have done it, it all seems very simple!!

Mounting Samba Share Anonymous via CIFS Manager

Hi,
Have looked around and cannot find a solution to the following.
I've setup my main NAS using anonymous or guest access to everything no user or pass required etc.
I'm attempting to mount in CIFS manager and others but no luck says mounts but when i try and open nothing. Basically it should just be 192.168.0.10/public and straight there.
I've tried CIFS with the "guest" username and no luck using file expert and anonymous access i can see the share but i really want to mount it...I know CIFS is working as i've used it to mount my downloading NAS fine....
Any ideas?

Categories

Resources