3
19
2010
11

HOWTO run Ubuntu on low RAM computers

HOWTO run Ubuntu on low RAM computers
===========================

Ubuntu requires 256MB RAM to perform happily out of the box. It will run with 128MB of RAM, but with continuous swapping of memory to disk. If you have less than 256MB of RAM you can significantly improve Ubuntu performance by doing the following, in order of importance:

1) use a different window manager. Metacity (the default) is very memory intensive. Try icewm or fluxbox instead. To do that first ensure you have "universe" sources enabled and then "apt-get install fluxbox icewm". When you next login at the login screen click the Session button and choose either icewm or fluxbox as your default window manager.

2) remove unnecessary services. By default Ubuntu loads quite a number of services, assuming you will be using it like a server. I would hesitate to guess that 90% of Ubuntu users would rarely, if ever use such services. They all consume RAM. The easiest way to do this is to install "Boot-up Manager": "apt-get install bum". The run "bum" and unclick the following services: rsync, atd, apmd, acpi-support, dbus-1, mdadm, fetchmail, postfix - but first read what these services do and decide if you really need them. They can be rebooted if removing them break anything on your system. Others listed can also be removed in some circumstances. You will need to do a bit of research beforehand.

3) use low-RAM-requirement applications. Here are some suggestions:
browser: dillo or opera or lynx
email: sylpheed or mutt or pine
word processing: abiword
newsgroups: pan or slrn
file manager: mc
editor: vim
terminal: aterm or rxvt
pdf reader: xpdf
programming IDE: motor

4) remove gdm (the Gnome display manager) using bum. This consumes significant RAM. Before doing this choose the window manager you are happy with, make it your default and then next time you boot up you will login in a text mode terminal and then type "startx".

5) remove unnecessary virtual terminals. By default Ubuntu provides you with 6 virtual terminals. These are the login terminals you can get to by typing Ctrl-Alt-F2, Ctrl-Alt-F3 etc. Normally you only need one spare terminal in case of emergencies. To disable the others and free up even more RAM "gedit /etc/inittab" and comment out the lines below as shown:

#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

6) be continuously aware of all running processes and the RAM that your applications are consuming. You can see the processes with "ps aux". Check out the RSS column which is the total memory consumed by a process. You can also check your memory situation with "free". The important value is the second row number under the free column. This is the total available free memory including memory which has cached applications.

7) free up video RAM (especially for those using onboard video chips which share memory). Edit the etc/X11/xorg.conf file and comment out the following lines:
# Load "record"
# Load "dbe"
# Load "dri"
# Load "glx"
# Load "xtrap"
# Load "type1"

The most important module you're not loading is dri which is for graphics acceleration. You will need to test this; it might not work with all graphics cards and will break graphics intense apps.

8) if you have 128MB of RAM or less Ubuntu is the wrong Linux distro for you (IMHO). I can highly recommend VectorLinux (http://www.vectorlinux.com). This is an incredibly fast Linux distro which can run with 64MB of RAM - and using the tweaks above can be made to run with just 32MB of RAM!

Category: Default | Tags:
3
16
2010
25

程序员常去的一百个网站

1 J2me开发网 http://www.j2medev.com/bbs/index.asp
2 J2me社区 http://www.j2meforums.com/forum/
3 csdn http://www.csdn.net/
4 Vc知识库 http://www.vckbase.com/
5 codeproject http://www.codeproject.com/
6 程序员联合开发网 http://www.pudn.com/
7 看雪学院 http://www.pediy.com/
8 蓝色理想 http://www.blueidea.com/
9 博客园 http://www.cnblogs.com/
10 Nuix应用开发社区 http://chinaunix.net/
11 javaeye http://www.javaeye.com/
12 It人网 http://www.iteer.net/
13 中国人才热线 http://www.cjol.com/
14 天涯论坛 http://www.tianya.cn/
15 风云的blog http://blog.codingnow.com/
16 新浪科技频道 http://tech.sina.com.cn/
17 phpchina http://www.phpchina.com/html/index.html
18 游戏开发资源网 http://www.gameres.com/
19 网络游戏第一门户 http://www.17173.com/
20 我爱研发网 http://www.52rd.com/
21 Msdn中文网 http://www.microsoft.com/china/MSDN/DeveloperCenter/default.mspx
22 大富翁编程网站 http://www.delphibbs.com/
23 Delphi盒子 http://www.2ccc.com/
24 C++buillder研究 http://www.ccrun.com/
25 It论坛 http://bbs.itren.cn/
26 Java开源大全 http://www.open-open.com/
27 codegurn http://www.codeguru.com/
28 编程爱好者 http://www.programfan.com/
29 Java中文站 http://www.java-cn.com/
30 reactos http://www.reactos.org/zh/index.html
31 开源力量 http://www.opensourceforce.org/
32 电脑编程技巧与维护 http://www.comprg.com.cn/
33 中国电子网 http://21ic.com/
34 编程中国 http://www.bc-cn.net/
35 嵌入式开发论坛 http://www.cevx.com/bbs/
36 电脑爱好者 http://www.cfan.com.cn/
37 sybase中国 http://www.sybase.com.cn/gvswse/site/china/index.jsp
38 pbdr http://www.pbdr.com/
39 apache http://www.apache.org/
40 rootkit http://www.rootkit.com/index.php
41 驱动开发网 http://www.driverdevelop.com/first.html
42 安全焦点 http://www.xfocus.net/
43 cnbeta网友媒体与言论平台 http://www.cnbeta.com/
44 fyter的博客 http://www.fyter.cn/Default.aspx
45 asp.net控件 http://www.devexpress.com/
46 operamask http://www.operamasks.org/
47 中国源码网 http://www.yuanma.org/
48 sawin软件研发之窗 http://www.sawin.cn/
49 电脑教育与WEB教育在线 http://210.40.7.188/
50 中国dos联盟 http://www.cn-dos.net/
51 中国bios联盟 http://www.biosren.com/index.php
52 bioscentral http://bioscentral.com/
53 eda专业论坛 http://www.edacn.net/bbs/
54 诺基亚论坛 http://forum.nokia.com.cn/sch/index.html
55 计算机科学论坛 http://www.ieee.org.cn/index.asp
56 ibm developerworks 中国 http://www.ibm.com/developerworks/cn/
57 w3 http://www.w3.org/
58 网页设计师 http://www.w3cn.org/
59 中国万维网联盟 http://www.w3china.org/index.htm
60 豆瓣 http://www.douban.com/
61 卓越亚马逊 http://www.amazon.cn/
62 软件商务网 http://www.bizsofts.com/
63 sun http://www.sun.com/
64 google code http://code.google.com/
65 google 开发人员主页 http://code.google.com/intl/zh-CN/
66 the official microsoft asp.net http://www.asp.net/
67 microsoft IIS http://www.iis.net/default.aspx?tabid=1
68 荣耀 http://www.royaloo.com/index.html
69 侯捷网站 http://jjhou.csdn.net/
70 java大本营 http://www.javadby.com/
71 比特网 http://www.chinabyte.com/
72 51cto http://www.51cto.com/
73 infoq http://www.infoq.com/
74 博客堂 http://blog.joycode.com/
75 嵌入式开发网 http://www.embed.com.cn/
76 嵌入式开线 http://www.mcuol.com/
77 中嵌网 http://www.chinaeda.cn/
78 酷勤网 http://www.kuqin.com/
79 红联linux门户 http://www.linuxdiyf.com/
80 itpub技术门户 http://www.itpub.net/
81 程式设计俱乐部 http://www.programmer-club.com/index.asp
82 uml软件工程组织 http://www.uml.org.cn/index.asp
83 delphi园地 http://www.delphifans.com/
84 theserverside http://www.theserverside.com/
85 中国donet俱乐部 http://www.chinaaspx.com/
86 编程王 http://www.kingofcoders.com/
87 it168 http://www.it168.com/
88 open source software in c# http://csharp-source.net/
89 中国IT实验室 http://www.chinaitlab.com/
90 落伍者站长论坛 http://www.im286.com/
91 中国站长站 http://www.chinaz.com/
92 asp.net源码下载专业站 http://www.51aspx.com/
93 it职业工程师 http://www.51myit.com/
94 太平洋电脑网 http://www.pconline.com.cn/
95 乘风原创程序 http://study.qqcf.com/
96 网易学院 http://tech.163.com/school/
97 程序设计/程序开发类教程 http://www.pcvz.com/Program/Programs/Index.html
98 算法源码吧 http://www.sfcode.cn/
99 codegurn http://www.codeguru.cn/
100 得益网 http://www.netyi.net/
101 中国eclipse社区 http://www.eclipseworld.org/bbs/
102 项目管理者联盟 http://www.mypm.net/
103 栖息谷 http://www.21manager.com/

Category: Default | Tags:

Host by is-Programmer.com | Power by Chito 1.3.3 beta | Theme: Aeros 2.0 by TheBuckmaker.com