Chinaunix首页 | 论坛 | 博客
  • 博客访问: 359944
  • 博文数量: 66
  • 博客积分: 3201
  • 博客等级: 中校
  • 技术积分: 695
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-04 11:17
文章分类

全部博文(66)

文章存档

2016年(1)

2014年(1)

2012年(1)

2011年(2)

2010年(18)

2009年(42)

2008年(1)

分类: LINUX

2009-12-30 21:05:31

1.使用ssh登录到linux,安装apt-get install openssh-server

修改/etc/ssh/sshd_config,添加UseDNS no,这样就不用解析DNS了,本地登录速度就加快了。

2.实用samba和windows共享文件apt-get install samba
  然后修改/etc/samba/smb.conf,仿照[printer]写一个,read only=no就可以写了;
  然后sudo smbpasswd -a username,新建username,一般不需要重启samba就可以在windows登录了,windows映射一个盘符,以后在win就当自己硬盘用好了。
3.安装tftpd
  sudo apt-get install tftp tftpd
  前者是客户端,后者是服务程序

4.安装svn

aptitude install subversion [libapache2-svn ,后面的是apache的模块,用于apache启动http的svn]

如果要以svn://localhost/xxx的形式本地访问,就可以按这个启动svnserver -d -r /path/to/svnroot

如果要以的形式供其他人访问,需要安装libapache2-svn ,然后配置

/etc/apache2/mode-enabled/dav_svn.conf,如


DAV svn
SVNPath /home/jervis/svnrepo/cqd/

  如要权限设置参考其他的。

××创建svn库:

svnadmin create svnroot,然后编辑conf/svnserve.conf,去掉注释,然后修改anon-access = none

修改conf/auth如下

[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
super = admin
jervis = jervis, jr, bsdc


# [/foo/bar]
# harry = rw
# &joe = r
# * =
[/]
@super = rw
@jervis = rw

[/query/branches]
@jervis = rw

修改conf/passwd为

admin = admin
jervis = 1
jr = 1
bsdc = 1

要从svn://localhost切换到,可以:

svn --relocate switch svn://localhost/query/branches

如果要使用xinetd可以sudo apt-get install xinetd
  sudo vi /etc/xinetd.d/tftp
tftp内容:
service tftp
{
   disable = no
   socket_type = dgram
   protocol = udp
   wait = yes
   user = root
   server = /usr/sbin/in.tftpd
   server_args = -s /tftpboot
   per_source = 11
   cps = 100 2
   flags = IPv4
}
sudo /etc/init.d/xinetd restart
特别提醒:我们只用xinetd,除非RPC的用inetd,其次要下载东西,有的时候提示“Error code 2: Access violation”,那是你的目录权限问题,请设置777或什么的,这个折腾了我很久。
5.安装nfs,安装nfs-kernel-server或nfs-user-server。
然后配置/etc/exports
/home/jervis/EmbedSky *(rw,no_root_squash,no_all_squash,sync,no_subtree_check)
然后mount -o nolock,rsize=1024,wsize=1024,timeo=15 192.168.2.130:/tmp/ /tmp/

6.然后配置u-boot的env,如下
bootdelay=0
baudrate=115200
ethaddr=0a:1b:2c:3d:4e:5f
ipaddr=192.168.1.6
netmask=255.255.255.0
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),2m(kernel),-(root)
serverip=192.168.1.111
bootcmd=tftpboot 0x32000000 uImage; bootm 0x32000000
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=bios
bootargs=console=ttySAC0 root=/dev/nfs nfsroot=192.168.1.101:/home/jervis/EmbedSky/root_nfs ip=192.168.1.6:192.168.1.101:192.168.1.1:255.255.255.0:L3A8232:eth0:off
然后退出uboot的menu,执行boot(让其去执行bootcmd的).

安装vim7.2,由于源还没有更新,所以下载源码
./configure --with-features=huge --enable-gui=gnome2 --enable-cscope --enable-pythoninterp --enable-perlinterp --enable-tclinterp
make
sudo checkinstall -D(用checkinstall 来生deb包,方便删除)

发声
sudo apt-get install alsa-base
sudo dpkg-reconfigure alsa-base    //推荐always autosave


以后再补充了。

安装hwinfo查看硬件

sudo hwinfo --buffer | grep 'Mode\ '

阅读(1269) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~