debian-squeeze-amd64

 

每次重装系统都要重复这些配置工作,以往总是不想花时间整理发布;为方便以后,这次就记录在案。

update:08212013

# aptitude install eclipse emacs vim vim-gtk freemind  screen  xfce4  -y

 

update:07202013

[1.]无法重建软件包缓存

#rm -rf /var/lib/apt/lists/*  

#aptitude update;aptitude upgrade -y

http://forum.ubuntu.org.cn/viewtopic.php?t=370130

这个问题一直困扰着我,我已经找到解决办法,现和大家分享。

更新时出现hash校验和不符的原因
我认为,这种情况出现的原因是由于网络问题导致的更新时丢包,从而下载的数据不完整或错误。我在使用宽带通网络时99%的时候都会出现这种情况,而用中国联通宽带的情况下没有一次遇到这种情况。

解决办法

1. 运行以下命令,得到更新需要下载的软件包列表文件地址:

代码:
$ sudo apt-get update –print-uris > apt-get-urls.txt

2. 用Firefox的downloadthemall插件下载上述列表文件。(用Firefox打开以上txt文件后批量下载)下载时注意:

    文件保存位置,比如/home/你的用户名/pool

    命名掩码:填”*curl*/*name*.*ext*”
    (没有引号)。这意思是将下载的文件,若原链接为http://www.ubuntu.com/folder/subfolder
    /filename.gz,则保存为/home/你的用户名/pool/www.ubuntu.com/folder/subfolder
    /filename.gz。
    下载的文件里,有几个文件名为”Release”的文件,若使用downloadthemall默认的或者
    上述的重命名掩码保存,由于没有文件名后缀,默认保存为”Release.txt”,所以需要设置这些文件的重命名掩码为”*curl*/*name*”
    (没有引号)(在downloadthemall的下载选项中可通过”资源名称“字段排序后,全选文件名为Release的文件后设置重命名掩码)
    设置每服务器并发下载1个文件,且关闭分块下载,否则可能会出错。



上述文件下载完成后,你的pool目录下就会有诸如”archive.canonical.com/ubuntu/dists/raring”等目录和文件。

3. 备份原/etc/apt/source.list为/etc/apt/source.list.normal,并利用gedit等文本编辑器等的替换功能将/etc/apt/source.list中的

代码:
deb http://
deb-src http://



替换为

代码:
deb file:///home/你的用户名/pool/
deb-src file:///home/你的用户名/pool/

这样,运行升级命令sudo apt-get update后apt-get将从本地的pool目录获取软件列表文件。

4. apt-get update成功后,此时若apt-get upgrade或者安装软件,则apt-get由于在本地找不到deb安装包而报错,此时可用以下方法获取下载链接,用downloadthemall批量下载deb包:

代码:
$ sudo apt-get upgrade –yes –print-uris > ~/pool/apt-get-upgrade.txt



需要下载的deb包的链接在apt-get-upgrade.txt文件中,您需要将文件中的”file:///home/你的用户名/pool/”全部替换为“http://”再下载。
你可以将deb包统一下载到pool/deb目录下,然后用

代码:
sudo mount -o bind /home/你的用户名/pool/deb /var/cache/apt/archives


此时你运行apt-get upgrade之后,apt-get每次都是从本地获取deb包了。

对于第1步获取到的软件包列表的下载地址,只需要获取一次,以后每次升级只需将原pool目录下的几个目录删掉后重新用downloadthemall下载即可,不用每次都重新获取。

希望对大家有用。

 

root@w:/var/cache/apt/archives# pwd
/var/cache/apt/archives
root@:/var/cache/apt/archives# du -sh
1.4G .
#apt-spy -d wheezy -a Asia -t5 -o /etc/apt/sources.list.d/wheezy-or-testing.list

#apt-spy -d testing -a Asia -t5 -o /etc/apt/sources.list.d/wheezy-or-testing.list

#$ cat /usr/bin/SpyupdateUpGrade
################################

#!/bin/bash

echo "please type version"
read version
apt-spy -d $version  -a Asia  -t 4 -o /etc/apt/sources.list.d/wheezy-or-testing.list
cp /etc/apt/sources.list.d/wheezy-or-testing.list  /data/aptsourceBAK/sourceSaveBak.$(date +%m-%d-%Y) 
less /etc/apt/sources.list.d/wheezy-or-testing.list|more
rm -rf /var/lib/apt/lists/*
aptitude update
echo "Next step is safe-upgrade"
sleep 15
echo "你确认是要进行一次安全升级吗?确认请输入:ShI"
read panduan
if [ $panduan = "ShI" ]
then     
     aptitude safe-upgrade
     else
    echo "Now exit"
    exit
fi

 

 

 

[2.]安装google-chrome

gedit /etc/apt/sources.list.d/google.list
wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add –
aptitude update
aptitude install google-chrome-stable

[3.]安装bumblebee

gedit /etc/apt/sources.list.d/bumblebee.list

deb http://suwako.nomanga.net/debian sid main contrib
deb-src http://suwako.nomanga.net/debian sid main

add-apt-repository ppa:bumblebee/stable
aptitude update
aptitude install bumblebee bumblebee-nvidia

wget -O – http://suwako.nomanga.net/suwako.asc | apt-key add –
aptitude update
deb http://suwako.nomanga.net/debian sid main contrib
aptitude install bumblebee bumblebee-nvidia -y

aptitude install bbswitch-dkms bumblebee bumblebee-nvidia dkms

usermod -a -G bumblebee  $user

gedit /etc/bumblebee/bumblebee.conf 

service bumblebeed restart

=================================

错误:invoke-rc.d: initscript bumblebeed, action “start” failed.的解决

http://askubuntu.com/questions/266744/cannot-install-bumblebee-to-the-ubuntu-12-10

Try following the instructions in the top answer in this question. To summarize:

Do

sudo apt-get update
sudo apt-get install bbswitch-dkms
then if that doesn\’t work,

sudo apt-get update
sudo apt-get install linux-headers
sudo apt-get dist-upgrade
and then finally if even that doesn\’t work, install the headers for your specific kernel version:

sudo apt-get install linux-headers-$(uname -r)
Let me know if this works.

[4,]安装vmware-workstation

安装vmware7有错误,安装vmware8也有错误;8的错误可以解决;

chmod +x VMware-Workstation-Full-8.0.2-591240.x86_64.bundle
./VMware-Workstation-Full-8.0.2-591240.x86_64.bundle

cd /usr/lib/vmware/modules/
wget http://pavlinux.ru/vmware/8.0.0/source.tar.lzma
tar -xf source.tar.lzma 
vmware -modconfig –console -install -all

cd /usr/lib/vmware/modules/

wget http://pavlinux.ru/vmware/7.1.4/source.tar

cd source
tar -xf vmnet.tar 
patch -p1 < /home/wangqz/vmware-7.1.4-2.6.38-2-generic.patch 
patch -p1 < /home/wangqz/vmware3.2.0.patch

===============================

error:please make sure that the kernel module vmmon is loaded

解决:

root@wa:/etc/init.d# /etc/init.d/vmware start
Starting VMware services:
Virtual machine monitor done
Virtual machine communication interface done
VM communication interface socket family done
Blocking file system done
Virtual ethernet done
VMware Authentication Daemon done
Shared Memory Available

aptitude或者软件中心安装其它软件时会出现无法安装的问题

http://www.cnblogs.com/taosim/articles/2399845.html

解决方法如下:

在/etc/insserv/overrides/下新建vmware,内容如下:

### BEGIN INIT INFO
# Provides: vmware
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 5
# Default-Stop: 2 3 5
# Short-Description: VMware VMX service for virtual machines
# Description: Allows running of VMware virtual machines.
### END INIT INFO

在/etc/insserv/overrides/下新建vmware-USBArbitrator,内容如下

### BEGIN INIT INFO
# Provides: vmware-USBArbitrator
# Required-Start: $remote_fs $syslog vmware
# Required-Stop: $remote_fs $syslog vmware
# Default-Start: 2 3 5
# Default-Stop: 2 3 5
# Short-Description: Start daemon when vmware starts
# Description: Enable service provided by daemon.
### END INIT INFO

在/etc/insserv/overriders/下新建vmware-workstation-server

### BEGIN INIT INFO
# Provides: vmware-workstation-server
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 5
# Default-Stop: 2 3 5
# Short-Description: have not defined yet
# Description: the same as the line ahead
### END INIT INFO

 

==========================================

vmware kernel module updater报出kernel header 3.9-1-amd64路径不能发现的处理:

sudo -s
cd /lib/modules/$(uname -r)/build/include/linux
ln -s ../generated/utsrelease.h
ln -s ../generated/autoconf.h

cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h

卸载并重新安装

# vmware-installer -u vmware-workstation

#aptitude install -y glibc-pic clisp-module-bindings-glibc glibc eglibc-source glibc-doc build-essential g++ gcc make automake gdb libgcc1 libg++ perl gnome-devel gnome-dev-doc xorg libxp6 gnome-core gdm gnome-themes gnome-icon-theme-dlg-neu gnome-backgrounds alsa-base alsa-utils alsa-oss gnome-audio esound gnome-system-tools gconf-editor nautilus-open-terminal vim-full libqt4-dev qt4-designer qt4-doc libsslcommon2-dev libsslcommon2 libssl-ocaml-dev-l8h98 libssl-ocaml libssl-ocaml-dev libssl-ocaml-l8h98 libssl-dev libssl-doc glibc-pic clisp-module-bindings-glibc glibc-2.13-1 eglibc-source glibc-doc install linux-headers-$(uname -r)

 

 

 

 [5,]安装wine;用wine运行rtx,qq

### wine ###

# deb http://ppa.launchpad.net/ubuntu-wine/ubuntu lucid main

# aptitude -y install git-buildpackage pristine-tar
# aptitude install libgl1-mesa-glx:i386 libasound2:i386

#add-apt-repository ppa:wine-cn/ppa

# aptitude update

# aptitude install -y wine1.3 winetricks

# aptitude install  cabextract

 

=====================================

# aptitude install  ia32-libs

# aptitude install  flex bison

# aptitude install  -y libfreetype6-dev libcapi20-dev libgphoto2-2-dev liblcms1-dev libcups2-dev libncurses5-dev libgnutls-dev libdbus-1-dev libhal-dev prelink libsane-dev libv4l-dev libmpg123-dev libopenal-dev libldap2-dev libxcursor-dev libfontconfig1-dev libgsm1-dev oss4-dev libxcomposite-dev libxinerama-dev libxrandr-dev libxxf86vm-dev libxi-dev libcursor-dev libxslt1-dev gettext libssl-dev libjpeg8-dev libpng12-dev libxml2-dev libges-0.10-dev libtiff4-dev

==================

http://nicolaselie.wordpress.com/2011/09/26/install-wine-on-debian-wheezy-testing/

UPDATE:

A probably better way to do this (thanks to nekuy and lmdeman) :

  1. Add this line to your apt repositories :
    deb http://frickelplatz.de/debian/ sid main
  2. Add the following code to your /etc/apt/preferences file to activate apt-pinning:
    Package: *
    Pin: origin frickelplatz.de
    Pin-Priority: 200

    Package: wine
    Pin: origin frickelplatz.de
    Pin-Priority: 800

  3. $ sudo apt-get update
    $ sudo apt-get install frickelplatz-archive-keyring frickelplatz-keyring frickelplatz-keyrings
    $ sudo apt-get update
    $ sudo apt-get install wine

To install PlayOnLinux:

  1. $ wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
    $ sudo wget http://deb.playonlinux.com/playonlinux_squeeze.list -O /etc/apt/sources.list.d/playonlinux.list
    $ sudo apt-get update
    $ sudo apt-get install playonlinux

Source:

http://forums.linuxmint.com/viewtopic.php?f=190&t=76928#p447869

http://www.playonlinux.com/en/download.html

END UPDATE

  1. Get the architecture:
    $ ARCH=`uname -m | sed -e s/x86_64/amd64/ -e s/i.86/i386/`
  2. Download the packages corresponding to this arch:
    $ wget -r -A "*_$ARCH.deb" http://dev.carbon-project.org/debian/wine-unstable/
  3. Intall packages:
    $ sudo dpkg -i dev.carbon-project.org/debian/wine-unstable/*.deb
  4. Install dependencies:
    $ sudo apt-get install -f
  5. Delete packages from the HD:
    $ rm -rf dev.carbon-project.org/

NB:
To uninstall a software:
$ wine uninstaller

================================================================

http://pkg-wine.alioth.debian.org/

Checking out Debian packaging from Git

$ sudo apt-get install git-buildpackage pristine-tar
$ git clone git://git.debian.org/git/pkg-wine/wine.git

 
Git是一个开源的分布式版本控制系统,Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。GIT是分布式的,GIT把内容按元数据方式存储,GIT没有一个全局的版本号

 =========================

 

http://www.winehq.org/

最新发布

稳定版: Wine 1.6 (shortlog)
开发版: Wine 1.6 (shortlog)

http://wiki.ubuntu.org.cn/Wine

 

安装最新版 wine

ubuntu 官方自带了 wine ,但是推荐用 winehq 官方提供的最新版本 wine ,新版本解决了很多以前显得麻烦的问题。

PPA地址:https://launchpad.net/~ubuntu-wine/+archive/ppa

sudo add-apt-repository ppa:ubuntu-wine/ppa
 sudo apt-get update
 sudo apt-get install wine

[编辑] 配置

winecfg


——————————————————————-

Wheezy

Warning: probably way out of date, attention is needed

  1. apt-get the following packages:
    • ia32-libs (you need version 1.18 at least)
    • libc6-dev-i386
    • lib32z1-dev
    • ia32-libs-dev (it has the /usr/lib32/libpng.so, which seems to be required when installing TTF fonts)
    • optionally, a bunch of other libraries: libxcursor-dev libfontconfig1-dev libldap2-dev libxslt-dev libgl1-mesa-dev libglu1-xorg-dev libgnutls-dev libxi-dev lib32ncurses5-dev libxrandr-dev libxxf86vm-dev
  2. Make symlinks (see below, in the Debian SID section, for the full list of symlinks):
    cd /usr/lib32 ln -s libdbus-1.so.3 libdbus-1.so  

This is required as of 2008/05/20 to prevent Wine warning that HAL cannot be found. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473586

  1. Download the wine source and assuming gcc and all needed development packages are installed (see Recommended Packages) you can compile wine using:

    ./configure
    make
    make install 

  2. If the configure command fails with “configure: error: C compiler cannot create executables” and you use gcc-4.1, install “gcc-4.1-multilib” to solve it.
  3. Run wine by executing /emul/ia32-linux/usr/bin/wine (you can add the directory to the path or make a script). If wine complains that it can\’t find libwine.so.1 make sure /emul/ia32-linux/usr/lib is part of the LD_LIBRARY_PATH or run ldconfig -v.

 

Troubleshooting

If you have problems with libjpeg, there is a confirmed bug. The work around is:

You need to remove the version 0.62 and create a symbolic link to the version 0.8, probably both are installed into /usr/lib, in my case (i\’m using debian amd64) are installed in /usr/lib32, i just type: $ ls | grep libjpeg, i\’ve located the both libjpeg, deleted the 62 typing: # rm -f ./libjpeg.so.62 ./libjpeg.so.62.0.0 and create the two symlinks from version 0.8 typing: # ln -s ./libjpeg.so.8 ./libjpeg.so.62 and # ln -s ./libjpeg.so.8 ./libjpeg.so.62.0.0 and just compiled the wine again and problem solved, to assure that is the correct version of libjpeg just type: ./configure | grep jpeg before the make.

I found that ./configure still gave me a libjpeg error, but programs that used libjpeg worked well.

——————————————————–

configure: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn\’t what you want. You will need
to install 32-bit development packages of Xlib/Xfree86 at the very least.
Use the –without-x option if you really want this.

———————————————————-

# ./configure –enable-win64

configure: WARNING: prelink not found, base address of core dlls won\’t be set correctly.

configure: WARNING: No sound system was found. Windows applications will be silent.

configure: Finished. Do \’make\’ to compile Wine.

—-

make[1]: Leaving directory `/data/download/wine-1.6-rc4/server\’
Wine build complete.

 

http://blog.sina.com.cn/s/blog_61c07ac50101cgr2.html

看到提示这个:configure: Finished. Do \'make\' to compile Wine.
这个时候输入:make && make install
make的时间很长,耐心等待
安装好了以后,执行ln -s /usr/local/bin/wine64 /usr/local/bin/wine
不然执行winecfg的时候会报错:/usr/local/bin/winecfg: line 52: exec: wine: not found
打开winecfg以后添加需要执行的exe的程序文件

 ====================================

# aptitude install libgl1-mesa-glx:i386 libasound2:i386
下列“新”软件包将被安装。         
  gcc-4.8-base:i386{a} libasound2:i386 libc6:i386{a} libc6-i686:i386{a}
  libdrm-intel1:i386{a} libdrm-nouveau2:i386{a} libdrm-radeon1:i386{a} libdrm2:i386{a}
  libexpat1:i386{a} libffi6:i386{a} libgcc1:i386{a} libgl1-mesa-dri:i386{a}
  libgl1-mesa-glx:i386 libglapi-mesa:i386{a} libllvm3.2:i386{a} libpciaccess0:i386{a}
  libstdc++6:i386{a} libtxc-dxtn-s2tc0:i386{a} libx11-6:i386{a} libx11-xcb1:i386{a}
  libxau6:i386{a} libxcb-dri2-0:i386{a} libxcb-glx0:i386{a} libxcb1:i386{a}
  libxdamage1:i386{a} libxdmcp6:i386{a} libxext6:i386{a} libxfixes3:i386{a}
  libxxf86vm1:i386{a} zlib1g:i386{a}
0 个软件包被升级,新安装 30 个,0 个将被删除, 同时 28 个将不升级。
需要获取 24.5 MB 的存档。解包后将要使用 99.9 MB。
您要继续吗?[Y/n/?]

=====================================================

http://www.playonlinux.com/en/download.html

Debian

Deb files:

PlayOnLinux: PlayOnLinux_4.2.1.deb

Wheezy users : You must install the package wine:i386 to get PlayOnLinux working

With the Wheezy repository

Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | apt-key add -
wget http://deb.playonlinux.com/playonlinux_wheezy.list -O /etc/apt/sources.list.d/playonlinux.list
apt-get update
apt-get install playonlinux

 ===============================================================

http://www.php-oa.com/2011/01/10/linux-rtx-tm-thunder-office.html

项目的主页是:

DeepWine  http://bbs.deepin.org/thread-1808167-1-1.html

http://bbs.shendu.com/thread-1808167-1-1.html

6.使用说明

    • 对于Linux Deepin 10.12的用户,请至少安装 deepin-wine-lib和deepin-wine-run包,其他ubuntu系统的用户请自行安装和中文化wine 1.2以上版本。
    • 由于本计划需要的各项运行库和支持组件都已经打包到deb中,因此不再需要像使用winetricks那样还需要联网下载各种组件。

    • 装好deb包以后,必须首先运行 deepin-wine-run (打开一个终端窗口,在终端窗口后输入 deepin-wine-run 即可)
      ,将自动初始化deepwine的环境在当前用户的 .wine-deepin
      目录下,以后所有符合deepwine计划的软件,都将装在这个环境中。在运行过程中会提示安装IE6,请按照其安装向导默认安装过程进行即可。

 

# dpkg -i wine-qq2012-for-linux_20120302_ByLongeneTeam.deb
Selecting previously unselected package qq2012-for-wine.
(正在读取数据库 … 系统当前共安装有 209372 个文件和目录。)
正在解压缩 qq2012-for-wine (从 wine-qq2012-for-linux_20120302_ByLongeneTeam.deb) …
正在设置 qq2012-for-wine (2012.03.02) …
    Running postinst script…
    Checking path “/opt/qq2012/lib/” in file /etc/ld.so.conf
    backup /etc/ld.so.conf
    Adding path “/opt/qq2012/lib/” to /etc/ld.so.conf
    Now adding path “/opt/qq2012/bin/” to ~/.bashrc
copy files …
./gtk-longene: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
   Done.
正在处理用于 libc-bin 的触发器…
==========================================

http://blog.csdn.net/zhangwei217245/article/details/4363037

用winetricks安装必须的win支持库。这一步很关键。

命令行中输入winetricks
然后勾选colorprofile、corefonts、d3dx9、fontfix、fontsmooth-gray、fontsmooth-rgb、fontsmooth-bgr、gdiplus、mfc40、mfc42、
msxml3、msxml4、msxml6、riched20、riched30、tahoma、urlmon、vb6run、vcrun6、vcrun2003、vcrun2005、vcrun2008、ie6、allfonts

然后选择安装。

======================================================

参照下面这篇文章是可以安装成功的:

http://www.oschina.net/question/193954_33387

因为再发贴我只看到有提问贴,所以就只能发在这里了,

我安装时也是在网上找了很多种方法,试验过很多都没有成功,RTX组件注册失败,最后重装fedora

再次安装WINE,RTX,这次成功安装,因为本人初学,

有些细节说不太明白,只是自己的一种方式,仅供参考

#yum install wine

#wget http://www.kegel.com/wine/winetricks

# chmod +x winetrickh

$sh  winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1

这一步时需要下载安装msxml3文件,到网站上下载

 ( 也有可能需要$ ./winetricks riched20 msxml3 msxml6 vcrun6 win2k,)

注1:我用IE60没有成功,最后改成IE7安装的

注2:这几步期间可能会出现一个自动下载一个好像叫wiego的插件,如果有安装提示,点确定,然后等待它下载完成,

     哪步没成功再接着安装即可

继续安装

$ wine RTX2010.exe

也可以直接打开文件安装,推荐用终端,这样可以查看哪里出现安装错误

安装时会出现一个或多个注册组件失败,在终端里会提示缺少   ~.dll文件,网上说要复制相对的DLL文件:

在真实的 windows 系统中从 C:\WINDOWS\systenm32 里复制 缺少的.dll文件到 /home/用户名/.wine/drive_c/windows/system32 文件里(我这次安装时就提示了一个,所以忽略就过了)

如果安装成功的话就可以打开RTX了,打开后界面和人名有很多方框,

下列方法转载于:http://hi.baidu.com/%D4%C2%C1%C1%CA%D8%CD%FB%D5%DF/blog/item/3a830234faf57b305ab5f540.html#0

解决wine汉字显示乱码,方框,字体问题

将原WINDOWS系统中的simsun.ttc复制到WINE的c:\windows\fonts中

初始安装上的RTX汉字显示的全是方框

将下列代码保存成hz.reg

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]

“Arial”=”simsun”

“Arial CE,238″=”simsun”

“Arial CYR,204″=”simsun”

“Arial Greek,161″=”simsun”

“Arial TUR,162″=”simsun”

“Courier New”=”simsun”

“Courier New CE,238″=”simsun”

“Courier New CYR,204″=”simsun”

“Courier New Greek,161″=”simsun”

“Courier New TUR,162″=”simsun”

“FixedSys”=”simsun”

“Helv”=”simsun”

“Helvetica”=”simsun”

“MS Sans Serif”=”simsun”

“MS Shell Dlg”=”simsun”

“MS Shell Dlg 2″=”simsun”

“System”=”simsun”

“Tahoma”=”simsun”

“Times”=”simsun”

“Times New Roman CE,238″=”simsun”

“Times New Roman CYR,204″=”simsun”

“Times New Roman Greek,161″=”simsun”

“Times New Roman TUR,162″=”simsun”

“Tms Rmn”=”simsun”

然后运行WINE中的注册表编辑器

导入REG文件(也可以把里面的值一个一个的改成simsun)

有人说把 wine 的配置函数库中,新增加一个 oleaut32.dll 的原装先于内建,因为之前我已加,不知道具体有没有用。

方法在菜单中选择wine->configure wine打开wine configure的对话框,选择函数库tab,在新增函数库顶替中选择oleaut32添加,然后重新启动RTX

网上有方法,可以搜一下试试

安装后上线时会显示离线状态,可以把个人设置里的回复设置 ——自动转换状态去掉。

 

至于每个版本不同,在安装时遇到的问题可能有些差异,多试几次,应该会找到适合自己的方法

 

=================================================================

[6,]安装secureCRT的linux版本

# aptitude install -y libsslcommon2-dev libsslcommon2 libssl-ocaml-dev-l8h98 libssl-ocaml libssl-ocaml-dev libssl-ocaml-l8h98 libssl-dev libssl-doc 

# dpkg -i scrt-7.1.1-264.ubuntu12-64.x86_64.deb

# tar -xvzf scrt-7.1.1.264.ubuntu12-64.tar.gz

# aptitude install -y glibc-pic clisp-module-bindings-glibc glibc-2.13-1 eglibc-source glibc-doc

# cp ./usr/lib/vmware-vix/Workstation-8.0.0-and-vSphere-5.0.0/64bit/libssl.so.0.9.8 ./usr/lib/x86_64-linux-gnu/

# dpkg -i scrt-7.1.1-264.ubuntu12-64.x86_64.deb
Selecting previously unselected package scrt.
(正在读取数据库 … 系统当前共安装有 176378 个文件和目录。)
正在解压缩 scrt (从 scrt-7.1.1-264.ubuntu12-64.x86_64.deb) …
dpkg: dependency problems prevent configuration of scrt:
scrt 依赖于 libssl0.9.8;然而:
未安装软件包 libssl0.9.8。

dpkg: error processing scrt (–install):
依赖关系问题 – 仍未被配置
正在处理用于 desktop-file-utils 的触发器…
正在处理用于 gnome-menus 的触发器…
在处理时有错误发生:
scrt

 —————————–

http://www.boll.me/archives/599

SecureCRT推出Linux的版本也是让我们兴奋不已, 它也是使用中最好用的远程连接工具, 不过因为商业性质出现破解版本的SecureCRT, 因为程序的特殊性, 破解版本的SecureCRT或远程连接工具我都是使用官方原版, 记得前两年出现的PuTTY中文版带后后门事件也是让我记忆深刻.
官方版本默认只是30天的测试使用时间, 早期大家的30天循环方法的是删除家目录下”.vandyke/Config/SecureCRT_eval.lic”文件即可.
但是最近几个版本, 好像是7.0.1还是7.0.2这个方法已经不能使用了. 后来strace下程序, 总感觉跟它的时间有关系, 后来发现新的版本是使用lic文件加上主程序的ctime时间来计算它的过期的.
测试了下果然是可以.

操作系统: Linux Ubuntu
相关软件: SecureCRT

操作过程:

删除家目录的lic文件:

 

修改主程序的ctime:

 

运行SecureCRT:

 

[7,]安装remmnia的最新版本

# aptitude install -y  cmake intltool libgtk-3-dev libssh-dev libavahi-ui-gtk3-dev libvte-2.90-dev libxkbfile-dev libtelepathy-glib-dev libgnome-keyring-dev libappindicator3-dev libgcrypt11-dev libgnutls-dev libfreerdp-dev libjpeg-dev

# pwd
/home/wangqz/.remmina
root@w:/home/w/.remmina# ll
总用量 12
-rw-r–r– 1 wangqz wangqz  476 7月  28 11:32 1374.remmina
-rw-r–r– 1 wangqz wangqz  479 7月  28 11:37 1375.remmina
-rw-r–r– 1 wangqz wangqz 1127 7月  28 11:26 remmina.pref

http://mirrors.jstvu.edu.cn/deepin/pool/main/r/remmina/

https://github.com/FreeRDP/Remmina/downloads

 

# gedit /etc/apt/sources.list.d/wheezy-or-testing.list
root@w:~# aptitude update
读取: 1 ftp://debian.csie.ntu.edu.tw testing Release.gpg [1,571 B]
读取: 2 http://security.debian.org testing/updates Release.gpg [836 B]
读取: 3 ftp://debian.csie.ntu.edu.tw testing Release [147 kB]
读取: 4 http://security.debian.org testing/updates Release [77.8 kB]
读取: 5 ftp://debian.csie.ntu.edu.tw testing/main Sources [8,094 kB]
读取: 6 http://security.debian.org testing/updates/main amd64 Packages [20 B]
读取: 7 http://security.debian.org testing/updates/main Translation-en [14 B]
读取: 8 ftp://debian.csie.ntu.edu.tw testing/main amd64 Packages [8,032 kB]                        
读取: 9 ftp://debian.csie.ntu.edu.tw testing/main Translation-en                                   
错误 ftp://debian.csie.ntu.edu.tw testing/main Translation-en                                       
读取: 10 ftp://debian.csie.ntu.edu.tw testing/main Translation-en [4,090 kB]                       
已下载 20.4 MB,耗时 58秒 (350 kB/s)                                                                
                         
当前状态:996 个被更新 [+996], 36032 个新软件包 [+35791]。
root@w:~# aptitude install remmina
下列“新”软件包将被安装。         
  libffi6{a} libfreerdp-plugins-standard{a} libfreerdp1{a} libssh-4{a} libvncserver0{a} remmina
  remmina-common{a} remmina-plugin-rdp{a} remmina-plugin-vnc{a}
下列软件包将被升级:
  gir1.2-glib-2.0 glib-networking glib-networking-common glib-networking-services
  gnome-desktop3-data libc6 libgcrypt11 libgirepository-1.0-1 libglib2.0-0 libgnome-desktop-3-2
  locales python-gi
12 个软件包被升级,新安装 9 个,0 个将被删除, 同时 984 个将不升级。
需要获取 13.5 MB 的存档。解包后将要使用 4,988 kB。
下列软件包存在未满足的依赖关系:
 gir1.2-freedesktop : 依赖: gir1.2-glib-2.0 (= 1.32.1-1) 但是 1.36.0-2+b1 将被安装。
 libglib2.0-bin : 依赖: libglib2.0-0 (= 2.33.12+really2.32.4-5) 但是 2.36.3-3 将被安装。
 libglib2.0-dev : 依赖: libglib2.0-0 (= 2.33.12+really2.32.4-5) 但是 2.36.3-3 将被安装。
 python-gi-cairo : 依赖: python-gi (= 3.2.2-2) 但是 3.8.2-1 将被安装。
 libc6-dev : 依赖: libc6 (= 2.13-38) 但是 2.17-7 将被安装。
 libc-dev-bin : 依赖: libc6 (< 2.14) 但是 2.17-7 将被安装。
 libc6-pic : 依赖: libc6 (= 2.13-38) 但是 2.17-7 将被安装。
下列动作将解决这些依赖关系:

       删除 下列软件包:                                                                            
1)       accerciser                                                                                 
2)       alacarte                                                                                   
3)       build-essential                                                                            
4)       camlp4                                                                                     
5)       caribou                                                                                    
6)       caribou-antler                                                                             
7)       eog                                                                                        
8)       g++                                                                                        
9)       g++-4.7                                                                                    
10)      gdebi                                                                                      
11)      gdm3                                                                                       
12)      gedit                                                                                      
13)      gedit-plugins                                                                              
14)      gir1.2-clutter-1.0                                                                         
15)      gir1.2-clutter-gst-1.0                                                                     
16)      gir1.2-cogl-1.0                                                                            
17)      gir1.2-coglpango-1.0                                                                       
18)      gir1.2-evince-3.0                                                                          
19)      gir1.2-freedesktop                                                                         
20)      gir1.2-gcr-3                                                                               
21)      gir1.2-gdata-0.0                                                                           
22)      gir1.2-gkbd-3.0                                                                            
23)      gir1.2-gnomebluetooth-1.0                                                                  
24)      gir1.2-gst-plugins-base-0.10                                                               
25)      gir1.2-gstreamer-0.10                                                                      
26)      gir1.2-gtk-3.0                                                                             
27)      gir1.2-gtkclutter-1.0                                                                      
28)      gir1.2-gtksource-3.0                                                                       
29)      gir1.2-gucharmap-2.90                                                                      
30)      gir1.2-mutter-3.0                                                                          
31)      gir1.2-networkmanager-1.0                                                                  
32)      gir1.2-panelapplet-4.0                                                                     
33)      gir1.2-pango-1.0                                                                           
34)      gir1.2-peas-1.0                                                                            
35)      gir1.2-rb-3.0                                                                              
36)      gir1.2-totem-1.0                                                                           
37)      gir1.2-vte-2.90                                                                            
38)      gir1.2-webkit-3.0                                                                          
39)      gir1.2-wnck-3.0                                                                            
40)      gir1.2-xkl-1.0                                                                             
41)      gnome                                                                                      
42)      gnome-applets                                                                              
43)      gnome-bluetooth                                                                            
44)      gnome-core                                                                                 
45)      gnome-devel                                                                                
46)      gnome-documents                                                                            
47)      gnome-games                                                                                
48)      gnome-orca                                                                                 
49)      gnome-packagekit                                                                           
50)      gnome-session                                                                              
51)      gnome-shell                                                                                
52)      gnome-shell-extensions                                                                     
53)      gnome-sudoku                                                                               
54)      gnome-sushi                                                                                
55)      gnome-tweak-tool                                                                           
56)      gnome-user-share                                                                           
57)      libatk1.0-dev                                                                              
58)      libc-dev-bin                                                                               
59)      libc6-dev                                                                                  
60)      libc6-pic                                                                                  
61)      libcairo2-dev                                                                              
62)      libexpat1-dev                                                                              
63)      libfindlib-ocaml-dev                                                                       
64)      libfontconfig1-dev                                                                         
65)      libfreetype6-dev                                                                           
66)      libgdk-pixbuf2.0-dev                                                                       
67)      libglib2.0-bin                                                                             
68)      libglib2.0-dev                                                                             
69)      libgtk-3-dev                                                                               
70)      libncurses5-dev                                                                            
71)      libpango1.0-dev                                                                            
72)      libpcre3-dev                                                                               
73)      libpeas-1.0-0                                                                              
74)      libpng12-dev                                                                               
75)      librhythmbox-core6                                                                         
76)      libseed-gtk3-0                                                                             
77)      libssl-dev                                                                                 
78)      libssl-ocaml-dev                                                                           
79)      libsslcommon2-dev                                                                          
80)      libstdc++6-4.7-dev                                                                         
81)      libtool                                                                                    
82)      libtotem0                                                                                  
83)      libxft-dev                                                                                 
84)      ocaml-nox                                                                                  
85)      packagekit                                                                                 
86)      packagekit-tools                                                                           
87)      python-aptdaemon.gtk3widgets                                                               
88)      python-gi-cairo                                                                            
89)      rhythmbox                                                                                  
90)      rhythmbox-plugin-cdrecorder                                                                
91)      rhythmbox-plugins                                                                          
92)      software-properties-gtk                                                                    
93)      task-gnome-desktop                                                                         
94)      totem                                                                                      
95)      totem-plugins                                                                              
96)      uuid-dev                                                                                   
97)      valac-0.16                                                                                 
98)      zlib1g-dev                                                                                 

       保留下列未解决的依赖关系:                                                                   
99)      anjuta 推荐 libtool                                                                        
100)     anjuta 推荐 valac-0.16                                                                     
101)     dpkg-dev 推荐 build-essential                                                              
102)     ocaml-findlib 推荐 libfindlib-ocaml-dev                                                    
103)     gcc 推荐 libc6-dev | libc-dev                                                              
104)     gedit-common 推荐 gedit                                                                    
105)     glade 推荐 libgtk-3-dev                                                                    
106)     nautilus 推荐 gnome-sushi                                                                  
107)     libltdl-dev 推荐 libtool                                                                   
108)     packagekit-backend-aptcc 推荐 packagekit (= 0.7.6-3)                                       
109)     gnome-panel 推荐 gnome-applets                                                             
110)     gnome-panel 推荐 gnome-session (>= 2.26)                                                   
111)     gnome-panel 推荐 alacarte                                                                  
112)     rhythmbox 推荐 rhythmbox-plugins                                                           
113)     gcc-4.7 推荐 libc6-dev (>= 2.13-5)                                                         
114)     gcc-4.6 推荐 libc6-dev (>= 2.13-5)                                                         
115)     gnome-control-center 推荐 gnome-session                                                    
116)     synaptic 推荐 software-properties-gtk                                                      
117)     python-packagekit 推荐 packagekit                                                          
118)     task-desktop 推荐 task-gnome-desktop | task-kde-desktop | task-lxde-desktop | task-xfce-deskt
119)     rhythmbox-data 推荐 rhythmbox                                                              
120)     libpackagekit-glib2-14 推荐 packagekit-system-interface | packagekit (= 0.7.6-3)           
121)     task-gnome-desktop 推荐 gnome                                                              
122)     network-manager-gnome 推荐 gnome-bluetooth                                                 

是否接受该解决方案?[Y/n/q/?]

[8,]电池阀值

       电池阀值,貌似有专门针对thinkpad的工具;低端本子目前没有直接可写入电池芯片的办法;

[9,]fcitx输入法

~$ /usr/bin/fcitx &
[WARN] /tmp/buildd/fcitx-4.2.4.1/src/module/dbus/dbusstuff.c:133-DBus Service Already Exists
[ERROR] /tmp/buildd/fcitx-4.2.4.1/src/lib/fcitx/ui.c:162-no usable user interface.
[ERROR] /tmp/buildd/fcitx-4.2.4.1/src/frontend/ipc/ipc.c:314-DBus Not initialized
[ERROR] /tmp/buildd/fcitx-4.2.4.1/src/lib/fcitx/frontend.c:437-无可用前端

#aptitude install -y fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4
[ERROR] /tmp/buildd/fcitx-4.2.4.1/src/lib/fcitx/ui.c:162-no usable user interface.

# aptitude purge fcitx
# aptitude search fcitx
# aptitude install -y fcitx fcitx-ui-classic  fcitx-tools fcitx-table-wubi fcitx-table-cangjie5 fcitx-table fcitx-table-all fcitx-pinyin fcitx-module-x11 fcitx-frontend-all fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4

http://fcitx.github.io/handbook/chapter-config-env.html

如果你需要使用im module,你需要保证dbus正确初始化。如果你的fcitx启动输出中包含了dbus相关的错误,请在你的启动脚本开头加入

			eval `dbus-launch --sh-syntax --exit-with-session`
		

 #reboot后,成了,帅;

 

[10,]gnome3坏掉了,需要重新安装

http://saplingidea.iteye.com/blog/482063

安装X窗口
apt-get install xorg libxp6
安装gnome
#apt-get install gnome-core gdm
gdm是登陆界面

安装gnome主题、图标、背景
#apt-get install gnome-themes gnome-icon-theme-dlg-neu gnome-backgrounds

让alsa把你的声卡驱动起来
#apt-get install alsa-base alsa-utils alsa-oss
#alsaconf #一路回车

安装gnome下的声音支持。
#apt-get install gnome-audio esound #esound是gnome下的软件混音器

其他工具
#apt-get install gnome-system-tools gconf-editor nautilus-open-terminal
gnome-system-tools 服务、网络等系统工具
gconf-editor 配置编辑器
nautilus-open-terminal 在右键菜单中加入终端
安装OpenOffice.org
#apt-get install openoffice.org-writer openoffice.org-calc openoffice.org-math openoffice.org-impress openoffice.org-gtk
#apt-get install openoffice.org-l10n-zh-cn openoffice.org-help-zh-cn #中文界面和中文帮助

 

文本模式直接启动gnome命令

#startx

以上命令失败请使用以下方法:
#cp /usr/X11R6/bin/startx /usr/bin/startgnome
#vi /usr/bin/startgnome
(modify line35,set “defaultclientargs” to \’exec gnome-session\’ . Then line 35 should be

defaultclientargs=\’exec gnome-session\’

#startgnome

[11,]编译环境安装

#aptitude install -y build-essential g++ gcc make automake gdb libgcc1 libg++ perl gnome-devel gnome-dev-doc 

#aptitude install vim-full

 

(1)基本编译环境:sudo apt-get install build-essential

(2)编译器及工具:sudo apt-get install g++ gcc make automake perl

(3)GTK/GNOME开发环境:sudo apt-get install gnome-devel gnome-dev-doc

(4)QT3/KDE3开发环境:sudo apt-get install kdesdk kdesdk-doc-html

(5)QT4/KDE4开发环境:apt-get install libqt4-dev qt4-designer qt4-doc

[12,]nginx,python,django,go等环境安装

*****

参考地址:

http://www.cnblogs.com/taosim/archive/2013/04/07/3003592.html

http://www.cnblogs.com/taosim/category/373587.html

http://www.cnblogs.com/taosim/category/489151.html

 

 

 

 

[13,]安装goagent

根据如下参考地址中资料:

http://www.douban.com/note/211529212/

http://my.oschina.net/nealma/blog/115665

http://blog.cheny.org/ubuntu-gae/

http://equation85.github.io/blog/goagent-config/

http://dngood.blog.51cto.com/446195/1071767

大致有如下步骤:

1.安装gevent

2.下载go_appengine_sdk_linux_amd64-1.8.2.zip,goagent-3.0.zip;分别解压后,goagent拖入go_appengine

3.修改appid2处:

gedit go_appengine/goagent/server/python/app.yaml中application: yourappid

gedit go_appengine/goagent/local/proxy.ini中[gae]   appid = yourappid

4.执行升级

在go_appengine下

python appcfg.py update goagent/server/python

5.运行

在go_appengine下

python go_appengine/goagent/local/proxy.py

 

 

firefox使用插件autoproxy(一个大福字)

opera使用SwitchyPac.pac文件

/usr/share/opera/ui/standard_menu.ini

http://www.focuscool.com/use-goagent-in-opera/

http://www.i7086.com/goagentzaiieyuoperalanqishangdewanmeiyingyong

目前,Opera浏览器还没有一个非常好用的代理扩展,不像Chrome有SwitchySharp插件、Firefox有FoxyProxy插件。所以,正常情况下,就像IE浏览器一样,只能通过层层菜单进去设置代理服务器。Opera->设置->首选项->高级->网络,

快捷菜单方法  Opera->设置->首选项->高级->网络->代理服务器->填写IP和端口->确认,这样一个传统的流程,步骤实在太多,每次使用GoAgent都这样,那也太折腾人了,所以,找个简单一点的方法吧!下面就讲一下,如何使用Opera的快捷菜单来简化上面繁杂的步骤。

Opera浏览器里面,叫快捷参数,快捷键是F12,但平时还是叫“快捷菜单”顺口些,别人也容易懂。这个快捷参数,有个“使用代理服务器”的选项,接下来就是修改这个东西。
修改菜单配置文件   Opera安装目录的ui文件夹下,有个standard_menu.ini的配置文件,用记事本打开。查找”[Quick Preferences Menu]“,找到之后,在这个 [Quick Preferences Menu]之下,会发现有如下一行代码:  
Item, MI_IDM_CONTROL_MENU_ENABLE_PROXY        = Enable proxy servers | Disable proxy servers
在这行代码之下,再加入一行代码就可以了,代码如下:
Item, “GoAgent” = Set Preference, “Proxy||HTTP server=127.0.0.1:8087″

修改完配置文件后,保存,启动Opera浏览器,这时候,按快捷键F12,就会发现菜单有变化了!

 

[14,]安装opera

#gedit /etc/apt/sources.list.d/opera.list

deb http://deb.opera.com/opera/ stable non-free
#wget -O – http://deb.opera.com/archive.key | apt-key add –

#aptitude update

#aptitude install -y  opera

#aptitude install -y  libmotif3

[15,]Network Manager显示设备未托管的解决办法

修改文件:

/etc/NetworkManager/NetworkManager.conf

[ifupdown]

managed=true

重启

原因:

Linux里面有两套管理网络连接的方案:

1、/etc/network/interfaces(/etc/init.d/networking)

2、Network-Manager

两套方案是冲突的,不能同时共存。

第一个方案适用于没有X的环境,如:服务器;或者那些完全不需要改动连接的场合。

第二套方案使用于有桌面的环境,特别是笔记本,搬来搬去,网络连接情况随时会变的。

-------------

他们两个为了避免冲突,又能共享配置,就有了下面的解决方案:

1、当Network-Manager发现/etc/network/interfaces被改动的时候,则关闭自己(显示为未托管),除非managed设置成 true。

2、当managed设置成 true 时,/etc/network/interfaces,则不生效。

[16,]无线网络配置不能用

 要先把笔记本前侧的无线网络物理开关拨到右侧,使其处于开启状态,然后通过Fn+F5打开无线网络快捷开关就可以了

安装驱动,加载模块:

dpkg -i firmware-brcm80211_0.39_all.deb
aptitude reinstall firmware-brcm80211 wireless-tools wpasupplicant network-manager-gnome
modprobe -r brcm80211

modprobe brcm80211

root@w:~# modprobe -r brcm80211 &&  modprobe brcm80211

FATAL: Module brcm80211 not found.
root@w:~# modprobe -r brcm80211 ;  modprobe brcm80211
FATAL: Module brcm80211 not found.
FATAL: Module brcm80211 not found.

=================================================================================

# aptitude install linux-headers-$(uname -r|sed \’s,[^-]*-[^-]*-,,\’) broadcom-sta-dkms

通过aptitude找不到broadcom-sta-dkms;于是到:http://packages.debian.org/jessie/allpackages搜索

broadcom-sta-common (5.100.82.112-9) [non-free]Common files for the Broadcom STA Wireless driver

broadcom-sta-dkms (5.100.82.112-9) [non-free]dkms source for the Broadcom STA Wireless driver

broadcom-sta-modulesvirtual package provided by

broadcom-sta-dkmsbroadcom-sta-source (5.100.82.112-9) [non-free]Source for the Broadcom STA Wireless driver

下载之;

# dpkg -i broadcom-sta-dkms_5.100.82.112-9_all.deb

报错:

Error! Bad return status for module build on kernel: 3.9-1-amd64 (x86_64)

搜索到:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702788

I just installed the sid release of broadcom-sta-dkms package (version 11) and 
the wifi is now active !

Any way, thanks for your work !

===================================================================================

http://www.spinics.net/lists/linux-wireless/msg106034.html

# aptitude remove wicd

# lspci -vvnn | grep 14e4
06:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
Subsystem: Broadcom Corporation Device [14e4:051b]

# lspci -v|grep brc
Kernel driver in use: brcmsmac

# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

# modinfo brcmsmac
filename: /lib/modules/3.2.0-4-amd64/kernel/drivers/net/wireless/brcm80211/brcmsmac/brcmsmac.ko
license: Dual BSD/GPL
description: Broadcom 802.11n wireless LAN driver.
author: Broadcom Corporation
alias: pci:v000014E4d00000576sv*sd*bc*sc*i*
alias: pci:v000014E4d00004727sv*sd*bc*sc*i*
alias: pci:v000014E4d00004353sv*sd*bc*sc*i*
alias: pci:v000014E4d00004357sv*sd*bc*sc*i*
depends: mac80211,brcmutil,cfg80211,cordic,crc8
intree: Y
vermagic: 3.2.0-4-amd64 SMP mod_unload modversions

# modinfo mac80211
filename: /lib/modules/3.2.0-4-amd64/kernel/net/mac80211/mac80211.ko
license: GPL
description: IEEE 802.11 subsystem
depends: cfg80211
intree: Y
vermagic: 3.2.0-4-amd64 SMP mod_unload modversions
parm: ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)
parm: max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm: max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm: probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)

# iw wlan0 station dump

# iw list

# iw wlan0 info
Interface wlan0
ifindex 3
type managed
wiphy 0

 

 

————————————————————————————————————————————

下一步就是配置网络接口:
# vi /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
  wpa-ssid MYSSID
  wpa-psk fbe3447c5f66e893d9010a6872436b34686618a3e8fa2833d56bb98b41be5c8d
# ifup wlan0

最关键的WPA-PSK项,此处不能写入明文密码,需要通过wpa-passphrase转换的,如下:
wpa_passphrase <your_essid> <your_assic_key>
例如:
# wpa_passphrase MYSSID PASS1234
network={
    ssid=”MYSSID”
    #psk=”PASS1234″
    psk=fbe3447c5f66e893d9010a6872436b34686618a3e8fa2833d56bb98b41be5c8d
}

 =====================================================================================

 # aptitude install -y wicd

# service network-manager restart

# service networking restart

# lspci | grep Wireless
06:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)

# lspci | grep Broadcom
06:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)

# iwconfig
lo no wireless extensions.
vmnet8 no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:”[ESSID]”  
Mode:Managed Access Point: Not-Associated Tx-Power=off
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
eth0 no wireless extensions.
vmnet1 no wireless extensions.

# ifconfig -a
lo Link encap:Local Loopback  
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:580 (580.0 B) TX bytes:580 (580.0 B)
wlan0 Link encap:Ethernet HWaddr  
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

—–

1. sudo lshw -class network
2. sudo cat /etc/udev/rules.d/70-persistent-net.rules
3. sudo cat /etc/NetworkManager/NetworkManager.conf
4. lspci -nn | grep Broadcom
5. lsusb | grep Broadcom
6. rfkill list
7. sudo cat /etc/modprobe.d/blacklist.conf
8. dmesg | grep bcma
9. lsmod

————

#aptitude install -y module-assistant wireless-tools network-manager-gnome

#aptitude reinstall module-assistant wireless-tools network-manager-gnome

$ lspci -vnn

……………………………..

…………………..

…………..

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF119 [GeForce GT 520M] [10de:1050] (rev ff) (prog-if ff)
!!! Unknown header type 7f

05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
Subsystem: Lenovo Device [17aa:3975]
Flags: bus master, fast devsel, latency 0, IRQ 41
I/O ports at 4000 [size=256]
Memory at f2004000 (64-bit, prefetchable) [size=4K]
Memory at f2000000 (64-bit, prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169

06:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
Subsystem: Broadcom Corporation Device [14e4:051b]
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at cbefc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: brcmsmac

=====================================

http://www.linuxsir.org/bbs/thread382786.html

 

你的情况可能是模块冲突,导致没有使用 brcmsmac 模块的结果 
试试 google “brcmsmac conflict”

4) 我用 www.google.com/ncr 搜索 brcmsmac conflict archlinux 看到很多关于 conflict 的文章,这个问题应该很多人碰到
如没有这样搜过也试试:brcmsmac 冲突

 

 

1) Broadcom BCM4313 要用 brcmsmac 驱动(内核自带),我用的 z470 也是这个芯片

2) 那个什么 wl 或 b43 不能用(好象在 archlinux bbs 看到过)

3) 这是我的 /etc/wpa_supplicant.conf:

Shell代码 
  1. ctrl_interface=/var/run/wpa_supplicant  
  2. ctrl_interface_group=wheel  
  3. network={  
  4.     ssid=“myssid-3.3”  
  5.     psk=**************************  
  6.     proto=RSN  
  7.     key_mgmt=WPA-PSK  
  8.     pairwise=CCMP  
  9.     group=CCMP  
  10. #   pairwise=CCMP TKIP  
  11. #   group=CCMP TKIP  
  12. }  

4) 启动无线连接的脚本:

Shell代码 
  1. ip link set wlan0 up  
  2. wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf  
  3. dhcpcd wlan0  
  4. wpa_gui &  

wpa_gui 来自包 wpa_supplicant_gui (要把 用户名 加入 wheel 才能正常使用 wpa_gui )

 

=========================================

http://wiki.debian.org/zh_CN/wl#Debian_7.0_.22Wheezy.22

私有的Broadcom无线局域网驱动(wl, aka broadcom-sta)提供了Broadcom生产的某些PCI/PCIe设备的支持。它包含针对x86和x86-64架构的二进制组件。支持的设备 列在本页的最后。

驱动分别依赖 x86 和 x86-64 架构(Debian i386 and AMD64).

BCM4313, BCM43224 and BCM43225 芯片也能够被 brcmsmac 驱动所支持. BCM4311和BCM4312芯片也能够被 b43 驱动支持.

从Debian 7.0 “Wheezy”开始,BCM4321 和 BCM4322 芯片也能够被 b43 驱动支持.

驱动安装

Debian 7.0 “Wheezy”

增加 “non-free” 组件到 /etc/apt/sources.list, 例如:
# Debian 7.0 “Wheezy”
deb http://http.debian.net/debian/ wheezy main contrib non-free

更新可用的软件包列表. 安装相关的 linux-headers 和 broadcom-sta-dkms 软件包:
# apt-get update
# apt-get install linux-headers-$(uname -r|sed \’s,[^-]*-[^-]*-,,\’) broadcom-sta-dkms

这也将安装推荐的 wireless-tools 软件包. DKMS 将会为你的系统构建 wl 模块.

卸载冲突模块:
# modprobe -r b44 b43 b43legacy ssb brcmsmac

加载 wl 模块:
# modprobe wl

适当的 配置 你的无线接口. 参见 已知问题.

http://wiki.centos.org/zh/HowTos/Laptops/Wireless/Broadcom

http://myhat.blog.51cto.com/391263/399513

http://blog.csdn.net/chinawangyajun/article/details/7610862

第 1 步:辨认无线网络芯片及安装时依赖的组件
确定无线网络芯片型号:
[root@young hybrid-wl]# /sbin/lspci | grep Broadcom

05:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)

07:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe (rev 01)

编译依赖的组件:

yum install kernel-headers kernel-devel gcc

第 2 步:下载并解压 Broadcom 驱动程序的压缩档
到官网下载bcm4313驱动程序:

# mkdir -p /usr/local/src/hybrid-wl
# cd /usr/local/src/hybrid-wl
# tar xvfz /path/to/the/tarball/hybrid-portsrc-x86_64-v5.10.91.9.3.tar.gz(载档的名称)
# chown -R someuser.somegroup /usr/local/src/hybrid-wl

第 3 步:编译 Broadcom 驱动模块
# make -C /lib/modules/`uname -r`/build/ M=`pwd`

第 4 步上:将驱动模块装入内核中
# modprobe lib80211

# modprobe cfg80211
# insmod wl.ko
第 4 步下:在开机时将驱动模块装入内核中
# cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless

# depmod -a

# echo modeprobe wl >> /etc/rc.local

 —————————————————————————————————————————————————————–

http://askubuntu.com/questions/102181/broadcom-brcm80211-installation-from-source

1-sudo apt-get install bcmwl-kernel-source

or you can install it from synaptic manager also, make sure broadcom-sta-common, broadcom-sta-source, firmware-b43* are NOT INSTALLED.

2-Even if you install the wl0 driver it won\’t load automatically as it is blacklisted by default. So make sure “/etc/modprobe.d/blacklist-bcm43.conf” file looks like this:

# Warning: This file is autogenerated by bcmwl. All changes to this file will be lost.

blacklist b43

blacklist b43legacy

blacklist ssb

#blacklist bcm43xx

#blacklist brcm80211

blacklist brcmsmac

blacklist bcma

3-If you wish you can copy above contents in your blacklist-bcm43.conf file.

4-Hope this works, best of luck! and make sure you restart your pc.

https://bbs.archlinux.org/viewtopic.php?pid=1306443

The wiki says bcm4313 is supported and uses the brcmsmac module,

well, like I said, you need to comb over the Broadcom Wireless wiki very carefully. There are 3 modules for Broadcom cards… brcm80211 (or brcmsmac i believe), b43, and wl. The page you visited is listing compatibility for the b43 module. For your card (which is the same as mine), b43 is not supported…you instead have to use brcmsmac or wl. I\’m going to assume that you have brcmsmac by default, and your card doesn\’t work very well with that driver. To get wl to work (and this is detailed in the wiki) you have to actually install a package from the aur (broadcom-wl) and blacklist and load the appropriate modules.

—————————————————————————————————————————————————

 https://bbs.archlinux.org/viewtopic.php?pid=974152

     

Hi,
after upgrade, I got the linux 3. i read that brcm80211 was renamed to brcmsmac .
The module is loaded but I cannot see the wireless interface

 #  lsmod  | grep brc
brcmsmac              594624  0 
brcmutil                6563  1 brcmsmac
mac80211              215605  1 brcmsmac
cfg80211              160516  2 brcmsmac,mac80211
crc_ccitt               1331  1 brcmsmac

# lspci -vnn | grep 14e4
05:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
    Subsystem: Broadcom Corporation Device [14e4:0510]


 #  iwconfig 
lo        no wireless extensions.

eth0      no wireless extensions.

 

Suggestions are welcome.

thanks

—————————

# lspci -vnn | grep 14e4
06:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
Subsystem: Broadcom Corporation Device [14e4:051b]

I\’ve been having a ton of issues with the same card as you.. Have you tried blacklisting the modules and installing broadcom-wl from AUR? use modprobe wl and see if that still works.

 

Blacklisting the module `bcma` does the trick for fixing the wifi (or at least it fixed it for my BCM4313). After you remove that module, you should be able to use brcmsmac like normal.

 =========================================================

# grep mac /proc/modules

brcmsmac 473905 0 – Live 0xffffffffa041a000
cordic 12352 1 brcmsmac, Live 0xffffffffa02aa000
crc8 12426 1 brcmsmac, Live 0xffffffffa029d000
brcmutil 12905 1 brcmsmac, Live 0xffffffffa027b000
mac80211 192806 1 brcmsmac, Live 0xffffffffa02dd000
cfg80211 137243 2 brcmsmac,mac80211, Live 0xffffffffa02ba000

 

I know that method of blacklisting is at the very least depreciated, but as of recent updates I don\’t think it works at all now. This is how I blacklisted:

Contents of /etc/modules.d/modules.conf

blacklist b43
blacklist b43legacy
blacklist bcma

If you have broadcom-wl installed, you may want to blacklist that as well (`wl` is the module name).

To see if you were successful, execute

grep bcma /proc/modules

If there is no output, then blacklisting was successful.

Edit: And this is assuming you are using the brcmsmac driver

 

if the brcmsmac module is auto-loaded but the device shows not up, try also explicitly specifying the module in the MODULES array in rc.conf. solved it for me

Wilco wrote:

Adding brcmsmac to the modules section in /etc/rc.conf gives me a kernel panic

Same thing happend to me. Try blacklisting brcmsmac in /etc/modprobe.d/modprobe.conf, and load it by putting modprobe brcmsmac line in /etc/rc.local. Solved it for me.

 

============================================================

 

 http://blog.csdn.net/u010305560/article/details/8933970


英语不错的朋友直接推荐去这个网站(推荐)

https://wiki.archlinux.org/index.php/Broadcom_wireless#Wi-Fi_card_does_not_work_or_show_up_after_kernel_upgrade_.28brcmsmac.29

Ubuntu用户请到以下传送门

https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx#Switching_between_drivers

 

1.根据自己的情况找合适的驱动

有很多中b43,ssb,brcmsmac/brcmfmac……

 

$ lspci -vnn | grep 14e4:

用以上命令行获取PCI-ID 和 网卡的ID

 

『例如』02:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)
PCI-ID=4315 

无限网卡ID=BCM4312

2.根据ID选择驱动,其中有开源的有非开源的 [比如本人的是BCM4312](无法在线安装的需要从别的地方下载了)

http://wireless.kernel.org/en/users/Drivers/b43?highlight=%28BCM4312%29

查找得到b43相关信息,然后选择安装b43驱动

apt命令

 

sudo apt-get install firmware-b43-installer

如果是像本人一样比较特别的网卡带有LP-PHY字样的低功耗版本

 

 

sudo apt-get install firmware-b43-lpphy-installer

 

 

3. 卸载所有的驱动,避免冲突(视个人情况不同)

 

sudo modprobe -r b43 bcma
sudo modprobe -r brcmsmac bcma
sudo modprobe -r wl

4. 加载个人所需的驱动 (视个人情况不同)

 

 

sudo modprobe b43
sudo modprobe brcmsmac
sudo modprobe wl

至此,不出意外应该就可以用了

5.[Optioanl] 如果之前误操作过blacklist请是情况更改
sudo gedit /etc/modprob.d (目录下有关无限网卡的最好都看看,blacklist.conf最好也看下以免所需要的驱动加入了黑名单)

6补充
如果不久之后又出现连接补上的状况请
执行如下命令,激活无线网卡:

sudo modprobe -r b43 ssb sudo modprobe b43

 

7、执行如下操作,把无线网卡加入到开机启动里面,这样每次开机就可以自动扫描WiFi网络: 把命令sudo modprobe b43加到/etc/rc.local文件中exit之前。

 

http://taoky.blog.163.com/blog/static/20125425720123395818281/

 

4)进入/etc/rc.conf,找到MODULES部分,把“brcmsmac”(也就是最后一行给出的设备名称)删掉。

5)创建一个文件:/etc/modprobe.d/brcmsmac_blacklist.conf

在里面写一行:

blacklist brcmsmac

保存,重启。
如果你的设备使用出现了问题(比如说上不了网),那么你可以这样:
6)在/etc/rc.local中添一行:

modprobe brcmsmac

再重启看看,搞定!

    https://wiki.archlinux.org/index.php/Broadcom_wireless_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#Wi-Fi_card_does_not_work_or_show_up_after_kernel_upgrade_.28brcmsmac.29         

Wi-Fi card does not work or show up after kernel upgrade (brcmsmac)

This is caused by the kernel using the bcma module instead of the brcmsmac module. The solution is to blacklist the bcmamodule. For instructions, see Kernel_modules#Blacklisting.

Note: This affects only Linux kernels 3.0, 3.1, and 3.2. Since kernel 3.3, the brcmsmac module actually uses bcma, so bcma needs to be unblacklisted or the Wi-Fi interface will not appear.

 

https://wiki.archlinux.org/index.php/Kernel_modules#Blacklisting

Blacklisting

Blacklisting, in the context of kernel modules, is a mechanism to prevent the kernel module from loading. This could be useful if, for example, the associated hardware is not needed, or if loading that module causes problems: for instance there may be two kernel modules that try to control the same piece of hardware, and loading them together would result in a conflict.

Some modules are loaded as part of the initramfsmkinitcpio -M will print out all autodetected modules: to prevent the initramfs from loading some of those modules, blacklist them in /etc/modprobe.d/modprobe.conf. Running mkinitcpio -v will list all modules pulled in by the various hooks (e.g. filesystem hook, SCSI hook, etc.). Remember to add that .conf file to the FILES section in /etc/mkinitcpio.conf (if you have not done so already) and rebuild the initramfs once you have blacklisted the modules, and to reboot afterwards.

Using files in /etc/modprobe.d/

Create a .conf file inside /etc/modprobe.d/ and append a line for each module you want to blacklist, using the blacklistkeyword. If for example you want to prevent the pcspkr module from loading:

/etc/modprobe.d/nobeep.conf
# Do not load the \'pcspkr\' module on boot.
blacklist pcspkr

Note: The blacklist command will blacklist a module so that it will not be loaded automatically, but the module may be loaded if another non-blacklisted module depends on it or if it is loaded manually.

However, there is a workaround for this behaviour; the install command instructs modprobe to run a custom command instead of inserting the module in the kernel as normal, so you can force the module to always fail loading with:

/etc/modprobe.d/blacklist.conf
...
install module_name /bin/false
...
This will effectively blacklist that module and any other that depends on it.

Using kernel command line

Tip: This can be very useful if a broken module makes it impossible to boot your system.

You can also blacklist modules from the bootloader.

Simply add modprobe.blacklist=modname1,modname2,modname3 to your bootloader\’s kernel line, as described in Kernel Parameters.

Note: When you are blacklisting more than one module, note that they are separated by commas only. Spaces or anything else might presumably break the syntax.

Manual module handling

Kernel modules are handled by tools provided by kmod package. You can use these tools manually.

To load a module:

# modprobe module_name

To unload a module:

# modprobe -r module_name

Or, alternatively:

# rmmod module_name

 

http://crunchbang.org/forums/viewtopic.php?pid=314372

 

 

Post output of

uname -a >info
dmesg >> info
lsmod 2>&1 >>info
sudo ifconfig -a 2>&1 >>info
sudo iwconfig 2>&1 | tee -a info



 http://wireless.kernel.org/en/users/Drivers/brcm80211#Firmware_installation

博通brcmsmac驱动

  • 支持32位和64位的Linux内核

 

固件安装

将brcm/bcm43xx-0.fw​​ brcm/bcm43xx_hdr-0.fw​​复制到/ lib /固件/ BRCM(或其它地方通常安装在你的系统固件)。

 https://bbs.archlinux.org/viewtopic.php?id=138029

In 3.2, enabling bcma disables brcmsmac. That\’s probably whitethorn\’s issue. So he should actualy disable bcma if he wants brcmsmac in a 3.2 kernel.

In 3.3, brcmsmac actually uses bcma, so it should *not* be disabled or blacklisted. And the conflict with b43 (two cards are supported by both b43 and brcmsmac) has been solved differently.

http://pof.eslack.org/2012/05/23/why-broadcom-80211-linux-sta-driver-sucks-and-how-to-fix-it/

Ubuntu packages are available in poliva/pof ppa, sources on github:

sudo add-apt-repository ppa:poliva/pof
sudo apt-get update
sudo apt-get install broadcom-sta-dkms

You might want to remove the old wl module first, if you have it installed:

sudo apt-get purge bcmwl-kernel-source

 

 ##############################################

https://wiki.debian.org/zh_CN/wl

驱动安装

 

Debian 7.0 “Wheezy”

 

  1. 增加 “non-free” 组件到 /etc/apt/sources.list, 例如:

    # Debian 7.0 "Wheezy"
    deb http://http.debian.net/debian/ wheezy main contrib non-free

  2. 更新可用的软件包列表. 安装相关的 linux-headers 和 broadcom-sta-dkms 软件包:

    # apt-get update
    # apt-get install linux-headers-$(uname -r|sed \'s,[^-]*-[^-]*-,,\') broadcom-sta-dkms

    这也将安装推荐的 wireless-tools 软件包. DKMS 将会为你的系统构建 wl 模块.

  3. 卸载冲突模块:

    # modprobe -r b44 b43 b43legacy ssb brcmsmac

  4. 加载 wl 模块:

    # modprobe wl

  5. 适当的 配置 你的无线接口. 参见 已知问题.

 

http://blog.chinaunix.net/uid-26569496-id-3124102.html

http://blog.163.com/loving_you2000/blog/static/2110018820116128215490/

参考以下文档:

文档1

若要安装以 Broadcom BCM4311、BCM4312、BCM4313、BCM4321 或 BCM4322 为基础的无线网络卡,请遵照以下的步骤:
 

首先,请确定你是位「拥有 Broadcom BCM43xx 无线网络卡的幸运儿」:
 
[user@host ~]$ /sbin/lspci | grep Broadcom
0b:00.0 Network controller: Broadcom Corporation BCM4312 802.11a/b/g (rev 01)
辨认完无线网络芯片型号之后,请确定你不会欠缺编译及安装时所需的组件:
 
[root@host]# yum install kernel-headers kernel-devel gcc
当然,假若你要为 Xen 内核(kernel-xen)编译驱动程序,你必须安装 kernel-xen-devel 而不是 kernel-devel。
 
请从 Broadcom 的官方网站下载 Broadcom BCM43xx 的 linux 驱动程序压缩档到你的机器并将它解压到 /usr/local/src/hybrid-wl,请随你所需将这个目录的拥有者改为无特权的用户:
 
[root@host ~]# mkdir -p /usr/local/src/hybrid-wl
[root@host hybrid-wl]# cd /usr/local/src/hybrid-wl
[root@host hybrid-wl]# tar xvfz /path/to/the/tarball/hybrid-portsrc-x86_64-v5.10.91.9.3.tar.gz(下载档的名称)
[root@host hybrid-wl]# chown -R someuser.somegroup /usr/local/src/hybrid-wl
   
 

驱动模块可以这样编译:
 
[user@host hybrid-wl]$ make -C /lib/modules/`uname -r`/build/ M=`pwd`
请留意引号(也就反引号)。
现在你很可能会获得一个错误信息,而不是一个编译好的驱动模块(实际上,本作者仍未遇过这个信息以外的情况)。这则信息的内容大致上是:
 
make: Entering directory `/usr/src/kernels/2.6.18-164.el5-x86_64\'
LD /tmp/hybrid/hybrid/hybrid/built-in.o
CC [M] /tmp/hybrid/hybrid/hybrid/src/wl/sys/wl_linux.o
In file included from /tmp/hybrid/hybrid/hybrid/src/wl/sys/wl_linux.c:20:
/tmp/hybrid/hybrid/hybrid/src/include/typedefs.h:70: error: conflicting types for ‘bool’
include/linux/types.h:36: error: previous declaration of ‘bool’ was here
make[1]: *** [/tmp/hybrid/hybrid/hybrid/src/wl/sys/wl_linux.o] Error 1
make: *** [_module_/tmp/hybrid/hybrid/hybrid] Error 2
make: Leaving directory `/usr/src/kernels/2.6.18-164.el5-x86_64\'
正如你所见,typedefs.h 这个文件的第 70 行出了一个问题。要解决它,请将第 70 行的代码改为注释,好让它变成:
 
/*
#ifndef TYPEDEF_BOOL
typedef unsigned char bool;
#endif
*/
你亦可以通过在标头档加入以下内容(勿论这一行是否已经存在)来简单地解决这个问题:
 
#define TYPEDEF_BOOL
现在,请尝试再次编译驱动模块:
 
[user@host hybrid-wl]$ make -C /lib/modules/`uname -r`/build/ M=`pwd`
编译器的输出大致上是这样:
 
make: Entering directory `/usr/src/kernels/2.6.18-164.el5-x86_64\'
CC [M] /tmp/hybrid/hybrid/hybrid/src/wl/sys/wl_linux.o
CC [M] /tmp/hybrid/hybrid/hybrid/src/wl/sys/wl_iw.o
CC [M] /tmp/hybrid/hybrid/hybrid/src/shared/linux_osl.o
LD [M] /tmp/hybrid/hybrid/hybrid/wl.o
Building modules, stage 2.
MODPOST
CC /tmp/hybrid/hybrid/hybrid/wl.mod.o
LD [M] /tmp/hybrid/hybrid/hybrid/wl.ko
make: Leaving directory `/usr/src/kernels/2.6.18-164.el5-x86_64\'
一旦这个模块被建成,你便可以删除不必要的符号:
 
[user@host hybrid-wl]$ strip --strip-debug wl.ko
你会发现驱动模块的文件尺寸会明显地缩小(由 2.2MB 降至 1.5MB)。而且,你的驱动模块仍能正常运作 ;)
 
当你成功地编译了驱动模块后,你便可以将它装入内核中,并设置在开机时自动装入这个驱动程序(要这样做,你必须利用 root 的权限)。当然,做这一切之先,你必须从内核删除现在的无线驱动模块(假如有的话):
[root@host ~]# rmmod bcm43xx
[root@host ~]# rmmod b43
[root@host ~]# rmmod b43legacy
[root@host ~]# rmmod ndiswrapper
现在我们装入驱动模块:
 
[root@host hybrid-wl]# modprobe wl.ko
你也可采用:
 
[root@host hybrid-wl]# insmod wl.ko
假如你在无线驱动程序以外没有应用 ndiswrapper 这个内核模块,你可以删除它,但这并非必需的。
 
首先,请将驱动模块的文件复制到一个可以让内核找到它的地方:
 
[root@host hybrid-wl]# cp -vi /usr/local/src/hybrid-wl/wl.ko /lib/modules/`uname -r`/extra/ 
这样做是为了与其它已经/将会从 kmod 组件安装的外置模块(例如:fuse、ntfs-3g、等)保持一贯性。
按着,请执行:
 
[root@host ~]# depmod $(uname -r)
以便能创建一个模块的互赖性清单。
编译 /etc/modprobe.d/blacklist 这个文件并加入以下内容:
 
blacklist bcm43xx
blacklist ndiswrapper
blacklist b43
blacklist b43legacy
通过这样做,你可以避免这些模块在开机时被装入内核中。此外,假如你在 /etc/modprobe.conf 内有一行是指定无线界面的驱动程序,例如:
 
alias eth1 bcm43xx

alias eth1 b43

alias eth1 b43legacy
请将这行注释掉:
 
#alias eth1 bcm43xx

#alias eth1 b43

#alias eth1 b43legacy
并为你的无线网络卡加入新的驱动程序别名:
 
alias eth1 wl
这一切都假设你的无线网络界面设备档是 eth1。
现在,请编译 /etc/modprobe.d/modprobe.conf.dist 这个文件并加入以下内容:
alias ieee80211_crypt_tkip ieee80211_crypt_tkip
alias eth1 wl

现在你的驱动应该在每次开机时都会被装入(当然除了在你安装了新内核之后,到时你必须依照以上步骤将它重新编译)。 

文档2

1.下载并且解压
32位系统:     hybrid-portsrc_x86-32_v5.100.82.38.tar.gz
64位系统:     hybrid-portsrc_x86-64_v5.100.82.38.tar.gz

 

2.组建驱动
cd 解压文件夹路径
make clean
make
//可能会看到”WARNING: modpost: missing MODULE_LICENSE()”,忽略它

3.加载驱动
sudo modprobe lib80211
sudo insmod wl.ko

4.再让它常驻内存
sudo cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
sudo depmod -a

要是之前安装过BCM驱动的话,要清除先
结束。

=====

http://www.broadcom.com/docs/linux_sta/README.txt

http://www.mindwerks.net/2011/11/wireless-bcm4312-3-2-kernel/

To get your wireless adapter working again:

  1. Download this patch: bc_wl_abiupdate.patch
  2. patch -p0 src/wl/sys/wl_linux.c < bc_wl_abiupdate.patch
  3. sudo make; sudo make install; sudo depmod; sudo modprobe wl

===== 

 

文档3

对于许多初学Linux的人来说,安装好一块无线网卡可能会花费其大量的时间和精力。但是如果你成功安装了无线网卡后,你一定会觉得自己的收获会很大。在此,我给大家介绍在Linux下如何用源码方式安装无线网卡,希望能对大家有所帮助!

 

1、  安装前准备

在博通的官方网站上下载源码安装包,我下载的安装包是hybrid-portsrc_x86-32_v5.60.246.6.tar.gz  32位的,当然官方网站http://www.broadcom.com/support/802.11/linux_sta.php上还有与之相对应的64位的安装包(通过#lspci | grep network查看无线网卡型号),这就根据自己的实际情况下载(对此有人就会产生疑问了:如何查看Linux操作系统是32位的还是64位的。我们可以使用  #uname -a 命令来查看你的操作系统,后面是X686X86_64则内核是64位的,i686i386则内核是32位的)。

2、  安装无线网卡

l  在根目录下新建文件夹

#mkdir /temp

l  将下载的驱动包放到该文件夹下

l  解压该安装包  解压后会产生两个文件夹及两个文件(libsrcMakefileREADME.txt

l  接着我们在该目录下使用make编译。如出现以下语句:

KBUILD_NOPEDANTIC=1 make –C /lib/modules/’uname -r’/build M=’pwd’

Make:*** /lib/modules/2.6.32-71.el6.i686/No such

File or directory.stop

则需要安装kernel-devel我们通过yum安装。

#yum install kernel-devel(前提:Linux下已安装yum

l  安装成功后我们在make就不会有什么问题了

编译成功后我们查看一下当前文件夹中的内容,会发现出现了几个扩展名为.o的文件,说明编译成功。

l  接下来我们使用make install安装

#make install

安装成功后我们再查看下文件夹下的内容你会发现多出了一个wl.ko的模块文件,证明我们安装成功。

l  接着我们进入目录

#cd /lib/modules/2.6.32/kernel/drivers/net/wireless

我们查看其中的内容会看到一个绿色的名为wl.ko的模块文件。

l  我们把这个模块文件复制到net文件夹下

#cp wl.ko /lib/modules/2.6.32/kernel/driversnet

l  接着我们通过insmod命令加载wl模块

#insmod /lib/modules/2.6.32-71.el6.i686/kernel/drivers/net/wireless/wl.ko

3、  检查无线网卡安装是否成功

#lsmod | grep wl 

4、  激活网卡

#ifconfig eth0 up(网卡设备名,这里以eth0为例)

如果这是还ping不通的话,可能是配置文件在捣鬼,如果没有网卡的配置文件,新建一个网卡配置文件就OK了,具体操作如下:

#pwd

/etc/sysconfig/network-scripts/

#touch ifcfg-eth0 (这里以eth0为例)

#vim ifcfg-eth0

MODE=Mannged

TYPE=Wireless

BOOTPROTO=dhcp

DEFROUTE=yes

IPV4_FAILURE_FATAL=yes

IPV6INIT=no

NAME=”ifcfg-eth0″

UUID=de52673b-fc0c-4585-aba6-1b5accc6dale

ONBOOT=yes

PEERDNS=yes

PEERROUTES=yes

DHCP_CLIENT_ID=127.0.0.1

5、查看网卡

#ifconfig –a    查看网卡

#iwconfig –a   查看无线网卡

 

这样,无线网卡就轻松的安装成功了!

###############################################

 

 

 ======================================================================================================

 [17,]查看glibc版本,升级glibc版本

# locate libc.so
/lib/x86_64-linux-gnu/libc.so.6
/usr/lib/x86_64-linux-gnu/libc.so
# /lib/x86_64-linux-gnu/libc.so.6
GNU C Library (Debian EGLIBC 2.13-38) stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.7.
Compiled on a Linux 3.2.35 system on 2012-12-30.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.

————–

# ldd –version
ldd (Debian EGLIBC 2.13-38) 2.13
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
由 Roland McGrath 和 Ulrich Drepper 编写。

{glibc是什么,以及与gcc的关系?
glibc是gnu发布的libc库,也即c运行库。glibc是linux 系统中最底层的api(应用程序开发接口),几乎其它任何的运行库都会倚赖于glibc。glibc除了封装linux操作系统所提供的系统服务外,它本 身也提供了许多其它一些必要功能服务的实现,主要的如下:
(1)string,字符串处理
(2)signal,信号处理
(3)dlfcn,管理共享库的动态加载
(4)direct,文件目录操作
(5)elf,共享库的动态加载器,也即interpreter
(6)iconv,不同字符集的编码转换
(7)inet,socket接口的实现
(8)intl,国际化,也即gettext的实现
(9)io
(10)linuxthreads
(11)locale,本地化
(12)login,虚拟终端设备的管理,及系统的安全访问
(13)malloc,动态内存的分配与管理
(14)nis
(15)stdlib,其它基本功能
gcc 是编译器,基本上 Linux 下所有的程序(包括内核)都是 gcc 编译的,libc 当然也是。
gcc 和 libc 是互相依赖的两个软件,它们合作的方式类似 Linux 系统的 “自举”。先在一个可以运行的带有老 libc 和 gcc 的系统上,用老 gcc 编译出一个新版本的 gcc + 老 libc,再用这个新 gcc 编译出一个新 gcc + 新 libc,再用这套东东编译整个新系统。}

[18,]字体等等选择

 

终端使用字体:
ar pl ukai cn bold italic 14
终端默认大小:
96*22

首先在地址栏输入opera:config,找到Fonts,在里面找到Prefer Fontconfig Settings选项,勾选上,重启opera

$ gedit /home/username/.opera/styles/user/user.css

在 工具-首选项-内容-样式里选择

在“工具”→“首选项”→“高级”→“字体”中的“浏览器菜单”和“网页字体”都用上“文泉驿微米黑”,“网页<pre>”上选择“文泉驿等宽微米黑”。“国际字体”中选择“简体中文”。

解决使用opera时,按 ctrl+space 会打开主页不能调出输入法问题  在Opera菜单中,选 “工具” 然后打开 ->首选项->高级->快捷键->键盘设置  在你使用的键盘设置方案(我用的是opera Standard) 然后点正右方的 “编辑” 进入设置选第一项 Application defaults  展开后找 Space ctrl Go to homepage直接 点 删除

[19,]修改grub

# gedit /etc/default/grub

#GRUB_DEFAULT=0
GRUB_DEFAULT=2

# update-grub
Generating grub.cfg …
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.9-1-amd64
Found initrd image: /boot/initrd.img-3.9-1-amd64
Found linux image: /boot/vmlinuz-3.2.0-4-amd64
Found initrd image: /boot/initrd.img-3.2.0-4-amd64
done
# gedit /boot/grub/grub.cfg

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default=”2″

http://blog.csdn.net/sky_qing/article/details/8910324

http://whatiswhat.iteye.com/blog/667428

在早期的Ubuntu中,使用Grub作为系统的启动引导程序,想修改系统启动项非常简单,只要用gedit打开系统菜单设定文件( sudo gedit /boot/grub/menu.lst ),修改该文件中到内容即可,但是到了Grub 2中,不能采用这种方式修改系统启动项了。
Grub 2特性

Grub 2(GRand Unified Bootloader, version 2)是Grub的第二版。Grub 2对Grub的接口进行了完整到重写,基于PUPA(详细介绍)项目到研究,Grub 2更模块化并且更方便扩展,Grub 2的一些提升如下:

  • 具有图形化界面,支持主题
  • 模块化加载
  • 夸平台的兼容性
  • 支持脚本
  • 自定义的启动项目定义
  • 修改分区命名

Grub 2结构

Grub 2包含下面几个部分:

    • /boot/grub/grub.cfg 文件
    • /etc/grub.d/ 文件夹
    • /etc/default/grub 文件

grub.cfg类似Grub中的 /boot/grub/menu.lst。里面的格式于menu.lst差不多,但是现在不允许你通过直接修改该文件到方式来修改启动项,因为该文件是在 执行“update-grub”或者update-grub2”之后,根据上面说到2、3两项动态生成到,也就是说,如果你修改了这个文件当下次这两个命 令被执行了,你修改到内容就会背覆盖。我发现这两个命令应该经常会自动执行的,因为上次我修改了启动画面的背景,需要通过这两个命令重新生成 grub.cfg,但是后来我忘了用这两个命令,所以背景一直没有生效,当时还很纳闷,不知道怎么回事,不过今天开机用了会儿,系统又更新,装完之后重启 就 好了,然后我突然想到上次可能忘了执行这命令了,没想到系统更新会自动执行,:)。
grub.cfg文件中主要包含两个部分,一部分是各个启动项的定义,第二部分是启动界面的设置。你可以直接用gedit打开该文件看其中的内
容。既然grub.cfg不能修改,那也没什么好详细说的了,稍微研究下就能看懂里面是怎么写的。下面就介绍一下Grub 2的另外两个部分。

Grub 2的另外两部分内容其实就分别对应于grub.cfg中的两部分内容。首先 2. /etc/grub.d/
文件夹中定义各个启动项,其中的文件代表了一个或多个启动项,命名规范都是“两个数字_名称”,前面的两位数字确定这个或这多个启动项在启动界面的位置,
默认的
“00_“是预留给“00_header“的,“10_是预留给当前系统内核的,20_是预留给第三方程序的,除了这些你都可以使用,增加自己的,比如
05_ ,
15_,数字越小越前面。这里的文件好像是代码,我还没研究透,不会自己写,只会改,:(,要加油学习了。当执行前面说的“update-grub”或者
update-grub2”命令之后,这个文件夹中的文件就是用于生成 grub.cfg 中启动项的定义的。

Grub 2的最后一部分是 3. /etc/default/grub
文件,该文件主要是启动界面的配置,比如默认的启动项,等待用户选择启动项的时间等。文件内容很简单,就是一些键值对,详细的可配置属性可以参考Grub
2的Wiki中“grub
(/etc/default/grub)”这一节。当执行前面说的“update-grub”或者update-grub2”命令之后,这个文件的内容就
用于生成 grub.cfg 中启动界面的设置。

好了,通过上面的介绍,应该对Grub 2有些了解了,聪明的你应该想到要怎么修改默认启动项了,有下面三种方法:
根据以前修改 /boot/grub/menu.lst 的方法那样直接修改已经生成好的 /boot/grub/grub.cfg。这个方法的优点是简单,缺点是修改之后会被update-grub命令覆盖掉。

修改 /etc/grub.d/ 中启动项的顺序,将你想要默认启动的项顺序设置为较小的值。优点是修改不会被update-grub命令覆盖掉,好像没啥缺电,只有另外的程序修改为比你的值更小了才会成为默认启动。

修改 /etc/default/grub 中默认的启动项,设置该文件中 GRUB_DEFAULT 为你想要的值,这个值是生成的
grub.cfg
中各个启动项的从0开始的下标。该方法优点是修改不会被update-grub命令覆盖,缺电是当启动项的顺序变化之后,下标也就变了。。。

修改/etc/default/grub中GRUB_DEFAULT=0为GRUB_DEFAULT=8。
用下面的命令重新生成 /boot/grub/grub.cfg:

引用
sudo update-grub
http://blog.sina.com.cn/s/blog_631d3a630101fsx3.html

  如果懒于每次update-grub 之后都要修改grub.cfg 文件,则可以进行如下操作:

  用 sudo gedit /etc/grub.d/00_header 命令打开00_header 这个文件,找到 set
default=”${GRUB_DEFAULT}” 一行,将${GRUB_DEFAULT}
换成欲默认启动的操作系统的序号(从0开始),保存,再update-grub。这样每次update-grub之后生成的grub.cfg将自动改成我们想要的样子。

http://forum.ubuntu.org.cn/viewtopic.php?f=165&t=380053
0. 安装 nonfree 固件
1. 修改 Grub 分辨率及背景
2. 修改 console 字体
3. 修改 GDM 背景
4. 字体配置
5. 登录后 iBus 输入法自动启动
6. sudo
7. Intel/AMD 双显卡笔记本
——————感谢 warmsun 的分享——————
8. 时间同步
9. 一些有用的软件
10. 自动挂载 NTFS 分区

安装 nonfree 固件

于 Debian 开发社区的开源自由洁癖,部分属于非自由软件的固件并未包含在默认的安装中。但你还是可以安装他们,包的名称是
firmware-linux-nonfree。如果你在安装完系统后遇见了诡异的问题(例如挂载 debugfs 后找不到 vgaswicheroo
目录,因而无法关闭 AMD 显卡),可以在安装这个包之后再试试。

修改 Grub 分辨率及背景
Grub
界面分辨率的配置项在 /etc/grub/00-header 这个文件里,搜索 640×480,修改它。如果你用的是 Intel
的核心显卡,注意不要改为1366×768,会导致启动后黑屏。我改成了1024×768,虽然不是屏幕的分辨率,但看起来还行。Grub
背景图片的配置项在 /usr/share/desktop-base/grub-background.sh 里。修改完成后需重新生成
grub.cfg ,update-grub 一下即可。

修改 console 字体
启动过程中你会看到 console 字体原来是粗的,后来变得很细,个人觉得很难看。可通过 dpkg-reconfigure console-setup 设置,在第三步选择 “Do not change the boot/kernel font” 即可。

修改 GDM 背景

前没有找到该配置项到底在那个文件里,但背景还是可以修改的。GDM
的背景是/usr/share/images/desktop-base/login-background.svg
这个图片文件,把你要用的背景图片命名为 login-background.svg 即可,另外,我发现用 jpeg 文件也行,不过要命名为
login-background.svg ,后缀名必须是 svg 。

字体配置

吧,我还没有找到完美的解决方案。在开启了 subpixel
rendering、lcdfilter和hintslight之后能让系统界面的字体显示看上去很舒服。Chromium
标题栏、地址栏和菜单的字体效果很好,而网页内容的字体效果很惨。恳请高人支招。此时 Opera 浏览器的字体显示效果堪称完美(不必开启
Prefer Fontconfig Settings)。
登录后 iBus 输入法自启动

代码:
ln -s /usr/share/applications/ibus.desktop ~/.config/autostart/

sudo

代码:
gpasswd -a your_user_name sudo

重启后生效
Intel/AMD 双显卡笔记本
关闭 AMD 显卡的方法:首先安装 firmware-linux-nonfree 这个包。编辑 /etc/fstab ,在 proc 那一行下面加入

代码:
none  /sys/kernel/debug  debugfs  defaults  0 0

编辑 /etc/rc.local ,在 exit 0 前一行加入

代码:
echo “OFF” > /sys/kernel/debug/vgaswitcheroo/switch

时间同步
系统设置——时间和日期 里有通过网络自动对时的开关,需要安装 ntpdate 这个包才能发挥作用,否则打开后会自动关闭。

代码:
sudo aptitude install ntpdate

一些有用的软件
Openfetion :开源的跨平台飞信解决方案 sudo aptitude install openfetion
iptux :开源版飞鸽传书,局域网即时通信、文件及文件夹共享 sudo aptitude install iptux
自动挂载NTFS分区

代码:
sudo aptitude install ntfs-config

安装完成后打开NTFS Configuration Tool这个软件,完成相关设置
目前就这些,欢迎补充。

最后由 Noturs 编辑于 2012-07-09 14:51,总共编辑了 1 次

 [20,]安装非自由插件adobe flashplayer

下载.deb包方式:

http://packages.debian.org/jessie/amd64/flashplugin-nonfree/download

源方式:

#aptitude install flashplugin-nonfree

Check your settings in /etc/apt/sources.list.

If this is a fresh install, most likely you don\’t have the contrib and non-free portions enabled yet. Look for the line that says

deb http://ftp.XX.debian.org/debian/ wheezy main

and change it to

deb http://ftp.XX.debian.org/debian/ wheezy main contrib non-free

then run apt-get update and try again. It should be there as flashplugin-nonfree.

[21]python脚本使用有道词典

http://blog.csdn.net/bg2bkk/article/details/8053653

#! /usr/bin/python
import re;
import urllib;
import urllib2;
import sys;
def debug():
    xml = open("word.xml").read();
    print get_text(xml);
    print get_elements_by_path(xml, "custom-translation/content");
    #print_translations(xml, False, False);
def get_elements_by_path(xml, elem):
    if type(xml) == type(\'\'):
        xml = [xml];
    if type(elem) == type(\'\'):
        elem = elem.split(\'/\');
    if (len(xml) == 0):
        return [];
    elif (len(elem) == 0):
        return xml;
    elif (len(elem) == 1):
        result = [];
        for item in xml:
            result += get_elements(item, elem[0]);
        return result;
    else:
        subitems = [];
        for item in xml:
            subitems += get_elements(item, elem[0]);
        return get_elements_by_path(subitems, elem[1:]);
textre = re.compile("\!\[CDATA\[(.*?)\]\]", re.DOTALL);
def get_text(xml):
    match = re.search(textre, xml);
    if not match:
        return xml;
    return match.group(1);
def get_elements(xml, elem):
    p = re.compile("<" + elem + ">" + "(.*?)</" + elem + ">", re.DOTALL);
    it = p.finditer(xml);
    result = [];
    for m in it:
        result.append(m.group(1));
    return result;
GREEN = "\033[1;32m";
DEFAULT = "\033[0;49m";
BOLD = "\033[1m";
UNDERLINE = "\033[4m";
NORMAL = "\033[m";
RED = "\033[1;31m"
def crawl_xml(queryword):
    return urllib2.urlopen("http://dict.yodao.com/search?keyfrom=dict.python&q="
        + urllib.quote_plus(queryword) + "&xmlDetail=true&doctype=xml").read();
def print_translations(xml, with_color, detailed):
        #print xml;
    original_query = get_elements(xml, "original-query");
    queryword = get_text(original_query[0]);
    custom_translations = get_elements(xml, "custom-translation");
    print BOLD + UNDERLINE + queryword + NORMAL;
    translated = False;
    
    for cus in custom_translations:
        source = get_elements_by_path(cus, "source/name");
        
        print RED + "Translations from " + source[0] + DEFAULT;
        contents = get_elements_by_path(cus, "translation/content");
        if with_color:
            for content in contents[0:5]:
                print GREEN + get_text(content) + DEFAULT;
        else:
            for content in contents[0:5]:
                print get_text(content);
        translated = True;

    yodao_translations = get_elements(xml, "yodao-web-dict");
    printed = False;
    for trans in yodao_translations:
                webtrans = get_elements(trans, "web-translation");
        for web in webtrans[0:5]:
            if not printed:
                print RED + "Translations from yodao:" + DEFAULT;
                printed = True;
                keys = get_elements(web, "key");
            values = get_elements_by_path(web, "trans/value");
            summaries = get_elements_by_path(web, "trans/summary");
            key = keys[0].strip();
            value = values[0].strip();
            #summary = summaries[0].strip();
                        #lines = get_elements(summary, "line");
                if with_color:
                       print BOLD +  get_text(key) + ":\t" +DEFAULT + GREEN + get_text(value) + NORMAL;
                                #for line in lines:
                                #        print GREEN + get_text(line) + DEFAULT;
                #print get_text(summary) + DEFAULT;
                else:
                print get_text(value);
                #print get_text(summary);
                #translated = True;
                #if not detailed:
            #        break
    
def usage():
    print "usage: dict.py word_to_translate";
def main(argv):
    if len(argv) <= 0:
        usage();
        #debug();
        sys.exit(1);
    xml = crawl_xml(" ".join(argv));
    print_translations(xml, True, False);

if __name__ == "__main__":
    main(sys.argv[1:]);

 

关于使用方法,下载下dict.py后,在终端下输入

python dict.py word,这个word就是要查询的单词,中文英文都可以。为了方便使用,可以写成脚本youdao 或者yd或者 youdao.sh。

假设将dict.py和youdao存在/bin这个文件夹下,之所以存在这里,是因为大部分linux系统都将这个目录写到了系统路径里,不用再export,这样感觉很方便,虽然乱了点。

  1. #!/bin/bash  
  2.   
  3. python /bin/dict.py $@  

$@是shell脚本中,参数的意思,这样的话,使youdao这个shell文件可执行,chmod +x youdao,然后就可以在任意路径下以任意用户使用了

 

[22]gnome3截屏

http://hi.baidu.com/sincoder/item/e9fbe3df61816a956dce3f14

     PrtSc 全屏截图

     Alt+PrtSrc  活动窗口截图

     Shift+PrtSc 自定义截图区域

     上面的快捷键截图之后都会保存在home/图片 目录下

     如果按上面的快捷键同时按住 Ctrl 键 那么就会不会保存到文件 而是放到了剪切板中 。。。

     另外还有个小工具:gnome-screenshot

#########################################################################################################

======================================================================================
1,配置apt源(163,sohu)

$ sudo aptitude install apt-spy

$ sudo apt-spy -d testing -a Asia -t 5 -o /etc/apt/sources.list/chtingxi-testing.list

#apt-spy -d sid -a Asia -t 9 -o /etc/apt/sources.list.d/chtingxi-sid.list

#aptitude safe-upgrade && aptitude full-upgrade && aptitude dist-upgrade

$ sudo aptitude update && aptitude install

===============

# testing.source.list

deb http://mirrors.163.com/debian testing main non-free contrib
deb http://mirrors.163.com/debian testing-proposed-updates main non-free contrib
deb http://mirrors.163.com/debian-security testing/updates main non-free contrib
deb-src http://mirrors.163.com/debian testing main non-free contrib
deb-src http://mirrors.163.com/debian testing-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian-security testing/updates main non-free contrib

deb http://mirrors.sohu.com/debian testing main non-free contrib
deb http://mirrors.sohu.com/debian testing-proposed-updates main contrib non-free
deb http://mirrors.sohu.com/debian-security testing/updates main contrib non-free
deb-src http://mirrors.sohu.com/debian testing main non-free contrib
deb-src http://mirrors.sohu.com/debian testing-proposed-updates main contrib non-free
deb-src http://mirrors.sohu.com/debian-security testing/updates main contrib non-free

===============
2,配置sudoer文件wheel用户组
2,禁用可恶讨厌的触摸板,配置鼠标指点杆

点击:http://www.cnblogs.com/taosim/archive/2011/06/16/2083119.html

$ sudo aptitude remove tpconfig

$ sudo aptitude remove gsynaptics

$ sudo aptitude remove gpointing-device-settings

$ sudo modprobe -r psmouse
$ sudo modprobe psmouse

———————————

$ sudo syndaemon -i 2 -d

1. syndaemon -i 2 -d 键盘有活动的2秒内,自动禁用touchpad,其中2可以改为你希望的秒数.

2. synclient touchpadoff=1 关闭touchpad/synclient touchpadoff=0 开启touchpad

———————————-

一款控制触摸板开关的小软件:
sudo add-apt-repository ppa:lorenzo-carbonell/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator
安装完成后,可点击Applications > Accessories > Touchpad Indicator

———————————-

3,安装vmware,启动时需要内核

 

$ sudo aptitude install build-essential linux-headers-$(uname -r)
#aptitude install build-essential gcc  linux-headers-`uname -r`  make  automake
# apt-get install linux-headers-`uname -r` (will install gcc-4.4 and link as gcc4-3.).
# apt-get install make

$ sudo /usr/bin/vmware-modconfig –console –install-all

————————————–

如果有问题需要卸载的话:

1、在终端输入列出已经安装的vmware产品
vmware-installer –list-products
或者
vmware-installer -l

显示结果例如:
snowdream@snowdream:~$ vmware-installer -l

Product Name roduct Version 
====================== ====================
vmware-workstation 7.1.3.324285 

2、卸载vmware workstation
sudo vmware-installer -u vmware-workstation

注:最后一个参数来自上面的产品名称。

===

If you are downgrading, please uninstall all newer versions first, then
install again.

The vmware-uninstall* scripts have been deprecated. Instead, please use
the vmware-installer.

Long form:
vmware-installer –uninstall-product PRODUCT
Short form:
vmware-installer -u PRODUCT

Where PRODUCT is one of vmware-workstation, vmware-player, or vmware-vix.

For a list of which products are installed, you may run:
vmware-installer –list-products
or:
vmware-installer -l

—————————————
4,安装小企鹅输入法 ,安装chrome浏览器 ,安装txtreader 

[

 在 /etc/apt/sources.list文件中有 deb http://backports.debian.org/debian-backports squeeze-backports main
一行的情况下

可以直接使用sudo apt-get install fcitx fcitx-data fcitx-table-wubi fcitx-table-wbpy安装五笔和五笔拼音 
enjoy fcitx!!!

]

[

在 Deian Squeeze中没有把 fcitx 集成进来,所以默认情况下不能通过 apt-get 的方式安装 fcitx.

按照下面的方式修改一下源,既可以了:

 

echo \'deb http://download.opensuse.org/repositories/home:hillwood/Debian_6.0/ /\' >> /etc/apt/sources.list apt-get update apt-get install fcitx

这样的话,不用编译  fcitx 源码,也可以安装 fcitx了。

]

 

[

~$ sudo aptitude install im-config im-switch
下列“新”软件包将被安装。
dialog{a} im-config{b}
0 个软件包被升级,新安装 2 个,0 个将被删除, 同时 1 个将不升级。
需要获取 309 kB 的存档。解包后将要使用 1,901 kB。
下列软件包存在未满足的依赖关系:
im-config: 冲突: im-switch 但是 1.20 已安装。
下列动作将解决这些依赖关系:

删除 下列软件包:
1) im-switch 

是否接受该解决方案?[Y/n/q/?]

]

5,编译安装remmina1.0版本,安装eclipse+python

7,卸载gnome

 

8,指定jdk版本:

//sun-jdk安装并配置环境变量
查看当前系统java版本情况:
[root@localhost ~]# /usr/sbin/alternatives –display java
[root@localhost ~]# /usr/sbin/alternatives –config java

安装sun的jdk版本
;;;
Do you agree to the above license terms? [yes or no]
yes
Unpacking…
Checksumming…
0
0
Extracting…
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-1_5_0_17-linux-i586.rpm
Preparing… ########################################### [100%]
package jdk-1.5.0_17-fcs.i586 is already installed

Done.
[root@localhost src]#
确认刚刚安装的jdk版本路径:
[root@localhost src]# find / -name “jdk*” -type d
/usr/java/jdk1.5.0_17
设置系统默认的jdk版本:
/usr/sbin/alternatives –install /usr/bin/java java /usr/java/jdk1.5.0_17/bin/java 300
/usr/sbin/alternatives –install /usr/bin/javac javac /usr/java/jdk1.5.0_17/bin/javac 300
/usr/sbin/alternatives –config java

[root@localhost jdk1.5.0_17]# /usr/sbin/alternatives –config java

There are 2 programs which provide \’java\’.

Selection Command
———————————————–
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
+ 2 /usr/java/jdk1.5.0_17/bin/java

Enter to keep the current selection[+], or type selection number:

查看新的版本号:
[root@localhost jdk1.5.0_17]# java -version
java version “1.5.0_17”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)
[root@localhost jdk1.5.0_17]# java –version
Unrecognized option: –version
Could not create the Java virtual machine.
[root@localhost jdk1.5.0_17]#

——————————

##############################
注释:以上内容为自己经常做的重复工;
注释:以下内容为googlebaidu的参考资料:

##############################

debian 6 (squeeze)发布一段时间了,我也应该从lenny升级到squeeze了吧,升级还是很容易,三步走:
第一步:修改更新源为debian 6.0
$sudo vi /etc/anbsp;pt/sources.list
deb http://ftp.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.debian.org/debian/ squeeze-proposed-updates main non-free contrib
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
第二步:更新源及软件包
$sudo apt-get update
$sudo apt-get install apt dpkg aptitude
$sudo apt-get dist-upgrade
第三步:重启查看
$sudo reboot
$sudo lsb_release -a
$sudo netstat -tulpn
$sudo tail -f /var/log/messages
$sudo other log files for linuxany.com
$uname -a

==================Debian 6 中常用的源====================

# 官方这个ftp的源速度很快(将http改为ftp也可)
deb http://ftp.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.debian.org/debian/ squeeze-proposed-updates main non-free contrib
#######################################
deb http://ftp.us.debian.org/debian/ squeeze main non-free contrib
deb http://ftp.us.debian.org/debian/ squeeze-proposed-updates main non-free contrib

# 官方安全更新的源
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# 这个台湾的源速度一直就很不错
deb http://debian.nctu.edu.tw/debian/ squeeze main non-free contrib
deb http://debian.nctu.edu.tw/debian/ squeeze-proposed-updates main non-free contrib

# 另一个台湾的源
#deb http://ftp.tw.debian.org/debian/ squeeze main non-free contrib
#deb http://ftp.tw.debian.org/debian/ squeeze-proposed-updates main non-free contrib
#deb http://ftp.tw.debian.org/debian-multimedia/ squeeze main non-free

# 上海交大的源
deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib
deb http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main non-free contrib

# 163的源
deb http://mirrors.163.com/debian/ squeeze main non-free contrib
deb http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
deb http://mirrors.163.com/debian-security/ squeeze/updates main non-free contrib

 

===========================================

 

 

http://blog.netroby.com/article-2891.html

Debian混合安装软件包,稳定版,测试版

人们有时会对这种情况有兴趣——使用一个版本的Debain作为其主发行版,但从另一 个分支上安装一个或多个包。

比如我要装Transmission 2.x ,lenny默认的是1.2 ,很陈旧了 ,要装2.x,只有安装testing版本 。所以我就要做一些调整:

1. 增加testing源,编辑/etc/apt/sources.list

deb http://http.us.debian.org/debian stable main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free
deb-src http://http.us.debian.org/debian stable main contrib non-free

deb http://http.us.debian.org/debian testing main contrib non-free
deb http://security.debian.org testing/updates main contrib non-free

2. 要设定你的Debian主版本,应当修改/etc/apt/apt.conf文件,并加 入:

APT::Default-Release “stable”;

3. 编辑

/etc/apt/preferences文件

Package: *
Pin: release a=stable
Pin-Priority: 990

然后再执行 aptitude update && aptitude -t testing install transmission-daemon

下面是一些参考资料!

———————–我是华丽的分割线————————————-

要设定你的Debian主版本,应当修改/etc/apt/apt.conf文件,并加 入:

APT::Default-Release “version”;

其中version是你希望作为主发行版使用的Debian版本。你可以使用的 版本有stable、testing和unstable。 要从另外一个版本中安装软件包,你必须按照如下方式执行APT:

# apt-get -t distribution install package

为了使其可以个工作,在你的/etc/apt/sources.list中至少有一行 是关于你要使用的那个版本的,而且要使用的软件包也必须存在于该版本中。

你也可以要求使用某个特定把本的软件包,如下所示:

# apt-get install package=version

例如,下面的命令将会安装2.2.4-1版的nautilus软 件包:

# apt-get install nautilus=2.2.4-1

重要信息:最新版的Debian软件包首先会上传到“unstable”发布版中, 这个发布版包含了软件包所有更改阶段,无论是小修小补还是影响到众多软件包 乃至整个系统的重大修改。所以,新手和那些强调系统稳定性的用户 会使用这个发布版。

“testing”发布版比起“unstable”发布版,多注重了些系统稳定性,但正式运行的 系统应当使用“stable”发布版。

你可能会遇到这种情况,更改了某个软件包中的一些文件,但你没有时间或根本就 不想将这些更改引入到新版本中。或者,你将系统升级到3.0,但仍想继续使用Debian 2.2下的某个软件包。你可以“钉住”这个版本,这样它就不会被更新了。

操作起来十分简单,你只需编辑/etc/apt/preferences文件。 /etc/apt/preferences.

文件格式很简单:

Package: <package>
Pin: <pin definition>
Pin-Priority: <pin’s priority>

每个条目都要以空白行与其它条目分割开。例如,我对sylpheed 软件包做了某些修改以使用“reply-to-list”功能,其版本为0.4.99。我想保留这 些修改不被更新,可加上:

Package: sylpheed
Pin: version 0.4.99*

注意我用了一个*(星号)。这是一个“通配符”;它表明我希望“钉住”所有 以0.4.99打头的版本(以防它们被下载并安装到我机器上。pin控制的是服务器端的 更新软件包而非本地的已安装软件包。译者注)。因为Debian使用“Debian版本号” 为其软件包定版本,我不想进行所有这些版本的升级,如果不用通配符, 那么0.4.99-1版或0.4.99-10版只要一出炉系统就会安装它们。如果你修改了软件包, 你一定不希望这么做。

Pin的优先级帮助我们检查一个与“Packages:”和“Pin:”相符合的软件包是否应该被 安装。当优先级比较高时,符合的软件包将会被安装。你可以查阅apt_preferences(7),其中有关于优先级的详细讨论,但通过 一些简单的例子也可以了解基本的概念。下面就说明了在上面的sylpheed例子中设 定优先级域的效果。

1001 Sylpheed 0.4.99永远不会被apt替换。如果可能,apt甚至会用0.4.99版替换已经 安装的更高的版本呢。只有那些优先级比1000大的软件包才会降级。

1000 除了不会将高版本降级以外,与1001的效果相同。

990 版本0.4.99只会被首选发布系列中高版本的的软件包替换,首选发行版由变量 “APT::Default-Release”定义(参考如何保持一个混合系统, 第 3.8 节

500 任何发布系列中比0.4.99版本高的sylpheed都会被安装,但相对于低版本而言,仍然 建议使用0.4.99。

100 任何发布系列中高版本的sylpheed都会被安装;因此只有没有其它版本可以安装时 才会安装0.4.99。已安装包的优先级。

-1 负的优先级也是允许的,它会组织0.4.99版被安装。

钉子也可以用来指定软件包的version、release或 origin。

我们已经看到,钉在一个version上,可以使用具体的版本号,也可以使 用通配符一次指定多个版本。

release选项依赖于APT仓库上的或者CD中的Release文件。如果你使用的 APT仓库并没有提供这个文件,这个选项就没有任何用处了。你可以在 /var/lib/apt/lists/中看到Release文件的内容。release的参数是: a(存档)、c(部件)、v(版本)、o(起源) 和l(标签)。

例如:

Package: *
Pin: release v=2.2*,a=stable,c=main,o=Debian,l=Debian
Pin-Priority: 1001

在这个例子中,我们选择了Debian版本2.2*(可以是2.2r2、2.2r3——这些版本中通常 包含了对安全问题的修复和其它重要更新),stable仓库,main (相应的还有contrib或者non-free)区段、起源和标签都是 Debian。origin(o=)定义了谁制作了这个Release文件,label(l=)定义了发行版的 名字:Debian自己就使用Debian而Progeny则使用Progeny。Release文件的例子如下 所示:

$ cat /var/lib/apt/lists/ftp.debian.org.br_debian_dists_potato_main_binary-i386_Release
Archive: stable
Version: 2.2r3
Component: main
Origin: Debian
Label: Debian
Architecture: i386

相关文章

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==

http://wiki.ubuntu-tw.org/index.php?title=Aptitude

 

Aptitude

 

Aptitude是個涵蓋apt-getapt-cache…等的文字介面前端程式。你可以使用它來取代apt-get的相關操作。

指令模式

$ sudo aptitude install <程式1> [ <程式2> .... ]

可以安裝指定的套件

$ sudo aptitude install -f

可以修復損毀的相依性

$ sudo aptitude update

可以更新套件列表

$ sudo aptitude safe-upgrade
$ sudo aptitude full-upgrade
$ sudo aptitude dist-upgrade

safe-upgrade提供較為安全的升級方式。這個動作不會新增或移除套件,只會針對現有的,不會影響到其他套件相依性的套件做升級的動作。

full-upgrade提供較為徹底的升級;它有可能會為了滿足相依性而新增或移除套件。

dist-upgrade可說是針對整個系統做升級,它可能會更動系統核心的版號,並配合新系統大幅汰換套件。通常這是用來升級到更新的發行版或是對核心做更新時才會使用。

互動模式

執行aptitude時如不加任何參數,則會進入互動模式。

===========================================

http://iyouf.info/a-promber-for-add-apt-repository.html

通过执行 add-apt-repository 命令来添加nginx 的ppa的时候发现 命令找不到

root@ubuntu:~# sudo add-apt-repository
ppa
:nginx/stable
sudo
: add-apt-repository: command not found

经过 搜索才知道 add-apt-repository 是由 python-software-properties 这个工具包提供的

所以要先安装python-software-properties 才能使用 add-apt-repository

apt-get install python-software-properties

 

===========================================

http://hi.baidu.com/barryxkl/blog/item/caa3493f3244f03771cf6c68.html

ubuntu系统:由于没有公钥,下列签名无法进行验证: NO_PUBKEY 31A5F97FED8A569E的解决办法

下载密匙:

gpg –keyserver subkeys.pgp.net –recv ********(如:4E5E17B5)

导入密匙:

gpg –export –armor ******** | sudo apt-key add –

注: * 号是指密匙的后八位

============================================

http://hi.baidu.com/liu_haichang/blog/item/8abd823d9d2b480abba16718.html

ubuntu 9.10关闭触摸板的方法
2009年11月07日 星期六 下午 8:32
       打字的时候,如果不小心碰到触摸板,鼠标一下子不知道飞哪去了,真的是让p人挺烦恼的一件事情。
解决方法如下

1.终端输入如下命令:
sudo modprobe -r psmouse
如果打开触摸板就是:
sudo modprobe psmouse

注:此方法重启系统后触摸板又会自动激活。%>_<%

2.最近我又重新安装了一次Ubuntu9.10,发现在鼠标设置那有个“打字时禁用触摸板”,点上以后打字的时候即使碰到触摸板,光标也不会丢了。O(∩_∩)O~

要是想永久禁用触摸板可以参考一下方法:

安装gsynaptics软件包,系统菜单中会出现“触摸板”的选项。
命令:sudo apt-get install gsynaptics

然后在 “系统-->首选项-->触摸板-->一般-->启用触摸板”,去选该项就可以一劳永逸地禁用恼人的触摸板了。方法是网上找的.本人测试此方法不行,关闭后一段时间触摸板会自动启动,权限的问题

3.最好的方式还是通过脚本实现吧。方法如下:(此方法自己想的,不可行啦,无法完成自启动,有待改进!)
创建脚本文件:
命令:vi closeTouchpad.sh
(如果不想让脚本文件显示,可以在文件名前加“.”即可)
内容:
#!/bin/sh
if xinput list-props “SynPS/2 Synaptics TouchPad” | grep “Device Enabled” |     grep 1
then
modprobe -r psmouse
else
modprobe psmouse
fi

给脚本文件加上可执行权限:chmod +x closeTouchpad.sh
将脚本文件拷贝到任意路径(我的是放到了/usr目录下):sudo cp closeTouchpad.sh /usr
在/etc/init.d/目录下建立软连接实现自启动:sudo ln -s /usr/closeTouchpad.sh closeTouchpad
这里注意:脚本文件必须是root权限來执行才能生效,所以在/etc/init.d/下建立软链接,当然也可以直接把脚本文件copy到/etc/init.d/里面。
下次启动Ubuntu的时候,脚本就会自动执行关闭触摸板了。注意出门别忘带鼠标,如果忘记只能在终端执行
sudo modprobe psmouse 來启用触摸板了,怎么键盘启动终端,自己想想办法吧。

 

http://tech.ddvip.com/2008-01/120060463440635.html

在笔记本电脑上打字,总是不小心碰到触摸板,导致光标乱飞,这种情况如何解决呢?以下是禁用触摸板的方法。

  一般情况下,是使用synaptics触摸板驱动。

  最直接的方法,就是卸载synaptics驱动。sudo apt-get autoremove synaptics

  但是如果一旦需要使用触摸板,还要把驱动装上,太麻烦了。

  还有一种比较简单的方法。

  编辑xorg.conf文件:sudo vi /etc/X11/xorg.conf

  Section “InputDevice”

  Identifier “Synaptics Touchpad”

  Driver “synaptics”

  Option “SendCoreEvents” “true”

  Option “Device” “/dev/psaux”

  Option “Protocol” “auto-dev”

  Option “HorizEdgeScroll” “0”

  Option “SHMConfig” “on”

  EndSection

  添加 Option “SHMConfig” “on” 这行内容

  SHMConfig on 表明开启触摸板的参数设置权限

  命令:synclient touchpadoff=1 --关闭触摸板

  命令:synclient touchpadoff=0 --开启触摸板

  自己写一个关闭触摸板命令的sh文件,加入到自启动栏目中,一切ok了。

 

 http://wiki.ubuntu.org.cn/Synaptics%E8%A7%A6%E6%91%B8%E6%9D%BF%E6%8C%87%E5%8D%97

 

致新手

笔记本电脑上,使用触摸版作为内建鼠标。注意,“Synaptics触摸板”应当与“Synaptic”(Ubuntu的包管理器,即apt-get的图形化用户界面形式)加以区分。

在Breezy (5.10)中,笔记本电脑的触摸板应该立即可用。打开一个终端用grep查看您的/etc/X11/xorg.conf文件:

grep Id /etc/X11/xorg.conf

如果其中有一行:

        Identifier        "Synaptics Touchpad"

那么,就说明您正在使用一个Synaptics触摸板。

在Dapper flight 7 (6.06)中synaptics触摸板好像会被认成一个摄像头之类的设备,所以触摸板的滚轮功能可能不可用。查看“编辑您的xorg.conf文件以包含Synaptics触摸板驱动”来获取滚轮支持。

qsynaptics(或者KDE中的ksynaptics)是一个允许您设置您的触摸板的图形化用户界面程序。要安装该程序,请在终端中键入:

sudo apt-get install qsynaptics

或者:

sudo apt-get install ksynaptics

您可能需要在每次启动X的时候运行qsynaptics -r。请到“系统>首选项>会话>启动程序”中添加。

在Intrepid(8.10)中,系统使用了不同于xorg.conf的设置来控制触摸板,请直接看下面关于Intrepid(8.10)的设置。

[编辑]Intrepid:修改HAL以提供对Synaptics触摸板支持

Ubuntu 8.10中新的Xserver改成了通过HAL来修改设置,而之前都是的xorg.conf文件来修改。

有些笔记本(如Dell)在安装Ubuntu 8.10后,触摸板无法正常工作。

以下操作应该是可行的,fdi文件内容我是根据Dell笔记本的内容改的,去掉了一些参数设置,并未做测试。如果其他品牌笔记本使用下面的fdi文件不行,请直接使用Dell的,应该也不会有区别。

为了修改触摸板配置需要在HAL新建并编辑一个fdi文件:

gksudo gedit /etc/hal/fdi/policy/touchpad.fdi

再将下面的代码完全放进去,并保存:

<?xml version="1.0" encoding="ISO-8859-1"?> 
<deviceinfo version="0.2"> 
 <device> 
  <match key="input.x11_driver" string="synaptics"> 
   <merge key="input.x11_options.SHMConfig" type="string">true</merge> 
  </match> 
 </device> 
</deviceinfo>

然后重启下HAL:

sudo /etc/init.d/hal restart

最后重启一下Xserver(通过同时按键 Ctrl+ALT+Backspace)。

若要使用快捷键开启、关闭触摸板,请看后面相关小节的内容。

[编辑]Dell笔记本触摸板设置

Dell的笔记本支持边缘滑动触发滚动条功能,可以进行更多一些的设置。

下面操作在Dell XPS M1530中通过。和前面相比只有第一步新建fdi文件有不同,内容比较丰富。

[编辑]第一步 添加触摸板支持

先新建并编辑HAL里的fdi文件:

gksudo gedit /etc/hal/fdi/policy/xps-touchpad.fdi

再将下面的代码完全放进去,并保存

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="input.x11_driver" string="synaptics">
<merge key="input.x11_options.LeftEdge" type="string">120</merge>
<merge key="input.x11_options.RightEdge" type="string">830</merge>
<merge key="input.x11_options.TopEdge" type="string">120</merge>
<merge key="input.x11_options.BottomEdge" type="string">650</merge>
<merge key="input.x11_options.FingerLow" type="string">14</merge>
<merge key="input.x11_options.FingerHigh" type="string">15</merge>
<merge key="input.x11_options.MaxTapTime" type="string">180</merge>
<merge key="input.x11_options.MaxTapMove" type="string">110</merge>
<merge key="input.x11_options.ClickTime" type="string">0</merge>
<merge key="input.x11_options.EmulateMidButtonTime" type="string">75</merge>
<merge key="input.x11_options.VertScrollDelta" type="string">10</merge>
<merge key="input.x11_options.HorizScrollDelta" type="string">0</merge>
<merge key="input.x11_options.MinSpeed" type="string">0.45</merge>
<merge key="input.x11_options.MaxSpeed" type="string">0.95</merge>
<merge key="input.x11_options.AccelFactor" type="string">0.06</merge>
<merge key="input.x11_options.EdgeMotionMinSpeed" type="string">200</merge>
<merge key="input.x11_options.EdgeMotionMaxSpeed" type="string">200</merge>
<merge key="input.x11_options.UpDownScrolling" type="string">1</merge>
<merge key="input.x11_options.CircularScrolling" type="string">0</merge>
<merge key="input.x11_options.SHMConfig" type="string">true</merge>
</match>
</device>
</deviceinfo> 

 

然后重启下hal

sudo /etc/init.d/hal restart

最后重启一下Xserver(通过同时按键 Ctrl+ALT+Backspace)。

[编辑]第二步 修改Grub。

Dell的笔记本还有个问题要解决,就是即使进行上面设置仍然没有开启触摸板,需要再修改一下Grub启动项内容才行。

首先编辑/boot/grub/menu.lst

gksu gedit /boot/grub/menu.lst

在其中你需要的每一个内核版本的启动项后加一条 i8042.nomux=1。例如一个启动项样子是这样的:

title Ubuntu 8.10, kernel 2.6.27-8-generic
uuid f8aefb46-d3fb-4425-9ea2-017073e2d87c
kernel /boot/vmlinuz-2.6.27-8-generic root=UUID=f8aefb46-d3fb-4425-9ea2-017073e2d87c ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-8-generic
quiet

将其kernel行最后加上 i8042.nomux=1 即可,最后kernel行应形如:

kernel /boot/vmlinuz-2.6.27-8-generic root=UUID=f8aefb46-d3fb-4425-9ea2-017073e2d87c ro locale=zh_CN quiet splash \'\'\'i8042.nomux=1\'\'\'

更新一下这个修改过的Grub

sudo update-grub

这样改过之后,重启系统,触摸板应该就是没有问题了。而且,还能支持Dell的边界滚动条功能。

[编辑]Dapper:编辑您的xorg.conf文件以包含Synaptics触摸板驱动

为了获取滚轮支br /持,您可能需要编辑您的xorg.conf文件。请在终端中键入sudo gedit /etc/X11/xorg.conf。在如下内容之后:

Section "InputDevice"
        Identifier        "Configured Mouse"
        Driver                "mouse"
        Option                "CorePointer"
        Option                "Device"                "/dev/input/mice"
        Option                "Protocol"                "ExplorerPS/2"
        Option                "ZAxisMapping"                "4 5"
        Option                "Emulate3Buttons"        "true"
EndSection

添加如下内容:

Section "InputDevice"
        Identifier        "Synaptics Touchpad"
        Driver                "synaptics"
        Option                "SendCoreEvents"        "true"
        Option                "Device"                "/dev/psaux"
        Option                "Protocol"                "auto-dev"
        Option                "HorizScrollDelta"        "0"
        Option              "SHMConfig"                 "on"
EndSection

there are also a bunch of lines about a wacom tablet, I have commented them out, I am not sure if that is a necessary step. -原作者brallan注

接下来,向下寻找如下内容:

Section "ServerLayout"
        Identifier        "Default Layout"
        Screen                "Default Screen"
        InputDevice        "Generic Keyboard"
        InputDevice        "Configured Mouse"
        InputDevice     "stylus" "SendCoreEvents"
        InputDevice     "cursor" "SendCoreEvents"
        InputDevice     "eraser" "SendCoreEvents"
EndSection

在”Configured Mouse”之后添加:

        InputDevice        "Synaptics Touchpad"

i also commented out the three lines about the wacom: “stylus”, “cursor”, and “eraser”, but I am not sure if this is necessary. -原作者brallan注

重启X:<ctrl> <Backspace>,现在您应该有拥有滚轮支持了。然后安装qsynaptics来更精准地控制您的设备。

[编辑]使用快捷键来启动/禁用Synaptics触摸板

您有可能想要启用或者禁用触摸板,从而在您使用USB或者其他鼠标的时候不致因触摸板的缘故干扰您打字。请使用如下步骤:

步骤 1

在终端中编辑/etc/xorg.conf

sudo gedit /etc/X11/xorg.conf

找到如下内容:

Section "InputDevice"
        Identifier        "Synaptics Touchpad"
        Driver                "synaptics"
        Option                "SendCoreEvents"        "true"
        Option                "Device"                "/dev/psaux"
        Option                "Protocol"                "auto-dev"
        Option                "HorizScrollDelta"        "0"
EndSection

在Section的最后添加如下的选项:

        Option              "SHMConfig"                 "on"
EndSection

如果您正在使用一个Alps触摸板(您可以通过如下方法确认)

cat /proc/bus/input/devices

您看到的代码应当如下:

Section "InputDevice"
        Driver          "synaptics"
        Identifier          "TouchPad"
        Option                "SendCoreEvents"        "true"
        Option                "Device"                "/dev/input/event2"
        Option                "Protocol"                "event"
        Option          "SHMConfig"             "on"
EndSection

您可以定义一些参数来改变您的触摸板的行为。这些参数已经在[1]中列出。您可以通过如下方法检查您的触摸板是否工作正常,或者您是否使用了正确的参数:

synclient -m l

如果一切正常,您的手指的位置应该能够随您的移动而改变,而且您可以根据这一信息设置您的参数。

步骤 2

接下来,我们会创建三个文件:一个bash脚本来启用触摸板,一个来禁用,以及一个python脚本来使用组合键启用或者禁用。在终端中cd/usr/local/bin下,新建一个文件:

cd /usr/local/bin
sudo gedit tpoff

将下列代码粘贴到文件中,保存并关闭。

synclient  -s touchpadoff=1 

然后,再新建一个文件:

sudo gedit tpon

粘贴下列代码,保存并关闭。

synclient -s touchpadoff=0

再新建一个文件:

sudo gedit touchpad.py

粘贴下列代码,保存并关闭。

#!/usr/bin/python 
import os
        

def ReadFile():
        myfile = open(\'/tmp/synclient.tmp\', \'rb\')
        for line in myfile:
                TestString(line)                
        myfile.close()

def TestString(string):
        for word in string.split():
                if word == "TouchpadOff":
                        setting = string.split()
                        ChangeState(setting[2])
        

def ChangeState(current):    
        if current == "0":
                os.system("synclient -s touchpadoff=1")
        else:
                os.system("synclient -s touchpadoff=0")
        os.system("rm /tmp/synclient.tmp")

def Main():
        ReadFile()
os.system("synclient -l > /tmp/synclient.tmp")
Main()

最后,为这三个文件设置访问权限:

sudo chmod 644 tpon tpoff touchpad.py

步骤 3

接下来,编辑您的sudo用户文件,以允许您在无须输入密码的情况下运行那两个脚本。

sudo visudo

加入以下行:

{user}   ALL = NOPASSWD: /usr/local/bin/touchpad.py

注意:{user}代表您的用户名。

保存(在nano中,键入<CTRL> <o>),确保将其保存为/etc/sudoers

步骤 4 接下来,安装xbindkeys

sudo apt-get install xbindkeys

完成后,请安装xbindkeys-config,xbindkeys的图形用户界面

sudo apt-get install xbindkeys-config

安装完成后,请把这两个程序都打开:

xbindkeys

以及

xbindkeys-config

编辑您的文件来定义您想要的快捷键。例如,要使用<Ctrl><F5>来启用/禁用触摸板,在Edit下面填入以下内容:

Name: Touchpad On/Off Key: Control + F5 | m:0x4 + c:71 Action: /usr/local/bin/touchpad.py

然后点击apply,save,exit

这样就完成了,重启xbindkeys:

xbindkeys

您可能需要重新起动X。

请记住,在每次启动X的时候您都需要再次运行xbindkeys来启用快捷键。请到“系统>首选项>会话>启动程序”中添加。

[编辑]Apple ibook G4

Dapper的全新安装环境下触摸板工作极度缓慢。这个bug已经被修复了,详见此处:[2]。这个修复方案非常简单,只要将如下设置添加到您/etc/X11/xorg.conf中适当的位置,然后重新启动X即可。

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto-dev"
Option "LeftEdge" "0"
Option "RightEdge" "850"
Option "TopEdge" "0"
Option "BottomEdge" "645"
Option "MinSpeed" "0.4"
Option "MaxSpeed" "1"
Option "AccelFactor" "0.03"
Option "FingerLow" "55"
Option "FingerHigh" "60"
Option "MaxTapMove" "20"
Option "MaxTapTime" "100"
Option "TapButton1" "0"
Option "TapButton2" "3"
Option "TabButton3" "2"
Option "HorizScrollDelta" "10"
Option "VertScrollDelta" "30"
Option "SHMConfig" "on"
EndSection

 

 

——————————————————————–

 

debian squeeze 安装fcitx-sunpinyin (2011-01-13 13:33)

标签:  debian  分类: 自娱自乐

下载包

http://ftp.tw.debian.org/debian/pool/main/f/fcitx/fcitx-data_4.0.1-1_all.deb

http://ftp.tw.debian.org/debian/pool/main/f/fcitx/fcitx_4.0.1-1_amd64.deb

安装 dpkg -i fcitx-data_4.0.1-1_all.deb fcitx_4.0.1-1_amd64.deb

再下载包

http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu/pool/main/o/open-gram/sunpinyin-data_0.1.22-1_amd64.deb

http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu/pool/main/s/sunpinyin/libsunpinyin3_2.0.2-1.1_amd64.deb

http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu/pool/main/f/fcitx-sunpinyin/fcitx-sunpinyin_0.2.1-0natty2_amd64.deb

再安装   dpkg -i sunpinyin-data_0.1.22-1_amd64.deb libsunpinyin3_2.0.2-1.1_amd64.deb fcitx-sunpinyin_0.2.1-0natty2_amd64.deb 

添加配置文件 /etc/X11/Xsession.d/25xchinput-start 

export XIM=fcitx
export XIM_PROGRAM=fcitx
export XMODIFIERS=”@im=fcitx”
export QT_IM_MODULE=fcitx
fcitx&

注销用户,再次登陆,就有了哦

 

p

版权声明:本文为taosim原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/taosim/articles/2381394.html