zoukankan      html  css  js  c++  java
  • Linux装机环境配置记录

    昨天重装了系统,Linux mint 13 ,之前很多次装系统后都想详细记录下环境配置时的过程,包括查阅的资料,以供将来参考。以下是我的系统环境配置的详细过程:

    1、首先是更新source:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    deb http://packages.linuxmint.com/ maya main upstream import
     
    # 原文件内容, mint 直接使用了ubuntu的软件源
    # deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
    # deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
    # deb http://security.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
     
    # 修改后内容,mint使用了 163 镜像的软件源
    deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
     
    deb http://archive.canonical.com/ubuntu/ precise partner
    deb http://packages.medibuntu.org/ precise free non-free
     
    # deb http://archive.getdeb.net/ubuntu precise-getdeb apps
    # deb http://archive.getdeb.net/ubuntu precise-getdeb games

    当然,这些网易源也只是目前比较好的,将来啥时候过期也说不准的==!

    2、安装中文语言支持
    由于我安装linux mint的过程中是没有网络连接可用的,所以安装完成后,中文语言支持并不完整,需要在联网之后重新检查并安装语言支持。点击左下角菜单 -> system tools -> 系统设置 -> 语言支持,按照提示操作即可完成。

    3、安装输入法

    以前装系统,输入法最开始用原声的IBUS,后来在Ubuntu上用过一段时间的IBUS-googlepinyin,但不知为什么googlepinyin总会不能切换中文的BUG,这次在查输入法资料时,淘得一宝贝:fcitx,现在刚开始用,感觉还不错,蛮有爱的:)下面给出两种输入法的安装方法:

     》》》》》》》ibus,agi ibus-googlepinyin和ibus-sunpinyin

    》》》》》》》安装中文输入法:fcitx,含谷歌拼音输入法等

                       $ sudo apt-get install fcitx

                       $ im-swith

           再打开的对话框中,选择fcitx完成设置,重启下就有中文输入法了。

    这里为参考文献里的介绍方法,安装好后,可以在SYSTEM TOOL下打开输入方法的设置选项,在图形界面下做相应设置即可。

    4、linux修改主机名

    用hostname命令可以临时修改机器名,但机器重新启动之后就会恢复原来的值。

    #hostname   //查看机器名
    #hostname -i  //查看本机器名对应的ip地址


    另外一种方法就是之久修改配置文件

    修改/etc/hostname   修改这个文件,系统才有效
         /etc/hosts       hostname命令读这个配置文件

    网上有很多朋友说直接修改/etc/hosts文件就可以,但系统本身用到主机名的地方不会变化,所以我觉得
     /etc/hosts 是网络中用的,/etc/hostname是本机起作用,而且经络测试也是这样的,所以要修改主机名,就两个文件都更改 。

    5、一直在Ubuntu下用终端操作,看着他长长的路径名实在不爽, 动手来改改咯~

    $: sudo vim ~/.bashrc

    这个文件记录了用户终端配置

    找到

    if [ "$color_prompt " = yes ]; then
        PS1 ='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W \[\033[00m\]\$ '
    else
        PS1 ='${debian_chroot:+($debian_chroot)}\u@\h:\W \$ '

    将w由小写改成大写,可以表示只显示当前目录名称.

    6、安装ssh-server\ssh-client、vim\ctags、gcc\g++、synergy、vsftpd(“very secure ftp  daemon” )、byobu

    7、设置开机启动服务项:

        chkconfig  vsftpd on

    8、ftp/apache/mysql/ssh等服务配置:

    vsftpd配置文件/etc/vsftpd.conf 本人的文件位置,

    具体服务的配置,我打算在单独的一片文章中记录。

     9. 挂载磁盘

    手动挂载:

    $ sudo mount -t ext4 /dev/sdb ./SecondDisk

    开机自动挂载:

    $ vi /etc/fstab

    在文件最后增加以下记录

    /dev/sdb       /home/johnchain/WorkStation/SecondDisk     ext3    defaults    0      0

  • 相关阅读:
    使用 Spring data redis 结合 Spring cache 缓存数据配置
    Spring Web Flow 笔记
    Linux 定时实行一次任务命令
    css js 优化工具
    arch Failed to load module "intel"
    go 冒泡排序
    go (break goto continue)
    VirtualBox,Kernel driver not installed (rc=-1908)
    go运算符
    go iota
  • 原文地址:https://www.cnblogs.com/johnchain/p/2992680.html
Copyright © 2011-2022 走看看