Chinaunix首页 | 论坛 | 博客
  • 博客访问: 191043
  • 博文数量: 31
  • 博客积分: 2510
  • 博客等级: 少校
  • 技术积分: 981
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-20 09:18
文章分类
文章存档

2011年(3)

2010年(8)

2009年(1)

2008年(19)

我的朋友

分类: LINUX

2010-01-04 17:15:01

I surprisingly and suddenly got a brand new PC though I haven’t applied for one. Ok, let’s take it as a Christmas gift, and I can practice installing the Debian Linux OS personally!

Firstly, install the standard system. Everything is quite smooth during about 30m’s installation process, nothing unexpected.

Now I have to configure the IP address.


1. edit the /etc/network/interfaces as follows (use static IP):
iface eth0 inet static
address 10.120.5.104
netmask 255.255.252.0
gateway 10.120.4.1
2. ifup eth0
3. /etc/init.d/networking restart
 
One thing to do before leaving the machine without monitor, keyboard and mouse is to make sure it can be accessed by SSH. By default, Debian standard installation doesn’t include ssh package for security consideration. But that’s easy by running ‘apt-get update’ then ‘apt-get install ssh’. Make sure to have root permission. A few seconds’ later, everything is OK.
 
Bang! Seems there are lots of issues with Debian standard installation. By default, the Vim doesn’t support command: syntax on; in .vimrc. It complains: “Sorry, the command is not available in this version: syntax on;”. Also some other options such as ‘foldmethod’ are not supported either. All we have to do is to install the full function: apt-get install vim
 
Another issue: I have installed ppp using ‘apt-get install ppp’ but when I run ‘sudo route add -net 10.76.0.0 netmask 255.255.0.0 ppp0’, it complains “SIOCADDRT: No such device”. Googled a lot but all solutions failed. By chance I noticed ppp requires OpenSSL installed. But ‘whereis openssl’ returned nothing, which means I have had it yet! Why it’s not installed when I install ppp? Maybe because I answered ‘no’ when apt-get asked whether to verify packages or not? Not sure. For now, I only need to ‘sudo apt-get install openssl’. Hooray!
 
Oh man! Even gcc, make is not installed by default of standard installation!
阅读(675) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~