顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

ubuntu 安裝 sun-java-6 及切換使用的jdk

A.建議先安裝open-jdk
直接輸入 sudo apt-get install default-jdk

B.再安裝sun-java-6-jdk
照著AOSP 官網的教學操作
1. sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
2. sudo apt-get update
3. sudo apt-get install sun-java6-jdk

第3步驟會出現錯誤 "找不到套件之類的...."

修正方式:
1. sudo add-apt-repository ppa:ferramroberto/java
or sudo add-apt-repository ppa:flexiondotorg/java
2. sudo apt-get update
3. sudo apt-get install sun-java6-jdk

即可成功安裝,過程中會要求設定 DLJ ,按確定即可
完成後使用以下指令切換 java 版本

終端機輸入
update-alternatives --config java

出現

Selection    Path                                      優先級  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/java-6-sun/jre/bin/java       63        manual mode

0為預設的選項(openjdk),2為剛剛安裝的sunjdk,輸入數字切換

ubuntu 解壓縮 出現亂碼


安裝 p7zip ,可解決解壓縮檔出現亂碼問題

打開終端機輸入
sudo apt-get install p7zip-rar

使用終端機解壓縮
7z e 檔名.rar

更多的使用方法請官網參考吧

7-zip官網

putty psftp使用記錄

Putty
1.到官網下載 putty

2.執行 putty 依序輸入 遠端主機id , 選擇 ssh , 點擊連線

3. login as : 遠端主機帳號
    password : 遠端主機帳號密碼

psftp
1.到官網下載 psftp

2.執行 psftp 輸入 open 遠端主機id 按enter

3.輸入遠端主機帳號

4.再輸入密碼

ps.使用指令類似 sftp

ubuntu 使用 ssh sftp 記錄


SSH
1.  安裝 ssh server
終端機輸入
sudo apt-get install openssh-server openssh-client

2. 啟動 ssh server
終端機輸入
sudo /etc/init.d/ssh start

3. 遠端連線
終端機輸入
ssh 遠端主機帳號@遠端主機id
輸入密碼


SFTP
1. 遠端連線
終端機輸入
sftp 遠端主機帳號@遠端主機id
輸入密碼

2. 可使用在遠端主機指令
pwd , cd , ls , dir , mkdir , rmdir , rm , rename , chmod , chgrp , chown

3. 可使用在本機端指令
lcd , lls , lmkdir , lpwd , lrmdir

4. 本機上傳檔案到遠端
put 本機檔案 遠端路徑

5. 從遠端下載檔案到本機
get 遠端檔案 本機路徑


ubuntu gcin 輸入法


開啟終端機輸入
apt-get install gcin

安裝完成後重開機即可使用

調整設定
系統 -> 偏好設定  -> gcin 輸入法設定 -> 內定輸入法 開啟&關閉

ubuntu10.04 調整解析度


安裝好 ubuntu 之後解析度只有 800x600 和 640x480,如何調整更大的解析度呢

參考此篇

解法:

1.
終端機輸入
gtf 1280 1024 60 -x

2.
再輸入
sudo gedit /etc/X11/xorg.conf

把以下內容全部貼到 xorg.conf裡面
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
EndSection

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
Vendorname "Generic LCD Display"
Modelname "LCD Panel 1280x1024"
Horizsync 31.5-64.0
Vertrefresh 56.0 - 65.0
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
modeline "1280x1024@60" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
Gamma 1.0
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
SubSection "Display"
Depth 24
Virtual 1280 1024
Modes "1280x1024@60" "1280x960@60" "1024x768@60" "800x600@60" "800x600@56" "640x480@60"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Default Screen" 0 0
EndSection
Section "Module"
Load "dri"
Load "v4l"
EndSection
Section "ServerFlags"
EndSection

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Affiliate Network Reviews