Fei's profile精诚所至,金石为开。PhotosBlogListsMore ![]() | Help |
|
|
August 25 How to install Nvidia driver in Ubuntu 8.04 1. 到官方网站下载对应的驱动文件 网站:http://www.nvidia.com 文件:NVIDIA-Linux-x86_64-173.14.12-pkg2.run 2. 安装驱动需要的lib sudo apt-get install libc6-dev 3. 禁止系统启动默认的驱动 sudo vim /etc/default/linux-restricted-modules-common 在最后的双引号中添加nv nvidia_new,即把文件中的“”,改成“nv nvidia_new” 4. 进入命令行模式 按Ctrl+Alt+F1 5. 停止GDM的进程 sudo /etc/init.d/gdm stop 6. 安装驱动 sudo sh ./NVIDIA-Linux-x86_64-173.14.12-pkg2.run(取决于自己的位置) 7.安装过程中 如果提示有旧驱动,询问是否删除旧驱动,选Yes; 8. 安装完成就回到终端,重启GDM 如果不想看NVIDIA的LOGO,可以修改 /etc/X11/xorg.conf January 22 常用软件的安装 1. rpm包的安装 在Ubuntu中安装Alien 转换一个rpm包为deb 转换一个rpm包为deb并安装生成的包 December 13 tar如果是tar.gz文件 % sh /home/cs9416/install_protege.bin December 08 alienAlien is a program that converts between the rpm, dpkg, stampede slp, and slackware tgz file formats. If you want to use a package from another distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it. Despite the large version number, alien is still (and will probably always be) rather experimental software. It has been used by many people for many years, but there are still many bugs and limitations. Alien should not be used to replace important system packages, like sysvinit, shared libraries, or other things that are essential for the functioning of your system. Many of these packages are set up differently by Debian and Red Hat, and packages from the different distributions cannot be used interchangably. In general, if you can’t uninstall the package without breaking your system, don’t try to replace it with an alien version. Install alien in debian #apt-get install alien This will install all the required packages.Now you can start converting your .rpm files to .deb packages. Available Options for alien Convert the package.rpm into a package.deb #alien -d package-name.rpm Convert the package.rpm into a package.deb, and install the generated package. #alien -i package-name.rpm If you want to keeps alien from changing the version number use the following command #alien -k rpm-package-file.rpm Example Suppose we have a avg antivirus avg71lms-r30-a0782.i386.rpm file To convert .rpm to debian #alien -k avg71lms-r30-a0782.i386.rpm Now you should be having avg71lms-r30-a0782.i386.deb file To install .deb file #dpkg -i avg71lms-r30-a0782.i386.deb If you don’t use -k option you should see avg71lms_r30-1_i386.deb file the difference is it will add 1 Install alien in Ubuntu $sudo apt-get install alien You can check the above section for available options Example Suppose we have a avg antivirus avg71lms-r30-a0782.i386.rpm file To convert .rpm to debian $sudo alien -k avg71lms-r30-a0782.i386.rpm Now you should be having avg71lms-r30-a0782.i386.deb file To install .deb file $sudo dpkg -i avg71lms-r30-a0782.i386.deb If you don’t use -k option you should see avg71lms_r30-1_i386.deb file the difference is it will add 1 December 02 set environment varialble in ubuntu 7.10系统环境变量: /etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取. 当前用户变量: ======================================================================= 在ununtu linux的配置文件中一劳永逸的设置环境变量 1.环境变量配置中,要先删除.bash_profile中的三行关于.bashrc的定义,然后把环境变量配置在.bashrc中 Useful linux commandls: -a list all files and folders -l use a long listing format examples: ls -a ls -l ln: target link_name -s make symbolic links instead of hard links examples: ln -s jdk1.6.0_03 jdk env: see environment variable env December 01 How to install jdk in ubuntuThere are two version of the JDK is available: Installation of Self-Extracting Binary1. Download and check the download file size to ensure that you have downloaded the full, uncorrupted software bundle.You can download to any directory you choose; it does not have to be the directory where you want to install the JDK.2. Make sure that execute permissions are set on the self-extracting binary. Run this command: 3. Change directory to the location where you would like the files to be installed. The next step installs the JDK into the current directory. 4. Run the self-extracting binary. Execute the downloaded file, prepended by the path to it. For example, if the file is in the current directory, prepend it with "./" (necessary if "." is not in the PATH environment variable): Installation of RPM File1. Download and check the file size.
You can download to any directory you choose. 2. Become root by running the su command and entering the super-user password. 3. Extract and install the contents of the downloaded file. Change directory to where the downloaded file is located and run these commands to first set the executable permissions and then run the binary to extract and run the RPM file: 4. Delete the bin and rpm file if you want to save disk space.
5.
Exit the root shell.
A new service script, named jexec, is added to /etc/init.d. This script allows users to directly execute any standalone JAR file that has an execution permission set. This can be demonstrated using an example from the JDK: cd /usr/java/jdk1.6.0/demo/jfc/SwingSet2 chmod +x SwingSet2.jar SwingSet2.jar Set environment variable in ubuntu |
|
|