[REF]Terminal Emulator Commands ! (Android shell command reference) - Galaxy Y GT-S5360 General

Okay guys the following is a Documentation from 'Jackpal' for his awesome app terminal emulator which helped me a lot in learning various stuff so i thought i'd share it here for some of you who may find it use full !
All credits :Jackpal - See here
Android Shell Command Reference Page History
A "shell" is a program that listens to keyboard input from a user and performs actions as directed by the user. Android devices come with a simple shell program. This shell program is mostly undocumented. Since many people are curious about it I thought I'd write up some documentation for it.
Common problems
The built-in shell has very limited error handling. When you type a command name incorrectly it will say "permission denied", even though the real problem is that it couldn't find the command:
$ dir
Click to expand...
Click to collapse
dir: permission denied <---- this is a misleading error message, should say 'dir: not found'
$ ls
Click to expand...
Click to collapse
... listing of current directory
The PATH variable
The Android shell will run any program it finds in its PATH. The PATH is a list of directories. You can find out what your shell's PATH is set to by using the built-in echo command:
$ echo $PATH
/data/local/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
Click to expand...
Click to collapse
Depending upon your shell, you may see a different result.
Built in Commands
Every shell has a few built-in commands. Some common built-in commands are:
echo -- prints text to stdout.
set -- sets shell variables
export -- makes shell variables available to command-line programs
cd -- change the current directory.
pwd -- print name of the current directory.
Commands
To find out what commands you have available to you, use the "ls" command on each of the directories in the PATH variable.
Finding documentation for the Android commands.
Many of the Android commands are based on standard Linux (or bsd) commands. If you're curious about a command, you can sometimes learn how it works by using the "man" command on a desktop Linux or OSX (Apple Macintosh) computer. The Linux or OSX version of the command may be different in details, but much of the documentation will still apply to the Android version of the command.
Another source of documentation for people without a Linux or OSX machine handy is to use a web browser and use a web search engine to search for the text: "man Linux command-name".
List of commands
The following is a list of the commands that are present on a Nexus S phone running an Android 2.3.3 "user-debug" build. Many of these commands are not present on a "user" phone. (They are missing from a "user" phone because they are specific to developing or debugging the Android operating system.)
$ ls /data/local/bin
/data/local/bin: No such file or directory
Click to expand...
Click to collapse
Notice that by default there is no /data/local/bin directory. You can create this directory using the "mkdir" command if you like.
$ ls /sbin
Click to expand...
Click to collapse
opendir failed, Permission denied
The /sbin directory exists, but you don't have permission to access it. You need root access. If you have a developer phone, or otherwise have root access to your phone you can see what's in this directory.
$ su
# ls /sbin
ueventd
adbd
# exit
$
Click to expand...
Click to collapse
Notice that the shell prompt changes from a '$' to a '#' to indicate that you have root access.
Notice also that neither of the /sbin commands are useful to the shell -- the adb and ueventd files are 'daemon' programs used to implement the Android Debugger "adb" program that is used by developers.
$ ls /vendor/bin
gpsd
pvrsrvinit
Click to expand...
Click to collapse
Vendor/bin is where device vendors can put device-specific executables. These files are from a Nexus S.
$ ls /system/sbin
/system/sbin: No such file or directory
Click to expand...
Click to collapse
This directory does not exist on a Nexus S.
$ ls /system/bin
am
Click to expand...
Click to collapse
am is the Android Activity Manager. It's used to start and stop Android activities (e.g. applications) from the command line. Type am by itself to get a list of options.
amix
aplay
Click to expand...
Click to collapse
Command line audio file player.
app_process
applypatch
Click to expand...
Click to collapse
Used to apply patches to android files.
arec
Click to expand...
Click to collapse
Command line audio recorder.
audioloop
bluetoothd
Click to expand...
Click to collapse
BlueTooth daemon
bmgr
Click to expand...
Click to collapse
Backup manager - type command by itself to get documentation.
bootanimation
Click to expand...
Click to collapse
Draws the boot animation. You may have to reset your phone to get out of this.
brcm_patchram_plus
bugreport
cat
Click to expand...
Click to collapse
Copy the contents of a file to standard output.
chmod
Click to expand...
Click to collapse
Change the mode of a file (e.g. whether it can be read or written.)
chown
Click to expand...
Click to collapse
Change the owner of a file.
cmp
Click to expand...
Click to collapse
Compare two files byte-by-byte
dalvikvm
Click to expand...
Click to collapse
The dalvik virtual machine. (Used to run Android applications.)
date
Click to expand...
Click to collapse
Prints the current date and time
dbus-daemon
dd
Click to expand...
Click to collapse
Convert and copy a file. By default copies standard in to standard out.
debuggerd
dexopt
df
Click to expand...
Click to collapse
Shows how much space is free on different file systems on your device.
dhcpcd
dmesg
dnsmasq
dumpstate
dumpsys
dvz
fsck_msdos
gdbserver
getevent
getprop
gzip
hciattach
hd
id
ifconfig
Click to expand...
Click to collapse
Shows the current configuration of network interfaces (IP, MAC address etc)
iftop
Click to expand...
Click to collapse
Shows the current processes using the network interfaces (top, but for networks)
ime
input
insmod
installd
ioctl
ionice
iptables
Click to expand...
Click to collapse
Manage the firewall
keystore
keystore_cli
kill
Click to expand...
Click to collapse
Send signals to processes.
linker
ln
Click to expand...
Click to collapse
Used to set up a file system link.
log
logcat
Click to expand...
Click to collapse
Prints the Android runtime log.
logwrapper
ls
Click to expand...
Click to collapse
Lists files.
lsmod
lsof
make_ext4fs
mediaserver
mkdir
Click to expand...
Click to collapse
Make a directory.
monkey
Click to expand...
Click to collapse
A program that sends random events, used to test applications. (Like having a monkey playing with the device.)
mount
mtpd
mv
Click to expand...
Click to collapse
Move a file from one directory to another. (Only on the same file system. Use "cat a > b" to copy a file between file systems.
nandread
ndc
netcfg
netd
netstat
newfs_msdos
notify
omx_tests
pand
ping
pm
pppd
printenv
ps
Click to expand...
Click to collapse
List active processes.
qemu-props
qemud
racoon
radiooptions
reboot
Click to expand...
Click to collapse
Reboot the device.
record
renice
rild
rm
Click to expand...
Click to collapse
Remove a file.
rmdir
Click to expand...
Click to collapse
Remove a directory.
rmmod
route
rtp_test
run-as
schedtest
schedtop
sdcard
sdptool
sendevent
service
servicemanager
setconsole
setprop
setup_fs
sh
showlease
sleep
smd
stagefright
start
Click to expand...
Click to collapse
Starts the Android runtime.
stop
Click to expand...
Click to collapse
Stops the Android runtime.
surfaceflinger
svc
sync
system_server
tc
testid3
toolbox
top
Click to expand...
Click to collapse
Shows which processes are currently using the most CPU time.
umount
uptime
Click to expand...
Click to collapse
Prints how long your device has been running since it was last booted.
vdc
vmstat
vold
watchprops
wipe
wpa_cli
wpa_supplicant
$ ls /system/xbin
add-property-tag
btool
check-lost+found
dexdump
dhdutil
hcidump
latencytop
librank
opcontrol
oprofiled
procmem
procrank
rawbu
scp
Click to expand...
Click to collapse
Secure copy program. (Used to copy files over the network.)
showmap
showslab
sqlite3
Click to expand...
Click to collapse
Used to administer SQLite databases.
strace
Click to expand...
Click to collapse
System trace command - use to see what system calls a program makes.
su
Click to expand...
Click to collapse
Start a shell with root privileges.

One more thing if you find that this has been already posted here/is useless/unnecessary don't hate me just drop The_captain a PM and it'll be locked before you know it

nikufellow said:
One more thing if you find that this has been already posted here/is useless/unnecessary don't hate me just drop The_captain a PM and it'll be locked before you know it
Click to expand...
Click to collapse
Lol.. that was a good one.. I don't think this will go down.. nice find.. keep up the good work..:thumbup:
Sent from the MUST have app!

awesome guide,
should be included in the list of need-to-know guides for SGY,

These kind of guides make me feel that just why.???
Why i dont know linux....
I want to know it..
I want to learn it...
I want to do everything that i can do with linux...
Sent from my GT-S5360 using xda premium

menewtoroot said:
These kind of guides make me feel that just why.???
Why i dont know linux....
I want to know it..
I want to learn it...
I want to do everything that i can do with linux...
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
its easy mate just spend a few minutes reading stuff and you'll grab everything!
by the way try Ubuntu 12.04 if you haven't tried yet its the best as of now!

nikufellow said:
its easy mate just spend a few minutes reading stuff and you'll grab everything!
by the way try Ubuntu 12.04 if you haven't tried yet its the best as of now!
Click to expand...
Click to collapse
As i just said...
I am not from linux or ubuntu language...
However after reading this guide i had ask a friend of mine to give me linux disk...
But he is giving me a warning about some kind of hard disk partition...
Nd this is the first thing i dont know about computets ..
So totally
rooting is new for me...and i am noob to root...

Just read a guide on how to dual boot windows and Linux.. you will understand.. still partition.. bit risky for new users..
Sent from the MUST have app!

Hery nice ref ...... Good share..... Its really help all new user......
Sent from my GT-S6102 using Tapatalk 2

nitubhaskar said:
Just read a guide on how to dual boot windows and Linux.. you will understand.. still partition.. bit risky for new users..
Sent from the MUST have app!
Click to expand...
Click to collapse
Okay lets see...
rooting is new for me...and i am noob to root...

menewtoroot said:
Okay lets see...
rooting is new for me...and i am noob to root...
Click to expand...
Click to collapse
rooting is not difficult or dangerous!!! good luck!! :good:
---------- Post added at 11:14 AM ---------- Previous post was at 11:01 AM ----------
thanks for the commands.....they works pretty well!!! but i want to know about the busybox commands....:-/ help me!!

thanks for the thread!!! learned lot of things!

Nice thread
sent from my dream using cm10.1

hi, do you know how to stop a terminal process? I mean, for example if I run logcat, then how can I exit it? in linux I used to press CTRL + C, here in terminal emulator I have to close and reopen the terminal..
also, pressing UP arrow in linux terminals, you see the previous commands you run, is there something similar in android temrinal?
thanks a lot in advance!

moly82 said:
hi, do you know how to stop a terminal process? I mean, for example if I run logcat, then how can I exit it? in linux I used to press CTRL + C, here in terminal emulator I have to close and reopen the terminal..
also, pressing UP arrow in linux terminals, you see the previous commands you run, is there something similar in android temrinal?
thanks a lot in advance!
Click to expand...
Click to collapse
Click options.. special keys..
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
______________________________________
[APP][2.3+] SpecCheck - Compare Devices Side By Side

Deadly said:
Click options.. special keys..
View attachment 2023964
______________________________________
[APP][2.3+] SpecCheck - Compare Devices Side By Side
Click to expand...
Click to collapse
thanks, I tried already, but none of them seems to close the process running (like logcat).. I tried "ESC", "Delete" and "End".. :crying:

moly82 said:
thanks, I tried already, but none of them seems to close the process running (like logcat).. I tried "ESC", "Delete" and "End".. :crying:
Click to expand...
Click to collapse
You need to use ctrl+c
For that, see the combo. It must be "volume down+C"
It does works ^
I use it many times.
______________________________________
[APP][2.3+] SpecCheck - Compare Devices Side By Side

the problem is that I don't have VOL DW + C combo in special keys list!
thanks again and sorry for bothering.. :angel:

moly82 said:
the problem is that I don't have VOL DW + C combo in special keys list!
thanks again and sorry for bothering.. :angel:
Click to expand...
Click to collapse
Yours has a reverse combo to mine . Just use volume up+ C
See my screenshot and compare it yours. You will understand
______________________________________
[APP][2.3+] SpecCheck - Compare Devices Side By Side

how to list installed package from system app or user app.. tanx be4
Sent from my ZA987 using xda premium

Related

[SGY] Openline & reNetLock [Revised] Updated [Tested] + ScreenShots

DONT COPY PASTE TO OTHER FORUM WITHOUT ASKING THE AUTHOR
I HATE NOOB LEECHERS
GIVE PROPER CREDITS TO THE DEV and OP
OPENLINE YOUR SGY
Thanks to sir DOKY73 for this adb shell script..
BY sir DOKY73
I explicitly warn again everyone,
If you do not really understand what you do inside the shell, then wait for some!
YOU CAN POTENTIALLY HARM YOUR DEVICE!
If you doing something wrong with bml15, you might cause unrecoverable issues
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Code:
Requirements:
1: [URL="http://www.samsung.com/us/support/downloads"]SAMSUNG DRIVER[/URL] or [URL="http://www.samsung.com/us/kies/"]SAMSUNG KIES[/URL]
2: [URL="http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html"]JAVA DEV KIT[/URL]
3: [URL="http://developer.android.com/sdk/index.html"]ANDROID SDK[/URL]
4: Root Your SGY [URL="visit me"]visit me[/URL] or [URL="http://forum.xda-developers.com/showthread.php?t=1534510"]visit me too[/URL]
Click to expand...
Click to collapse
STEPS:
1.>Connect your SGY to the PC, using the USB cable.
2.>Access the command prompt in your Windows computer. In order to do that, click on Start button, and in the search field, type ‘cmd.exe’. Once found, open it. In this window you need to head to the folder where Android SDK has been installed.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3.>enter this codes on cmd
[note: when typing commands,,please wait for the # to show in the cmd before typing another command]
[note: start and ADB shell session into your phone by 'ADB shell' in Windows, './adb shell' in linux then copy line by line the following. If you got error, then stop, and report the issue!]
Code:
ADB shell
su #<- Check phone screen to grant root access, and wait for # prompt in shell
mkdir /sdcard/SGYunlock #<-check if the folder has been created, and no error
stop #<-the phone will freeze, It's OK!
dd if=/dev/bml15 of=/sdcard/SGYunlock/bml15.img.SAVE #<- Do it ONLY ONCE!!!!
dd if=/dev/zero bs=1 count=16 of=/dev/bml15 seek=524360
dd if=/dev/zero bs=1 count=1 of=/dev/bml15 seek=525392
start #<-the phone will restart
exit #<- exit from root shell
exit #<- exit from shell
Click to expand...
Click to collapse
4.>restart your SGY if it did not restart automatically
TO reNetLock TO DEFAULT NETWORK PROVIDER
Code:
Requirements:
1: [URL="http://www.samsung.com/us/support/downloads"]SAMSUNG DRIVER[/URL] or [URL="http://www.samsung.com/us/kies/"]SAMSUNG KIES[/URL]
2: [URL="http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html"]JAVA DEV KIT[/URL]
3: [URL="http://developer.android.com/sdk/index.html"]ANDROID SDK[/URL]
4: Root Your SGY [URL="visit me"]visit me[/URL] or [URL="http://forum.xda-developers.com/showthread.php?t=1534510"]visit me too[/URL]
5:
Click to expand...
Click to collapse
STEPS:
1.>Connect your SGY to the PC, using the USB cable.
2.>Access the command prompt in your Windows computer. In order to do that, click on Start button, and in the search field, type ‘cmd.exe’. Once found, open it. In this window you need to head to the folder where Android SDK has been installed.
3.>enter this codes on cmd
Code:
ADB shell
su #<- Check phone screen to grant root access, and wait for # prompt in shell
stop #<-the phone will freeze, It's OK!
dd if=/sdcard/SGYunlock/bml15.img.SAVE of=/dev/bml15
start #<-the phone will restart, put default SIM and use!
exit #<- exit from root shell
exit #<- exit from shell
Click to expand...
Click to collapse
4.>restart your SGY if it did not restart automatically
Credits to:
Doky713
Codeshark
Izghitu
ALbavizion
Mikstev
ORIGINAL DEV
OPENLINE SOURCE THREAD
DOWNOAD OLD THREAD HERE
To remove Network Subnet Lock by Mikstev
note: do this after openlining your SGY
back up the original bml15.img.SAVE or rename SGYunlock folder to SGYunlock1 before proceeding
Code:
cmd.exe
ADB shell
su #<- Check phone screen to grant root access, and wait for # prompt in shell
mkdir /mnt/sdcard/SGYunlock
cd /mnt/sdcard/SGYunlock
stop #<-the phone will freeze, It's OK!
dd if=/dev/bml15 of=bml15.img.SAVE #<- Do it ONLY ONCE!!!!
start #<-the phone will restart, put any SIM and use!
edit bml15.img.SAVE:
(0×80049 and 0×80450) change 01 to 00
save as bml15_unlocked.img.SAVE.
ADB shell
su
cd /mnt/sdcard/SGYunlock
stop #<-the phone will freeze, It's OK!
dd if=bml15_unlocked.img.SAVE of=/dev/bml15 copy back file
start #<-the phone will restart, put any SIM and use!
Click to expand...
Click to collapse
Click to expand...
Click to collapse
DONT COPY PASTE TO OTHER FORUM WITHOUT ASKING THE AUTHOR
I HATE NOOB LEECHERS
GIVE PROPER CREDITS TO THE DEV and OP
Things (files) you will be needing to open line:
(1)Go to the link and choose your OS version (windows,mac or linux)
--->Android SDK
(2)If you don't have java installed
--> Java SDK
(3)Use (drivers) if pc doesn't recognize the device
--->Samsung drivers
(4)Rooted phone (for SU permissions)
---> Root
(5)Usb cable
(6)Guts!!
New update:
Guys!!! try mr. Doky73's ---> network unlock app
if you liked it, consider donating
or
Press their thanks button!!
Credits to:
devion14
Doky73
contributors:
izghitu
codeshark
dont wanna try cause there is a possibility that my CP will brick
eReNz said:
dont wanna try cause there is a possibility that my CP will brick
Click to expand...
Click to collapse
that is why it is not for noob andd fainthearted...youll brick it?then restore it..so simple...
will delete soon....seems like its not important
devion14 said:
will delete soon....seems like its not important
Click to expand...
Click to collapse
please do understand that not all people here are adept when it comes to "techy stuff" and not all are willing to take risks so don't feel sad if your thread seems to be underrated.
Facebook Page
just getting board......have you done this?
can you give me screen shots on pc?
OP thanks for the info, i was able to change my provider to another one.
did anybody found a code which accepts all the different sims?
its tedious to edit bml15 every time i want to swap a sim.
maybe we could ask openline phones to upload their bbml15.bin so i can compare the strings on the addresses...they would be on same address
leodasal2 said:
please do understand that not all people here are adept when it comes to "techy stuff" and not all are willing to take risks so don't feel sad if your thread seems to be underrated.
Click to expand...
Click to collapse
techie stuff
s5360user said:
OP thanks for the info, i was able to change my provider to another one.
did anybody found a code which accepts all the different sims?
its tedious to edit bml15 every time i want to swap a sim.
Click to expand...
Click to collapse
Create a script to automate the process (theory).
maybe you could make one?? but the important thing is the mcc mnc of an openlined bml15.bin
devion14 said:
maybe we could ask openline phones to upload their bbml15.bin so i can compare the strings on the addresses...they would be on same address
Click to expand...
Click to collapse
and you must post this thread on Android Development to gather some users bbml15.bin
already done that...maybe forum mods might want to move it there
An appeal to upload your "openline/unlocked" bml15.bin
guys, if anyone of you have an unlocked/openline phone, please upload your bml15.bin.. Seriously, this thread booms with potential. You can at last forget about going to a service center just to get your unit openlined.
@devion14
i'll be making a flashable zip if there is an openline bml15.bin uploaded. and i expect you will be the first daredevil to try and attest the validity of this thread
PS. I wonder if bmlunlock will work with this bml15.bin.
HCFroyd247 said:
guys, if anyone of you have an unlocked/openline phone, please upload your bml15.bin.. Seriously, this thread booms with potential. You can at last forget about going to a service center just to get your unit openlined.
@devion14
i'll be making a flashable zip if there is an openline bml15.bin uploaded. and i expect you will be the first daredevil to try and attest the validity of this thread
PS. I wonder if bmlunlock will work with this bml15.bin.
Click to expand...
Click to collapse
Agree. Perhaps in millions of SGYs shipped there is at least 1 who is factory unlocked?
HCFroyd247 said:
guys, if anyone of you have an unlocked/openline phone, please upload your bml15.bin.. Seriously, this thread booms with potential. You can at last forget about going to a service center just to get your unit openlined.
@devion14
i'll be making a flashable zip if there is an openline bml15.bin uploaded. and i expect you will be the first daredevil to try and attest the validity of this thread
PS. I wonder if bmlunlock will work with this bml15.bin.
Click to expand...
Click to collapse
i bet it wont work cause imei conflict..
CarlDeanCatabay said:
Agree. Perhaps in millions of SGYs shipped there is at least 1 who is factory unlocked?
Click to expand...
Click to collapse
i bet not one but depends on the order
CarlDeanCatabay said:
techie stuff
Click to expand...
Click to collapse
wow, i was clearly bothered by the exaggerated response (huge fonts) you had on my post. I'm glad you pointed that out (sarcastic).
WORKING!!

Added Kindle Unbrick V0.1 to Kindle Fire Utility

I'n new to XDA. So I decided to show some support in the Forums.
I take no Credit for Kindle Fire Utility or Kindle Unbrick V 0.1
Good Day!
Download - Here
Warning! Now in BETA!!
Feed back would be appreciated.
If you would Like me to add a program to this Project please message me.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Update - 09-26-2012
Finished the coding and re-updated link.
I do need somebody to test it if you don't mind.
Also, can a admin please move this thread back to the Developmental Forum.
Update - 10-14-2012
Fixed my Kindle! Yay!
Now testing software and should be finished very soon!
Chat_Ghosty said:
I'n new to XDA. So I decided to show some support in the Forums.
I take no Credit for Kindle Fire Utility or Kindle Unbrick V 0.1
Just adding then together.
Due to my current Kindle Problem. (I will not go into details)
I thought this would be helpful.
I would suggest somebody more skilled then me check the code and make sure no Kindles Explode due to this.
U will find Kindle Unbrick under Extras. Option 8.
Good Day!
Download - Here
If wanted. I can try and Make a GUI With C#. But no Promise.
Feed back would be appreciated.
Click to expand...
Click to collapse
I don't recall you asking me for usage of my code. Also, version 0.1 of my unbrick utility is old (Not that it matters). To go along with that, I highly doubt you obtained approval for this from the Kindle Fire Utility creator. Please take down this thread, and the download link immediately.
If you open Kindle Fire Utility and look at the Third and Forth line of coding you will find the Following.
::You are free to tweak or modify this as you see fit,
::Just please be respectful is all I ask
And you are correct. I did not ask, but then I did give all credit to the KFU and KU Developers.
If you don't mind, may you please Message me personally to resolve this Issue.
I am cool with it as long as credit remains.
Just don't call what you did your own, and I'm fine.
I had plans for a GUI and got halfway there or so however, it reached a point where the Kindle is slowing down in terms of people needing something like this so I just focus on keeping it running if there are problems.
If amazon releases a new kindle and a gap needs to be filled, I'm sure ill step into making something for it.
I would like to see a gui! Very cool
Sent from my MB870 using xda premium
If you did not make it, it does not belong in the development forum.
Moving to General
s.d.oconnor said:
If you did not make it, it does not belong in the development forum.
Moving to General
Click to expand...
Click to collapse
I understand where your coming from but he made the GUI for combining both programs. In my opinion, it should stay in dev section because he developed the program to combine the two. Im not trying to be bossy or mean or anything, but I just believe it should be in dev section. Sorry for sounding mean.
Zombiepiratez said:
I don't recall you asking me for usage of my code. Also, version 0.1 of my unbrick utility is old (Not that it matters). To go along with that, I highly doubt you obtained approval for this from the Kindle Fire Utility creator. Please take down this thread, and the download link immediately.
Click to expand...
Click to collapse
I don't think you asked Amazon to mess around with the bootloader.
Anyway, has anyone tried this? This looks like a good app.
Are you just taking the original code and just adding a GUI with VisualBasic? Because you may need some major tweeks to get a CMD based code to work with VB'S GUI. Just sayin'
Sent from my Kindle Fire
shravbits said:
Are you just taking the original code and just adding a GUI with VisualBasic? Because you may need some major tweeks to get a CMD based code to work with VB'S GUI. Just sayin'
Sent from my Kindle Fire
Click to expand...
Click to collapse
Your are correct. But I'm a Bit stuck on the developmental stage. I'm using C# because that what I'm better at. I used the command
Code:
System.Diagnostics.Process.Start(@" File ");
Ill be honest. I could use some help with the Command Lines for ADB.
I programmed it so that if it needed to be updated so you did not need to know any C#. Ironic, No.
I just updated the File and it should work perfect once the Batch files are programmed.
x10knight said:
I don't think you asked Amazon to mess around with the bootloader.
Anyway, has anyone tried this? This looks like a good app.
Click to expand...
Click to collapse
I no longer dissaprove of this application, but I just have to say something to you.
I did not modify Amazon's code in anyway, nor did I redistribute it.
Even if I did, the Kindle Fire's source code was released for anyone to use, mine was NOT.
I prefer if people ask me before they redistribute my code, that's all.
Chat_Ghosty said:
Your are correct. But I'm a Bit stuck on the developmental stage. I'm using C# because that what I'm better at. I used the command
Code:
System.Diagnostics.Process.Start(@" File ");
Ill be honest. I could use some help with the Command Lines for ADB.
I programmed it so that if it needed to be updated so you did not need to know any C#. Ironic, No.
I just updated the File and it should work perfect once the Batch files are programmed.
Click to expand...
Click to collapse
If you ever need help with VisualBasic, private message me, I could help.
Sent from my Kindle Fire
Zombiepiratez said:
I no longer dissaprove of this application.
Click to expand...
Click to collapse
May I ask why you did before?
Zombiepiratez said:
I did not modify Amazon's code in anyway, nor did I redistribute it.
Click to expand...
Click to collapse
True.
Zombiepiratez said:
I prefer if people ask me before they redistribute my code, that's all.
Click to expand...
Click to collapse
Me or Him?
Thank You!
Chat_Ghosty said:
May I ask why you did before
Click to expand...
Click to collapse
Because you didn't ask him
Chat_Ghosty said:
Me or Him?
Click to expand...
Click to collapse
You
powerpoint45 said:
Because you didn't ask him
You
Click to expand...
Click to collapse
Never knew that the bootloader was opensource...
x10knight said:
Never knew that the bootloader was opensource...
Click to expand...
Click to collapse
From the coding that I looked at he did no modification of the boot loader. You just said what state it was to load in.
Example. Normal, Safe Mode, and Recovery for windows OS.
You never edited the Boot loader, you just picked how to load the OS.
Also, is Android OS not made from Ubuntu OS?
Please correct if wrong.
Also, does all Android OS have the same-ish boot loader? And Kindle just added the Kindle Fire Logo?
Also! Did anybody hear about the Next Kindle Fire? The Kindle Fire HD! (How Original!)
Android is not based on ubuntu, however it is based on the linux kernal ( 3.0 in ics and jellybean)
x10knight said:
Android is not based on ubuntu, however it is based on the linux kernal ( 3.0 in ics and jellybean)
Click to expand...
Click to collapse
I used a Program that came with CM9 and for some reason it said it ran Ubuntu Kernel. Oh Well.
It's the week end. I should be able to do some coding. I might have it finished this week end.
Will this work.
And I think this might work.
Code:
@echo off
Tools\adb kill-server
Tools\adb start-server
set adb="Unknown"
set tmp=""
set adbcomp="List of devices attached"
for /f "tokens=1-4" %%a in ( 'tools\adb devices ^2^> nul' ) do ( set tmp="%%a %%b %%c %%d" )
if /i %tmp% == %adbcomp% ( set adb=Offline)
if /i not %tmp% == %adbcomp% ( set adb=Online)
if "%adb%" == "Offline" (
tools\fastboot -i 0x1949 oem idme bootmode 4000
tools\fastboot -i 0x1949 reboot
end
) else (
tools\adb wait-for-device
tools\adb push files\nbmode /data/local/nbmode
tools\adb shell chmod 755 /data/local/nbmode
tools\adb shell /data/local/nbmode
tools\adb reboot
end
Can somebody test this?
Chat_Ghosty said:
And I think this might work.
Code:
@echo off
Tools\adb kill-server
Tools\adb start-server
set adb="Unknown"
set tmp=""
set adbcomp="List of devices attached"
for /f "tokens=1-4" %%a in ( 'tools\adb devices ^2^> nul' ) do ( set tmp="%%a %%b %%c %%d" )
if /i %tmp% == %adbcomp% ( set adb=Offline)
if /i not %tmp% == %adbcomp% ( set adb=Online)
if "%adb%" == "Offline" (
tools\fastboot -i 0x1949 oem idme bootmode 4000
tools\fastboot -i 0x1949 reboot
end
) else (
tools\adb wait-for-device
tools\adb push files\nbmode /data/local/nbmode
tools\adb shell chmod 755 /data/local/nbmode
tools\adb shell /data/local/nbmode
tools\adb reboot
end
Can somebody test this?
Click to expand...
Click to collapse
Oh Well. I updated the Program and now in BETA Phase. See Post one for details.

[GUIDE] How To Make An Init.d Script (Noob Friendly)

How to make your own init.d script​
Hey fellow XDA users!​
I'm creating this thread as I've seen a countless number of times the same question asked (literally hundreds)
'How to I set (_____) on boot?'​
Finally I have come around to answering that question! This thread will allow you to control system/kernel parameters on boot
Now many of the kernel devs around the HOX forums have created some pretty epic kernels with tons of features which can be modified as much as the user wants and now I'll be showing you how to set these parameters on boot without the use of apps! :laugh:
Requirements
Rooted
Busybox
Custom Rom with Init.d Support (Most custom Rom's, check in OP of Rom thread)
A Root File Explorer (We're going to do this through the phone)
Stock ROM does not support init.d
If you're on a stock rom, you can easily add init.d support using Ryuinferno's very very helpful thread!
Enable Init.d Support
Once you've done that, come back and follow the instructions
Now to begin, let's look at a typical init.d script
Code:
#!/system/bin/sh
#CPU
echo pmc > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#Smart Dimmer
echo 1 > /sys/devices/tegradc.0/smartdimmer/enable
#Fast Charge
echo 1 > /sys/devices/platform/htc_battery/fast_charge
#S2W
echo 1 > /sys/android_touch/sweep2wake
OK, now to a new user this may seem quite confusing but once broken down it can be easily understood:
#!/system/bin/sh = This is required at the start of every init.d script
echo .... = Sends the command
'<insert value here>' = You can put a value after 'echo' and it will send that value to the file you have shown the path to, e.g. 'echo 1 >...'
>/.... = Specify the path and file in which to change on boot
So for example if I put this in my script:
echo '1' > /sys/devices/system/cpu/cpu0/cpufreq/gpu_voltage
I am changing the file 'gpu_voltage' to 1, allowing gpu voltage to be enabled on boot (currently only XM's & Alex-V's kernel)
Similarly with the command:
echo '0' > /sys/class/leds/button-backlight/auto_bln
I am disabling auto-bln on boot
Hopefully after you've read all of that, you've understood a little more about init.d scripts
Now let's actually create some scripts
Instructions​
We'll be using a file explorer on Android since Window's editors don't format the text correctly
1. Create a file using your choice of file explorer, I'm using Root Explorer and put it in /system/etc/init.d/
2. Open the file and write the following into it:
#!/system/bin/sh
3. Then choose which file you want to modify on boot and what value you want to change it to, and write the echo command and path into the file
For example: echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor - (for interactive governor on boot)
echo 1200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq - (for 1.2ghz on boot)
Now there's some things to look out for when doing this:
• You need to make sure you're pointing to the file not just folder when entering the path in '> /....'
• You need to make sure you put the spaces in the right places and don't put any spaces in random places
• When entering multiple values you need to put the values in quotation marks like this "....." - so for example if I want to set max GPU speed I would do this:
echo "416 416 416 416 304 304 247 247" > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
• Also if you put a '#' in front of the line of text then it ignores that line, as you can see in my example I have a line that says '#CPU'. This is just to tell me I'm making modifications to the CPU and so I put a # in there so that line is ignored (the echo command below it is still carried out)
• You can do all the commands in one script and do as many as you like!
The various parameters that can be controlled are most likely on the OP's of the respective kernel threads (it would be ridiculously long if I were to put them all in this thread)​
4. Once you're done, save and exit the file
5. Then rename it with a number in front, this number will decide which init.d script will run first (lower the number the earlier it's run on boot)
So for example I named my file: 25kerneltweaks
It doesn't really matter what number you put but just make sure there's no other scripts running after which will also change kernel parameters (leave them but just give your script a higher number)
Almost done now!
6. The final thing you have to do is set permissions:
Now you won't be able to use ES File Explorer for this step as it just can't set the right permissions for init.d scripts for some odd reason, preferably use Root Explorer but others should work (except ES)
Set permissions as rwx-rwx-rwx (shown in the image)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If you don't have Root Explorer or a good substitute you could also do this through terminal emulator:
To do that enter this into emulator (press enter after every line)
Code:
su
chmod 777 /system/etc/init.d/insertfilenamehere
And permissions should be set
​
And that's pretty much it folks
You have successfully created your own init.d script!
Many people prefer this method as you don't require apps to set stuff on boot, now it'll just be done automatically for you :good:
Btw this will work on any android device, so if your a wandering googler (is that even a word ) searching for a guide like this, it should work on your phone/tablet as long as you fulfill the requirements
Hope you guys found this useful, it's the first thread I've made so sorry if it's a little rough around the edges and
Press thanks if I helped and please rate the thread, I'd greatly appreciate it!
now all who have this questions can make their own script every time they ask if somebody else can do -.- ... good guide mate i always do that with smanager but some ppl are then confused ._.
One-X-master said:
now all who have this questions can make their own script every time they ask if somebody else can do -.- ... good guide mate i always do that with smanager but some ppl are then confused ._.
Click to expand...
Click to collapse
Haha thanks man!
I actually only made it because I seen you reply to someone who was asking about scripts on Xmister's thread and I thought 'Damn I'm tired of these questions'
But yeah hopefully people find this useful :thumbup:
Sent from my :tank:
Headless_monkeyhunta96 said:
Haha thanks man!
I actually only made it because I seen you reply to someone who was asking about scripts on Xmister's thread and I thought 'Damn I'm tired of these questions'
But yeah hopefully people find this useful
Sent from my :tank:
Click to expand...
Click to collapse
then you know how i'm tired of these questions i hate those simple questions which even are mentioned and also asked in google...i searched in google and found really MANY of those question, for example for scripts etc which are really easy....why not even try in google play? i searched a long time ago...and i found smanager...one of the easiest way to make scripts
Thanks, man. This was really needed.
May I add a link to this in my thread?
csec said:
Thanks, man. This was really needed.
May I add a link to this in my thread?
Click to expand...
Click to collapse
Yeah sure man
Sent from my :tank:
Thanks for this thread man!
Was really useful since I didn't like using apps to set my stuff on boot but didn't know how to do it with scripts
Really good guide :good:
Great Guide, well written and presented.
Not for me as I don't program, but great guide non the less !
Rahman2012 said:
Thanks for this thread man!
Was really useful since I didn't like using apps to set my stuff on boot but didn't know how to do it with scripts
Click to expand...
Click to collapse
matt95 said:
Really good guide :good:
Click to expand...
Click to collapse
Wilks3y said:
Great Guide, well written and presented.
Not for me as I don't program, but great guide non the less !
Click to expand...
Click to collapse
Thanks guys!
Means a lot..
Sent from my :tank:
:good:thanks alot
I made a script yesterday but when I restarted this morning the script was deleted. Do I need to place a specific place?
Sent from my HTC One X using xda app-developers app
tandeman said:
I made a script yesterday but when I restarted this morning the script was deleted. Do I need to place a specific place?
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Well it has to be placed in system/etc/init.d
That's weird though it shouldn't randomly delete. Do you have any other mods installed?
Sent from my :tank:
Maybe because it put it in sys/
Sent from my HTC One X using xda app-developers app
tandeman said:
Maybe because it put it in sys/
Sent from my HTC One X using xda app-developers app
Click to expand...
Click to collapse
Yeah your gonna have to move it to /system/etc/init.d
Follow the instructions to the letter and you should be fine
Sent from my :tank:
Thanks! I have a question: I tried to set a different max cpu frequency by using this command for my device echo 2107680 > /sys/bus/cpu/devices/cpu0/cpuinfo_max_freq
via adb shell and Root Explorer but anytimes I save the file it back to original value.
I also put a new init.d file within that command with no success. Why that?
sev7en said:
Thanks! I have a question: I tried to set a different max cpu frequency by using this command for my device echo 2107680 > /sys/bus/cpu/devices/cpu0/cpuinfo_max_freq
via adb shell and Root Explorer but anytimes I save the file it back to original value.
I also put a new init.d file within that command with no success. Why that?
Click to expand...
Click to collapse
try
Code:
$ adb root
$ adb shell
and do it all over again
matt95 said:
try
Code:
$ adb root
$ adb shell
and do it all over again
Click to expand...
Click to collapse
matt, thanks! It says about "adbd cannot run as root in production builds" but I flashed my custom ROM. Why that?
Thanks...
sev7en said:
matt, thanks! It says about "adbd cannot run as root in production builds" but I flashed my custom ROM. Why that?
Thanks...
Click to expand...
Click to collapse
Mmmhh then try to do it into recovery mode which is already set as root
matt95 said:
Mmmhh then try to do it into recovery mode which is already set as root
Click to expand...
Click to collapse
Thanks! Doing that now... (God bless my device eheh)
---------- Post added at 07:18 PM ---------- Previous post was at 06:35 PM ----------
Hi, unfortunately it doesn't work. I also made a stand-alone script (below)...
then flashed it with a new ROM but as you can see frequencies and parameters haven't changes at all... why?

[GUIDE] Install Ubuntu on a Chromebook

[Size=+2] This method should allow you to switch between Chrome OS and Ubuntu by just pressing "Ctrl + Alt + forward" for intel based chromebooks or "Ctrl + Alt + Shift + Forward" for ARM based devices, to go back all you need do is repeat but replace forward with back.
[/Size]
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
[color=firebrick3] [Size=+3] Step One: Dev Mode [/size] [/color]
Before starting this process please note that doing this will wipe the data from your chromebook thankfully as your apps and drive are cloud based this shouldn't be too much of an issue
Whilst holding down refresh and esc press the power button, this will reboot your chromebook in to recovery mode
As soon as a yellow exclamation mark appears on screen press Ctrl+D. Press Enter
Your chromebook will now reboot again and enable developer mode, this should take about 10 minutes
upon the next reboot a red exclamation mark will be present, you may either wait 30 seconds for it to boot to desktop or you can press Ctrl+D
[color=firebrick3] [Size=+3] Step Two: Installation [/size] [/color]
To install
First download Crouton from here Github to your downloads folder
Enter the crosh terminal by pressing Ctrl + Alt + T
Enter the following
Code:
Shell
sudo sh -e ~/Downloads/crouton -t xfce
xWolf13 said:
I may also add.
You are not restricted to only XFCE. You can install other distributions by specifying it. In the command in step two, you are able to replace xfce with unity, gnome, kde, lxde, e17, and even XBMC. You are also able to change which version of Ubuntu you want to install. You use the same command in step two but you add a -r and specify which version. You can read all supported ones over here . You can also put crouton within a window. Example of installation with xfce and ubuntu 14.04 is : sudo sh ~/Downloads/crouton -t xfce,xiwi -r trusty
Click to expand...
Click to collapse
If the chromebook you are running has a touchscreen you may wish to change this second line to:
Code:
sudo sh -e ~/Downloads/crouton -t xfce,touch
It will now start installing Ubuntu, this can take anywhere between 10 and 30 minutes
Once installed it will request a user name and password for Ubuntu
following this you may start ubuntu up by entering:
Code:
sudo startxfce4
To access Ubuntu you need to press:
"Ctrl + Alt + forward" for intel based chromebooks followed by "Ctrl+Alt+Refresh",
or "Ctrl + Alt + Shift + Forward" for ARM based devices,
To return to chrome all you need do is press "Ctrl+Alt+Back" again adding shift for Arm devices
[color=firebrick3] [Size=+3] Step Three: What next? [/size] [/color]
To close Ubuntu all you need do is log out and return to chrome OS
To reboot Ubuntu enter the following again
Code:
sudo startxfce4
Initially not many apps will be installed however to install these you can use:
Code:
Sudo apt-get install
and to search the packages available you can use
Code:
Sudo apt-cache search (search terms)
The apps I advise you install in terminal first are:
Code:
Sudo apt-get install LibreOffice
Sudo apt-get install Chromium-browser
Sudo apt-get install firefox
Sudo apt-get install vlc
To remove Ubuntu from the device at the exclamation mark on boot up press space bar and you will reset the device
[color=firebrick3] [Size=+3] Step Four: Removing [/size] [/color]
To remove Ubuntu from your chromebook without powerwashing you can enter this in to the terminal shell
Code:
sudo delete-chroot -a
[Size=+2]
Hope this helps and if you have any questions drop a comment below
*Update* Thanks to Tomek Kondrat for writing an article on this post and getting this on the front page of XDA: you can read the article here [/Size]
Been known for awhile and they have even newer scripts to self install Linux http://chromeos-cr48.blogspot.com/2013/05/chrubuntu-one-script-to-rule-them-all_31.html?m=1
I may also add.
You are not restricted to only XFCE. You can install other distributions by specifying it. In the command in step two, you are able to replace xfce with unity, gnome, kde, lxde, e17, and even XBMC. You are also able to change which version of Ubuntu you want to install. You use the same command in step two but you add a -r and specify which version. You can read all supported ones over here . You can also put crouton within a window. Example of installation with xfce and ubuntu 14.04 is : sudo sh ~/Downloads/crouton -t xfce,xiwi -r trusty
---------- Post added at 10:31 PM ---------- Previous post was at 10:28 PM ----------
xXminiWHOOPERxX said:
Been known for awhile and they have even newer scripts to self install Linux http://chromeos-cr48.blogspot.com/2013/05/chrubuntu-one-script-to-rule-them-all_31.html?m=1
Click to expand...
Click to collapse
This is so you can dual boot Linux. Crouton is used within Chrome OS which is more like a VM. Chrubuntu may not support all Chromebooks including the one I am using, the Toshiba Chromebook 13. Missing touchpad drivers are the only problem for this chromebook and it is an easy fix. Crouton is 'new' and more stable with less usage of memory on the Chromebook.
Is there any need to somehow back-up the original OS/image using this method? Maybe I'm just used to Android, and it doesn't seem like it, but wanted to make sure any information such as my account/settings wouldn't be erased during this install. Thanks for the tutorial in any case; wanting to upgrade my laptop to something more current, would love the ability to use both Chrome OS and Linux on one laptop!
Joshmccullough said:
Is there any need to somehow back-up the original OS/image using this method? Maybe I'm just used to Android, and it doesn't seem like it, but wanted to make sure any information such as my account/settings wouldn't be erased during this install. Thanks for the tutorial in any case; wanting to upgrade my laptop to something more current, would love the ability to use both Chrome OS and Linux on one laptop!
Click to expand...
Click to collapse
There is, but it shouldn't be needed if you are installing Crouton. Uninstalling crouton is a simple delete command or a Powerwash of the Chromebook. Here is however how you recover your chromebook if anything goes wrong. https://support.google.com/chromebook/answer/1080595?hl=en
Was hoping for a new tutorial, but used this tut on other sites already..
If you're interested in going full linux + coreboot, check out this resource:
https://johnlewis.ie/custom-chromebook-firmware/rom-download/
And check out the boot speed!
And a screenshot of my c720 setup
http://a.pomf.se/jkfwzi.png
xWolf13 said:
There is, but it shouldn't be needed if you are installing Crouton. Uninstalling crouton is a simple delete command or a Powerwash of the Chromebook. Here is however how you recover your chromebook if anything goes wrong. https://support.google.com/chromebook/answer/1080595?hl=en
Click to expand...
Click to collapse
Thanks; I think I may have been thinking about tutorials showing how to upgrade the C720's SSD and the need to create a recovery image, but I appreciate the tip!
savoca said:
If you're interested in going full linux + coreboot, check out this resource:
https://johnlewis.ie/custom-chromebook-firmware/rom-download/
And check out the boot speed!
And a screenshot of my c720 setup
http://a.pomf.se/jkfwzi.png
Click to expand...
Click to collapse
I love our C720; we've got the 2GB/ARM model, is yours the 2GB/ARM or the 4GB/Intel?
EDIT: dur, just looked at your screenshot, nevermind How's ArchLinux run on just 2GB of RAM? I'm more used to Ubuntu/Kubuntu/Mint, which are more resource intensive, I think (Linux newbie here).
And if I recognize your name correctly, you did some work on the Evo 4G, didn't you? Great work, if I remember right......
Joshmccullough said:
I love our C720; we've got the 2GB/ARM model, is yours the 2GB/ARM or the 4GB/Intel?
EDIT: dur, just looked at your screenshot, nevermind How's ArchLinux run on just 2GB of RAM? I'm more used to Ubuntu/Kubuntu/Mint, which are more resource intensive, I think (Linux newbie here).
And if I recognize your name correctly, you did some work on the Evo 4G, didn't you? Great work, if I remember right......
Click to expand...
Click to collapse
Afaik the C720 doesnt have an ARM version? Arch runs just fine on 2GB but some of the AUR packages like google-ttf-fonts dig in so swap is necessary. EVO was a very long time ago accompanied by lots of noobishness!
savoca said:
If you're interested in going full linux + coreboot, check out this resource:
https://johnlewis.ie/custom-chromebook-firmware/rom-download/
And check out the boot speed!
And a screenshot of my c720 setup
http://a.pomf.se/jkfwzi.png
Click to expand...
Click to collapse
Reading through this, I still don't get what the script is doing? Is it installing a Linux? Also, how long did this whole process take you? I probably won't do it all today because break is now over. I'll try doing my next break.
Edit: Ohhhhhh now I get it. Will for sure do this to my chromebook. Thank God its supported lol. What distro are you running?
savoca said:
Afaik the C720 doesnt have an ARM version? Arch runs just fine on 2GB but some of the AUR packages like google-ttf-fonts dig in so swap is necessary. EVO was a very long time ago accompanied by lots of noobishness!
Click to expand...
Click to collapse
Man, I'm just on a 'type before looking' kick tonight; yeah, Intel processor for the C720. I'm in the process of trying to decide whether I want to upgrade my current laptop with a dual-boot Chromebook or shoot for the moon with a full 17" laptop, blow out the Windows 8 and go straight with a Linux build or two (or three, or....). I like the idea of the Chromebook, but I don't know if the smaller keyboard would put a hurt on my wrists with the Linux classes I'll be taking.
Anyways, outside the purview of this forum....thanks all for the input and the cool tutorial!
Sudo apt-get search (search terms)
Click to expand...
Click to collapse
i think it should be apt-cache instead
In terms of available drive space once Ubuntu's loaded, and suggested applications like Libre Office are installed, how are people finding the available SSD/internal memory space once all's said and done? I suppose getting SD cards to store stuff on would be a cheaper option than upgrading the internal memory, using Google Drive for basic office suite stuff, too.
Joshmccullough said:
In terms of available drive space once Ubuntu's loaded, and suggested applications like Libre Office are installed, how are people finding the available SSD/internal memory space once all's said and done? I suppose getting SD cards to store stuff on would be a cheaper option than upgrading the internal memory, using Google Drive for basic office suite stuff, too.
Click to expand...
Click to collapse
Usually, after a new installation of Ubuntu, I update everything then start uninstalling not needed things. I usually uninstall Libre Office as I use Google Drive as my office suite also.
Thanks to @savoca for telling us about the Coreboot! Without that, I wouldn't have known that we were able to put "full on" Linux on a Chromebook
See this link for a screenshot of Elementary OS on a Chromebook
xWolf13 said:
I may also add.
You are not restricted to only XFCE. You can install other distributions by specifying it. In the command in step two, you are able to replace xfce with unity, gnome, kde, lxde, e17, and even XBMC. You are also able to change which version of Ubuntu you want to install. You use the same command in step two but you add a -r and specify which version. You can read all supported ones over here . You can also put crouton within a window. Example of installation with xfce and ubuntu 14.04 is : sudo sh ~/Downloads/crouton -t xfce,xiwi -r trusty
Click to expand...
Click to collapse
Aye was trying to keep it simple, but shall ad this later
exge said:
i think it should be apt-cache instead
Click to expand...
Click to collapse
fixed! cheers for that, should really start proof reading posts before submitting
xWolf13 said:
I may also add.
You are not restricted to only XFCE. You can install other distributions by specifying it. In the command in step two, you are able to replace xfce with unity, gnome, kde, lxde, e17, and even XBMC. You are also able to change which version of Ubuntu you want to install. You use the same command in step two but you add a -r and specify which version. You can read all supported ones over here . You can also put crouton within a window. Example of installation with xfce and ubuntu 14.04 is : sudo sh ~/Downloads/crouton -t xfce,xiwi -r trusty
Click to expand...
Click to collapse
ahhh good point slipped my mind, I've updated the guide to include your quote so you get credit. Cheers
Has anyone installed Kali with crouton?
Sent from my HTC One_M8 using XDA Free mobile app
fourhundredandtwenty said:
Has anyone installed Kali with crouton?
Click to expand...
Click to collapse
Kali should work fine using this method

Some apps can't get access to (/emulated/0/) folder

Hi,
My device is LG G4 h-815 rooted, marshmallow 6.0 v20e.
A lot of my apps can't see the folder /emulated/0/
Thank you for your help.
Any idea ?!!
shaydzmi said:
Any idea ?!!
Click to expand...
Click to collapse
which apps?
xzfzx said:
which apps?
Click to expand...
Click to collapse
Actually, all my apps, except the stock file manager.
Some apps can show me (0) when I open it, but when I go back to the upper folder I can't go forward again.
I hope this makes sense.
shaydzmi said:
Hi,
My device is LG G4 h-815 rooted, marshmallow 6.0 v20e.
A lot of my apps can't see the folder /emulated/0/
Thank you for your help.
Click to expand...
Click to collapse
If im not mistaken when mm came out they changed they write permissions on sd card i may be wrong. But u have to make a
Sure u grant perms to all apps that need sd write. a lott of people on the g3s were having this issue. I neve did when i run mm so i dont know exactly. Just trying to spit an idea out there
TheMadScientist420 said:
If im not mistaken when mm came out they changed they write permissions on sd card i may be wrong. But u have to make a
Sure u grant perms to all apps that need sd write. a lott of people on the g3s were having this issue. I neve did when i run mm so i dont know exactly. Just trying to spit an idea out there
Click to expand...
Click to collapse
Thank you for your help.
I have no problem with the external SD card.
The problem I'm having is with internal storage, this is a little demonstration how it looks like :
When I open an app for example : Explorer, It shows me this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
When I go to the parent folder, it will become like this :
shaydzmi said:
Actually, all my apps, except the stock file manager.
Some apps can show me (0) when I open it, but when I go back to the upper folder I can't go forward again.
I hope this makes sense.
Click to expand...
Click to collapse
as the user above stated it might be a permission problem but i dont believe that is the case because /emulated/0 is the internal storage...
can you please name one app so i can check it? i am running v20d and not rooted but i dont think one letter can make the difference lol and if you can not get access with root than i dont think that it matters.
eidt: just saw you new comment i am downloading es explorer to try and look at the problem
---------- Post added at 10:56 AM ---------- Previous post was at 10:03 AM ----------
ok so i looked into it and it seems to be an android problem
it seems like some why the user t=does not have read permission
since i dont have root i can not fix it but you can (because you have root) i am guiding you blindly with out testing it...but i am sure it will not do any harm if you follow it.
first little guide so you have some kind of knowledge about what you are about to do if you dont already have.
ls - see the content of a folder
cd - enter in to a folder ( or out by ".." )
chmod - change permissions
su - use another user
for the steps:
1. download terminal emulator.
2. cd storage
3. cd emulated
4.(its a small L not a capital i) ls (just to make you sure you have the same error as me)
5. cd ..
6.(its a small L not a capital i) ls -la (just to make sure you see the permissions as me to the emulated folder(the letter on the side))
7. su root
8. chmod -R 775 emulated
and i believe your are done let me know if it worked
xzfzx said:
as the user above stated it might be a permission problem but i dont believe that is the case because /emulated/0 is the internal storage...
can you please name one app so i can check it? i am running v20d and not rooted but i dont think one letter can make the difference lol and if you can not get access with root than i dont think that it matters.
eidt: just saw you new comment i am downloading es explorer to try and look at the problem
---------- Post added at 10:56 AM ---------- Previous post was at 10:03 AM ----------
ok so i looked into it and it seems to be an android problem
it seems like some why the user t=does not have read permission
since i dont have root i can not fix it but you can (because you have root) i am guiding you blindly with out testing it...but i am sure it will not do any harm if you follow it.
first little guide so you have some kind of knowledge about what you are about to do if you dont already have.
ls - see the content of a folder
cd - enter in to a folder ( or out by ".." )
chmod - change permissions
su - use another user
for the steps:
1. download terminal emulator.
2. cd storage
3. cd emulated
4.(its a small L not a capital i) ls (just to make you sure you have the same error as me)
5. cd ..
6.(its a small L not a capital i) ls -la (just to make sure you see the permissions as me to the emulated folder(the letter on the side))
7. su root
8. chmod -R 775 emulated
and i believe your are done let me know if it worked
Click to expand...
Click to collapse
Thank you very much,
This is what I did :
Nothing happened.
It doesn't want to change permission.
shaydzmi said:
It doesn't want to change permission.
Click to expand...
Click to collapse
2 things:
1. you forgot "su root"
2.
you wrote "chmod -R775 emulated"
instead of "chmod -R 775 emulated" between the R and the 775 there is space
xzfzx said:
2 things:
1. you forgot "su root"
2.
you wrote "chmod -R775 emulated"
instead of "chmod -R 775 emulated" between the R and the 775 there is space
Click to expand...
Click to collapse
I did this, doesn't fix the problem, and I couldn't understand what is written :
shaydzmi said:
I did this, doesn't fix the problem, and I couldn't understand what is written :
Click to expand...
Click to collapse
you wrote "chmod -R 775"
instead of "chmod -R 775 emulated"
Again :
Sent from my LG-H815 using Tapatalk
shaydzmi said:
Again :
View attachment 3694608
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
did it worked?...
there is no error....
do "ls" after "cd emulated" to check it if you dont get permission denied that means it worked
No, it didn't work :
Sent from my LG-H815 using Tapatalk
shaydzmi said:
No, it didn't work :
View attachment 3694739
Sent from my LG-H815 using Tapatalk
Click to expand...
Click to collapse
:-/ can you do ls -la after cd storage and upload the pic?
and you can try and do cd storage > su root > chmod 775 emulated > cd emulated > chmod 775 0 > chmod -R 775 0 > ls-la (the last is for checking) if it does not work
you can try one last thing reenter terminal than su root > cd mnt > cd user > chmod 775 0 > chmod -R 775 0 > cd 0 > ls-la and if this does not work i am out of ideas...i dont know maybe google did it in purpose somewhy.
in the end it is not such a big problem because you can still see the content of it you just cant just go back to it when browsing in any app which is not big deal because you can always reopen the app.
maybe some one else can help you
Sent from my LG-H815 using Tapatalk
Sent from my LG-H815 using Tapatalk
It is a big deal to me, because I'm not able to select a folder in internal storage as a virtual podcast, because the podcast app can't enter 0.
Sent from my LG-H815 using Tapatalk
try "cd /sdcard"

Categories

Resources