Creative Commons License
本Blog采用 知识共享署名-非商业性使用-禁止演绎 3.0 Unported许可协议 进行许可。 —— Fox <游戏人生>

游戏人生

游戏人生 != ( 人生 == 游戏 )
站点迁移至:http://www.yulefox.com。请订阅本博的朋友将RSS修改为http://feeds.feedburner.com/yulefox
posts - 62, comments - 508, trackbacks - 0, articles - 7

Debian开发学习日记(二):系统简单配置

Posted on 2008-06-06 01:33 Fox 阅读(2713) 评论(7)  编辑 收藏 引用 所属分类: T技术碎语

sudo使普通用户具有root用户的权限,减少root登录,还有日志记录……,主要是为了安全,暂时没有体会@.@。

1. sudo

1) 安装sudo:apt-get install sudo

2) 添加sudo:

  a. chmod +w /etc/sudoers,允许写
  b. vim /etc/sudoers
  c. 添加:newsudo   ALL=(ALL) NOPASSWD: ALL
  d. chmod 0440 /etc/sudoers,更改sudoers文件权限,使之可以修改如vimrc等文件

2. 配置Vim

1) 安装最新Vim:apt-get install vim

2) 语法加亮:vim /etc/vim/vimrc,去掉systax on前的注释"

3) 显示行号:set nu

4) 自动缩进:set autoindent

  C语言缩进:set cindent

3. 配置Profile

1) vim /etc/profile

2) 添加:alias ls='ls --color=auto'

3) logout

更多零零散散的配置就不写了,因为有TX在我的上一篇回帖说我写的很水,说实话,我有点被冤枉。就我目前对Debian的认知水平,也就到这份上了。有句话说的好:工欲善其事,必先利其器。这次哥哥我重新杀回到Debian来,绝对不会只是玩玩儿,我会负责的

后面就会开始用make慢慢写一些东西了。说到底,这一系列日记只是对工具的一个熟悉过程而已。

PS:

GR今天在说,我似乎应该把时间花到有用的东西上面,言下之意,我当下做的事没什么意义,呵呵,其实,转到Linux平台下熟悉一下,也算是有意义的事,对我来讲,闲的无聊的时候看毛片也算有意义的事:D。

当然,话说回来,最近关乎学习的另外一件有意义的事情是看看Kevin推荐的《C++ Templates》和《Modern C++ Design》。

之所以婆婆妈妈的写下来,主要因为我这个人羞耻感不强 + 健忘,写下来还不去做会让我觉得难堪;-)。

Feedback

# re: Debian开发学习日记(二):系统简单配置[未登录]  回复  更多评论   

2008-06-06 11:42 by cppexplore
放在首页的时候 能不能考虑下 文章是不是有一定的原创性 能不能让看的人有点收获
系统常用命令、vim常用命令都很有用处 为何不从深度、广度两方面着手整理下再发到首页呢

# re: Debian开发学习日记(二):系统简单配置  回复  更多评论   

2008-06-06 12:45 by Fox
Sorry,我以为都必须放在首页#--"
谢谢提醒;)

# re: Debian开发学习日记(二):系统简单配置  回复  更多评论   

2010-07-06 02:17 by AlysonBOWMAN20
I took 1 st <a href="http://lowest-rate-loans.com/topics/home-loans">home loans</a> when I was a teenager and it supported my family a lot. Nevertheless, I need the term loan once more time.

# re: Debian开发学习日记(二):系统简单配置  回复  更多评论   

2011-10-23 04:38 by thesis writing service
We should reach the highest peak of our career and to do it we have to create the mba dissertation of the best quality. Thus, the greatest thesis writing service will be able to figure out our dissertation writing problems.

# re: Debian开发学习日记(二):系统简单配置  回复  更多评论   

2012-01-12 18:58 by article submission directories
Even if you don't understand how to optimize your site, you should try the submission of articles company to get good issues!

# re: Debian开发学习日记(二):系统简单配置  回复  更多评论   

2012-01-13 09:28 by custom thesis
Very neat feature. With matter being so crucial online, this is a awesome outline for accomplish new on that people will use for dissertation.

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理