2014年4月27日星期日

ubuntu安装

分区
/ 50G
/boot 500M
/home 200G
/work 200G
安装程序

1、jdk
jdk-6u45-linux-x64.bin

2、idea
ideaIU-13.1.2.tar.gz

3、maven
maven.zip
私服http://172.20.66.163:8081/nexus/content/groups/public/

4、subversion
sudo apt-get  install subversion

5、pidgin
ubuntu 软件中心

6、pidgin-lwqq
添加仓库并更新
$ sudo add-apt-repository ppa:lainme/pidgin-lwqq
$ sudo apt-get update
安装测试版本(对应于 preview/dev 分支)

$ sudo apt-get install pidgin-lwqq-unstable

7、chromuim
ubuntu 软件中心


8、virtualBox
http://tutorialforlinux.com/2014/02/22/how-to-install-latest-virtualbox-on-ubuntu-14-04-trusty-lts-3264bit-easy-guide/

Download Latest VirtualBox Package for Ubuntu 13.04/13.10
sudo su -c "apt-get install gdebi"
sudo su -c "gdebi ./virtualbox*.deb"
9、uget
http://blog.csdn.net/sunnylgz/article/details/14226453

1.uget的安装:
sudo add-apt-repository ppa:plushuang-tw/uget-stable 
sudo apt-get update 
sudo apt-get install uget
2.aria2的安装:
sudo add-apt-repository ppa:t-tujikawa/ppa 
sudo apt-get update 
sudo apt-get install aria2

10、dbvis
http://www.dbvis.com/product_download/dbvis-9.1.8/media/dbvis_linux_9_1_8.sh

11、goagent
code.google.com/p/goagent

12、系统设置莫名其妙没了
执行sudo apt-get install unity-control-center

13、输入法
http://jingyan.baidu.com/article/4b07be3c60da3f48b380f3f0.html

sudo apt-get install fcitx-table-wbpy

14、remmina保存密码
http://technologyflirt.blogspot.tw/2013/02/how-to-save-ssh-password-in-remmina.html

15、摘要: ubuntu 客户端ssh连接服务器速度缓慢
  ubuntu每次去连接ssh总是有10秒+的感觉
  原因:打开ssh -v debug模式后发现域名解析问题
  debug1: Unspecified GSS failure. Minor code may provide more information
  Cannot determine realm for numeric host address
  解决:编辑ssh_config
  vi /etc/ssh/ssh_config
  GSSAPIAuthentication yes改为no即可

16、mp3 插件安装
Ubuntu系统默认不支持mp3解码,蛋疼货,打开mp3文件,提示
Rhythmbox requires to install plugins to play media files of the following type: MPEG-1 Layer 3 (MP3) decoder
网上搜了半天,有人说安装 gstreamer 插件,搞了半天,不行,在 Ubuntu Software Center 中搜到了这个插件,也安装上了,结果还是不行,最后在官网的问答贴中找打了方法:安装 ubuntu-restricted-extras ,可以直接在 Ubuntu Software Center 中搜索安装,也可命令解决
 sudo apt-get install ubuntu-restricted-extras
还有个蛋疼的问题,就是中文乱码,按网上的,如下方法:
sudo apt-get install python-mutagen
然后在放置mp3文件的那个文件夹,执行下面的命令。注:如果有子文件,则还需在子文件夹内执行相同命令
mid3iconv -e GBK *.mp3

17、ssh保存密码
http://technologyflirt.blogspot.tw/2013/02/how-to-save-ssh-password-in-remmina.html

2014年4月18日星期五

ubuntu flash nexus s 4.1.2



1、执行 lsusb
得到Bus 001 Device 016: ID 18d1:4e21 Google Inc. Nexus S
记下18d1:4e21

2、# sudo gedit /etc/udev/rules.d/99-android.rules
原来没有这个99-android.rules文件,新建

内容:
# Google Nexus s 16 Gb
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0666", OWNER="your-login"  
# MTP mode with USB debug on

ps:your-login should be your Ubuntu session login.

3、# sudo service udev restart

4、安装ANDROID TOOLS
# sudo add-apt-repository ppa:nilarimogard/webupd8
# sudo apt-get update
# sudo apt-get install android-tools-adb android-tools-fastboot
# sudo apt-get install ia32-libs

5、连接手机,开启sub调试
# adb version
Android Debug Bridge version 1.0.31
# sudo adb devices
List of devices attached
xxxxxxxxxxxxxxx          device

6、sudo adb reboot-bootloader
手机将重启

7、sudo fastboot devices
若出现xxxxxxxx fastboot 能够连接到手机的 Fastboot 模式

8、执行sudo ./flash_all.sh 开刷

参考:
http://bernaerts.dyndns.org/linux/74-ubuntu/245-ubuntu-precise-install-android-sdk
http://dawndiy.com/archives/389/

2014年4月10日星期四

日淘夏普KC-B50空气净化器 烧坏修复

霾,又多认识了一个汉字
看了好久,从日本亚马逊淘了一个夏普空气净化器KC-B50
然后被税,EMS通知我自己去缴税200,然后步行1000米做公交倒地铁再倒地铁再倒黑车自己背了回来
用了一周,还不错
然后被我稀里糊涂插在了220v的电源上,砰,没动静了
拆。。。
大卸八块后,看到一个电阻碎了
google,有人说是压敏电阻
taobao,买了6个,一块钱一个
顺丰送到
稀里哗啦换上
开机还是没动静。。。。
接着google,找到一兄弟跟我一样情况,加其QQ讨教,说还要换一零件
靠,接着大卸八块,扒出电路板,背着转压器去让修电器的师傅看
师傅七尺咔嚓用表连了一通,深沉的说:50块钱,我用简便方法给你修好
跟师傅理论了一番什么是简便方法,最后妥协,开干
拿回家又稀里哗啦装上
开电源,黝黑,好了///