DIGITory/Ubuntu2013.06.02 13:13


uname -r : check the version


go to the "/boot", see the old version..things..


sudo apt-get remove linux-image-<version>  : remove old things.....

Posted by Joe.C
DIGITory/Ubuntu2013.04.10 15:26



Ubuntu에 설치된 pkg의 버전 정보 확인 방법

dpkg -l <패키지 이름>

Posted by Joe.C
DIGITory/Ubuntu2012.10.18 17:32


Ubuntu Tweak으로 Mac Theme 설치하는 방법~

"http://deviantcj.tistory.com/447"

Posted by Joe.C
DIGITory/Ubuntu2012.08.10 17:38

간단히... 내 설정...500GB HDD 기준


SWAP : RAM 의 2배~4배...

/boot : 256MB

/ : 100GB 이하... 넘침....

/home : 나머지...

Posted by Joe.C
DIGITory/Ubuntu2012.05.12 15:40


perlexpr............. ㅠ.ㅠ 


rename --help 해보면 아래와 같이 나옴;;;

Unknown option: help

Usage: rename [-v] [-n] [-f] perlexpr [filenames]


어렵다... 쩝...


간단히 확장명 전체 바꾸기....

예 - 현재 디렉토리 파일의 확장자로 jpg를 가진 파일의 확장자를 전부 png로 바꾸기....

rename 's/.jpg/.png/' *


대충... 간단히 쓸만큼만 설명해 보면...


rename 's/[파일명 중 바꾸고 싶은 대상 문자열]/[대상 문자열 대신 들어갈 문자열]/' *

(문자열이 단순한 특수문자 하나라면 앞에 역슬래쉬를 붙여줌..)


출처 : http://ppaktion.maru.net/185


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

Mac Theme for Ubuntu  (3) 2012.10.18
Ubuntu installation - Partition (우분투 설치 - 파티션)  (1) 2012.08.10
rename - 우분투 파일 이름 변경  (1) 2012.05.12
Ubuntu에 jdk 설치하기  (1) 2012.05.03
Sharing directories between Ubuntu PCs  (2) 2012.04.28
Ubuntu - Nvidia driver  (1) 2012.04.26
Posted by Joe.C
DIGITory/Ubuntu2012.05.03 21:36

1. JDK download

http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html

바뀔 수도 있고... ㅎㅎㅎ tar파일을 받는다...

jdk-7u4-linux-x64.tar.gz 이런거... 난 64bit 10.10 ubuntu...


2. extract the file to the directory "/usr/lib/jvm/jdk1.7.0_04"

 no matter with the name of directory....


3.  just do this

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_04/jre/bin/java" 1


4. and this....

sudo update-alternatives --config java


5. you can see the selection menu

There are 2 choices for the alternative java (providing /usr/bin/java).


  Selection    Path                                      Priority   Status

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

* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode

  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode

  2            /usr/lib/jvm/jdk1.7.0_04/jre/bin/java      1         manual mode


Press enter to keep the current choice[*], or type selection number:


6. enter 2!!!


7. set environment variables....

add this to .bashrc

export JAVA_HOME=/usr/lib/java/jdk1.7.0_04

export PATH=/usr/java/bin/:$JAVA_HOME:$PATH

export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib


That's it.


안되면 : http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux

Posted by Joe.C
DIGITory/Ubuntu2012.04.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.04.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.


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

Ubuntu에 jdk 설치하기  (1) 2012.05.03
Sharing directories between Ubuntu PCs  (2) 2012.04.28
Ubuntu - Nvidia driver  (1) 2012.04.26
Resolved : "E: Archive directory /var/cache/apt/archives/partial is missing."  (1) 2012.04.26
유용한 리눅스 프로그램들  (1) 2012.04.21
ADB on Ubuntu  (1) 2012.04.05
Posted by Joe.C
DIGITory/Ubuntu2012.04.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)

Posted by Joe.C
DIGITory/Ubuntu2012.04.21 15:09