Posted 11 months, 1 week ago at 11:32 am. 1 comment
我用的是 feisty herd4 的光盘。
ubuntu broadcom无线网卡配置
无线网卡是Broadcom的,在ubuntu下安装相当简单
sudo apt-get install bcm43xx-fwcutter
接下来在“联网”里把无线网卡激活便是了
guoshuang2007-06-14+ if u can not download that .so file from xxxx.googlepage.com.u can read things below
On ubuntu, you can sudo aptitude install bcm43xx-fwcutter, download this file: http://drinus.net/airport/wl_apsta.o and sudo bcm43xx-fwcutter -w /lib/firmware wl_apsta.o (you might need to replace /lib/firmware with /lib/firmware/`uname -r`)
I expect ti would be the smae for gentoo but emerge bcm43xx-fwcutter rahter than sudo aptitudei sntall bcm43xx-fwcutter or soemthing… I’ve never used gentoo…
or u can visit this post 在 ubuntu 源内找 .deb 文件
ubuntu nvidia 6150 显卡驱动
在 nvidia 官方linux drivers站点找到你需要的最新驱动。如果不是64位 ubuntu 安装 Linux IA32 即可。64 位 AMD 选择 Linux AMD64/EM64T。我使用的是这个 NVIDIA-Linux-x86-1.0-9755-pkg1.run
注意: 官方的 us.download.nvidia.com… 速度慢,把前面改成 cn.download.nvidia.com… 即可。
安装步骤:
1. ctrl+alt+f1 切换到 tty 1
2. /etc/init.d/gdm stop
关掉 x window
3. sudo apt-get install linux-headers-$(uname -r) build-essential
安装 libc 等编译环境
4. sudo sh NVIDIAxxxxxxxx.run
根据提示信息执行编译即可。
5. /etc/init.d/gdm start
重新进入 x window
声卡驱动
3239 的声卡在 windows 下显示为 Conexant hight definition audio,在 ubuntu 下会识别为 HDA NVidia(Alsa mixer)(还可以选择 Conexant CX20549 Venice OSS Mixer,但我没有选)。刚开始没有声音,几天之后(估计是哪个 update 的缘故,很可能是内核 2.16.20 的原因)就有了。
把网络加密了还不满意?让我们暗度陈仓,把非授权使用者拒之门外吧。IP806LM提供LAN和Internet访问控制功能,并可以分别控制。首先要让笔记本连接上无线AP,然后在“无线”页面的“访问控制”中选择“只允许选取的无线客户端”,再点“选择客户端”。选中允许访问的计算机名就可以了。 LAN和Internet访问控制的设置大同小异,截图为LAN控制方式。没被允许的连接,即使它能连接上无线AP,也无法连接LAN和 Internet,只好望洋兴叹了。
conexant high definition audio
http://ubuntuforums.org/showthread.php?p=2251034
http://forum.openrays.org/read.php?tid=4105
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=168685&highlight=high+definition+audio
http://bbs.chinaunix.net/archiver/?tid-901216.html
lspci
00:10.1 Audio device: nVidia Corporation MCP51 High Definition Audio (rev a2)
Popularity: 100% [?]
Tags:
hp,
install,
laptop,
ubuntu
Posted 11 months, 1 week ago at 11:32 am. 0 comments
以下全文来自 http://www.herofit.cn/2007/03/20_168
ipmsg(译名:飞鸽传书)是局域网内的文件传输工具。它是免费的,开源的,在GPL协议下发布。它有windows,linux,Mac,java等不同平台或语言的版本。
下面我来说一下它的GTK2版在ubuntu dapper下的安装过程。
安装依赖的包
sudo apt-get install libxml-parser-perl libgnomeui-dev libpanel-applet2-dev
下载
wget http://www.ipmsg.org/archive/g2ipmsg-0.9.1.tar.gz
更改语言(不改则为日语)
将g2ipmsg-0.9.1/src/codeset.c中的CP932 改为CP936
配置
./configure –prefix=/usr –sysconfdir=/etc –enable-systray
编译
make
安装
sudo make install
使用
将G2IPMSG Applet小程序添加到你的面板上。
效果如图:
g2ipmsg.png
参考资料:
http://www.ipmsg.org
让gaim发声
Filed under: linux, 软件 — ahlongxp @ 22:00
以前以为gaim发声是它本身的事,今天仔细看了一下发现,gaim还可以利用系统中的程序进行发声。
sudo apt-get install alsaplayer
alsaplayer是alsa驱动的命令行的播放录音工具,可用于多个用途。现代linux一般都用alsa,所以它是最好的选择了。
装完后就有了播音工具aplay,录音工具arecord。让gaim发声用aplay就可以了。
主界面中按Ctrl+P, 选Sounds。
将Method选成command,Sound command填成/usr/bin/aplay %s。其它的可随意设置。
注意,此时的Test是无效的,要看效果请重启gaim。
gaim不再哑巴了吧!
Popularity: 43% [?]
Tags:
gnome,
install,
linux,
ls,
ubuntu
Posted 11 months, 1 week ago at 11:32 am. 2 comments
原文来自A fast way to install ATI and NVIDIA drivers in Ubuntu
以前就发过,用envy 脚本来安装 ubuntu 显卡驱动
下载 enby 安装包
wget http://albertomilone.com/ubuntu/nvidia/scripts/envy_0.8.1-0ubuntu6_all.deb
sudo dpkg -i envy_0.8.1-0ubuntu6_all.deb
按 Alt+Cntrl+F1 切换到 tty 控制台,运行 envy
envy
按照提示信息进行即可。
删除 envy 用
sudo aptitude purge envy
sudo rm -R /usr/share/envy
注意:我个人的经验是,如果你不熟悉ubuntu而只是想驱动 nvidia 驱动的话就可以使用 envy,很傻瓜化的操作。但如果需要支持 beryl 等,可能还是需要自己编辑 nvidia 的 linux 官方驱动。
Popularity: 54% [?]
Tags:
install
Posted 11 months, 1 week ago at 11:32 am. 0 comments
反向连接不需要网关映射,因此不需要惊动网管大人,这样我就可以从家里(ADSL)连接控制单位局域网中的我的机器…
嘿嘿…坏处就是,两头都要有人…
感谢 pal(小时)蹲在我家里帮忙测试。
ssh 反向连接
如果没有安装 ssh的话,安装之
sudo apt-get install ssh
被控端,执行
ssh -f -N -R 10000:localhost:22 guoshuang@xxx.xxx.xxx.xxx
控制端执行
ssh guoshuang@localhost -p 10000
参考此文
vnc 反向连接
其实只要网关(防火墙)没有关掉 5500 就可以。注意:是5500能出去即可,不是进来,所以一般都是开放的。
sudo apt-get install x11vnc
控制端执行下面命令,等待邀请
vncviewer -listen
被控端,主动发起邀请
x11vnc -connect xxx.xxx.xxx.xxx:5500
参考此文
windows 和 mac 下的软件可参考下文
Free and easy remote access (through firewalls and NAT routers) with VNC reverse connections
内网远程控制全攻略
注意:vncviewer -fullscreen 模式全屏连接 vnc,用 f8 或者 ctrl+esc esc 退出。即便如此,也会经常出现不能退出或者控制失灵的情况,这篇 patch: fix WM bindings for vncviewer -fullscreen 应该有些帮助
或者使用 xvnc4viewer(sudo apt-get install xvnc4viewer)而不是tightvnc viewer。
f8 和窗口控制都没问题。
Popularity: 41% [?]
Tags:
blog,
hp,
install,
linux,
ls,
screen,
ubuntu,
unix,
vi
Posted 11 months, 1 week ago at 11:32 am. 1 comment

sudo apt-get install rdesktop
rdesktop 192.168.100.x
-f 全屏
-a 16位色
端口 3389(linux 22 sh)
注意:windows 的服务中的 Terminal Servies 需要开启。我的电脑 右键 属性 远程中,勾选 允许远程用户链接到此计算机。另外,退出的时候选择注销,而不是关机!
问题有二:
1.windows xp 必须打开 允许远程用户登录
2.很奇怪,我的 guoshuang 登录时,会提示踢掉已经登录的用户(据查,xp sp2 以后不能同时登录)
3.我的 windows 2003 允许远程用户登录 灰色不可选!
更多参数:
-u xxxxxx 登录用户,可选
-p xxxxxx 登录密码,可选
-r clipboard:PRIMARYCLIPBOARD 重要,剪贴板可以与远程桌面交互
-a 16 颜色,可选,不过最高就是16位
-z 压缩,可选
-g 1024×768 分辨率,可选,缺省是一种比当前本地桌面低的分辨率
-P 缓冲,可选
-r disk:wj=/home/magicgod 映射虚拟盘,可选,会在远程机器的网上邻居里虚拟出一个映射盘,功能很强,甚至可以是软盘或光盘
-r sound:off 关闭声音,当然也可以把远程发的声音映射到本地来。
重定向:
这时才发现它原来也可以将本地磁盘带到远端,而且连中文文件名也支持。只要加上 -r 参数就可以了。它除了可以将本地磁盘带到远端以外,还支持串口和打印机,这下 Windows 上远程桌面客户端的功能在 Linux 上都齐了。-r 参数的格式如下:
-r comport:COM1=/dev/ttyS0 // 将串口 /dev/ttyS0 重定向为 COM1
-r comport:COM1=/dev/ttyS0,COM2=/dev/ttyS1 // 多个串口重定向
-r disk:floppy=/mnt/floppy // 将 /mnt/floppy 重定向为远程共享磁盘 ‘floppy’
-r disk:floppy=/mnt/floppy,cdrom=/mnt/cdrom,root=/,c=/mnt/c // 多个磁盘重定向
-r clientname= // 为重定向的磁盘设置显示的客户端名称
-r lptport:LPT1=/dev/lp0 // 将并口 /dev/lp0 重定向为 LPT1
-r lptport:LPT1=/dev/lp0,LPT2=/dev/lp1 // 多个并口重定向
-r printer:mydeskjet // 打印机重定向
-r printer:mydeskjet=”HP LaserJet IIIP” // 打印机重定向
-r sound:[local|off|remote] // 声音重定向
Popularity: 34% [?]
Tags:
hp,
install,
linux,
tty,
ubuntu,
vi
Posted 11 months, 1 week ago at 11:32 am. 0 comments
apt-build 与 apt-get 的区别在于,下载源代码本机编译,针对自己的电脑优化。用法为:
# sudo apt-build update
# sudo apt-build install xxxx
当然 apt-build 自己也需要先安装。sudo apt-get install apt-build,按照提示设置一些参数即可。
相关资料:
apt-build 测试
使用 apt-build 最佳化程式
Popularity: 17% [?]
Tags:
hp,
install
Posted 11 months, 1 week ago at 11:32 am. 0 comments
原文来自 http://xlntsolution.blogspot.com/2007/03/feisty-performance-fly-like-butterfly.html
blogspt 似乎再次封掉了,:( 我是通过这个代理看到的
部分内容如下:
sudo gedit /etc/hosts
你会看到类似
127.0.0.1 localhost
127.0.1.1 guoshuang-laptop
这样的内容,在 localost 后面加上你的主机名,如guoshuang-laptop
127.0.0.1 localhost guoshuang-laptop
127.0.1.1 guoshuang-laptop
1. Disable IPv6
At least I dont need IPv6 yet so this is what I do to disable it.
sudo kate /etc/modprobe.d/aliases
And change the line:
alias net-pf-10 ipv6
to:
alias net-pf-10 off #ipv6
This will disable IPv6 on all network interfaces. You need to reboot.
2. Run boot processes in parallel
This will make upstart to run the boot processes in parallel and speed up the boot process.
sudo kate /etc/init.d/rc
Find and change the line:
CONCURRENCY=none
to:
CONCURRENCY=shell
3. Aliasing hostname to localhost
Right or wrong, you decide. But I picked this up in the Ubuntu forums the other day and it does improve the startup of some apps.
sudo kate /etc/hosts
and add you hostname to the first line after localhost like this:
127.0.0.1 localhost yourhost
127.0.1.1 yourhost
4. Disable pango
I know that this is already taken care of in firefox but it still makes a good performance boost to thunderbird and some other apps.
sudo kate /etc/environment
and add:
MOZ_DISABLE_PANGO=”1″
5. Preload
It does what you think. It preloads most common used libs and files = faster startup times on your applications.
sudo apt-get install preload
What about prelink?
Prelink is no longer necessary in feisty. Feisty uses a new linking mechanism called DT_GNU_HASH which speeds up the linking process without the need for continuously running prelink.
6. Swappiness
The default value for vm.swappiness is 60 in Ubuntu Feisty whic is a good default value but if you want to tweak the performance a little bit more you can change this value to a lower value to reduce the load of the swap. If you run the follwing command:
sysctl -q vm.swappiness
You will se that the value is set to 60. And by running:
sudo sysctl vm.swappiness=10
You will change the value from 60 to 10 which will make your system write to swap a lot less and I would recommend this to everyone that has 512 mb of memory or more. If you find that you have very little use of swap set the value to 0. This will not disable the swap but it will make your system write to the swap as little as possible and keep as much as possible in memory. This makes a huge improvment when switching between applications since they are now likley to be in physical ram instead of on the swap partition.
To set your value permanent you need to change the sysctl.conf file:
sudo kate /etc/sysctl.conf
Add the line
vm.swappiness=10
To the end of the file. This way it will be set upon boot.
I’ve found that the value of 5 works very good for my use and I have 1 GB of memory.
7. Profile grub
There is a option to grub called profile which will profile your startup. What it does is that it kind of indexing all the files read during boot/startup and later on it will find and read those files quicker.
Hit the escape button when booting to get to the grub menu.
Select your default boot kernel and hit the e button.
Go down to the second line and hit the e button again.
Add profile to the end of the line and press enter.
Hit the b button to boot with your new option.
The first time it will take a little bit longer to boot because it has to build the index (or whatever they want to call it) but every boot after this will be a lot smoother.
You need to do this every time you update your kernel or have made other huge changes to your system that might affect the files needed during boot.
The following could cause your system to be unstable or even unable to boot so please use them care…
8. sysv-rc-conf
Install sysv-rc-conf and disable the services you don’t need at startup.
As an example. On my computer I don’t have bluetooth so I don’t need to start it at boot time.
So simply disable what ever you don’t have or use.
sudo apt-get install sysv-rc-conf
and then run:
sudo sysv-rc-conf
9. Kernel hacking
Even thought the new kernel in feisty is very good and already tuned a bit there still are some things you can do to the kernel the will make your system snappier and boot up even faster.
Use this thread from the ubuntu forums as a guide on how to compile your own kernel.
master kernel thread
What I do is that I make sure to add my file systems I use to the kernel instead of loading them as modules. Take out whatever I don’t have or use and then compile my new and hopefully improved kernel 
10. Filesystem setup
The choice and use of the file system is a big issue when dealing with performance. Depending on your usage of your system you might need to configure your filesystem different.
For my usage I like to use the following setup (which I think is a good desktop setup)
Mountpoint
filesystem
Size
/boot
ext2
100 MB
/root
LVM, VG=system, xfs
6 GB
/swap
LVM, VG=system, swap
The size of RAM in your computer. Making it smaller and you will not be able to hibernate.
/home
LVM, VG=system, xfs
1 GB, or the rest of the space in that VG
/data
LVM, VG=data, xfs
The rest of the free space
Using the following options in fstab for all my xfs partitions:
noatime,nodiratime,logbufs=8
Using LVM can really speed up the disk performance. And you get a lot of other good stuff with it as well. Read more about LVM here.
I choose to have /root and /home on one VolumeGroup and /data on another simply because I can then split them up on diffrent physical disks and have them spanning over multiple physical disks witch really speeds up the reads and writes.
At the moment this is pretty much it but I will update this as soon as I discover more performance tunings…
Tuning applications
Not so much to add here but this what I like to do.
1. Firefox
Use swiftfox instead. It’s optimized for your CPU.
Install the fasterfox add-on
If it’s not already set, disable IPv6. In the url enter about:config and find the ipv6 entry and disable it.
Install adblock plus add-on
to disable ad’s it helps a lot 
2. openoffice
If you don’t need that extras that java JRE provides then simply disable it openoffice. That’s what I do.
Once Feisty is released I will have a script done that all you brave people can run that will do most of this in one go 
I will also write down the kernel options that I use to compile my kernel for those who are interested.
But until then, use this and enjoy a much faster and smoother running Feisty.
Popularity: 44% [?]
Tags:
blog,
cat,
feisty,
install,
laptop,
ls,
right,
shell,
tty,
tweak,
ubuntu,
vi
Posted 11 months, 1 week ago at 11:32 am. 0 comments
i know that i resol my problem 915resolution but how i install this file
First Adding Universe to your repositories (https://help.ubuntu.com/community/Repositories/Kubuntu), then install 915resolution package in adept or in console: sudo apt-get install 915resolution
via https://answers.launchpad.net/ubuntu/+source/kde-systemsettings/+ticket/4927
Popularity: 24% [?]
Tags:
hp,
install,
ubuntu,
vi
Posted 11 months, 1 week ago at 11:32 am. 0 comments

新立得搜索并安装 libgtk2-gladexml-perl 和 libgladexml-perl。直接运行解压包里的 bloglines-notifier 即可。
http://jodrell.net/projects/bloglines-notifier
Installation is very simple - just make the bloglines-notifier script executable and put it somewhere in your $PATH.
All the other files are for development use - they are included inline in the program and do not need to be installed.
You will need the following Perl scripts to use this program:
Gtk2 (compiled with support for GTK+ >+ 2.10)
Gtk2::GladeXML
LWP
all platform notifiers
http://www.bloglines.com/about/notifie
Popularity: 16% [?]
Tags:
blog,
gnome,
install
Posted 11 months, 1 week ago at 11:32 am. 0 comments
sudo apt-get install checkgmail
即可。这个比下面的 gmail-notify 功能更多一些,可以直接查看最近的一些邮件,发信等等。
二、gmail-notify
sudo apt-get install gmail-notify
更适合等信。
三、直接用 livebookmark 订阅自己的邮箱,只要有firefox就可以了,win 下也可如此。我以前主要用这种方式。
https://mail.google.com/mail/feed/atom
BTW:建立 checkmail 菜单操作如下
sudo gedit /usr/share/applications/checkgmail.desktop
内容如下:
[Desktop Entry]
Encoding=UTF-8
Name=CheckGmail
Exec=checkgmail
Terminal=false
Type=Application
StartupNotify=true
Icon=
Categories=Application;Network;
然后刷新 gnome 菜单
sudo killall gnome-panel
checkgmail 的图标图片在 gmail 图标 可以找到。
相关日志:
gmail IMAP 协议设置
checkgmail 资料
How do I play a sound when new mail arrives?
Enter a command in the “Command to execute on new mail” section in the preferences. For example, to play a WAV sound, you could use
aplay /path/to/mysound.wav
What else can the “Command to execute on new mail” do?
Well, it can do whatever you want. I use it to turn on my laptop’s dedicated mail LED light:
echo 1 > /proc/acpi/asus/mled
but anyone with the Blinkd software package installed could get their numlock or scroll-lock lights to blink with
blink –numlock –rate %m
What’s that ‘%m’ thing doing there? Well, that’s a new feature of version 1.10.1, and represents the number of new messages. Which means that in the example above your numlock LED will blink with the number of new messages. It’s gimmicky, I know (and there’s no way I could live with it personally) … but you’ve gotta admit, it’s kinda cool!
If you’re going to turn an LED on, though, you’ll also want to turn it off - and that’s why there’s also a “Command to execute for no mail” option. In the example above, you’ll want something like
blink –numlock –rate 0
And of course, you can combine options together by using semicolons, for example:
aplay /path/to/mysound.wav; blink –numlock –rate %m
The whole idea is to be as extensible here as possible, and recognise that not everyone wants a sound to play when new mail arrives, but they might want something else to happen instead …
Popularity: 36% [?]
Tags:
blog,
cat,
ebook,
gnome,
install,
laptop,
ls,
screen,
ubuntu
ad 468x60