所有记录基于ubuntu12.04版本,这些是我使用过程中所遇到的一些配置问题,记录下来,方便以后查找,持续修改中!
1.建立c/c++编译器环境
sudo apt-get install gcc sudo apt-get install g++ sudo apt-get install gdb sudo apt-get install build-essential
2.之前为了在ubuntu中使用office软件,所以试用了wine,不过效果不好,卸载起来却很麻烦!
添加wine源命令:
sudo add-apt-repository ppa:ubuntu-wine/ppa
删除wine命令:
sudo apt-get autoremove wine sudo aptget --purge wine
3.ubuntu开启ssh服务
默认情况ssh-server是没有安装的,不过安装了openssh-client客户端,所以先进行安装
sudo apt-get install openssh-server
然后开启ssh-service,命令:(以下两种命令都是可以的,个人推荐前者!)
sudo service ssh start
or
sudo /etc/init.d/ssh start
ssh的配置文件位于/etc/ssh/sshd_config,默认端口22,需要时可以修改端口,安全起见!修改完成需要重启服务使生效!
sudo service ssh restart
ssh登录远程主机命令
ssh 远程主机名称@ip 例子: ssh remotecomputer@192.168.2.1