0
votes
0answers
56 views

Unable to upgrade bash

everyone knows about bash vulnerability "CVE-2014-6271", I'm trying to update bash using below command. apt-get update && apt-get install --only-upgrade bash but i'm getting bash is already ...
-1
votes
1answer
58 views

How to let bash script knows if the open terminal is closed or not

I want to write piece of bash script that open a gnome-terminal tab and execute some commands in it after finishing execution terminal will close , i would like the make bash recognize if this ...
0
votes
1answer
62 views

bash: /etc/bash.bashrc: Permission denied I have no name!@lappyname:~$

During resolving another problem I run this command : pkexec chmod 0440 /etc/sudoers pkexec chmod 0440 /etc/sudoers.d/README mount -o remount,rw / Than after error occurs and after reopen the ...
-2
votes
4answers
96 views

How to arrange this file properly?

I'd prefer to edit TestFile in place to get the desired output. How could I do this? This is a work box so I'd prefer to not have to install additional packages. TestFile: randomcollege-nt\jsmith90 ...
0
votes
0answers
14 views

Problem during the usage of up and down keys for checking up and down arrows

I am facing an issue during the usage of up and down on gnome-terminal. Lets say my previous commands are vi pos_of_rightmost_setbit.cpp gcc -o harsha pos_of_rightmost_setbit.cpp At this point ...
0
votes
0answers
22 views

disable all hotkeys with dconf-editor

I'm building a deb package that will create a kiosk user account. When you login to this account, the browser automatically starts and navigates to a pre-given website. Also all the hotkeys should be ...
0
votes
2answers
20 views

Can't figure out JOIN command

I have two files and I'm trying to join them at a certain spot. I'd like to join them at the fourth column of the second file using the first column of the first. It's driving me nuts! Here is what ...
1
vote
1answer
26 views

Command is available as user, but not sudo?

I am in the process of building gendev, a sega genesis development environment and I am running into an interesting problem. When I try to install via "sudo make install" I get an error stating that ...
2
votes
1answer
46 views

script in bash not understood using terminal in Ubuntu 12.04 [closed]

Can anyone tells me what does this script means found in a .sh file:: [ ! -n "$T_R" ] && echo "Message Appear" && exit 1;
2
votes
1answer
134 views

Permission denied error after SSH login

I am having Permission denied errors after logging with non root user (which has permissions to do "sudo -i" command). I get these errors: -bash: /bin/uname: Permission denied -bash: [: =: unary ...
0
votes
1answer
35 views

How to get autocompletion with “>|”?

When trying to empty a text file with >| filename why doesn't bash's autocomplete work for the file name? Is there anyway to allow autocompletion like any other terminal command?
0
votes
0answers
101 views

java file will not launch from .desktop file - Ubuntu 12.04 LTS

I have a bin/bash script- #!/bin/bash java -Xms256m -Xmx1g -jar KeeperDesktop.jar inside an executable text file ( keeper-start) I have created a .desktop file for it as i want to launch it ...
0
votes
1answer
173 views

Error executing Xilinx ISE Design Suite .bin file(java xsetup)

I'm, trying to build Xilinx_Vivado_SDK_2014.1_0405_1_Lin64.bin on ubuntu-12.04 Got the below error: ..... ...
0
votes
0answers
38 views

Absolute basic MQ wanted - command line driven

I am looking to install a very basic command line accessible MQ product. It will be run on Ubuntu 12.04 lts, and should be able to support multiple readers. Any products I should be looking at?
3
votes
1answer
488 views

Bash completion for the new apt command [duplicate]

I like the new apt command (which will be included in the upcoming trusty release) so much that I installed it on my precise system by compiling the 14.04 package from source. Unfortunately, bash ...
0
votes
3answers
52 views

How to turn off restricted bash mode?

I accidentally turned on restricted bash mode. With bash -r command. Now I cannot cd. How to turn off bash restricted mode and get back to normal bash?
1
vote
1answer
2k views

execute local bash script in remote machine using expect

I have local shell script. Now, I want to run this local script in remote machine. Of course I can use ssh, but as it(the local shell script) should be like an automated one, it shouldn't ask for ...
4
votes
1answer
125 views

Can't login after adding script to /etc/profile.d

I have created a little script to add bookmarks in Nautilus to redirect users to network share. If I run the script manually, it works brillantly but as soon as I try to add it in /etc/profile.d, I ...
1
vote
1answer
282 views

Script not running in crontab, file not found

I need your help to run a bash script in crontab. As many other posts in askubuntu I'm facing the problem that a script that is properly running in terminal mode does not run in crontab. The error I ...
1
vote
0answers
78 views

How To Set FQDN From Bash Script

Is it possible to set the fully qualified domain name from a bash script? I am using Ubuntu 12.04 LTS. I have an autoscaling group on Amazon and I am using Puppet for configuration. For example, I ...
0
votes
1answer
42 views

script to backup file deleting file

Working on a bash script to take backup of a file, but the problem i get is that mv delete the file or rename it and create a file with the backupname. Script: test="/home/sysadmin/test/hei2.back" ...
1
vote
1answer
70 views

How to check if a restart of open-iscsi was ok

I am working on a bash script to connect a iscsi initiator to a target. After I have edited the iscsid.conf in the initiator I have to restart the open-iscsi with the command: service open-iscsi ...
1
vote
1answer
43 views

Check if connection worked if not return error

Working on a bash script to connect a iscsi client to a server. How do I put this command: iscsiadm -m discovery -t st -p 10.0.0.30 in a if to check if the connection was established, if not it ...
0
votes
0answers
52 views

Terminator - Bash character encoding - problem visualizing content of some files

I'm using Terminator to manage several bash shells. If I print the content of some files, some characters are bad displayed. Even if the character encoding is setted to UTF-8. Below there is the ...
1
vote
1answer
56 views

Simple: check if volume group is found with a if

I am working on a script to check if volume group vg0 exist. The problem is that it return Found even when I delete the volume group. So very unsure what is wrong. #!/bin/bash if vgdisplay | grep ...
0
votes
1answer
177 views

Bash script fault creating mdadm array

I am working on a script to create md1 array, first to check if the array exist if not it will create it. I get command as command mdadm not found and a few others. The script wont run. ...
0
votes
1answer
76 views

How to check if last command succeeded and make that command auto accept prompts?

I am working a script to create a raid5 array. The question is how to put the command in a if (to see if the command succeeded), and when the script ask to continue creating array it will auto say ...
0
votes
1answer
177 views

How to store the array length in a variable in bash scripting language

I stored some information about the system in an arrays .. and I tried to store the length of an array in a variable then print the value of the variable on the terminal , but there is no output! ...
0
votes
2answers
409 views

How to split string in bash and store the tokens in array

I wrote this script to store some information about my machine such as the users and the running processes . I tried to store the retrieved data into an array. To test array I printed the length of ...
2
votes
1answer
87 views

Bash script to check if mdadm is installed if not install it

I am currently working on a bash script to create raid5 with 3 disks and one hotspare. I am confused of how to create a script which first check if mdadm exist, if not it will install it and name it ...
0
votes
1answer
36 views

ubuntu rightclick command line custom backup

os: ubuntu 12.04 LTS, kernel: 3.8.0-35-generic kernel, when i right click on "text file/s", i would like to have a custom menu, to run a bash, to make a backup copy of text file/s i'm right clicking ...
1
vote
3answers
3k views

Writing a bash script to read a text file of numbers into arrays, by column, on Ubuntu

I'm trying to write a little bash script on ubuntu 12.04 and have little experience. Odd little problem converting a text file of numbers into arrays. I need all of the first numbers, second, etc into ...
1
vote
1answer
63 views

How do I switch desktop session users from a shell script?

I've got 2 users, foo and bar. Currently if I'm logged in as foo, I can select bar from the menu in the top-right of Unity, and since bar has no password set, I switch straight to bar. However, I ...
0
votes
2answers
42 views

Can you preview the effects of a command?

How can you preview the effects of a command? For instance, if I want to run rm -r ./*, or chown -r ./*. Is it possible to run a safe "test" of that command with the ability to ensure that nothing ...
1
vote
3answers
130 views

How can I prepend a random letter/number to the beginning of each filename?

I'm working on a system where I'd like the first letter of each filename to be random - not necessarily unique, just random. I'd like to be able to run this from a cron job. For example, I would be ...
0
votes
0answers
49 views

inotifywait does not shut down my computer

I've put this script at startup in /etc/init.d, when some user changes password, this script updates it on another file data.txt, It is working fine, but when i shut down my computer it was not doing ...
0
votes
0answers
114 views

PATH variable to Apache OPENNLP OK but doesn't work

yesterday I installed in my Ubuntu AWS 12.04 (Amazon) micro istance OpenNLP and seemed working. Today when digiting opennlp:command not found Following suggestions found here: I modified my ...
0
votes
2answers
1k views

How to run bash commands in Ubuntu 13.10? [duplicate]

before in Ubuntu 12.04 when I make simple bash commands, it works but in Ubuntu 13.10 I can only open it with gedit! How I can run it by only one click?
0
votes
1answer
882 views

Konsole does not execute .profile or .bash_profile [duplicate]

When I open Konsole the settings in .profile are not executed, and it means the ~/bin is not added to the PATH. Is there a way to get Konsole to do that? PS. Is there a way to tell whether Konsole ...
0
votes
0answers
26 views

Minimal Bash like promt when installing ubuntu [duplicate]

The Problem is that i can not install Ubuntu on dualboot with windows 8.1 because it gave me: "GNU GRUB version 1.97"beta 4 [ Minimal BASH-like line editing is supported.For the first word, TAB ...
3
votes
2answers
662 views

Script to clean system [closed]

I want a script to clean my system. Clean unused dependencies. Clean apt-cache. Clean residual-config files. Remove broken packages. Only keep the latest version of packages and remove ...
0
votes
0answers
17 views

Configuring Ubuntu 12.04 so that it recognizes the recently installed icc compiler

I have an Ubuntu 12.04. I installed the icc compiler (composer_xe_2013_sp1.0.080) but when I try to compile using it I get the message : icc : command not found. I've read somewhere that when you ...
1
vote
1answer
65 views

How to block all the interrupts in linux

I am working on a python project, Where i am displaying a graphical window with log in screen, I've also disabled the close, re size and minimize buttons My problem: I have to disable all the ...
0
votes
1answer
70 views

How do I automatically change to a specific folder on login for an account with no home folder?

Typically I would create a user account and in the home folder, place the cd command in the ~/.bashrc file. For system users, however, with on home folders, the /etc/bash.bashrc file is used instead ...
1
vote
1answer
774 views

problem on java: not found

Initializing InstallScape using JVM at /home/manoj/iscap/iscape/runtime/LNX86/bin/java. This might take some time... /home/manoj/iscap/iscape/bin/iscape.sh: 209: exec: ...
2
votes
1answer
5k views

Tomcat Installation startup.sh not working

So I've followed the list of steps on : https://www.digitalocean.com/community/articles/how-to-install-apache-tomcat-on-ubuntu-12-04. When I try to run the startup script, I get this message: ...
3
votes
1answer
37k views

configure: error: C compiler cannot create executables

I was trying to install rvm using \curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles. It worked fine until I got a configure error: Error running './configure ...
2
votes
0answers
729 views

How can I create an X server that has a backing store?

So I am completely new to Ubuntu (I am running 12.04 on a Toshiba Satellite). I am trying to remotely access my work computer but I keep getting an error reading: "xevas: requires a X server that ...
3
votes
2answers
214 views

How to batch organize files?

I have a directory with gigabytes (about 8gb) of small individual files. I want to organize them into directories by date. The date it was created is part of the filename. Here is an example of a ...
1
vote
2answers
112 views

Setting default path when opening a terminal session

I am newbie to Ubuntu. Whenever I open a terminal it's path is set "/home/Varun" (as found by typing pwd). Is there anyway I can make the terminal's path to be set at "/home/Varun/Desktop/Java Files" ...