Bash is the shell used in Ubuntu's command-line interface.

learn more… | top users | synonyms (1)

3
votes
0answers
84 views

Bash History Search (CTRL+R) in Ubuntu Suggestions?

Is there an extension of some kind which ties Bash's history search (which you get with CTRL+R in a terminal) into the Ubuntu search suggestions generated when searching via the Windows key (in ...
3
votes
0answers
288 views

msmtp not working?

I was trying to send mail from bash, but it doesn't work and I can't find the reason... So my .msmtprc file is account default host smtp.gmail.com port 587 from account@gmail.com tls on tls_starttls ...
2
votes
0answers
78 views

Slow bash tab completion

My bash shell's tab completion is very slow, usually taking 1-2 seconds per completion. This only seems to happen when I'm using my laptop from work. Tab completion is very speedy when using my laptop ...
2
votes
0answers
59 views

Can I set up a cron job on Ubuntu Phone

I've been looking around, and can't find if Ubuntu Touch can run cron. So my question is: Can it? Also does it have a standard set of bash utils installed?
2
votes
0answers
80 views

Upstart and process substitution

So I want to use the following in my script stanza: forever -l >(tee $QW_LOG_DIR/webserver.log | logger -p user.info -t '[QW]') start webserver.js However, that won't work because: That's bash ...
2
votes
0answers
759 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 ...
2
votes
0answers
1k views

Generating a single LaTeX file by merging different LaTeX files

I have a main LaTeX file which inputs many other LaTeX files i.e. for example \documentclass{article} \begin{document} \input{input1.tex} \input{./Input_folder_1/input2.tex} \input{input3.tex} ...
2
votes
0answers
594 views

Why doesn't duply work when set as a cron job?

I have a problem with a cron job which starts but doesn't complete. Running the command manually works fine. I already read the page about cron issues and solutions here on AskUbuntu, tried the ...
1
vote
0answers
85 views

Unable to reproduce the ShellShock bug locally

I have been trying to reproduce the Shellshock bug on my local 14.04 Ubuntu VM without any luck. I know my local bash version is still vulnerable because the following command prints out the commented ...
1
vote
0answers
20 views

Synaptic Package Manager -E-“cache open”, E - Default-Release not available

In an attempt to re-install Bash I tried to open Synaptic Package Manager but got this message E: The value 'precise-updates' is invalid for APT::Default-Release as such a release is not available in ...
1
vote
0answers
51 views

How do I open an URL from a bash script?

I have a simple script to start a node.js webserver and open the URL in a browser. However the last part doesn't seem to work, it wont open the URL in a browser (or anywhere else). This is the code I ...
1
vote
0answers
99 views

How can I draw selection rectangle on screen for my script?

I am trying to make a simple screencasting bash script. I want to get screen selection coordinates by drawing a red rectangle with mouse. I can use xdotools to get coordinates but how can I draw ...
1
vote
0answers
133 views

Can you use gnome keyring in bash script, if yes then how?

I am developing a automated mounting script for Windows shares. I have finished the script and it works just fine, but is it possible to add Gnome Keyring to the bash so once user writes hes/hers ...
1
vote
0answers
49 views

On Trusty, what is CL program to create desktop configuration file?

On Precise, I used to create a desktop configuration file with my own GUI wrapper which called the gnome-desktop-item-edit command line program (part of the gnome-panel package) which had the ...
1
vote
0answers
117 views

Why is netcat remote shell not returning any output on ubuntu 12.04?

I'm connecting to a server I have on my laptop, both are on the same vmnet and both systems are Ubuntu 12.04 LTS. In order to connect I use reverse shell from the web sever. First I start listening ...
1
vote
0answers
79 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 ...
1
vote
0answers
71 views

getting problem while executing ./bootstrap

bootstrap file content : !/usr/bin/env bash # The contents of this file are subject to the MonetDB Public License # Version 1.1 (the "License"); you may not use this file except in # compliance with ...
1
vote
0answers
198 views

Problem with characters encoding in bash in 12.04 new install?

I just installed Ubuntu 12.04.4 64 bits, all seemed to be ok, when I started to work on console I noticed: that I couldn't get some accented characters typed in to the console, for example, if I ...
1
vote
0answers
64 views

Matlab compilation returning an error when run

After putting in numerous hours, I felt ready to run my code on my friend's high end computer. I compiled my application (named Zeta). However, when I entered: sh '/home/nicbit/Desktop/run_Zeta.sh' ...
1
vote
0answers
65 views

Login errors in .bashrc in 13.04

I just upgraded to 13.04, and suddenly I get xsession errors in my .bashrc on login. There is nothing wrong with the .bashrc file--I can source it from a terminal login, and after I get into the ...
1
vote
0answers
183 views

How to use debcondf Show results with debconf-set-selections?

I'd like to know in common how to use the results of debconf-show with debconf set selections to precvonfigure deb packages with teh command line or within a shell script For example If I use sudo ...
1
vote
0answers
51 views

Mutiple music player play pause toggle problem

In my setup I use xfce. xfce does not have any method to control the playing and pausing of music players, so I wrote my own script to control the play\pause, next, and previous commands. The problem ...
1
vote
0answers
214 views

javac cannot found, even after adding non-standart path to it in $PATH

Ubuntu 12.10, 32bit Problem too damn simple: I have a NTFS partition and unpacked from .tar.gz jdk on it. All I need from bash, is to see javac compiler, that is located in directory ...
1
vote
0answers
85 views

How to change bash title in a python virtual environment

I would like to know how to change the bash title modifying the configuration files. I often program in Python and use virtualenv to keep my development environment separated from the system-wide ...
1
vote
0answers
58 views

editing youtube video description, titles through terminal

Is there a way to edit youtube video description and title/tags through terminal? If so, then how to do it? unfortunately, googlecl does not have such function yet.
0
votes
0answers
15 views

When running a shell script using sudo I am getting no tty present and no askpass program specified

I am trying to build a project using jenkins. The project is based on node. I wrote a shell script that has only npm install command. I am running the shell script from jenkins as sh ...
0
votes
0answers
27 views

How to set the path to xstream in Ubuntu 14.04

I am using Ubuntu 14.04, and installed my version of jdk using sudo apt-get install openjdk-7-jdk Now I installed xstream 1.4.7, but whenever I compile any java files using the package, I get an ...
0
votes
0answers
19 views

Can only echo very limited numbers to USB companion files

I want to echo number 7 to the file /sys/bus/usb/devices/usb2/../companion, but fails. But if I echo number 1 or 2 to this same file, it works well. Any idea on that? nxr@nxr-desktop:~$ sudo -s ...
0
votes
0answers
19 views

How can I give an option (-o vi) to login shell

I want my login shell to be started with option -o vi so that instead of /bin/bash my login shell would be /bin/bash -o vi I tried changing /etc/passwd but that result in invalid shell, as it ...
0
votes
0answers
50 views

How to fix RAID1 array by mdadm with script?

In system works two RAID1-arrays madadm. There is one reserve disk to change faulty disk. I need to write a script which will be monitoring disks and automatically fix degraded array. How do you ...
0
votes
0answers
41 views

bash autocomplete behaving strangely after update

Since bash was updated very recently, when I try to autocomplete by tabbing during a cd I get the following... tony@tony-HP:~$ cd Mucword=1 words[0]=${!ref}${COMP_WORDS[i]} ...
0
votes
0answers
22 views

Creating an alias with tab completion

I know how to create a permanent alias, just edit .bashrc . I created alias forsudo apt-get install <appname> . As you may not know the exact name of app or want to check the dependency u can ...
0
votes
0answers
33 views

Bash Script for adding Keyboard Layout to available Layouts

I am writing a bash script to add a layout (Urdu as input language) to the available keyboard layouts. The current status is: script automatically detects the current layout, as a string. adds te ...
0
votes
0answers
68 views

How to make apt update everything with cron-apt?

For my 14.04 server, I've set up cron-apt to update every day at 4'o clock. Today I've reviewed /var/log/cron-apt/log to make sure it has updated bash to fix shellshock. And indeed, it has updated ...
0
votes
0answers
197 views

How do I upgrade from 12.10 on a DigitalOcean droplet?

The recent ShellShock exploit has prompted me to upgrade my Ubuntu 12.10 server, as I cannot upgrade bash on it (I receive 404 errors on apt-get-update (somebody else with a similar issue)). I opened ...
0
votes
0answers
12 views

Get status of background process

Let's say I have started a process in the background: e.g. tar [...] | pv [...] & pv has the PID 1234 and normally reports it's progress to stdout. The job was started as a cronjob so there is ...
0
votes
0answers
37 views

Shell script loop stops by itself

I have two script files like this. execute.sh #!/bin/bash #259200seconds = 5 days end=$((SECONDS+432000)) x=0 cp /dev/null ~/kill_start.txt while [ $SECONDS -lt $end ] do [[ $(cat ...
0
votes
0answers
18 views

Run script in another opened terminal

Is it possible to run a script in another opened terminal? In that case I would need to know all opened ttys. Another case would be, if I'm using SSH to login into a remote host. I would like to run ...
0
votes
0answers
34 views

wait for job in bash script

find /var/www/ -ipath */logs/access.log.gz -execdir mv "{}" "old/`date +\%G-\%m-\%d`-access.log.gz" \; wait service nginx reload wait python /var/www/default/piwik/misc/log-analytics/import_logs.py ...
0
votes
0answers
88 views

Prevent *buntu from updating dictionaries during install

In utilizing Vagrant to install an Ubuntu server box with a GUI (lxde), the shell provisioning fails due to what seems to be a frequent issue when setting up dictionaries. The resolutions seem to all ...
0
votes
0answers
53 views

How to run correctly bash script from another script?

I want to run sqldeveloper on Ubuntu Gnome 14.04. I created some symbolic link and tried to call from one script file another. And it fail with message: /usr/local/bin/sqldeveloper: line 2: ...
0
votes
0answers
55 views

Get file created by a program launched by a bash script

I have the next scripts: | base_dir/ | - test.sh | | tests/ | | - elaborato.sh test.sh run elaborato.sh elaborato.sh could create a file (not always it create a file). I need : to know the ...
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
38 views

bash: Permission Denied when I move my CPP file to another location

I crafted a test CPP programme. It created a file in the home directory. It compiled with ease, and I could run it by typing ./rocketfire in the Terminal. Now, I did these: abhimanyu@AbhimanyuPC:~$ ...
0
votes
0answers
71 views

Terminal closing itself after 14.04 upgrade

All was fine in 12.04, in this case I'm using virtualbox in Windows. The upgrading process ran ok, no errors, no warnings. After rebooting the errors started to happen. Just after booting up there ...
0
votes
0answers
53 views

no such package beginner tutorials

I'm using Hydro. I am new to this. I was reading the book "A Gentle Intro to ROS" by Jason M. O'Kane. I got up to the section "Creating a package". I was following the "create a workspace" and ...
0
votes
0answers
28 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
0answers
15 views

How do I send a notification into blue-envelope area from bash?

I want to send a notification that would be permanently visible, e.g. so I won't miss it. Ideally this would be a MacOS-like popping GUI icon in Dock, but as I understand, such a notification in ...
0
votes
0answers
41 views

Console Mode VIM 256 Color Support

This question is about using the console mode (i.e. ctrl+alt+f1) and not about using a terminal emulator. When running from a terminal emulator, my VIM uses 256 colors without a problem. I've tried a ...
0
votes
0answers
31 views

Permissions when running second level script

Evening Everyone, I have 1 bash script that starts the program Motion (some may be familiar with). Motion links to a script in the motion.conf upon picture save or file save to a perl script that ...