First, make sure that the file type is executable.
There are two ways to set the file as an executable file.
1) directly select "executable" in the file property tag, -- if B uses a graphical interface, this method is the simplest and most direct.
2) run the command chmod + X file. Sh. Add executable attributes to file attributes.
Then, execute the shell script file.
1) double-click File. Sh to run the
Run python on ubuntu to connect to pg. the following error occurs: ImportError: No module named psycopg2, ttupythonRun python on ubuntu to connect to pg. The error ImportError: No module named psycopg2 is returned.Root @ pgproxy1 :~ # Python/home/zxw/PGWriterTest_m.pyTraceback (most recent call last ):File "/home/zxw/PGWriterTest_m.py", line 4, in Import psycopg2
the program.But what if you want your program to run from every location?You can save your program in one of the directories in the PATH environment variable. Each time you run any program, the system looks for the directories listed in the PATH environment variable. Then run the program. Simply copy the source file to one of the directories listed in path to ma
Check if OpenSSL is installed:sudo apt-get install OpenSSLIf you have installed, do the following:sudo apt-get install Libssl-devsudo apt-get install libssl0.9.8Install GTK + Development Library under Ubuntusudo apt-get install Libgtk2.0-devCode: #include Compilation: Gcc-o test Test.c-lssl-lcryptoOperation Result:fazio4894a1a7b78e44b6a449c5299b1afc24000000HMAC DIGEST:6764F0C105DCFA9FC143AEA534232C297AB2BA4E362FD87AF5EB0A26B270E0EBInstall openssl compile run
": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b","tx": ["4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"],"time": 1296688602,"mediantime": 1296688602,"nonce": 414098458,"bits": "1d00ffff","difficulty": 1,"chainwork": "0000000000000000000000000000000000000000000000000000000100010001","nextblockhash": "00000000b873e79784647a6c82962c70d228557d24a747ea4d1b8bbe878e1206"}See the official documentation for more information on how to use the Json-rpc interface: Htt
. Install the kernel mirror and the module package$ Cd ..$ Sudo dpkg-I linux-image-2.6.29-4-generic_2.6.29-4-generic-10.00.Custom_i386.debAfter the installation is complete, we can/Lib/modulesThe directory contains more2.6.29-4-genericDirectory/BootThe directory contains moreConfig-2.6.29-4-generic, System. map-2.6.29-4-generic, initrd. img-2.6.29-4-generic, vmlinuz-2.6.29-4-genericThese files./Boot/grub/menu. lstThe file contains more content.Title Ubuntu
I recently installed the latest nvidia graphics card in Ubuntu. Now I want to share the method, as I said on the Internet, first, press "sudogedit/etc/default/linux-restricted-modules-common" under the terminal, and then add "nvnvidia-new" to the quotation marks in the last line ", then press ctrl + alt + f1, and then disable the running of the command, such as running the command, and running the command. d/gdmstop, and then sudos
I recently install
This is a creation in
Article, where the information may have evolved or changed. Attention:
The following installation configuration is in accordance with the official website or textbook
I. Download and install Go
On Ubuntu12.04, if you are installing using the Go installation package, simply enter the command line
sudo apt-get install golang-go
Below we focus on the more universal source installation, which is applicable in Linux distributions.
Go to go Language official website http://gola
nano/etc/ld.so.conf.d/freerdp.conf, writes/USR/LOCAL/LIB/FREERDP to the file.⑺ Check that the configuration file is correct, and view the FREERDP path for sudo ldconfig,which xfreerdp.⑻ run FREERDP, without USB redirection operation parameters: Xfreerdp/u:admin/p:1/w:1366/h:768/v:192.168.0.209:80. Operating parameters with USB redirection: xfreerdp/u:administrator/p:realor#123/w:1366/h:768/drive:usb,/mnt/hgfs/v:192.168.0.209:3389. /mnt/hgfs is a USB
Install Tomcat7.0 on Ubuntu and run it automatically at startup. install and install tomcat in green. Download a tomcat file and unbind it to the specified directory. Then, go to the bin folder in the tomcat directory and run sudo. /startup. sh to start 2. run tomcat7.0 automatically at startup and enter with the Root
Sublime, the results found only compile, unable to run directly, so on-line search solutions, found that most of the methods are to tell you to enter Java.sublime-packag this file, and then modify JavaC.sublime-build , and then you can.First Java.sublime-packag of all, this thing is a zip compressed file, it may be very good for Windows, directly open with zip or rar, and then modify JavaC.sublime-build it. But I am a TMD Linux ah, and is installed th
1, install Nodejs, NPM CURL-SL https://deb.nodesource.com/setup_8.x | SUDO-E Bash-sudo apt-get install-y NodejsVerify Node-v, Npm-v(Other installation methods are tried, only this is possible)2, install Cordova, ionic sudo npm install-g Cordova Ionic3, Git clone or direct copy, the contents of the red box does not need to be copied4. Generate Node_modulesCD to Mobile Directory NPM InstallGenerate Node_modulesIf there is an error, perform more than twice5. Operation 1, straight If you
is restarted and the modified file is copied to the SRC directory of the program and refreshed in eclipseError 5:Exit code:1Exception message:/bin/bash: line No. 0: FG: No task controlStack trace:exitcodeexception exitcode=1:/bin/bash: Line No. 0: FG: No task control Workaround Refer to the online tutorial: http://www.aboutyun.com/thread-8498-1-1.html not resolvedThe real solution is:Add the following properties to the client configuration file: Property > name >mapreduce.app-submi
the configuration of Hadoop (configuration files in/usr/local/hadoop/etc/hadoop), as I configured the Hadoop.tmp.dir , you need to make changes.This is true of almost all tutorials on the web, and it is true that Dfs Locations will appear in the upper-left corner of Eclipse when this tutorial is configured, asBut in fact, there will be a variety of problems, small series only I encountered and the solution presented(1) Note: Copy the configuration file (Core-site.xml hdfs-site.xml log4j.propert
Run some extensions of the YII2 framework in Ubuntu, ubuntuyii2
Intl extension (PHP intl is an international extension and a package for the ICU database .)
sudo apt-get install php5-intl
sudo service apache2 restartPDO SQLite extensionsudo apt-get install php5-sqlite sudo service apache2 restartPDO PostgreSQL extensionsudo apt-get install php5-pgsqlservice apache2 restartMemcache
Memcache is divided into t
The following error is prompted when installing any software in ubuntu today:
You might want to run 'apt-get-f install' to correct these:The following packages have unmet dependencies:Kate: Depends: kdelibs4c2a (> =. 5.9) but it is not going to be installedDepends: libqt3-mt (> =. 3.8b) but it is not going to be installedRecommends: kregexpeditor but it is not installableKscope: Depends: kdelibs4c2a (>=4:3.
Recently, the teacher asked me to process multi-threaded server development on QT under Ubuntu. Although I only called the network module of qt, in order to avoid the trouble, I wrote the console program in QT, but the following occurs when I run the program.
The program is running, but there is only one cursor on the console. Due to Baidu's incorrect posture, it took a lot of time to understand that qt cre
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.