Skip to content
Advertisement

Tag: ubuntu-12.04

Proper indentation of Bash script

I have written a Bash script which uses cases and functions for university, but no matter where I move the scripts, she says that they are not indented properly. What is the correct indentation of this sample of the script? Is there a website or a function on VMware where I can get my code automatically indented? Answer Indenting is

Add JDK in Linux to run IDEA

I’m new in Linux & read a lot solution about add JDK in Ubuntu but not work! :/ I want to install JDK in Ubuntu. I installed Ubuntu 12.04-i386 and downloaded JDK 8 and add “/home/user/Soft/jdk1.8.0_20/bin” to “/etc/enviroment”. I run IntelliJ IDEA 13 (Community Edition) well, also write some project but after some day when I want lunch it,it says:

How to undo rm -rf? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Disabling disk cache in linux

In a class project my teacher told us to make some code evaluations (C language) and to do so we need to disable the disk caching during the tests. Currently I’m using Ubuntu 12.04, how can I do this? Thanks. Answer You need root access to do this. You can run hdparm -W 0 /dev/sda command to disable write caching,

Ansible after ‘vagrant provision’ gives this error “Could not import python modules: apt, apt_pkg. Please install python-apt package.”

I have a very simple VagrantFile and Ansible Playbook. I just want to test install httpd. But every time I run vagrant provision after the VM is up I get this error: This is my VagrantFile: And this is my simple playbook.yml: And my inventory.yml: I did install the python-apt package on the virtual machine, but still no dice. If

Ubuntu Python shebang line not working

Unable to get shebang line working in Ubuntu for python script. I only get a command not found error each time. test.py Ran Played around with different locations for python in the shebang but no luck including what was provided by which python. Any tips on how to troubleshoot this? Thanks Answer If you are trying to run the command

Advertisement