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 遠端檔案 本機路徑


Git error: Permission denied (publickey). fatal: The remote end hung up unexpectedly


Permission denied (publickey).
fatal: The remote end hung up unexpectedly

原因:在本機端 git clone 專案時,使用指令時權限錯誤

解決:在輸入git clone 指令時切換到適合的權限,再輸入

或在放置專案的地方輸入 sshp-add

ubuntu gcin 輸入法


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

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

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

eclipse android 實機装置顯示 ????????? unknow

在 ubuntu 上的 eclipse + android 遇到實機顯示 ??????

解決
開啟终端機輸入
sudo -s
輸入密碼取得  root 權限

移動到 SDK 中的 platfarm-tools

以下步驟可能要重複好幾次,直到顯示名稱OK
輸入
sudo ./adb kill-server
會開始Connection attempts: 趕快再輸入
sudo ./adb devices

如果装置有顯示名稱就OK了


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

Git error: Permission denied (publickey) fatal: Could not read from remote repository

錯誤訊息:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

問題原因:

通常是 SSH Key 沒有加入的問題

解決方式:
1.重新產生 SSH Key

終端機輸入
ssh-keygen –t rsa –b 2048

2.顯示 SSH Key

終端機輸入
cat ~/.ssh/id_rsa.pub    

3.貼到 Gerrit 中
Settings -> SSH Public Keys -> add key 
貼上第2步中所有的內容

Twitter Delicious Facebook Digg Stumbleupon Favorites More

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