ubuntu使用相关内容记录!

来源:互联网 发布:淘宝开店现在挣钱吗 编辑:程序博客网 时间:2024/05/22 05:24

所有记录基于ubuntu12.04版本,这些是我使用过程中所遇到的一些配置问题,记录下来,方便以后查找!


1.建立c/c++编译器环境

sudo apt-get install gccsudo apt-get install g++sudo apt-get install gdbsudo 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 startorsudo /etc/init.d/ssh start

ssh的配置文件位于/etc/ssh/sshd_config,默认端口22,需要时可以修改端口,安全起见!

原创粉丝点击