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
Tag: ubuntu-12.04
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
How to check if a service that I don’t know the name of is running on Ubuntu
I do not know the service’s name, but would like to stop the service by checking its status. For example, if I want to check if the PostgreSQL service is running or not, but I don’t know the service’s name, then how could I check its status? I know the command to check the status if the service name is
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
Context switches much slower in new linux kernels
We are looking to upgrade the OS on our servers from Ubuntu 10.04 LTS to Ubuntu 12.04 LTS. Unfortunately, it seems that the latency to run a thread that has become runnable has significantly increased from the 2.6 kernel to the 3.2 kernel. In fact the latency numbers we are getting are hard to believe. Let me be more specific