Discuss: AnX11 Phone Project

Discuss a HowTo.

Moderator: How-to Curator

Discuss: AnX11 Phone Project

Postby SoulSingin » August 3rd, 2013, 7:56 pm

This thread is for discussion of AnX11 Phone Project. Below are a few related links.


If my HowTo has helped you, please leave some suggestions in the discussion below.

Thanks,
- Soul Singin'
.
Last edited by SoulSingin on October 18th, 2016, 1:39 pm, edited 9 times in total.
Wildflower seed in the sand and wind
May the four winds blow you home again
User avatar
SoulSingin
 
Posts: 519
Joined: February 9th, 2011, 1:21 pm

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby SoulSingin » August 3rd, 2013, 11:45 pm

SoulSingin wrote:To that end, please leave suggestions in the discussion thread.


Let's kick off the suggestions with a ~/.emacs

Code: Select all
;; ;;  ~/.emacs
;; ;;
;; ;;  Soul Singin'
;; ;;  last modified:  15 August 2013

;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;;

;; ;; APPEARANCE
;; ;; ==========
;; ;;
(display-time-mode t)
(menu-bar-mode nil)
(scroll-bar-mode nil)
(tool-bar-mode nil)

;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;;

;; function to reload .emacs
(defun reload-emacs ()
  (interactive)
  (load "~/.emacs"))

;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;;

;; ;; A FEW MORE CUSTOMIZATIONS
;; ;; = === ==== ==============

;; in emacs23 transient-mark-mode is on by default.
;; I'm not used to that, so it drives me crazy
(transient-mark-mode 0)

;; show parenthesis
(show-paren-mode t)

;; set font
(set-default-font "Droid Sans Mono-14")
.
Last edited by SoulSingin on August 15th, 2013, 9:37 am, edited 3 times in total.
Wildflower seed in the sand and wind
May the four winds blow you home again
User avatar
SoulSingin
 
Posts: 519
Joined: February 9th, 2011, 1:21 pm

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby FretfulMother » August 4th, 2013, 12:23 am

I already fail to fully understand the partitioning.
After running:
sh /sdcard/debian-kit*
i confirm to unpack to /data/local
then tell it to use 2w /which hopefully is a big debian wheezy)
and then get the error message:
Only 242Mb storage space left for sdcard/debian.img


I only got a 4Gig Sdcard which is unused, so i formatted like this:
- 200 MB fat32
- 500 Mb ext2
- 3.2 Gb ext2
Trying to find a good setting now.
Aha, i see. It is either installing to a loop _or installing to another partition of the card by using the manual installation. Ok, next run.

btw: Cool. Not that i would need such, but at least a bit of fun. more than just a bit.
You might, or might not, like nightweb (i2p for android). https://nightweb.net/ tor on android was a nightmare (i assume i2p is too).


copyright (c) 2013, Eric Doviak (aka: "Soul Singin'"), all rights reserved

that's the spirit. inspired rather by android than by debian, huh?
User avatar
FretfulMother
 
Posts: 1145
Joined: March 25th, 2013, 10:20 am
Location: skatepark

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby SoulSingin » August 4th, 2013, 2:47 am

FretfulMother wrote:btw: Cool. Not that i would need such, but at least a bit of fun. more than just a bit.

Enjoy!

FretfulMother wrote:
SoulSingin wrote:copyright (c) 2013, Eric Doviak (aka: "Soul Singin'"), all rights reserved

that's the spirit. inspired rather by android than by debian, huh?

I'm in the early stages of a serious project. I know nothing about documentation licenses, so I will deal with those issues later. In the meantime, I want to retain control of my own work. (I just wrote 11 pages and plan to write more).

Suggestions on how to properly license a community project would be greatly appreciated! . ;)
.
Wildflower seed in the sand and wind
May the four winds blow you home again
User avatar
SoulSingin
 
Posts: 519
Joined: February 9th, 2011, 1:21 pm

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby FretfulMother » August 4th, 2013, 3:10 am

Ok, a first success with a loop'ed installation in /data (right path?).
Let me comment:
I barely use the android, hence rather slow and awkward, and once i got it all sorted (including partitioning the sd-card after figuring out how to unplug it, etc), it was rather easy.
It will take time (perhaps only for folks like me), but it works easy,
as long connectbot, ssh-droid are installed and it is rooted already.
It didn't copy /data/loca/deb/deb to /system/bin, hence i run it from the former directory via ./deb.

So, to sum it up, having in mind that i didn't read much or properly, am tired as a bulldog and it is hotter than july and that i know nothing about smartphones at all
this is sure a project worth it. Aka: i recommend doing it (either as one needs it or for the fun of it).
Now we talk (about smartphones).

Let me ask this (it doesn't belong here, but it doesn't need to be answered, i just take the chance):
If i
ssh root@<ip-of-smartphone>
i don't get a real ssh access. I do ls, and all i find is /bin. In one of the how-to's i read something about a tool, perhaps that is related (and i will figure it out tomorrow), but perhaps it is not, and i need to find a way to ssh from the PC or laptop (i can't affort another (bluetooth) keyboard, and typing on the smartphone ... well: i am not able to in acceptable speed). I got to say that autocompletion, bash-history and similar tools show what they are worth once you ain't got them no more.
PS: this is the tool i read about, but didn't understand yet: android-tools-adb
User avatar
FretfulMother
 
Posts: 1145
Joined: March 25th, 2013, 10:20 am
Location: skatepark

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby SoulSingin » August 4th, 2013, 3:36 am

FretfulMother wrote:Ok, a first success

Yay! . :D

FretfulMother wrote:this is sure a project worth it. Aka: i recommend doing it (either as one needs it or for the fun of it).

Thanks!

FretfulMother wrote:It didn't copy /data/loca/deb/deb to /system/bin, hence i run it from the former directory via ./deb.

I had similar problems after I messed up an installation. I eventually rigged a solution, but I still do not know why it is so difficult to write to that directory as root. I suspect that it has something to do with which of the thousands of users has permission to read/write to that directory.

FretfulMother wrote:If i
ssh root@<ip-of-smartphone>
i don't get a real ssh access. I do ls, and all i find is /bin.

I suspect that the Android SSH server dropped you into its own $HOME. Try cd / and see what happens.

FretfulMother wrote:PS: this is the tool i read about, but didn't understand yet: android-tools-adb

Yes. Install that package, connect your phone via USB and run adb shell to reach your phone's Android shell. While you're there, run adb help to check out all the things that tool can do.
.
Wildflower seed in the sand and wind
May the four winds blow you home again
User avatar
SoulSingin
 
Posts: 519
Joined: February 9th, 2011, 1:21 pm

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby SoulSingin » August 4th, 2013, 9:36 am

SoulSingin wrote:
FretfulMother wrote:It didn't copy /data/loca/deb/deb to /system/bin, hence i run it from the former directory via ./deb.

I had similar problems after I messed up an installation. I eventually rigged a solution, but I still do not know why it is so difficult to write to that directory as root.

Simple answer. The directory is mounted read-only. You just have to remount it. For example:

Code: Select all
mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system
.
Wildflower seed in the sand and wind
May the four winds blow you home again
User avatar
SoulSingin
 
Posts: 519
Joined: February 9th, 2011, 1:21 pm

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby debil » August 4th, 2013, 10:27 am

SoulSingin wrote:Let's kick off the suggestions with a ~/.emacs
<snip>

Is that your whole ~/.emacs? I don't even use emacs that often and I have loads of stuff in mine. You're running pretty vanilla then.
Ultimimate fanboi edition contributor
debil
 
Posts: 651
Joined: February 9th, 2011, 12:02 pm

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby FretfulMother » August 4th, 2013, 8:21 pm

SoulSingin wrote:
FretfulMother wrote:If i
ssh root@<ip-of-smartphone>
i don't get a real ssh access. I do ls, and all i find is /bin.

I suspect that the Android SSH server dropped you into its own $HOME. Try cd / and see what happens.

I could swear i did that, but obviously i didn't. I can cd /.
Confusion is still my masterplan.
On the laptop i run: ssh root@<ip-of-smartphone>
and if i now enter a typical debian command, for example
apt-cache policy openssh-server
i can run it (hence am running debian, not android via ssh-droid, i guess?).

Now it get's more confusing:
I run:
exit
and am still on the android, still on debian.
If i enter a second exit i am back on the laptop.

That's not really a problem, i can hammer the commands from the laptop now (aka fast) and will get my head into it (in months or years, i don't care).
Trying to install a gui and some kind of gui-remote (vnc or whatever) now/this night.

PS: I tried to remount rw, but that didn't help neither (perhaps as i was already on debian, i am quite sure i did it from ssh from the laptop).
User avatar
FretfulMother
 
Posts: 1145
Joined: March 25th, 2013, 10:20 am
Location: skatepark

Re: Discuss: Sven-Ola's Debian Kit for Android

Postby SoulSingin » August 4th, 2013, 10:04 pm

debil wrote:Is that your whole ~/.emacs? I don't even use emacs that often and I have loads of stuff in mine. You're running pretty vanilla then.

Sadly, it is. I used to have all sorts of functions (e.g. to launch URLs in Iceweasel), but over the years they stopped working and I stopped caring. The "comment-to-code ratio" of my real ~/.emacs is so high that I'm ashamed to post it.

But thank you for giving me the motivation to clean it up. ;) Here's what I created for my own phone today. I'll work on a good set of defaults for the project tomorrow.

Code: Select all
;; ;;  Soul Singin's ~/.emacs for Debian on Android
;; ;;  last modified:  04 August 2013

;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;; ;;

;; inhibit the splash screen
(custom-set-variables
 '(inhibit-startup-screen t))

;; save valuable screen real estate
(display-time-mode t)
(menu-bar-mode nil)
(scroll-bar-mode nil)
(tool-bar-mode nil)

;; load "dired-x.el" -- provides "dired-omit-mode" (hides "dot files")
(load "~/.emacs-lisp/dired-x.el")

;; show parenthesis
(show-paren-mode t)

;; font for GUI, tips at:  http://www.emacswiki.org/emacs/XftGnuEmacs
(set-default-font "Droid Sans Mono-14")

;; function to reload ~/.emacs
(defun reload-emacs ()
  (interactive)
  (load "~/.emacs")
)
.
Wildflower seed in the sand and wind
May the four winds blow you home again
User avatar
SoulSingin
 
Posts: 519
Joined: February 9th, 2011, 1:21 pm

Next

Return to HowTo Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

x