Tag: Ubuntu

  • 使用密钥自动登录SSH(更新ssh-copy-id)

    【更新】 经lyxint提醒,发现了ssh-copy-id命令,第二步可以更简单的实现 ssh-copy-id -i ~/.ssh/id_rsa.pub username@hostname 其中username为用户名,hostname为服务器VPS的IP地址 1)在本机生成公钥密钥 ssh-keygen -t rsa 一路回车,选择默认路径即可,默认路径为~/.ssh/ 2)将本地公钥上传至服务器 cat ~/.ssh/id_rsa.pub|ssh username@hostname ‘sh -c “cat – >>~/.ssh/authorized_keys”‘ 其中username为用户名,hostname为服务器VPS的IP地址 3)ssh设置文件的几点说明(一般是默认即可) 路径:/etc/ssh/sshd_config 相关行: PubkeyAuthentication yes #开启公钥验证 #AuthorizedKeysFile %h/.ssh/authorized_keys #公钥的位置,建议使用默认路径

  • Android平台下FreePascal的交叉编译器

    0) Preface 0.1) The Operating System is Ubuntu 10.10 0.2) All the softwares are the latest stable version by April 12, 2011 1) Download the Source of Free Pascal Compiler The ‘fpc-2.4.2.source.tar.gz’ on http://sourceforge.net/projects/freepascal/files/Source/2.4.2/ 2) Install the fpc-source. Just extract it. The root folder of fpc-source for me is ‘/home/victorhu/fpc-source’ 3) Download the Arm-Eabi (Sourcery…

  • Ubuntu 10.04安装Android开发环境(更新解决WST包缺少问题)

    更新:在10.10及11.04中搭建时可能会遇到WST包缺少的问题,可以参照这篇日志解决 注:本文中<android_sdk>代表Android SDK安装路径 这里选择”/home/victorhu/Code/android-sdk-linux_86″ Step 0 : 准备 [shell]sudo apt-get update[/shell] Step 1 : 安装 Java JDK & Eclipse [shell]sudo apt-get install sun-java6-jdk eclipse[/shell] Step 2 : 安装 Andorid SDK Starter Package [shell]wget http://dl.google.com/android/android-sdk_r06-linux_86.tgz tar -zxvf android-sdk_r06-linux_86.tgz[/shell] 你可以把这个文件放在任意你希望的位置,这就是Andord SDK的安装位置 Step 3 : 配置环境 [shell]export PATH=${PATH}:/tools[/shell] 如运行时出现”The project cannot be built until build path errors are…