现在的位置: 首页 > 综合 > 正文

Ubuntu软件安装

2019年01月15日 ⁄ 综合 ⁄ 共 2324字 ⁄ 字号 评论关闭
安装chrome

安装Java


  1. 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.
  2. From the download folder, make the file executable
    chmod a+x jdk-6u37-linux-i586.bin
  3. Apparently there isn't a jvm folder anymore, so create one.
    sudo mkdir /usr/lib/jvm
  4. Move the file to the jvm folder
    sudo mv jdk-6u37-linux-i586.bin /usr/lib/jvm/
  5. 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.
  6. 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
  7. Double-check the version
    java -version


安装intelliJ


下载地址:http://www.jetbrains.com/idea/download/index.html

下载后解压,运行idea.sh

安装后,从外观到使用都需要简单配置下(Configure -> Settings):

1. 外观(选择Darcula theme,为了避免中文变成“方框”,还需要更改默认字体):

IntelliJ IDEA 12.0 序列号及其配置

2. 字体

IntelliJ IDEA 12.0 序列号及其配置

安装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

抱歉!评论已关闭.