Hack-A-N900/Chatlogs/Treffen1
aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
(04/07/2010 06:28:33 PM) amir: ### BOOTSTRAP Start "Application Manager" and install packages "rootsh" and "OpenSSH client and server" and enable repository "extras-testing" (http://thenokiablog.com/2009/10/27/maemo-extras-nokia-n900-applications/) Choose ssh root password Connect the n900 via usb to your pc. Select "PC Suite Mode" Start "X Terminal" on N900 and enter: ifup usb0 ifconfig usb0 192.168.99.2 On your PC start a terminal and enter: ifup usb0 ifconfig usb0 192.168.99.1 ssh root@192.168.99.2 Please refer to http://wiki.maemo.org/N900_USB_networking for more detail. (04/07/2010 06:31:04 PM) amir: Via SSH: apt-get install bash coreutils-gnu grep-gnu wget vim Edit aliases in /root/.bashrc: # EXAMPLE # alias to gnu ls instead of busybux alias ls='gls --color=auto' alias ll='ls -l' alias la='ls -la' alias md='mkdir' alias rd='rmdir' # aliases to gnu grep instead of busybux alias grep='ggrep' alias egrep='egrep' alias fgrep='fgrep' alias psgrep='ps -ef | grep' alias vi='vim' WARNING: Don't relink /bin/sh to /bin/bash. You system won't boot and you will have to reflash the device. Change shell in /etc/passwd to bash: root:x:0:0:root:/root:/bin/bash user:!:29999:29999::/home/user:/bin/bash Add tesing repositories to /etc/apt/sources.list: deb http://repository.maemo.org/extras/ fremantle free deb-src http://repository.maemo.org/extras/ fremantle free deb http://repository.maemo.org/extras-testing/ fremantle free deb-src http://repository.maemo.org/extras-testing/ fremantle free (04/07/2010 06:56:32 PM) amir: apt-get update (04/07/2010 06:56:39 PM) amir: ### UNIONFS Install kernel 2.6.28.10maemo-omap1: apt-get install kernel-flasher-maemo kernel-modules-maemo reboot (04/07/2010 07:05:25 PM) amir: Download script chroot-unionfs and create image wget http://10.20.30.243/chroot-unionfs mv chroot-unionfs /sbin/ mkdir /home/user/MyDocs/sandbox/ cd /home/user/MyDocs/sandbox/ dd if=/dev/zero of=fs.img bs=1M count=1 seek=2048 mkfs.ext2 fs.img (04/07/2010 07:21:56 PM) amir: alias minime='ssh -i ~/.ssh/id_rsa_n900 root@minime' alias minimecp='scp -c arcfour -i ~/.ssh/id_rsa_n900' alias minimemount='sshfs -o IdentityFile=~/.ssh/id_rsa_n900 root@minime:/home/user /media/n900/' (04/07/2010 07:32:05 PM) amir: Test unionfs chroot-unionfs -v -t home/user/MyDocs/sandbox/fs.img Add tesing repositories to /etc/apt/sources.list on unionfs: deb http://repository.maemo.org/ fremantle/sdk free non-free deb-src http://repository.maemo.org/ fremantle/sdk free deb http://repository.maemo.org/ fremantle/tools free non-free deb-src http://repository.maemo.org/ fremantle/tools free (04/07/2010 08:51:29 PM) amir: apt-get install less easy-deb-chroot (04/07/2010 09:30:17 PM) amir: apt-get install gstreamer-tools gst-launch v4l2src device="/dev/video0" ! xvimagesink gst-launch v4l2camsrc device=/dev/video0 ! dsph264enc ! rtph264pay ! multiudpsink clients="host:9999" gst-launch-0.10 udpsrc port="9999" caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)42800d, sprop-parameter-sets=(string)\"Z0KADekBQHpCAAAH0AAB1MAI\\,aM48gA\\=\\=\", payload=(int)96, ssrc=(guint)3319071702, clock-base=(guint)2646458462, seqnum-base=(guint)36789' ! rtph264depay ! ffdec_h264 ! xvimagesink http://www.gstreamer.net/documentation/plugins.html gstreamer0.10-ffmpeg gstreamer0.10-vorbis application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP4V-ES, profile-level-id=(string)1, config=(string)000001b001000001b58913000001000000012000c48d88002d2004601463000001b24c61766335322e35342e30, payload=(int)96, ssrc=(guint)1719061043, clock-base=(guint)1175864410, seqnum-base=(guint)13820 gst-launch-0.10 udpsrc port="9999" caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)42800d, sprop-parameter-sets=(string)\"Z0KADekBQHpCAAAH0AAB1MAI\\,aM48gA\\=\\=\", payload=(int)96, ssrc=(guint)3319071702, clock-base=(guint)2646458462, seqnum-base=(guint)36789' ! rtph264depay ! ffdec_h264 ! xvimagesink http://10.20.30.243/gstudpcast