linux小白Ubuntu13.04安装完后的一系列活动

    来兴致了安装了个ubuntu13.04玩一玩linux,遇到了各种菜bi问题。

    1.如何调出自带的中文输入法

    安装的时候装个bi直接安装了英文版的。进入系统后,发现找不到中文输入法,蛋疼般地只能用拼音谷歌度娘了几下,甚至连我的破手机都拿出来了,只为了能用中文搜索。英文没学好又想装bi的娃伤不起。

    不过总算还是找到答案了,在System Setting点击Language Support 最底下Keyboard input method system下拉菜单选中iBus,关闭之后系统restart就可以在上方的任务栏处有一个键盘一样的标志符,右击此标志符,选择preferences,然后在input method 下 Select an input method 下拉菜单下惊现chinese,选中pingyin后,Add进去。好了这样就可以使用中文输入法了。快捷键的更改也可以在preferences中的general处选择修改。


    2.root用户的建立

    在终端窗口中敲击su,进不了root,后来查了下是自己的root账户还未建立,敲击命令sudo passwd之后先要求输入当前用户的密码,然后输入需要建立的root用户的密码,确认输入之后,就可以通过su命令进入root下了。


    3.安装vim,添加源

    终端窗口中敲击 vim显示vim还未装,然后就跟着敲击了命令sudo apt-get install vim, 发现还是装不了,显示没有安装包,网上查了一下,需要添加更新源。

    通过指令 sudo gedit /etc/apt/sources.list 打开源文件,然后将下列的源copy进去。之后再通过命令sudo apt-get update更新源。再然后就可以通过之前的命令安装vim了。


    #台湾源   

deb http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse 
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty main universe restricted multiverse 
deb http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted 
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-security universe main multiverse restricted 
deb http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted 
deb-src http://tw.archive.ubuntu.com/ubuntu/ natty-updates universe main multiverse restricted

#网易 Ubuntu 11.04 源(速度很快)

deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse 
deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse 
deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted 
deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted 
deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted 
deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted

 #骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin 

deb http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse 
deb-src http://ubuntu.srt.cn/ubuntu/ natty main universe restricted multiverse 
deb http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-security universe main multiverse restricted 
deb http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted 
deb http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-proposed universe main multiverse restricted 
deb http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-backports universe main multiverse restricted 
deb-src http://ubuntu.srt.cn/ubuntu/ natty-updates universe main multiverse restricted


#电子科技大学

deb http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb-src http://ubuntu.uestc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse

#中国科技大学

deb http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ natty-updates main restricted universe multiverse

#北京理工大学

deb http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe

#兰州大学

deb ftp://mirror.lzu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe

#上海交通大学

deb http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu-cn/ natty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ natty-updates main multiverse restricted universe



    4.windows下利用putty远程登录linux

    <1>开启ssh(secure shell)服务,当然在开启ssh服务之前,需要下载相关得软件,使用下面得命令即可:

       sudo apt-get install ssh

       然后进入/etc/init.d  输入命令:sudo service ssh start 开启ssh服务

       使用 netstat -tln 查看ssh服务是否已经打开(ssh 服务默认使用22端口)

  若要关闭ssh服务时,使用 : sudo service ssh stop即可关闭ssh 服务

 <2>.在客户端(widnows主机)上下载ssh客户端putty,填写linux服务器ip,session name 然后保存,打开,输入用户名,和密码,那么就登录成功了!!!

 

    5.linux下远程登录linux

    首先,两台机器都要安装好ssh,若没有安装,可以通过sudo apt-get install ssh 进行安装。

    然后,在客户机终端输入ssh -l xxx(服务器的账户名) ip地址(服务器的ip地址)例如ssh -l diffenyu 192.168.206.11

    最后,直接选择yes


    6.改变文件或目录的属主或属组

    root下拷贝一个用户的文件给另一个用户,但拷贝过后发现另一个用户用不了,查了一下文件属性,原来通过root用户拷贝过后文件属主和属组都变成了root,因此普通用户不能使用,这就需要通过chown命令进行属主与属组的更改,如下例子所示

    利用chown命令

    例1:把文件test.c的所有者改为diffenyu。

 $ chown diffenyu shiyan.c

 例2:把目录/his及其下的所有文件和子目录的属主改成diffenyu,属组改成diffenyu。

 $ chown - R diffenyu.diffenyu /his

   

 

  









  





  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值