安装chrome
一、添加PPA
从Google Linux Repository( http://www.google.com/linuxrepositories/)下载安装Key,或把下面的代码复制进终端,回车,需要管理员密码
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Key安装好后,在终端输入:
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
二、更新
在终端输入:
sudo apt-get update
三、安装
安装稳定版Chrome,在终端输入:sudo apt-get install google-chrome-stable
安装Beta版Chrome,在终端输入:sudo apt-get install google-chrome-beta
安装不稳定版Chrome,在终端输入:sudo apt-get install google-chrome-unstable
安装Ubuntu Tweak
国产的Ubuntu实用配置工具,相当于Ubuntu下的优化大师。下载地址http://ubuntu-tweak.com/
安装新立得软件包管理器
- Download Java SE 6 JDK for Linux x86 self-extracting binary
At the time of writing, the file I'm using is jdk-6u37-linux-i586.bin, but the filename will change as updates are released. - From the download folder, make the file executable
chmod a+x jdk-6u37-linux-i586.bin - Apparently there isn't a jvm folder anymore, so create one.
sudo mkdir /usr/lib/jvm - Move the file to the jvm folder
sudo mv jdk-6u37-linux-i586.bin /usr/lib/jvm/ - Change to the jvm folder and run the self-extracting binary
cd /usr/lib/jvm
sudo ./jdk-6u37-linux-i586.bin
Everything will be extracted to a new jdk1.6.0_37 folder and you can delete the .bin file now. - Make symbolic links to the new java binary.
sudo ln -s -b /usr/lib/jvm/jdk1.6.0_37/jre/bin/java /etc/alternatives/java
sudo ln -s -b /usr/lib/jvm/jdk1.6.0_37/jre/bin/java /usr/bin/java - Double-check the version
java -version
安装intelliJ
下载地址:http://www.jetbrains.com/idea/download/index.html
下载后解压,运行idea.sh
安装后,从外观到使用都需要简单配置下(Configure -> Settings):
1. 外观(选择Darcula theme,为了避免中文变成“方框”,还需要更改默认字体):
2. 字体
安装Nginx
sudo apt-get install nginx
Ubuntu安装之后的文件结构大致为:
- 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下
- 程序文件在/usr/sbin/nginx
- 日志放在了/var/log/nginx中
- 并已经在/etc/init.d/下创建了启动脚本nginx
- 默认的虚拟主机的目录设置在了/usr/share/nginx/www(有的版本 默认的虚拟主机的目录设置在了/var/www, 请参考/etc/nginx/sites-available里的配置)
[编辑]启动nginx
sudo /etc/init.d/nginx start
然后就可以访问了,http://localhost/ , 一切正常!如果不能访问,先不要继续,看看是什么原因,解决之后再继续。 启动时候若显示端口80被占用: Starting nginx: [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use) 修改文件:/etc/nginx/sites-available/default,去掉 listen 前面的 # 号 , # 号在该文件里是注释的意思 , 并且把 listen 后面的 80 端口号改为自己的端口,访问是需要添加端口号。
使用smplayer硬解看高清
仅对应NVIDIA显卡
1.添加支持vdpau硬解的smplayer源
sudo add-apt-repository ppa:nvidia-vdpau/ppa
2.安装软件
sudo apt-get install libvdpau1 smplayer
3.修改smplayer配置
视频输出选择vdpau