- 浏览: 852365 次
- 性别:
- 来自: lanzhou
文章分类
最新评论
-
liu346435400:
楼主讲了实话啊,中国程序员的现状,也是只见中国程序员拼死拼活的 ...
中国的程序员为什么这么辛苦 -
qw8226718:
国内ASP.NET下功能比较完善,优化比较好的Spacebui ...
国内外开源sns源码大全 -
dotjar:
敢问兰州的大哥,Prism 现在在12.04LTS上可用么?我 ...
最佳 Ubuntu 下 WebQQ 聊天体验 -
coralsea:
兄弟,卫星通信不是这么简单的,单向接收卫星广播信号不需要太大的 ...
Google 上网 -
txin0814:
我成功安装chrome frame后 在IE地址栏前加上cf: ...
IE中使用Google Chrome Frame运行HTML 5
Optimise Gnome
Along with KDE, Gnome is one of the two most widely used desktop environments in the Linux ecosystem, but it's quickly being overtaken by Xfce and other more lightweight alternatives when it comes to performance and speed. However, with just a few of our tweaks, Gnome can keep up with the rest of the pack...
Install preload
Preload is a daemon that analyses what you do on a day-to-day basis and fetches the binaries and files you're most likely to need to boost startup times and general performance. In Ubuntu you just need to search for 'preload' in the package manager, but on other distros it's worth checking that the service is running. To activate the service, type:
service preload on
After enabling automatic login and installing preload we initiated two restarts on our test machine to give the daemon a chance to monitor the startups. After comparing the two times, we found that preload had trimmed a second off the time it took to get a usable desktop. This doesn't sound a lot, but if it's used in conjunction with your new fast boot time then it's well worth the effort.
Enable automatic login
Yes, we know we're always telling you how important security is, but if you live on your own in a castle that doesn't have internet access then you're probably safe to enable automatic logins. The time saved is the time it would otherwise take you to type your password.
The GUI method is by far the easiest. Simply head to System > Administration > Login Window . After authenticating yourself, head to the Security tab and check the box next to Automatic Login. You can then choose from the list of users in the drop-down menu who gets logged in automatically.
Unfortunately for users of Fedora, this option isn't available, so you need to make the necessary changes manually. To enable automatic login you need to open /etc/gdm/custom.conf in a text editor with root permissions and then append the following to the bottom of the file:
[daemon] TimedLoginEnable=True TimedLogin=UserName TimedLoginDelay=0
replacing UserName with the user you would like to log in.
Use wire frames
A common problem with low-powered systems is the lag generated when you click and drag a window. Gnome renders the window as it moves, which can slow performance down, but it has a built-in method to reduce the demand on system resources this causes, which you can activate by typing the following into a terminal:
gconftool-2 --type bool --set /apps/metacity/general/ reduced_resources true
Now when you click and drag windows you will see wire frames instead of the window contents, which drastically improves performance on under-powered systems (but has little or no effect on others). Note that this trick won't work if you are using Compiz or an alternative window decorator.
Gnome's wireframe mode eliminates the overhead of showing window contents whilst resizing or moving them.
Make menus faster
If your menus are starting to feel sluggish, the most likely cause is the icon delay. Every time you open the Gnome menu for the first time the icons have to be loaded from their source files. On slower systems this can look a little messy, so there is a timeout deliberately set to ensure the icons are loaded in time for you to see them. However, with modern hardware this is not generally necessary, so the option can safely be adjusted. Create a new file in your home directory named .gtkrc-2.0 then open this file in your favourite text editor to type:
gtk-menu-popup-delay=0
After saving the file, press Ctrl+Alt+Backspace to reinitialise xserver and your menus should open considerably faster.
Optimise KDE
KDE has received a mixed press lately. Though there's no doubting that its good looks and the new plasmoids set it apart from the competition, KDE 4 still can't match KDE 3 (or even Gnome) for speed and performance. Though this area is in heavy development, a few tweaks can trim valuable seconds off your startup time and make the desktop as a whole much more responsive.
Disable IPv6
Until IPv6 is more implemented, Konqueror has to translate between IPv4 and IPv6 - so if you can get a speed boost by turning off IPv6. The methods are slightly different between distros. For instance, in Kubuntu you need to edit /etc/environment as root and add the following line to the file:
KDE_NO_IPV6=True
In openSUSE, edit /etc/sysconfig/windowmanager with root permissions and find this line:
KDE_USE_IPV6="yes"
then change the answer to no . In both cases you will need to save the file and exit before restarting the session for the changes to take effect.
Enable automatic login
Gnome isn't the only desktop that can benefit from you setting up an automatic login: KDE 4 users can do much the same thing by heading to System Settings and clicking on the Advanced tab. Here you can run the login manager and enable automatic login from the Convenience tab. You'll also need to choose the user you want to log in automatically from the drop-down menu below the checkbox. When you reboot you should miss the login screen altogether and launch straight into the KDE 4 splash screen.
Start with an empty session
By default KDE 4 saves volumes of data about your current session, such as which windows are open and which processes were running so that next time you log in your session is exactly as you left it. This is very convenient, but it also slows your boot time down as this data has to be reloaded on each boot. We can avoid this problem by ensuring that we start with a fresh session. Select System Settings (or Configure Desktop in OpenSUSE) from the KDE menu and in the Advanced tab start the session manager. Towards the bottom of the form select the radio button next to Start With An Empty Session then click Apply.
Start Konqueror faster
We can make Konqueror run much faster by enabling preloading. This uses some memory, but means that the next time you fire up Konqueror it will open in around half the time and in the same place you left it. If you used the previous tweak to start KDE with an empty session then there's no need to panic, as we will configure preloading to run automatically when KDE starts.
To enable Konqueror preloading, open up the browser and head to Settings > Configure Konqueror . In the Performance section check the box next to Preload An Instance After KDE Startup . You can also set how many instances of Konqueror are preloaded at startup depending on how many Konqueror windows you tend to run at any one given time.
Voice of the Guru #2
Gael Duval - Founder of Mandriva and Ulteo
"I'm always using '!part_of_command' as a repeater of a shell command you want to repeat. For instance if you have typed 'ps auxww' in the near past and want to go with it again, then just type '!ps'. Of course it's also cool to use it jointly with a command number returned from the list of past commands provided by 'history'. Just type '!command_number' to repeat a command from the history list."
发表评论
-
Fedora 13 Alpha 发布
2010-03-09 10:03 1064经过一周的延期过后,代号 Goddard 的 Fedora 1 ... -
超简单 无需光驱Windows下硬盘安装CentOS
2010-01-02 05:23 6247只要按照以下步骤做了,包你能把CentOS请回家:loveli ... -
Make Linux faster and lighter<4>
2009-11-05 15:54 852Speed up your software Almost ... -
Make Linux faster and lighter<3>
2009-11-05 15:54 816Boost your network You've twea ... -
Make Linux faster and lighter<1>
2009-11-05 15:52 1027With just a few tweaks, your Li ... -
20 Free Best Linux Wallpapers
2009-11-05 15:51 1513Hey linux guys! Who said I fo ... -
The 10 Best Linux Distributions of 2009
2009-11-05 15:49 925It was exactly one year ago tod ... -
Linux虚拟化:10个让你不得不爱的理由
2009-10-31 15:04 728对于很多云技术供应商、虚拟软件 生产商以及大型IT公司来 ... -
CentOS 5.4 发布
2009-10-22 11:09 938CentOS Linux 是一个依 GPL 规范,及利用 Re ... -
Everything is Unix
2009-10-13 07:51 778Recently there has been some ch ... -
GNU项目发布Debugger 7.0
2009-10-10 09:55 841做为一款多种编程语言(如C,C++和Pascal)的调试器,G ... -
openSuse 11.2的最后beta版
2009-10-06 08:06 678openSUSE11.2发布了最后的beta版本。第一个最终候 ... -
Gemtoo Linux为10周年发布特别版的LiveDVD
2009-10-06 08:00 1077Gentoo的开发者宣布为了10周年纪念发布了特别版的Live ... -
Linux saves Aussie electrical grid
2009-10-06 07:44 807QUICK THINKING open sourcerers ... -
恢复LINUX的root密码
2009-10-04 08:43 1003一. lilo 1. 在出现 lilo: 提示 ... -
Linux系统中Mysql 密码恢复
2009-10-04 08:43 955【IT168 专稿】Mysql隔一 ... -
戴尔的即时启动Linux主板:是在浪费时间?
2009-10-04 08:42 823本周早些的时候,我 ... -
Linux TCP Tuning
2009-10-01 08:16 1220There are a lot of difference ...
相关推荐
<END><br>28,ColorProgressBar.zip<br>Replaces the standard progress bar with one that is on the order of O(n^2) times faster, with color options, and directional options.<END><br>29,MDITaskBarDemo.zip...
1,01.zip<br>MFC Extension Library<br>MFC扩展界面库, 使用Visual C++ 6.0(15KB)<END><br>2,02.zip<br>Visual Studio style UI<br>Visual Studio风格的界面效果(15KB)<END><br>3,03.zip<br>Internet Explorer 4 ...
<br><br> m_hDC = CreateCompatibleDC(0) <br> If (m_hDC <> 0) Then <br> If (CreateDIB(m_hDC, lWidth, lHeight, m_hDIb)) Then <br> m_hBmpOld = SelectObject(m_hDC, m_hDIb) <br> Create = True <br> Else <br...
<br><br> m_hDC = CreateCompatibleDC(0) <br> If (m_hDC <> 0) Then <br> If (CreateDIB(m_hDC, lWidth, lHeight, m_hDIb)) Then <br> m_hBmpOld = SelectObject(m_hDC, m_hDIb) <br> Create = True <br> Else <br...
not really encryption<END><br>21 , imagebutton2.zip<br>Round and freaky shape command buttons, updated from before- really an image control.<END><END><br>22 , talkeyboard.zip<br>Talking keyboard for ...
The sample creates a new database file and allows you to view, add, or delete records in this database."<END><br>2 , dbprint.zip<br>This demonstrates how to print data from a database.<END><br>3 , ...
Its functionality lies between MySQL and PostgreSQL, however it is faster than both databases.<br><br>In SQLite, author Chris Newman provides a thorough, practical guide to using, administering and ...
`<bndbox>`标签内的`<xmin>`, `<ymin>`, `<xmax>`, `<ymax>`分别代表边界框的左上角和右下角的像素位置。 利用这个数据集,研究人员和开发者可以训练深度学习模型,如Faster R-CNN、YOLO(You Only Look Once)或...
其中,`<filename>`指定了图像文件名,`<size>`包含了图像的宽、高和通道数,`<object>`标签下的`<name>`表示目标类别,`<bndbox>`则给出了目标的边界框坐标(`<xmin>`, `<ymin>`, `<xmax>`, `<ymax>`),描述了目标...
<filename>硬币图像.jpg</filename> <path>/path/to/硬币图像.jpg</path> <source> <database>自定义数据库</database> </source> <size> <width>图像宽度像素</width> <height>图像高度像素</height> ...
You can also create your own policy files that define arbitrary permission sets.<br/><br/>Comparison of the sample security policy file <br/><br/> <br/>Permissions/Resource Setting Admin Default ...
在上述例子中,`<name>`元素表示物体类别(如"car"),而`<bndbox>`元素则包含了物体边界框的坐标(`<xmin>`、`<ymin>`、`<xmax>`、`<ymax>`)。这样的标注数据对于训练深度学习模型,如YOLO(You Only Look Once)...
<path>/path/to/image.jpg</path> <source> <database>The Database</database> </source> <size> <width>640</width> <height>480</height> <depth>3</depth> </size> <object> <name>class1</name> ...
<path>C:\path\to\image.jpg</path> <source> <database>Unknown</database> </source> <size> <width>640</width> <height>480</height> <depth>3</depth> </size> <segmented>0</segmented> <object> ...
* Clipboard Tools - The clipboard as your trusty sidekick because a smart clipboard is a whole lot better than a simple one.<br> * Navigation Tools - Move through source code faster because fishing ...
1、写入训练的txt文件 <br>    修改configs包下面的config文件中三个属性    然后根据自己的数据集的标注文件是怎么个形式选择执行data包下面process_data.py文件中的两个方法。 <br>  &...
经典的模型如YOLO(You Only Look Once)、SSD(Single Shot Multibox Detector)或Faster R-CNN等都可以被用于目标检测任务,通过网络学习来识别和定位跌倒事件。同时,考虑到跌倒检测的动态特性,也可以考虑使用...
* Clipboard Tools - The clipboard as your trusty sidekick because a smart clipboard is a whole lot better than a simple one.<br> * Navigation Tools - Move through source code faster because fishing ...
<label for="friction">friction <span>(f>1: faster, faster! f<1: slow....)</span></label><br /> <input id="friction" value=".9" min="0.5" step="0.05" ...