ubuntu常用工具及环境配置
2014-05-27 16:53
120 查看
和服务器同步软件包列表,以便下载最新软件
sudo apt-get update
1、g++、vim安装
sudo apt-get install g++ vim -y
2、ssh、samba、nfs、telnet安装
sudo apt-get install openssh-server -y
ps -e | gerp "ssh" //如果有sshd,则安装成功
sudo /etc/init.d/ssh restart
sudo apt-get install samba smbfs -y
sudo smbpasswd -a username //添加samba用户,会提示设置密码
sudo apt-get install system-config-samba -y
//安装samba图形软件
sudo system-config-samba //启动samba图形软件,设置共享目录、读写权限及访问用户
sudo /etc/init.d/smbd restart
sudo apt-get install nfs-kernel-server
sudo vi /etc/exports
/home/username * (rw, sync, no_root_squash)
//加在文件末尾,nfs允许挂载的目录及权限
sduo /etc/init.d/portmap restart
sduo /etc/init.d/nfs-kernel-server restart
showmount -e //显示共享出的目录
sudo mount -t nfs localhost:/home/username /mnt
//本机挂载测试
mount -t nfs -o nolock 172.16.2.20:/home/username /mnt
//跨网络挂载测试
sudo umount /mnt
sudo apt-get install openbsd-inetd xinetd telnetd -y
//有人安装openbsd-inetd,有人安装xinetd
sudo vi /etc/inetd.conf //加入下面一行内容,也许已存在
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
sudo vi /etc/xinetd.conf //加入以下内容
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
sudo vi /etc/xinetd.d/telnet //加入以下内容,也许此文件根本不存在
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
# This file is created by user
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
sudo /etc/init.d/xinetd restart
3、curl、git、jdk、ndk安装
sudo apt-get install curl git -y
cd /usr/local
android-ndk-r9c-linux-x86_64.tar //解压生成android-ndk-r9c目录
sudo vi /etc/environment //配置环境变量PATH即可
cd /usr/local
sudo ./jdk-6u45-linux-x64.bin //解压jdk1.6.0_45目录
sudo vi /etc/environment //配置环境变量PATH
安装java、javac等工具待补充……
sudo apt-get update
1、g++、vim安装
sudo apt-get install g++ vim -y
2、ssh、samba、nfs、telnet安装
sudo apt-get install openssh-server -y
ps -e | gerp "ssh" //如果有sshd,则安装成功
sudo /etc/init.d/ssh restart
sudo apt-get install samba smbfs -y
sudo smbpasswd -a username //添加samba用户,会提示设置密码
sudo apt-get install system-config-samba -y
//安装samba图形软件
sudo system-config-samba //启动samba图形软件,设置共享目录、读写权限及访问用户
sudo /etc/init.d/smbd restart
sudo apt-get install nfs-kernel-server
sudo vi /etc/exports
/home/username * (rw, sync, no_root_squash)
//加在文件末尾,nfs允许挂载的目录及权限
sduo /etc/init.d/portmap restart
sduo /etc/init.d/nfs-kernel-server restart
showmount -e //显示共享出的目录
sudo mount -t nfs localhost:/home/username /mnt
//本机挂载测试
mount -t nfs -o nolock 172.16.2.20:/home/username /mnt
//跨网络挂载测试
sudo umount /mnt
sudo apt-get install openbsd-inetd xinetd telnetd -y
//有人安装openbsd-inetd,有人安装xinetd
sudo vi /etc/inetd.conf //加入下面一行内容,也许已存在
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
sudo vi /etc/xinetd.conf //加入以下内容
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
sudo vi /etc/xinetd.d/telnet //加入以下内容,也许此文件根本不存在
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
# This file is created by user
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
sudo /etc/init.d/xinetd restart
3、curl、git、jdk、ndk安装
sudo apt-get install curl git -y
cd /usr/local
android-ndk-r9c-linux-x86_64.tar //解压生成android-ndk-r9c目录
sudo vi /etc/environment //配置环境变量PATH即可
cd /usr/local
sudo ./jdk-6u45-linux-x64.bin //解压jdk1.6.0_45目录
sudo vi /etc/environment //配置环境变量PATH
安装java、javac等工具待补充……
相关文章推荐
- ubuntu常用工具及环境配置
- ubuntu常用工具及环境配置
- ubuntu常用工具及环境配置
- ubuntu常用工具及环境配置
- ubuntu常用工具及环境配置
- ubuntu常用工具及环境配置
- ubuntu常用工具及环境配置
- ubuntu 常用生产环境部署配置测试调优
- Ubuntu 下PHP环境的搭建和开发的工具的配置
- Ubuntu下常用开发工具安装和配置(ROUTER+DHCP+SSH+NFS+SAMBA)
- ubuntu下android开发环境配置及常用设置
- Ubuntu16.04安装后开发环境配置和常用软件安装
- Ubuntu常用软件及C/C++开发环境的安装和配置
- Ubuntu常用软件及C/C++开发环境的安装和配置
- Ubuntu下adb环境配置及常用命令
- Ubuntu16.04安装后开发环境配置和常用软件安装
- 我的ubuntu 常用工具及配置
- Ubuntu java和环境变量常用配置
- Ubuntu常用开发环境配置(lamp/c/c++)
- ubuntu下android开发环境配置及常用设置