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

learn more… | top users | synonyms (1)

3
votes
0answers
68 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
258 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
54 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
63 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
643 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
745 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
539 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
18 views

Unique id for combination of Latitude - Longitude

I am new in using Linux (kubuntu 13). I have a LibreOffice Calc table containing one column with Latitude and one with Longitude. What I want to do is for every unique combination of Latitude and ...
1
vote
0answers
39 views

Why can't I redirect grep output to file?

I am running command like this. # ( ( partclone.restore -X -s some.img -o /dev/sda3 2>&3 ) 3>&1 ) | grep Completed Completed: 0.40% Completed: 1.23% Completed: 2.07% ... ...
1
vote
0answers
16 views

Git prompt won't colorize

I want my git prompt in bash to colorize (green for clean repos, red for dirty repos). Right now, it shows plain white text no matter the git state of my cwd/repo. ...
1
vote
0answers
41 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
48 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
44 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
56 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
66 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
44 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
158 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
49 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
55 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
171 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
40 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
288 views

“Normal” variables in Upstart

I haven't quite figured out, how to use "normal" bash variables in an Upstart script. Basically, I just want to do this. DAEMON="/usr/bin/redis-server" DAEMON_ARGS="/etc/redis/redis.conf" ...
1
vote
0answers
48 views

enable and disable VPN from bash

I have a number of VPN hosts which I need to access periodically. They are configured and connections work fine off the network manager. I'd like to be able to enable and disable them as needed from ...
1
vote
0answers
183 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
78 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
56 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
11 views

check dialog input fields

I try to add to below script a control that when I press "enter" key. I'd like being imposed to compile all 4 fields to continue with the script: #!/bin/bash shell="" groups="" user="" home="" exec ...
0
votes
0answers
27 views

Lost graphical login after automating script command

I'm running Ubuntu 12.04 LTS and I want to log all input/output from users. So I've simply tried adding script -a -f /LOG_files/Log_file.txt to users ~.profile. The logging works just fine, but ...
0
votes
0answers
17 views

Create a clickable install script for software

I want to create a simple script that a user can download, click on, and it will: request their root password through some sort of pop-up interface then sudo apt-get install a package to their ...
0
votes
0answers
24 views

Disable 'ESC' and 'Shift + Tab' history shortcuts in terminal

When in a bash terminal, if I hit ESC or Shift + Tab the command line goes to the history where I can move around to previous bash commands with vi-like bindings. I get messed up when in this mode ...
0
votes
0answers
29 views

How much Memory/RAM is really being used by this Ubuntu 14.04 system

How much RAM/memory is really being used by the Ubuntu 14.04 x64 system? From htop, the amount of memory used is 3 GB and swap usage (on SSD) is 5.7 GB. However it appears that the most memory hungry ...
0
votes
0answers
27 views

Why I obtain this compile error when I try to install a software?

I am not yet a Linux guy and I am going crazy trying to install a software compiling it on Ubuntu 14.04. This are the only provided instruction to install it: Debian First, make sure that ...
0
votes
0answers
24 views

arecord flac format

I am playing with scripts that use the google speech-to-text api. The api requires flac encoded files so the recording part of the script looks like this: arecord -q -t wav -d 0 -f S16_LE -r 16000 | ...
0
votes
0answers
29 views

Init.d script not updating git repository

I have the following init.d script running on my ubuntu machine: # /etc/init.d/do-updates cd /home/ubuntu/Fox;git pull sudo /home/ubuntu/Fox/batch_update_process.py 1>> ...
0
votes
0answers
72 views

After exporting $PATH, commands don't work anymore

Trying installing Java, I tried to add it to the executable path with the line: export PATH=/usr/lib/jvm/jdk1.7.0_60/bin:$PATH in the system-wide /etc/bash.bashrc file. For some reason this ...
0
votes
0answers
34 views

Alias's in .bash* not working

I am trying to create an alias and it does not seem to be working. I have tried it with both .bashrc and .bash_aliases. If I open my terminal and perform source .bashrc, then they work OK. What am I ...
0
votes
0answers
24 views

Issues with Grep

Why does the bottom line output "0" into the "AD-Results-$month-$Y" file? First grep command fgrep "$month $D $i:" $Filetmp > TempOutput Grep command to read "allows" from tail of ...
0
votes
0answers
21 views

<Enter> button does not work in Guake for zsh

I have 2 machines with Ubuntu 14.04 on them. On both machines I've tried to switch shell to zsh for Guake. As a result pressing button (to run a command) has no effect, although other ...
0
votes
0answers
19 views

get cpu usage of system users

Working with monit I need create an alert that get cpu usage of system users, so: top -b -n 1 -u user1 | awk 'NR>7 { sum += $9; } END { print sum; }' seems a good solution but I'm not sure about ...
0
votes
0answers
51 views

Grub rescue error: file not found after fsck and a few updates

I am new to Ubuntu. I was using Ubuntu 12.04 LTS. I ran a sudo fsck on my terminal and went on pressing y for a long time at the prompts that appeared. When it seemed to continue for long, I did a ...
0
votes
0answers
387 views

GNU GRUB version 2.02 beta 2-9

I attempted to load Windows 8 and Ubuntu alongside each other and it was working well until my Ubuntu installation completed and I restarted the computer. Now I can't get past this error: ⠀Minimal ...
0
votes
0answers
25 views

Terminal exits program before able to accept Hashcat EULA

I'm trying to play around with hashcat,just using the examples included with the program, but before the command can run it requires me to accept the EULA. Instead of me being able to enter 'YES', the ...
0
votes
0answers
123 views

sh: 0: Can't open HoNClient-3.4.3.sh

I've been trying to install HoN on my laptop. It's running 32-bit Linux Mint 15. The problem I've run into is this: When I try to run the client in the terminal, using the command: sudo sh ...
0
votes
0answers
19 views

Execute script as root on global hotkey independent of logged in user?

Desired scenario: Upon system boot, a bash script is loaded which listens for a specific global keypress, independent of logged in user, also listening in the lock screen. Upon a specific keypress, a ...
0
votes
0answers
32 views

Bash if password filled save it

I am trying to save a password to gnome keyring via python script. The python script will be runned from bash script if password is filled in zenity GUI. Example: User inserts hes/hers password to ...
0
votes
0answers
44 views

listing permissions

I'm a biomedical scientist and I'm having trouble running a custom data analysis pipeline written by one of our collaborators. His script crashes with /bin/sh: 1: ...
0
votes
0answers
8 views

Bash script to set a Ubuntu machine as a Router

I am looking for Script that would set a Ubuntu machine as a router and also options for it to be changed back to normal Network settings and configurations.
0
votes
0answers
63 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
0answers
275 views

node.js app runs from command line but gives errors when run from cron job on reboot on ubuntu 14.04 LTS

When starting my app manually using forever, it works fine. It runs on localhost:8080 and nginx does the routing. When using a cronjob my starter.sh script runs but in the forever log I get an error. ...
0
votes
0answers
40 views

Bash Script for Git Checkout

How do we create a bash script to do a git checkout on a couple of previous commits? cd /Users/testuser/testproject for i in `cat /Users/testuser/Desktop/commits.txt` do git checkout $i I have this ...