Related
Hello world ! 8)
I mannaged to mount my complete shares on my windows Network to SD-Card ...
I'm using CM6 RC1 and i can simply do a :
modprobe cifs
mount -t cifs //192.168.0.X/share /sdcard/smbshare -o username=XXX,password=YYY
on Computer (PC-here 192.158.0.X) you have to make a share with the name "share" - on SDCARD in your android you have to make a directory with the name smbshare - the dir you are going to mount the PC-Share into)
magicly my sdcard is now a 1,5 Terabyte hdd ... 8)
No more streaming clients are need - just access MP3/DivX/MKV/PDF/etc.
WITHOUT DOWNLOADING TO SDCARD FIRST ...!
(watched a DivX movie directly with Rock-Player 5 minutes ago ... no copy to SDCARD nessasary)
Problem : after a reboot everything is gone ... 8) ... no automatic rermount - no difference between different WLAN-Routers
I am not firm enough on linux to write a script and do the neccasary things to get some logic behind this feature.
It would be wonderful if someone can programm a gui which fires up the nessasary mount when connecting to a wlan - differing between different wlans (networks) with different ressources.
shelling arround is not the best way for android users - something GUI like (e.g. Astro with SMB Modul - but mounting the share instead of copying to sdcard) would give everyone direct access to every file on the network without the nessasary streaming.
Even VPNing to the share should be possible ... giving direct access without streaming servers like ORK/etc.
Good idea ? please add some comments ...
************************************************************
************************************************************
Edit :
A small GUI frontend for managing CIFS shares is available in the following thread:
http://forum.xda-developers.com/showthread.php?t=756158
Let the show beginn !
Very good idea.
I'll take a look into it. Maybe after the weekend. We'll see..
That sounds f**** great! 8)
Thanks for the positive reply!
Sent from my Desire using XDA App
fogbav you can use GScripts for have a link to a script that do this command for you, and have differents scripts for do the same on different WLan.
Code:
#!/bin/bash
MY_USERNAME="your_user_name_here"
MY_PASSWORD="your_password_here"
modprobe cifs
mount -t cifs //192.168.0.X/share /sdcard/smbshare -o username=${MY_USERNAME},password=${MY_PASSWORD}
Wow ... that looks promising ... will test soon.
Thank you very much for the script !
Edit : Works like hell ... thank you ! Now let's see if beidl can do some magic tricks with "usability" and "different WLAN/Shares" logic.
Thank you all ...
What firmwares are you guys using? I'm on LeeDroid 1.6 and seems like cifs is not present for me after doing 'lsmod'. Thanks.
Cyanogen. 6 RC1. So it is Froyo...
Sent from my Desire using XDA App
If someone can provide me a cifs.ko module working with the official HTC Froyo (kernel version 2.6.32.15) then I can start working on a GUI.
I honestly don't want to go back to CM until it's problems are solved and 720p is working.
beidl said:
If someone can provide me a cifs.ko module working with the official HTC Froyo (kernel version 2.6.32.15) then I can start working on a GUI.
I honestly don't want to go back to CM until it's problems are solved and 720p is working.
Click to expand...
Click to collapse
Isn't the kernel source needed to compile a module for that specific kernel?
martino2k6 said:
Isn't the kernel source needed to compile a module for that specific kernel?
Click to expand...
Click to collapse
Well, it depends. One of the today released ROMs has a tun and ext4 module included, still we don't have HTCs new kernel sources. The thing is that I'm sure someone here on xda has access to the private HTC repositories. I remember the old days of the G1 community when someone gave "cyrowski" (old G1 dev) a dump of HTCs private git repository.
But I guess I'll most probably try the newest CM nightly anyways. So then I can also try to write a nice little GUI.
If you can get this working on roms with no cifs in app form it will be epic. I'll be more than happy to be a tester.
Had the above script workin fine in Adams OD 3.02 but had to go back to DeFrost without cifs (I think, didn't work anyway). I miss being able to stream EVERYTHING.
You can dooooo iiiiiiit!
Sent from my HTC Desire using XDA App
Sorry if this is a nooby question. Which ROM should i try this on and what should i enter the commands in?
I am happy to test this as it looks promising.
Thanks.
Bump......
Hi... i think you have to use a non stocked rom compiled with kernel from source code like cm6 opendesire. Stock roms dont have cifs function even new 2.2 official build doesnt have it until source is released by HTC.
Sent from my HTC Desire using XDA App
So do i enter the code in a terminal app?
ukmaddnes1 said:
So do i enter the code in a terminal app?
Click to expand...
Click to collapse
Yes.
(too short blah blah blah)
i get an error with modprobe that file or directory does not exist
su
modeprobe cifs
if this gives an error ... it seems there is no CIFS modul in your rom ... use CM6 ...
again error....it seems that i don't have the module installed........can anyone upload the module and tell me where to put it ???? i mean into what folder it should be
are there any guides on adding cifs into an existing rom/kernel? dont mind doing the work, just have no idea where to start atm.
hello,
as you probably know ubuntu has bin able to run on the nexus one and evo 4g i have spoken to the dev of both the ''mods'' and he has informed me that if someone can make a kernel for the droid x with loop devices enabled and u follow hes video its possible that ubuntu can run on the droid x.he's exact words are ''You will need a new kernel image with loop devices enabled I think. I haven't tried it on Droid X yet but it should be possible with that new kernel. You should ask someone on XDA to compile a new kernel with loop device support, someone will do it.'' and im hopping someone here can do it and we can all run ubuntu on out droid x's i would do it myself if i had any idea of what to do lol.
thank you for your help and good luck to all ubuntu loving droid x users.
You can't flash a new kernel but you can probably build loop as a module.
As for ubuntu I had sucess in running Debian from my second SD partition in a chroot environment. I installed with debootsrap and have apt nmap wifi, etc. I just need to compile a compatible kernel (for ubuntu not android) for a full install.
Sent from my DROIDX using XDA App
As of right now we have no way to boot a custom kernel even if one were to be created.
yea and how long can it take for u to compile one for ubuntu and once you have compiled one for ubuntu will it actually work for booting ubuntu even in ui mode as i can use terminal but it would be more eye-candy with the UI
drew630 said:
You can't flash a new kernel but you can probably build loop as a module.
As for ubuntu I had sucess in running Debian from my second SD partition in a chroot environment. I installed with debootsrap and have apt nmap wifi, etc. I just need to compile a compatible kernel (for ubuntu not android) for a full install.
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
yea and how long can it take for u to compile one for ubuntu and once you have compiled one for ubuntu will it actually work for booting ubuntu even in ui mode as i can use terminal but it would be more eye-candy with the UI
Sorry I lost this thread. Yes if you install x you can have some eye candy. Still working on the kernel. Ill post back soon.
Sent from my DROIDX using XDA App
drew630 said:
Sorry I lost this thread. Yes if you install x you can have some eye candy. Still working on the kernel. Ill post back soon.
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
sounds good man , so will this be like a rom i install and that enables me to install ubuntu?
Gotta love open source!
can u tell me how to get debian on my droid x?
Has any progress been made on creating a loop device module and getting ubuntu( or any distro) running on our droidx?
I'm willing to test.
I have been busy lately an unable to post a mini guide on getting this done. Just had my first child!!
In anycase I haven't tried making a loop module, I am waiting for the 2.2 kernel source. But I did make a second ext3 partition on my sd card and used debootstrap to install debian. It is currently only a chroot environment but I can use apt to install pacakgrs over wifi.
Hopefully in a few days I will have some time to post a step by step. If you want to try you can do some research on debootstrapp. I used a card reader to format the sd and use debootstrap to install ubuntu or debian.
Sent from my DROIDX using XDA App
This has me obsessed now... lol
Sent from my DROIDX using XDA App
I use Ubuntu on my other PC, if I could use it on my phone I would die of happiness!
Would the same method run on d2?
Sent from my DROID2 using XDA App
I know this is an old thread already but was curious about this last night and stumbled across it. I am doing a lot more at work with Linux servers and desktop work at home also and would love to do this this just to see how it works.
Nit sure if you are still interested in this but here ya go pal!
http://androlinux.com/
It is possible under debian or ubuntu? ThX
cyberra2n said:
It is possible under debian or ubuntu? ThX
Click to expand...
Click to collapse
Wifi cracking? Lol.... packet injection needs patched wifi drivers that support it....if you are using the version of ubuntu that boots from windows mobile, it should be possible to patch the wifi driver and compile it for it..... but i dont think it would be possible with the linux versions that run inside android.....anyways, on the aircrack-ng website they have tutorials on how to compile patched wifi drivers for injection..... google it....
If youre asking this for wifi cracking, it would be much easidr just to use the pc and the linux distibition called backtrack....theres even a live cd for backtrack that requires no installation..... of course only if ur cracking ur own wifi for educational purposes....lmao
Sent from my HTC HD2 using XDA Premium App
Mmmm... I think we first need to make the kernel detect USB ethernet devices (RJ45 or WiFi). We are talking about this in this other thread:
http://forum.xda-developers.com/showpost.php?p=24163732&postcount=582
but, if we solve that problem, I think probably the injection matter could be faced in a very similar manner... or even be automatically solved.
Here is a complete tutorial about:Android Kernel(compile)+ Linaro/Sabermod/NDK.
//In the future I will add a tutorial related to undervolt., overclock, cpu governor, and others.(only Snapdragon CPU)
Kernel Features HERE
Youtube channel(if you have troubles).
Part 1: vmware+ubuntu+Installing the required files:
Linaro
Part 2: download kernel source files+ setup toolchain+jdk+abootimg
Part 3: kernel+ boot.img file
Part 4: test
Part 2/3 SABERMOD
Part 2/3 Android NDK
More:
extract .config via ADB:
compile-speed:
dump boot.img:
Change bootimg.cfg size-hex:
Create boot.img via script.sh. Much faster!!!
Linaro vs NDK:
I'll keep you updated, so stay tuned
Reserved
Thank you so much for this guide! before people had to learn from strictly written ones and it was difficult for a lot of us to pick up
oh and congrats on Portal feature!
Thank you for this guide . I can wait to try it .
Sent from my GT-I9100G using XDA Premium 4 mobile app
Sorry if its already been answered but can I use Ubuntu 14.04 to do this? what advantage does 12.04 have?
You can use either Ubuntu 14. However this does not affect anything(about kernel). But I preferred the version 12 because it is more popular, and if problems "arise", it's easier to find solutions.
!
great tutorials! any chnce of one compiling with GCC?
also man! YOUR COMPUTE IS ON STEROIDS!!!
Maybe, but in summer(I'm still busy with school). GCC needs to be changed in Part II.
also man! YOUR COMPUTE IS ON STEROIDS!!!
Click to expand...
Click to collapse
Configuration is:
Asus k53sv
-Intel Core I7 2630QM
-12 GB Ram (1333 mhz cl9)
-HDD: 750GB WD Black;
-GPU Intel HD 3000+Nvidia GT540M 2gb ddr3;
+1080p tv(monitor) but only for tutorials.
srsdani said:
Maybe, but in summer(I'm still busy with school). GCC needs to be changed in Part II.
Configuration is:
Asus k53sv
-Intel Core I7 2630QM
-12 GB Ram (1333 mhz cl9)
-HDD: 750GB WD Black;
-GPU Intel HD 3000+Nvidia GT540M 2gb ddr3;
+1080p tv(monitor) but only for tutorials.
Click to expand...
Click to collapse
yeah ive been having problems with GCC on ubuntu 14.04, on my last installation(also 14.04) all compiled fine, yet this fresh installation theres no errors but doesnt boot(stock unmodified sources) :/
What's your device? Some have a slightly different configuration(Samsung or Sony/Sony Ericsson etc.).
srsdani said:
What's your device? Some have a slightly different configuration(Samsung or Sony/Sony Ericsson etc.).
Click to expand...
Click to collapse
after days of troubleshooting i finally just found the problem..
i had exported PATH to JDK 8 in my .bashrc, i just compiled and it worked
thanks to your video making me look in .bashrc!
LEGEND!!!!
Ricky Divjakovski said:
after days of troubleshooting i finally just found the problem..
i had exported PATH to JDK 8 in my .bashrc, i just compiled and it worked
thanks to your video making me look in .bashrc!
LEGEND!!!!
Click to expand...
Click to collapse
Can this work for my s4 I9506 stock kernel
Kind of over complicated?
No need to modify .bashrc to build kernels, also nautilus-open-terminal, and synaptic arent needed in any way for kernel compilation and its kinda bad practice to auto accept with sudo apt-get install -y.
Also I dont think java is needed to build kernels (since they are mostly C and assembly code), but oracle java 6 is usually what is recommended for android builds.
Basically all you really need to do is install the required packages, download kernel source and desired toolchain, then run these lines in terminal to get your zImage-
export ARCH=arm
export CROSS_COMPILE= <directory to toolchain>
make <your kernel default config>
make -j<number of threads>
That way makes it much easier to try out different toolchains and toolchain versions
Buddy, mention clearly of which device u r using, n on which device it will work.:laugh: by the way nice work
Niku-Droid said:
Buddy, mention clearly of which device u r using, n on which device it will work.:laugh: by the way nice work
Click to expand...
Click to collapse
kernel building for different devices is pretty much all the same, all that differs is the kernel source, defconfig and sometimes a few extra commits to work with linaro toolchain. And if you use the arch specific toolchains you need to pick the right one for your device
metalspring said:
kernel building for different devices is pretty much all the same, all that differs is the kernel source, defconfig and sometimes a few extra commits to work with linaro toolchain. And if you use the arch specific toolchains you need to pick the right one for your device
Click to expand...
Click to collapse
Yea, buddy, but he should mention about which device is he using, so it would give us a brief idea, that what we have to do.
Niku-Droid said:
Yea, buddy, but he should mention about which device is he using, so it would give us a brief idea, that what we have to do.
Click to expand...
Click to collapse
Device: Acer Cloudmobile s500
Cpu snapdragon s4 krait dual—core 1.5 ghz
Gpu Adreno 225;
1gb ram
8 mp camera+1.9 mb front;
1460 mah battery
Hd 720p display
Very nice tutorial. I just got into building from source. Yesterday shortly before you posted this, I have successfully compiled a ROM for the first time. Also can you add the link to the other tutorial when it's done on this thread?
can anyone just post the video links they are not opening on my mobile , are they on YouTube so I can DL them for future reference
Thanks
Look great will be looking into tutorials
Hi
I have seen this hacking app called "Reaver" and i had to install "Bcmon" for this to work but i cannot get bcmon up and working it either force closes or it says device not supported, as i tried hacking my own WiFi which my bro change the password and he doesn't want to give the code, so i tried hacking because wifi is my life i cant live without her , anyways so i am asking if there is anyway to make this broadcom wifi chipset work? Anyway at all? If you can mod please do
Thanks alot in advance
Sent from my LG-D682 using XDA Premium 4 mobile app
Bcmon is very finicky when it comes to what it will work with. I suggest checking out their dev page for a better idea of the requirements. Unless you have the ability to code your own driver for mon, it's not likely to find support. For penn testing You can go the linux deploy route, that coupled with a usb otg cable and a wifi card that works with the Bully\aircrack suite (I think that's what reaver needs ).
Sent from my SGH-I927 using XDA Free mobile app
first you need a compatible device
Hi first u need a compatible device to hack a WPA wpa2 WiFi or let it be wep
First u need to get a mobile having 4329, or4330 WiFi chipset I refer u HTC nexus one which is rare mobile having 0.5 % popularity or galaxy gs2 then if u got n1 install cm9 on it (cm10 on gs2) and then I hope u'r bcmon will work once it'll work then u can use either RFA or air crack GUI thanks ...
Im trying to make Reaver for Android work on my device due its not compatible with bcmon, im using custom scripts.
Im getting the following error:
CANNOT LINK EXECUTABLE: library "libpcap.so.1" not found
Due that, i used the following solution command:
export
LD_LIBRARY_PATH=/path/to/your/dir:$LD_LIBRARY_PATH
Obvious /path/to/your/dir is an example, mine is /sdcard/Download/libpcap.so.1
But im not getting success... i continue getting the error... Please somebody help
Sent from my Samsung SM-J510FN using XDA Labs
TheWalkingSans said:
Im trying to make Reaver for Android work on my device due its not compatible with bcmon, im using custom scripts.
Im getting the following error:
CANNOT LINK EXECUTABLE: library "libpcap.so.1" not found
Due that, i used the following solution command:
export
LD_LIBRARY_PATH=/path/to/your/dir:$LD_LIBRARY_PATH
Obvious /path/to/your/dir is an example, mine is /sdcard/Download/libpcap.so.1
But im not getting success... i continue getting the error... Please somebody help
Sent from my Samsung SM-J510FN using XDA Labs
Click to expand...
Click to collapse
same problem
- Official.Caserol23 @ Facebook
- Caserol23 @ XDA
- Caserol23 @ Twitter
It only works with broadcom chips.
sent from IT Heaven