DIGITory/Ubuntu2012. 4. 28. 00:04


1. Server Ubuntu - has a directory to be shared. (IP : 90.80.70.60)

sudo apt-get install portmap nfs-kernel-server

vi /etc/exports

    add to the file "[PATH of the directory to be shared] [Client Ubuntu's IP](rw)"

                             ex) /home/me/Shared 10.20.30.40(rw)


sudo /etc/init.d/nfs-kernel-server restart (IP : 10.20.30.40)

sudo exportfs -v  (jut to check.. you can see the directory can be shared)



2. Client Ubuntu - Need to access the directory on Server Ubuntu

sudo apt-get install nfs-kernel-server (I'm not sure...it can be nfs-common)

sudo mkdir [directory to mount]

       ex) sudo mkdir /mnt/nfs

showmount -c [Server Ubuntu's IP]

       ex) showmount -c 90.80.70.60

       If you can't see anything after doing this, It's about the security problem. 

       'lokkit' command to get it off.


mount it!!!

     ex) sudo mount -t nfs 90.80.70.60:/home/me/Shared /mnt/nfs




(from : http://blog.naver.com/dresstowin?Redirect=Log&logNo=50079887962)


Posted by Joe.C
DIGITory/Ubuntu2012. 4. 26. 18:00



1. download driver-installation file from nvidia.com

2. sudo stop gdm (in 12.04... no gdm service... 'sudo service lightdm stop')

3. automatically going to text mode

   after ctrl + alt + F1 to go to text-mode, then you can stop gdm.

4. sudo ./NVIDIA-Linux-x86_64-295.40.run (downloaded)

5. after installing

6. sudo start gdm



I faced the problem below, when I do re-boot after 5th-step.

"You do not appear to be using the NVIDIA X driver. Please edit your X configuration file 
    (just run `nvidia-xconfig` as root), and restart the X server. "

then I did "sudo nvidia-xconfig"..... I couldn't see the X-window again :-(

I had to re-install ubunto to see it again.


Posted by Joe.C
DIGITory/Ubuntu2012. 4. 26. 15:37

First of all, to clean your cache just use this command:

sudo apt-get clean

This will avoid this kind of problems in the future.

Lets try to solve this by remaking the missing directory:

sudo mkdir -m755 /var/cache/apt/archives/partial


(https://answers.launchpad.net/ubuntu/+source/apt/+question/9470)

'DIGITory > Ubuntu' 카테고리의 다른 글

Sharing directories between Ubuntu PCs  (2) 2012.04.28
Ubuntu - Nvidia driver  (1) 2012.04.26
유용한 리눅스 프로그램들  (1) 2012.04.21
ADB on Ubuntu  (1) 2012.04.05
Ubuntu - install Java jdk ... (11.04)  (0) 2012.04.05
Posted by Joe.C
DIGITory/Ubuntu2012. 4. 21. 15:09
Posted by Joe.C
WWWorkin/......2012. 4. 6. 12:20



출처는 http://www.kandroid.org/online-pdk/guide/tcpdump.html !!!!

Debugging with tcpdump and other tools

Installing tcpdump

Pushing the binary to an existing device

Download tcpdump from http://www.tcpdump.org/, then execute:

adb root
adb remount
adb push /wherever/you/put/tcpdump /system/xbin/tcpdump
adb shell chmod 6755 /data/local/tmp/tcpdump

Including tcpdump in the build image

If you are running your own build, execute:

mmm external/tcpdump  # install the binary in out/.../system/xbin
make snod             # build a new system.img that includes it

Flash the device as usual, for example, fastboot flashball.

If you want to build tcpdump by default, add CUSTOM_TARGETS += tcpdump to your buildspec.mk.

Running tcpdump

You need to have root access on your device.

Batch mode capture

The typical procedure is to capture packets to a file and then examine the file on the desktop, as illustrated below:

adb shell tcpdump -i any -p -s 0 -w /sdcard/capture.pcap
# "-i any": listen on any network interface
# "-p": disable promiscuous mode (doesn't work anyway)
# "-s 0": capture the entire packet
# "-w": write packets to a file (rather than printing to stdout)

   ... do whatever you want to capture, then ^C to stop it ...

adb pull /sdcard/capture.pcap .
sudo apt-get install wireshark  # or ethereal, if you're still on dapper
wireshark capture.pcap          # or ethereal

   ... look at your packets and be wise ...

You can run tcpdump in the background from an interactive shell or from Terminal. By default, tcpdump captures all traffic without filtering. If you prefer, add an expression like port 80 to the tcpdump command line.

Real time packet monitoring

Execute the following if you would like to watch packets go by rather than capturing them to a file (-n skips DNS lookups. -s 0 captures the entire packet rather than just the header):

adb shell tcpdump -n -s 0

Typical tcpdump options apply. For example, if you want to see HTTP traffic:

adb shell tcpdump -X -n -s 0 port 80

You can also monitor packets with wireshark or ethereal, as shown below:

# In one shell, start tcpdump.
adb shell "tcpdump -n -s 0 -w - | nc -l -p 11233"

# In a separate shell, forward data and run ethereal.
adb forward tcp:11233 tcp:11233 && nc 127.0.0.1 11233 | ethereal -k -S -i -

Note that you can't restart capture via ethereal. If anything goes wrong, you will need to rerun both commands.

For more immediate output, add -l to the tcpdump command line, but this can cause adb to choke (it helps to use a nonzero argument for -s to limit the amount of data captured per packet; -s 100 is sufficient if you just want to see headers).

Disabling encryption

If your service runs over httpstcpdump is of limited use. In this case, you can rewrite some service URLs to use http, for example:

vendor/google/tools/override-gservices url:calendar_sync_https_proxy \
  https://www.google.com/calendar rewrite http://android.clients.google.com/proxy/calendar

Other network debugging commands

On the device:

  • ifconfig interface: note that unlike Linux, you need to give ifconfig an argument
  • netcfg: lists interfaces and IP addresses
  • iftop: like top for network
  • route: examine the routing table
  • netstat: see active network connections
  • ncnetcat connection utility

On the desktop:

  • curl: fetch URLs directly to emulate device requests

근데 난 기본적으로 타겟에 깔려있는게 포트 관련 명령이 잘 안먹음..

"tcpdump -X -n -s 0 -w /sdcard/XXXX.pcap" 으로 실행...

참고 :  http://www.tcpdump.org/

'WWWorkin > ......' 카테고리의 다른 글

Test Pages  (0) 2014.07.21
Posted by Joe.C
DIGITory/Ubuntu2012. 4. 5. 15:23



1. Install JAVA 

take a look  " http://joec.tistory.com/522 "


2. download 'android-sdk-linux'

go get it " http://developer.android.com/sdk/index.html "

and extract it to a directory


3. install Android SDK Platform-tools

You can see the text-file "adb_has_moved.txt" in 'tools' directory

------------------------------------------------------------------------------------------------

The adb tool has moved to platform-tools/


If you don't see this directory in your SDK,

launch the SDK and AVD Manager (execute the android tool)

and install "Android SDK Platform-tools"


Please also update your PATH environment variable to

include the platform-tools/ directory, so you can

execute adb from any location.

------------------------------------------------------------------------------------------------
:-(

so execute 'android' in tools. and install it.
then you can see 'platform-tools' directory.
'adb' file in it.

Posted by Joe.C
DIGITory/Ubuntu2012. 4. 5. 14:32



※ you can also install 'openjdk-6-jdk' by "sudo apt-get install openjdk-6-jdk"...


This is about installing SUN-JAVA JDK.


1.  Downloading

go to "http://www.oracle.com/technetwork/java/javase/downloads/index.html"

and donwload jdk (I got "jdk-7u3-linux-i586.tar.gz")

and extract it. you can see a directory named ""jdk1.7.0_03"

move the directory to "/usr/lib/java/" (create the 'java' directory)


2.  Installing

execute 'sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/java/jdk1.7.0_03/jre/bin/java" 1'

and 'sudo update-alternatives --config java'

If you have another java-jdk, you can see some menus to select.

If you have just one, you can see this...

"There is only one alternative in link group java: /usr/lib/java/jdk1.7.0_03/jre/bin/java

Nothing to configure."


3. Checking

add the directory to PATH.

I did... edit '~/.bashrc' file. 

adding.... 

'export JAVA_HOME=/usr/lib/java/jdk1.7.0_03'

'export PATH=$JAVA_HOME:$PATH'

and excute 'java -version' to check.

you can see this...finally.

-------------------------------------------------------------------------------------

java version "1.7.0_03"

Java(TM) SE Runtime Environment (build 1.7.0_03-b04)

Java HotSpot(TM) Server VM (build 22.1-b02, mixed mode)


Posted by Joe.C
DIGITory/Ubuntu2012. 4. 4. 11:46



"The password you use to log in to your computer no longer matches that of your login keyring"

......................... what???? 


To solve this proble....


To reset your keyring.

1. Go into your home folder. 

2. Press ctrl & h to show your hidden folders. 

3. Now look in your .gnome2/keyrings directory. 

4. Find the default.keyring file.

5. Move that file to a different folder.

6. Once done, reboot your computer.

To re-hide your hidden files, follow step 2.


"http://www.linuxquestions.org/questions/linux-newbie-8/problem-with-enter-password-to-unlock-your-login-keyring-889111/"

Posted by Joe.C
DIGITory/Ubuntu2012. 3. 30. 18:53
Posted by Joe.C
WWWorkin/Webkit2012. 3. 26. 21:31
http://trac.webkit.org/wiki/Chromium

I'm on Ubuntu 11.04

After getting code.....

1. update-webkit --chromium

Need more libs for updating 

libgtk2.0-dev
libnss3-dev 
libgconf2-dev 
libgcrypt11-dev 
libgnome-keyring-dev 
libdbus-glib-1-dev 
libcups2-dev 

2. build-webkit --chromium

If you get an error....
"alsa_input.h:8:28: fatal error: alsa/asoundlib.h: No such file or directory....."

install 'libasound2-dev'

 
I got SUCCESS to build...........

 
3. new-run-webkit-tests --chromium

I got an error............again..
--------------------------------------------------------------------------- 
Ruby is not installed; can't generate pretty patches.

Unable to find wdiff
    at /usr/bin/wdiff
    Please install using: "sudo apt-get install wdiff"

For complete Linux build requirements, please see:

    http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
Build check failed
--------------------------------------------------------------------------- 
... OK.. Do it.


I got an error............again.. 
---------------------------------------------------------------------------  
Ruby is not installed; can't generate pretty patches.

No httpd found. Cannot run http tests.
System dependencies check failed.
To override, invoke with --nocheck-sys-deps

You are missing /usr/share/fonts/truetype/kochi/kochi-gothic.ttf. Try re-running build/install-build-deps.sh. Also see http://code.google.com/p/chromium/wiki/LayoutTestsLinux
---------------------------------------------------------------------------  
 
OK.....  run 'WebKit/Source/WebKit/chromium/build/install-build-deps.sh'

 

'WWWorkin > Webkit' 카테고리의 다른 글

video test  (0) 2014.08.22
Links 4 tests  (0) 2014.03.20
Webkit-efl : Build Errors & Script excution Errors  (5) 2012.02.20
[TS] - Error from Gstreamer in Webkit Build  (1) 2012.02.20
webkit efl - Build  (4) 2012.02.16
Posted by Joe.C