728x90

기본적으로 linux는 ubuntu 14.04(64bit desktop)를 VM에 설치했다.


hard disk : 30G

memory : 1G


android-x86 용 가이드가 잘 되어 있어서 따라하기만 하면 됨


http://www.android-x86.org/getsourcecode


  $ repo init -u http://git.android-x86.org/manifest -b kitkat-x86

  $ repo sync



install JAVA : 최신버전인 1.8 설치했더니 맞지 않단다 1.6 or 1.7을 설치하라고 해서 다시 설치함

http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

download : jdk-7u60-linux-x64.tar.gz


  $ mkdir /usr/local/java/

  $ mv jdk-7u60-linux-x64.tar.gz /usr/local/java/

  $ tar xvfz /usr/local/java/jdk-7u60-linux-x64.tar.gz

  $ sudo vi /etc/profile


마지막 부분에 내용 추가

export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")


명령어에 새로 설치한 java를 등록

  $ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_60/bin/java" 1;


  $ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_60/bin/javac" 1;

 

  $ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.7.0_60/bin/javaws" 1;


  $ sudo update-alternatives --set java /usr/local/java/jdk1.7.0_60/bin/java;

  $ sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_60/bin/javac;

  $ sudo update-alternatives --set javaws /usr/local/java/jdk1.7.0_60/bin/javaws;


변경사항 적용

  $ source /etc/profile


설치 확인

  $ java -version




728x90
728x90

원문 : http://www.hypexr.org/linux_scp_help.php


What is Secure Copy?

scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.

Examples

Copy the file "foobar.txt" from a remote host to the local host

    $ scp your_username@remotehost.edu:foobar.txt /some/local/directory

Copy the file "foobar.txt" from the local host to a remote host

    $ scp foobar.txt your_username@remotehost.edu:/some/remote/directory

Copy the directory "foo" from the local host to a remote host's directory "bar"

    $ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar

Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu"

    $ scp your_username@rh1.edu:/some/remote/directory/foobar.txt \
    your_username@rh2.edu:/some/remote/directory/

Copying the files "foo.txt" and "bar.txt" from the local host to your home directory on the remote host

    $ scp foo.txt bar.txt your_username@remotehost.edu:~

Copy the file "foobar.txt" from the local host to a remote host using port 2264

    $ scp -P 2264 foobar.txt your_username@remotehost.edu:/some/remote/directory

Copy multiple files from the remote host to your current directory on the local host

    $ scp your_username@remotehost.edu:/some/remote/directory/\{a,b,c\} .
    $ scp your_username@remotehost.edu:~/\{foo.txt,bar.txt\} .

scp Performance

By default scp uses the Triple-DES cipher to encrypt the data being sent. Using the Blowfish cipher has been shown to increase speed. This can be done by using option -c blowfish in the command line.

    $ scp -c blowfish some_file your_username@remotehost.edu:~

It is often suggested that the -C option for compression should also be used to increase speed. The effect of compression, however, will only significantly increase speed if your connection is very slow. Otherwise it may just be adding extra burden to the CPU. An example of using blowfish and compression:

    $ scp -c blowfish -C local_file your_username@remotehost.edu:~


728x90

'Programming > linux왕초보' 카테고리의 다른 글

Linux SSD 최적화  (0) 2015.04.17
fflush, fileno  (0) 2015.04.07
[Linux] stream write  (0) 2015.03.26
linux filesystem 사용 용량 확인  (0) 2015.03.18
[Linux] Select and Poll  (0) 2015.01.27
tar 분할압축/풀기  (0) 2014.03.20
slang_rs_export_foreach.cpp Error: ParamName  (0) 2014.02.26
printk : kernel log 설정  (0) 2013.11.19
[Linux] Top 명령어 사용법  (0) 2013.11.08
alsa-driver-1.0.25설치 시 fw_device_put error  (0) 2013.11.08
728x90

    Rectangle backup;

        private void checkBox_mouse_tracking_CheckedChanged(object sender, EventArgs e)

        {

            if (checkBox_mouse_tracking.Checked)

            {

                backup = Cursor.Clip;

                this.Cursor = new Cursor(Cursor.Current.Handle);

                Cursor.Position = new Point(this.Location.X+ label_mouse_tracking.Location.X , this.Location.Y + label_mouse_tracking.Location.Y);

                Point p = new Point(this.Location.X + label_mouse_tracking.Location.X+7, this.Location.Y + label_mouse_tracking.Location.Y+30);

                

                Cursor.Clip = new Rectangle(p, label_mouse_tracking.Size);

            }

            else

            {

                Cursor.Clip = backup;

            }

            

        }



    }

728x90
728x90

tar 분할압축 :

tar cvfz - /PATH/* | split -b 1m - tets.tar.gz

1m 단위로 분할압축


tar 압축 풀기 : 

cat test.tar.gz* | tar xvfz -




gzip 분할압축

tar cvf - /PATH/* | gzip - | split -b 1m - test.tar.gz


gzip 압축 풀기

cat test.tar.gz* | gzip -d - | tar xvf -


여기서 - 는 stdio 를 의미한다.


728x90

+ Recent posts