Ubuntu 10.04是一个很棒的系统,但是自从恢复完其grub2后,感觉上网速度很慢,老半天才能打开,到网上查查,用一个是解决Ubuntu 8.10的方法,我想如果可以用的话,应该差不多,试了一下,果真很好。
以下为转载内容:
Ubuntu 网速慢,主要是把时间浪费在域名解析上。我们可以用dnsmasq解决这问题。
具体如下:
安装dnsmasq
命令: sudo apt-get install dnsmasq
编辑dnsmasq的配置文件
命令: sudo gedit /etc/dnsmasq.conf
找到下面这一项
#resolv-file=
用下面的一条语句替换
resolv-file=/etc/resolv.dnsmasq.conf
确保你没有更改过/etc/resolv.conf文件,如果改过,恢复原状
然后执行命令
sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf
然后编辑resolv.conf
命令;sudo gedit /etc/resolv.conf
将其中的域名服务器全部去掉,加入以下这行
nameserver 127.0.0.1
如果用路由上网也可以加上路由的地址
保存,退出
执行以下命令
sudo gedit /etc/ppp/peers/provider(Ubuntu 10.04的文件名是provider,其他版本可能不同)
在 usepeerdns 前面增加 # ,也就是把这条语句覆盖掉。
以防,resolv.conf的设置被pppoe覆盖。
重启电脑。不重启,你会发现无法解析域名。所以一定要重启电脑,来达到重新启动dnsmasq的目的。
重启后, 你会发现解析速度比以前快了N个数量级。
星期四, 8月 26, 2010
星期三, 8月 25, 2010
Ubuntu 下觀看RMVB格式影片
1.安裝最好的撥放器
撥放器用 smplayer
新立得(synaptic)搜尋: smplayer
找到標記為安裝,套用,安裝它
2.安裝「萬能解碼包」
故名思議,什麼格式都能解,包括 rmvb
32bit
下 w32codecs.deb:(點那個 i386下載)
http://packages.medibuntu.org/lucid/w32codecs.html
64bit
下 w64codecs.deb(點那個 AMD64 下載)
http://packages.medibuntu.org/lucid/w64codecs.html
下回去的 *.deb,點兩下安裝
開 smplayer,播放任何格式影片!
------------------------------
附註:
最新版的 w32/w64 codecs 萬能解碼包
可以這邊找,這幾乎就是官方網站:
http://packages.medibuntu.org/
撥放器用 smplayer
新立得(synaptic)搜尋: smplayer
找到標記為安裝,套用,安裝它
2.安裝「萬能解碼包」
故名思議,什麼格式都能解,包括 rmvb
32bit
下 w32codecs.deb:(點那個 i386下載)
http://packages.medibuntu.org/lucid/w32codecs.html
64bit
下 w64codecs.deb(點那個 AMD64 下載)
http://packages.medibuntu.org/lucid/w64codecs.html
下回去的 *.deb,點兩下安裝
開 smplayer,播放任何格式影片!
------------------------------
附註:
最新版的 w32/w64 codecs 萬能解碼包
可以這邊找,這幾乎就是官方網站:
http://packages.medibuntu.org/
星期四, 7月 22, 2010
微軟官方制作Win7 USB 手指程式
微軟官方制作Win7 USB 手指程式:Windows 7 USB DVD Download Tool下载及使用方法
下载、安装、运行Windows 7 USB DVD Download Tool
http://www.rayfile.com/files/88c0b263-c149-11de-bca2-0014221b798a/
下载、安装、运行Windows 7 USB DVD Download Tool
http://www.rayfile.com/files/88c0b263-c149-11de-bca2-0014221b798a/
Embarcadero RAD Studio 2010 破解方法
破解说明:
SN: JAAL-SCDKV6-ETH2SG-KBAN 或者 HAAL-DANSGN-FZR5AG-M3BS
1. 将DelphiDistiller.exe复制到:C:\Program Files\Embarcadero\RAD Studio\7.0\bin
2. 以管理员身份运行 DelphiDistiller.exe
3. 运行一次D2010,进入注册界面,不做任何事情直接点击“Cancel”,然后点击相关按钮退出;
4. 运行Distiller.v1.85,点击“清除”LIC,勾选“Remove Delphi 2010 Update 4/5 license check using lsuper method”,点击“OK”;
5. 运行D2010成功!若进入“购买”页面,没关系,你再重复第5步,...你一定成功!
6)点击OK键退出
恭喜你!
是时候抛弃你的Delphi 7了!!
100%通过测试,完全注册,并没有时间限制,官方原版!!
SN: JAAL-SCDKV6-ETH2SG-KBAN 或者 HAAL-DANSGN-FZR5AG-M3BS
1. 将DelphiDistiller.exe复制到:C:\Program Files\Embarcadero\RAD Studio\7.0\bin
2. 以管理员身份运行 DelphiDistiller.exe
3. 运行一次D2010,进入注册界面,不做任何事情直接点击“Cancel”,然后点击相关按钮退出;
4. 运行Distiller.v1.85,点击“清除”LIC,勾选“Remove Delphi 2010 Update 4/5 license check using lsuper method”,点击“OK”;
5. 运行D2010成功!若进入“购买”页面,没关系,你再重复第5步,...你一定成功!
6)点击OK键退出
恭喜你!
是时候抛弃你的Delphi 7了!!
100%通过测试,完全注册,并没有时间限制,官方原版!!
星期四, 6月 03, 2010
MeeGo v1.0 (Netbook UX)「手指」製作教學
轉貼自:umpcfever.com
事前準備
心思思想試玩吧?就看看我們需要準備甚麼吧!
以下 MeeGo 支援的網本電腦的其中一款:
製作步驟
中文輸入法補完
事前準備
心思思想試玩吧?就看看我們需要準備甚麼吧!
以下 MeeGo 支援的網本電腦的其中一款:
- Asus EeePC 901, 1000H, 1005HA, 1008HA, EeePC 1005PE, Eeetop ET1602
- Dell mini10v, Inspiron Mini 1012
- Acer Aspire One D250, AO532-21S, Revo GN40, Aspire 5740-6025
- Lenovo S10
- MSI U130, AE1900
- HP mini 210-1044
- Toshiba NB302
- 下載 MeeGo 原磁碟映像(Raw image)檔案
- 完全空白、只有一個分區的 1 GB 或以上的 USB 「手指」或 SDHC 卡 一枚
- 下載 Win32 Disk Imager 0.2 r23 原磁碟映像檔 讀寫程式 (此工具的相關網頁)
製作步驟
- 將 MeeGo 原磁碟映像檔案的 Zip 檔解壓到一個沒有中文字的路徑,你會獲得一個約 800MB 大小的 meego-netbook-chromium-ia32-1.0-20100524.1.img 檔案。
- 把 Win32DiskImager 的 Zip 檔案解壓到桌面的一個資料夾(姑且叫 Win32DiskImager)裡。
- 插入你的 USB 「手指」或 SD 卡,右擊 我的電腦 (My Computer)/ 電腦 (Computer),選擇「管理(Manage)」
- 選擇 儲存裝置(Storage) → 磁碟管理(Disk Management)。憑容量等資訊找出代表你的 USB 「手指」或 SDHC 卡 的磁碟機號碼和代號(例如 O:),把它記下來。注意:這個號碼和代號非常非常重要,千萬不可以弄錯,否則有機會損壞你其他硬碟機內的資料!記下來後,關閉 磁碟管理 視窗。
- 以管理員身份啟動 Win32DiskImager 資料夾裡的 Win32DiskImager.exe。
- 按 Image File 的「…」按鈕,選擇剛才解壓的 meego-netbook-chromium-ia32-1.0-20100524.1.img。
- 在 Device 選單裡選擇你的 USB 「手指」/ SD 卡的磁碟機代號。這個代號(例如 O:)是你從步驟 4 裡獲得的。
- 確定無誤後按 「Write」按鈕。如無意外,你會看到 Win32 Disk Imager 開始把映像檔的資料抄到你的 USB 「手指」或 SD 卡。
- 完成後,安全移除你的 USB 「手指」或 SD 卡,拔出,並重新插入。
- 右擊 我的電腦 (My Computer)/ 電腦 (Computer),選擇「管理(Manage)」。
- 選擇 儲存裝置(Storage) → 磁碟管理(Disk Management)。憑先前在步驟 4 中獲得的磁碟機號碼,找出你的 USB 「手指」或 SD 卡。你應該看見有三個分區。
- 此時可安全移除你的 USB 「手指」或 SD 卡,拔出,然後便可把 USB 「手指」或 SD 卡插到你的網本電腦開機。
- 在開機選單中選「Boot MeeGo」就可以進行試用。這個選擇不會抄寫任何東西到你電腦的硬碟裡;也不會儲存任何設定--也就是說,下次開機再選這個選項,都不會看到先前儲存過的設定或安裝過的軟件。當然,你覺得好用的話,也可以選擇開機選單中的第二項「Installation Only」來啟動安裝程式來指明安裝硬碟等。
中文輸入法補完
- 如果你還未把語言設定為繁體中文,請在 Applications (應用程式)頁的 Accessories (附屬應用程式)打開 Settings(設定),然後在 Language(語言)一項,選擇 Chinese (Taiwan) -繁體中文,然後按 OK
- 在 Applications (應用程式)頁的 System Tools (系統工具)打開 Terminal (終端機
- 鍵入下列指令來獲取 root 權限:
- su
- 然後輸入密碼:meego
- 鍵入下列指令來安裝 wget 下載工具:
- yum install wget
- 鍵入下列指令,加入輝哥的軟件庫到系統中:
- cd /etc/yum.repos.d/
- wget http://lazyfai.fedorapeople.org/MeeGo/meego-lazyfai.repo
- 鍵入下列指令安裝有關輸入法:
- yum install scim-tables-chinese-extra
- 按電源鍵關機,然後重新啟動電腦,再進入 MeeGo。在文字編輯軟件或瀏覽器的文字輸入位置按 Ctrl-Space 就可以使用。
星期三, 6月 02, 2010
Netbook OS
Jolicloud
http://www.jolicloud.com/Moblin
http://moblin.org/Meego
http://meego.com/Ubuntu Netbook Remix
http://www.ubuntu.com/netbookChrome OS
http://www.chromium.org/chromium-osAndroid OS
http://code.google.com/p/live-android/downloads/list
星期三, 5月 26, 2010
Upgrade or Downgrade SPL for 32A HTC Magic ONLY
Upgrade to 6.35.10.18 Radio and 1.76.2007 SPL
Prerequisites:
- HTC Magic / Sapphire 32A
- Engineering SPL
----- 1.33.2005
----- 1.33.2009
----- 1.33.2010
----- If you boot into fastboot and have issues with "fastboot:remote not allow", then your SPL won't work. Upgrade to Engineering SPL before continuing.
----- If you do not have an Engineering SPL, download 1.33.2010 and flash through recovery before starting this procedure. Flash the SPL update.zip like any other update.zip file.
- Working ADB/Fastboot Drivers
- Basic knowledge or modding your phone
You will need:
- The 1.76.2007 SPL HBOOT image
http://www.theandroidkitchen.com/fil...-1.76.2007.img
- The 6.35.10.18 Radio Image
http://www.theandroidkitchen.com/fil...6.35.10.18.img
- The Amon_RA Hero Recovery (Latest version is 1.5.2 as of this post)
http://forum.xda-developers.com/showthread.php?t=561124
MD5SUMS - thanks march83!
hboot-1.76.2007.img 841eebbffaead7296a50a39920ec30a2
Radio_HTC_PVT_32A_6.35.10.18.img 246a858689a19975bfdcfa5538401c5f
Notes:
- This Radio and SPL is only for the new Sense UI ROMs (CursorSense32A)
- The Hero recovery is required for the new radio. The Sapphire H (Magic 32A) recovery will reboot after a few seconds.
- To select items using the Hero recovery, you need to use the green Talk/Send key on your device. The trackball select key will not work.
Steps:
- Download the files above onto your computer. Save them in the same folder (C:\AndroidSDK\Tools for example)
- Turn off your phone
- Power it on into recovery (hold Home and press Power)
- Run a full nandroid backup (optional, but recommended)
- Turn off your phone
- Power it on into FASTBOOT mode by holding Back and pressing Power
- Plug in a USB cable. you should see FASTBOOT USB on the screen
- From a command prompt, navigate to the folder where you saved the files above.
- Type in these commands:
Code:
fastboot flash radio Radio_HTC_PVT_32A_6.35.10.18.img fastboot flash hboot hboot-1.76.2007.img fastboot flash recovery recovery-RA-hero-v1.5.2.img fastboot erase system -w fastboot reboot-bootloader
- Verify that you now have the 6.35.10.18 Radio and 1.76.2007 SPL.
CONGRATULATIONS! You can now flash the CursorSense32A ROM!
There will be other ROMs soon that use this Radio and SPL. It's just a matter of time.
Upgrade from 6.35.07.29 to a new version
You can upgrade radio version from 6.35.07.29 to 6.35.08.29 or 6.35.10.18 without wiping, reflashing or losing any data.
- Download the radio image
6.35.08.29
6.35.10.18
- Save the radio update.zip file to the root of your SD card.
- Boot into Recovery mode, using Home and Power and apply the update like you would any other update.zip file.
Downgrade (Revert back to) 32A 3.22 Radio and SPL
You will need:
- 1.33.2010 Engineering SPL HBOOT image
http://www.theandroidkitchen.com/fil...-1.33.2010.img
- 3.22.20.17 Radio image
http://www.theandroidkitchen.com/fil...3.22.20.17.img
- Amon_RA Sapphire H Recovery (Latest is 1.5.2 as of this post)
http://forum.xda-developers.com/showthread.php?t=530492
Steps:
- Download all of the files to the same folder (C:\AndroidSDK\tools for example)
- Turn off your phone
- Power it on into FASTBOOT by holding Back and pressing Power
- In a Command Prompt, navigate to the folder you saved the files in
- Type in these commands:
Code:
fastboot flash radio Radio_HTC_PVT_32A_3.22.20.17.img fastboot flash hboot hboot-1.33.2010.img fastboot flash recovery recovery-RA-sapphire-v1.5.2H.img fastboot erase system -w fastboot reboot-bootloader
- Verify that you now have 3.22.20.17 SPL and 1.33.2010 SPL
星期六, 5月 22, 2010
Linux下喪玩CS反恐精英
一、下载必要的软件包
我们使用Wine软件包模拟Windows环境。下载Wine
当我们的Wine安装成功后,我们还需要重新安装CS 1.6。
二、编译、安装
#tar -jxvf Wine-0.9.54.tar.bz2
#cd Wine-0.9.54
#mkdir /usr/local/Wine-0.9.54
#./configure --prefix=/usr/local/Wine-0.9.54
#make depend && make
这个过程需要很长时间,耐心等待... ...
#make install
经过make install也就安装到你指定的路径下了
三、进行Wine的配置
$/usr/local/Wine-0.9.54/bin/Winecfg
这时候,打开一个Winecfg的配置信息框,我们还需要用到Windows的一些dll文件,在libraries标签页中New overrride for library里输入 cryptui单击add按钮将这个dll添加到里面,之后将
glu32
opengl32
shdocvw
shlwapi
剩余的四个也进行添加
从另外一个电脑(Windows xp操作系统)将
c:\Windows\system32目录下的
cryptui.dll
opengl32.dll
glu32.dll
shdocvw.dll
shlwapi.dll
的5个文件copy到~/.Wine/drive_c/Windows/system32目录下,如果已经存在,注意需要进行覆盖。
(如果你的home下没有.Wine目录,请运行/usr/local/Wine-0.9.54/bin/Winecfg,这个是我的安装路径,可以根据自己的实际进行修改)
四、安装CS 1.6
因为我们是用Wine模拟Windows环境,如果我们在Windows下,直接双击CS1.6.exe这样就可以安装了,但在Linux还不行,加入我的CS安装文件在~/software/CS1.6.exe
我们可以这样去安装CS 1.6
$/usr/local/Wine-0.9.54/bin/Wine /home/xiaopeng/software/CS1.6.exe
稍等片刻,我们就可以看到CS的安装界面了。如果安装就不多说了,自己选择个路径安装上去我的安装路径
/usr/local/CS1.6
安装成功后我们利用Wine模拟Windows环境开始运行,在终端上输入如下命令:
$/usr/local/Wine-0.9.54/bin/Wine /usr/local/CS1.6/CStrike.exe
这是久违的CS背景页面出来了,可是我们发现不能显示字体,因为我们没有字体文件,利用网络我找到了解决的办法:
从Windows操作系统中的 C:/WinDOWS/FONTS目录下copy个simsun.ttc文件放到你个u盘里,之后进行你的Linux操作系统,把这个文件copy到~/.Wine/drive_c/Windows/fonts下面。
再次运行 $/usr/local/Wine-0.9.54/bin/Wine /home/xiaopeng/software/CS1.6.exe
是不是可以看到英文字符了。
对了还需要调整CS的视频选择,记好用software 800*600
加几个机器人,是不是可以玩了。
星期六, 5月 08, 2010
Ubuntu下安裝 Matlab 2007b
- 下载matlab for linux,现在最新的matlab 2007b的链接在这里: ed2k://|file|Mathworks.Matlab.R2007b.UNIX.DVD.-TBE.iso|3594958848|58E5A99B5C4E921D0FDCC51B4F827765|/,大家可以一起去加速了。
- 挂载iso文件: sudo mount -t iso9660 (iso文件的路径和文件名) /media/cdrom -o loop。最新版本的下载下来是DVD的镜像文件,所以不需要再换盘了。如果你使用别的安装文件,安装过程中提示换盘的时候, 先umount: sudo umount /media/cdrom,再用上面的挂载方法,挂上其它盘.
- 建立安装matlab的目录:我是装在 /opt/matlab,命令:sudo mkdir /opt/matlab,然后把license文件拷贝到安装目录下面。
- 如果版本是2006b, 可以下载一个license的压缩包。里面有一个license_lock, 一个license_server, 无论使用哪一个, 拷贝到/opt/matlab/license.dat
- 如果版本是2007b,在crack文件夹下面,可以找到两个license的文件,以及一个简单的安装说明,将其中任意一个拷贝到/opt/matlab/license.dat
- 打开终端,sudo /media/cdrom/install。注意当前路径不要放在/media/cdrom,然后直接使用install,这样会提示有问题。所以上面命令用绝对路径. 安装过程中遇到问题就看看上面的英文提示,正常情况下不会有太多问题的.
- 安装路径: 提示你选择安装路径的时候就是你刚在建立的那个目录了.
- 然后就会提示你选择要安装的组件,全选就可以了.
- 提示换盘时,按我上面说的挂载上去就行.
- 最后OK就行了.
对于最新的matlab 2007b的一些问题更新如下:
运行matlab后,只有一个外框能正确显示,其它的都是一片白。
办法1:在matlab安装目录下的bin/matlab文件中(一堆注释后面)添加:
export AWT_TOOLKIT=MToolkit
该方法可以解决显示问题,但会经常出现无法输入的问题。比如调用plot函数后,command窗口就
无法输入新字符了,只能通过依次点击Current Directory 和 Workspace解决。。依次点击后就可以
继续输入字符了。
方法2:安装sun-java6-jre。具体方法为
sudo apt-get install sun-java6-jre
然后在matlab安装目录下的bin/matlab文件中(一堆注释后面)添加:
export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/
注意,不需要添加export AWT_TOOLKIT=MToolkit了,这样修改以后就没有输入的问题。
如果你的matlab不能显示中文,那么你需要在File-Preference-Fonts中指定中文字体。如果你为了让字体显示效果更好一些的话,不妨选中下面的Use antialiasing to smooth fonts,然后重启,开始你的matlab之旅吧!
訂閱:
文章 (Atom)