一,SecureCRT
远程登录ubuntu时遇到home、end等功能按键不能用时需要进行如下配置
Terminal Emulaqtion选项设置如下:
Emulation(仿真终端):设置为Linux
Select an alternate keyboard emulation(选择一个备用的键盘仿真):Linux
设置完成后可以正常使用键盘功能区。
二,ubuntu命令
挂载windows的共享目录到ubuntu目录下
1.查看ubuntu用户的id和组信息
id nobody
uid=65534(nobody) gid=65534(nogroup) 组=65534(nogroup)
2.挂载windows目录
sudo mount //windows机器的IP地址/css /mnt/css -o username=administrator,password=123,gid=65534,uid=65534
查看系统位数信息
sudo uname --m
samba配置
1.安装samba
sudo apt-get install samba
2.配置smb.conf
sudo vim /etc/samba/smb.conf
添加如下配置项
[share]
comment = share
path = /home/<user>/share
writable = yes
3.添加samba用户
sudo smbpasswd -a <user>
4.启动samba
sudo /etc/init.d/smbd restart
静态IP配置
Ubuntu 的网络配置信息放在 /etc/network/interfaces 中,如果配置动态获取ip,则在上述文件中加入以下内容:
使用如下命令打开网络配置信息文件:
sudo gedit /etc/network/interfaces
编辑文件(注意检察你的getway是否正确。):
auto eth0
iface eth0 inet static
address 192.168.8.119
netmask 255.255.255.0
gateway 192.168.8.1
配置完成之后重启网络:
sudo /etc/init.d/networking restart
这时查看的就修改好的配置信息了。
查看网关信息
nm-tool
三,交叉编译器
旧版本ndk下载方法
官方下载NDK的地址为:http://developer.Android.com/tools/sdk/ndk/index.html#Downloads
但是如果需要下载旧版本的NDK,google没有直接提供链接。可以通过下面的链接下载旧版本的NDK:
http://dl.google.com/android/ndk/android-ndk-<version>-<platform>.<fileextension>
其中<version>为NDK的版本,如r7/r7b/r7c/r8/r8b等内容,<platform>为目标操作系统,可以为:windows/darwin-x86/linux-x86,分别对应于:Windows,Mac OS X (intel),Linux 32/64-bit (x86)平台,<fileextension>为文件后缀,如果<platform>为windows,则为"zip",否则为"tar.bz2"。
举例,下载Linux下的NDKr8版本,则可以使用链接:
http://dl.google.com/android/ndk/android-ndk-r8-linux-x86.tar.bz2
Looks like you can construct the link to the NDK that you want and download it from dl.google.com:
Linux example:
http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2
OS X example:
http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86.tar.bz2
http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86_64.tar.bz2
Windows example:
http://dl.google.com/android/ndk/android-ndk-r9b-windows.zip
Extensions up to r10b:
.tar.bz2
for linux / os x and .zip
for windows.
Since r10c the extensions have changed to:
.bin
for linux / os x and .exe
for windows
Since r11:
.zip
for linux and OS X as well, a new URL base, and no 32 bit versions for OS X and linux.
https://dl.google.com/android/repository/android-ndk-r11-linux-x86_64.zip
64位ubuntu上编译32位程序
编译选项上添加-m32即可
默认情况下64位系统都会开启32位支持,如果没有开启参考:
http://www.cnblogs.com/mliudong/p/4086797.html