ubuntu安装

可以说我无聊,还是最近脑子发热,代码看不下去了,总之把电脑的系统给换了。

host:ubuntu12.04,guest:win7 双屏

虚拟机是我在笔记本上做好的win7.ova

本想做个镜像把笔记本上的系统完全做到台式机上,但是还是有不便之处,所以重装了,正好留下记录,下次也方便。

1、安装ubuntu12.04

2、设置root用户密码

sudo passwd root

3、设置网络链接,这个不清楚,可是使用bbs上的bras安装下就行

3、更新源:

从网络获取相对快的源,并写入:

/etc/apt/sources.list

更新信息:

apt-get update

4、安装:

apt-get install vim

apt-get install vim-doc

apt-get install vim-scripts

apt-get install ctags

apt-get ssh

sudo apt-get install expect

apt-get install libncurses5-dev

apt-get install nfs-kernel-server

 

apt-get iptux

iptux的设置是:

tools/preference下设置personal/nicknamesystem下设置utf-16cp936

 

apt-get install minicom

apt-get install ipcalc

apt-get install m4

apt-get install sox

apt-get install setserial

apt-get install procinfo

apt-get install chkconfig

 

sudo apt-get install splint

splint 静态检查器

 

安装VLC

5、语言:

进入System setting /Language Support 选择安装中文,同时将系统输入法设置为ibuslog-out系统,再次登录,右上角的“键盘”样式下进入preferences,选择中文输入法。

6、安装N卡驱动

apt-add-repository ppa:ubuntu-x-swat/x-updates

apt-get update

apt-get install nvidia-current

dpkg-reconfigure xserver-xorg

nvidia-xconfig

nvidia-settings

进入NVIDIA X Server Settings后设置

screen 0为:configurationTwinView, positionAbsolute+0+0

screen 1 为:configurationTwinViewpositionAbsolute +1280+0

Save to X configuration File

而后重启系统

 

对于ATI显卡,请用 amdcccle 设置
进入Display Manager,Multi-Display都设置为 Multi-display desktop with display(s) other 分辨率尽量选建议的,但是也可以更改. 另一个需要改变的是系统中的Display,参考N卡设置

 

9.设置打印机

system settings下设置


11、启用ipv6

apt-get insatll miredo

143上服务器下的/etc/hosts文件的内容加入到本地文件

开启ipv6ipv4有点问题,所以可以选择关闭miredo/etc/inti.d/mired stop

 

12、关闭防火墙
       ufw disable

 

13、查看目录中所有文件占用的磁盘空间

       du -sh /cd/

14、查看磁盘大小

  df -h

15、计算器

       bc

16、sudo apt-get install sdcv

      serach stardict-langdao-ec-gb-2.4.2.tar.bz2

      mkdir -p usr/shard/stardict/dic

      tar -xvjf stardict-langdao-ec-gb-2.4.2.tar.bz2 -C Downloads/    

 

shutdown -h +15

15分钟后关机

 

17、情形:笔记本只能装 win7,台式机是ubuntu(不知道为什么不用suse),现在需要共享文件。

     解决:1、nfs(未成功)

           2、samba

            sudo apt-get install samba

            sudo apt-get install system-config-samba(图形化操作)

            不要直接编辑smb.conf文件,通过system-config-samba操作。如果只能访问共享文件夹,却不能从win7上拷贝文件到共享文件夹,这可能是因为共享文件夹本身的权限设置问题,需要执行: chmod o+w share_path

 

18. 安装openjdk:   参考自:http://askubuntu.com/questions/302055/how-to-install-openjdk-7-jdk-on-ubuntu-12-04-without-dragging-in-unrelated-gui-a

    apt-get install openjdk-7-jdk

 

19. sudo apt-get install graphviz     http://www.ibm.com/developerworks/cn/aix/library/au-aix-graphviz/

 

20. apt-get 命令行取消代理设置 

disable apt-get proxy:   http://chandrusoft.wordpress.com/2012/09/30/disable-proxy-when-using-apt-get/

When I’m at home, I run apt-get thusly: sudo apt-get -o Acquire::http::proxy=false install kgraphviewer

 

21.

查询可安装版本

使用apt-get查找当前可用的mysql版本.
apt-cache search mysql

安装指定版本

apt-get install package=version
例如:需要装autoconf 2.50
apt-get install 则会装最新的2.59而不是装2.50
apt-get install autoconf=2.50

 

22. man -k keyword 输出一份手册页清单,例如:man -k translate

 

posted on 2012-06-01 21:03  阿加  阅读(615)  评论(0编辑  收藏  举报

导航