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

learn more… | top users | synonyms (1)

1
vote
0answers
822 views

Cursor positioning using mouse in bash possible?

In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times ...
1
vote
0answers
233 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
451 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
334 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
133 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
89 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
448 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 /media/mallniya/...
0
votes
0answers
5 views

Pulse audio error module-echo-cancel.c not found

I am trying to activate echo cancel module . i added the line load-module module-echo-cancel But when i try to restart now the pulseAudio i get the error saying E: [pulseaudio] module-echo-cancel.c:...
0
votes
0answers
12 views

Tab Autocomplete “Command Substitution error”

I used to never rely on it, but now that I am hooked, this is driving me nutty. When I am in terminal and hit <tab> to autocomplete my statement, it works for most commands (cd, mv, rm, etc) but ...
0
votes
0answers
17 views

Boot counter script not working

I'm using Ubuntu 14.04.04 I've written a simple script for storing in a file the number of times the sistem has been turned on and the time and date of the last boot #!/bin/bash file="/$HOME/bootcnt....
0
votes
0answers
12 views

run virtualenv in new terminal tab automatically

I am using virtualenv, so to start I have to say source some/long/path/bin/activate Sometimes (very often, in fact) I want to create another tab in terminal, to edit another script, or to run ...
0
votes
0answers
49 views

Extract data from logfile from only the previous 24 hours, with bash in a shell script

Using the Ubuntu 14.04 trusty and transmission log for the log file. What is the best way to extract the last 24 hours of log entry's? I have attempted using sed awk grep I cannot seem to get the ...
0
votes
0answers
23 views

Creating A Drag and Drop Bash Script for wipe

WARNING: This question contains dangerous commands. Do not execute these commands on your own computer unless you wish to lose data. I have been using the command like program 'wipe' for ages with ...
0
votes
0answers
20 views

How to change python+filename.py auto-complete to anyfilename

This questions may seems silly as I am a new Linux user on Ubuntu 16.04. I am learning python now. As the command python x+tab will only auto-complete xxxxx.py instead of xxxxx without .py. How ...
0
votes
0answers
17 views

Juju config-changed with GUI returns undefined

I'm writing a charm where I want to allow users to set the name via the GUI. However every time I use the GUI the name is saved as undefined. Setting the config option with the command line gives no ...
0
votes
0answers
38 views

How to resolve ERROR: virtualenvwrapper could not find virtualenv in your path

Other such posts didn't solve my error. I followed this post to install virtualenv and virtualenvwrapper . Now when try running mkvirtualenv Addon-Tests in my project's root directory, I get an error :...
0
votes
0answers
33 views

Combining Bash Script and Script Resources into One Executable

When trying to execute a bash script, it is often execute inside some directory, and requires access to local resources. I was wondering if there was a way to combine both the bash script and the ...
0
votes
0answers
23 views

Error when running ssh: -bash: exec: cd: not found

Here is the output on the terminal when I run ssh, not sure what is wrong. Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-86-generic x86_64) * Documentation: https://help.ubuntu.com/ 10 packages ...
0
votes
0answers
39 views

Comparing integers in bash doesn't work

Why this doesn't work: #!/bin/bash if (( 3 > 2 )) then echo "EXPECTED RESULT!" fi Output: test.sh: line 3: ((:  3 > 2 : syntax error: operand expected (error token is " 3 > 2 ") ...
0
votes
0answers
10 views

Cannot start sqlplus on my dell inspiron15R tried every solution on askubuntu

I have followed the tutorial given at Oracle Instant Client sqlplus: error while loading shared libraries: libclntsh.so.12.1: cannot open shared object file: No such file or directory my ...
0
votes
0answers
17 views

Why doesn't Ubuntu/Debian package upstream loadable bash builtins ($bash_src/examples/loadables)

There's a bash-builtins package, but it only comes with sources and headers. The sources go to /usr/share/doc/bash-builtins/examples/loadables/ (for some strange reason), and they don't even compile. ...
0
votes
0answers
75 views

$PATH problem in 16.04 “WARNING: your PATH doesn't contain …”

I use ubuntu 16.04 and trying to install a simulator (Omnet++). When I try and configure, it gives the below warning: WARNING: your PATH doesn't contain /home/aboubakar/omnetpp-5.0/bin! Add the ...
0
votes
0answers
52 views

Crontab - export DISPLAY=:0.0 or .sh script won't run

I have written a basic script to familiarize myself with crontab that changes my wallpaper every minute with one random image from a set folder: #! /bin/bash PATH=/usr/local/sbin:/usr/local/bin:/...
0
votes
0answers
106 views

Can't execute .sh file that works finely through the terminal in Xubuntu 16.04

My first attempt with scripts, is a shortcut to open a Jupyter Notebook on a specified folder from an file on the Desktop called ipython.sh. The content of ipython.sh is: #!/bin/bash cd ~ ...
0
votes
0answers
30 views

Terminal fails to connect to a proxy server

I am trying to connect to the proxy server of my university. I have successfully logged in to proxy via firefox but when trying to use ftp or wget I get the following error: Resolving proxy.xyz.ernet....
0
votes
0answers
34 views

Gammu runonreceive doesn't pass variable

i want to configure my Rapsberry as a SMS Ping Pong Player. So i installed gammu-smsd and configured the gammu-smsdrc as follows: # Configuration file for Gammu SMS Daemon # Gammu library ...
0
votes
0answers
21 views

How to setup selendroid in ubuntu 14.04? Cannot execute selendroid script. ANDROID_HOME not found error shown in eclipse console

I'm trying to set up selendroid in ubuntu for mobile app testing purposes. First I installed JAVA from ubuntu software center. Then I installed android SDK and I've set path in .bashrc as follows: ...
0
votes
0answers
28 views

Run interactive script on each users first login, whether on SSH, virtual terminal, or GUI

I have an interactive script that I need to run whenever a user logs into a system for the very first time. It uses read to gather some user specific information required for the first-time ...
0
votes
0answers
25 views

Guide to using trayer?

I am trying to use trayer through command line and I don't understand how to add items onto the actual tray. I am trying to add brightness indicator next to the wifi symbol so i can easily adjust my ...
0
votes
0answers
35 views

redirect scientific paper to sci-hub datebase by shell script with keyboard

i usually read paper ; so as i can't buy all of them, i download some of them from sci-hub.cc website, for this action you could append sci-hub.cc to website's paper and you can get PDF from that ...
0
votes
0answers
24 views

Show graphical notification from systemd trigger

I have created a systemd service like this: [Unit] Description=My device name backup Requires=media-my-device-name.mount After=media-my-device-name.mount [Service] Environment=DISPLAY=:0 User=...
0
votes
0answers
30 views

How to create non-root user alias?

I know that I can add an alias by editing .bashrc for root user but I need to know a way to do the same thing for a non-root user. I would like to use this kind of alias in a script that I have set as ...
0
votes
0answers
22 views

Script of getting mysql user grant details

I am trying to get mysql user grant details and echo it to out file hari=mysql -sN -e "show grants for mysqladm"; echo $hari GRANT ALL PRIVILEGES ON prod_server_list.txt stage_server_list.txt ...
0
votes
0answers
20 views

start script after resume as logged in user (not root)

I'm running owncloud client in Ubuntu and after a suspend/resume there's a bug in owncloud which makes it not be able to connect to the server. I wrote a little script which should restart owncloud, ...
0
votes
0answers
53 views

Bash Script Not Working

I hope this is an easy answer Problems: I placed the following bash script called learn-address.sh in the following folder: vi /etc/openvpn/netem/learn-address.sh Added the following two lines to ...
0
votes
0answers
67 views

I have a problem with a loop in a script. How I can create a loop in a loop?

I'm doing a script for improving my scripting capacities, but I can't make a loop work, how I can fix it? Here's the script: As far as my knowledge go, the problem is in the below script: read op2; ...
0
votes
0answers
16 views

reboot bash script for Beaglebone stops without finishing

For the longest time I used the following script: #!/bin/bash echo 'start' && ssh -o 'StrictHostKeyChecking no' root@192.168.7.2 'reboot'&& echo 'end' which echos "start" and also ...
0
votes
0answers
25 views

Why is xinetd so slow?

I'm using an aws ubuntu distro (small size) to receive webhooks from github. The basic setup is to use xinetd to kick off a small bash script to read the post data in from github. If it's a ...
0
votes
0answers
23 views

Trickle and Trickles Not Working

I'm trying to limit UPLOAD rates on my machine to 1 or 2 MB, It bottles at around 10 so want to make sure there is enough left over. I've tried within my script to call my command with trickle limits:...
0
votes
0answers
20 views

How do I make games 'public' in Ubuntu Server?

I'm fairly new. I thought I'd mess with paths and permissions and so forth by doing something pretty straightforward. I have the Infocom z-machine interpreter frotz installed and working. z-machine ...
0
votes
0answers
63 views

Copy/move a list of files to a directory while maintaining directory structure

I have Ubuntu 14.04 os installed in my system. Now I need to create a script for copying/moving a list of files and directories of a Magento module to another main parent folder along with ...
0
votes
0answers
10 views

how do i get verbose output from lpr?

Im troubleshooting a printer, and I want lpr to give me verbose output. This web page made is seem likely, a "-V" option, but the man pages have no option, and it doesn't work. How do i get verbose ...
0
votes
0answers
29 views

Errors logs for MAAS commissioning?

I am trying to get some things to work with MAAS. I have hits some brick walls (hard!!), but in the end you will learn right ;) So what I want to do is to make MAAS start the machine with etherwake. ...
0
votes
0answers
112 views

Need script to logout after 20 minute idle time and then auto login

I have a public internet terminal at my workplace. Often, users will simply walk away from the machine without logging out (of email, facebook, etc.) -- I want to make the end-user experience more ...
0
votes
0answers
28 views

Executing commands in an elevated bash process by writing to the standard input of its parent process

I have a simple bash script 'bash.sh' that starts another bash instance using pkexec. #!/bin/bash bash -c 'pkexec bash' When executed this shows a prompt for the user to enter their password. The ...
0
votes
0answers
18 views

(standard_in) 1: parse error with comparing decimals

I keep getting a parse error and have tried to check the code but I can't see what could be wrong? #!/bin/bash echo -n "Please enter first: " read first echo -n "Please enter second: " read second ...
0
votes
0answers
28 views

bash: [file]: No such file or directory

I have access to a cluster with six machines (wien0, wien1,..wien6) with /home/yhattori directory shared. I've installed a program (gaussian03) in wien6 machine at /home/yhattori/g03 directory where ...
0
votes
0answers
29 views

How to stop x11vnc from shutting down when I log out?

At boot I have sudo x11vnc -xkb -noxrecord -forever -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw run via init.d It works and shows me the login prompt when I use a VNC ...
0
votes
0answers
15 views

Can't run rdesktop from desktop launcher

I have a problem with running rdesktop from .desktop launcher #!/bin/bash [Desktop Entry] Type=Application Terminal=true Name=11.11.11.11 Icon=utilities-terminal Exec=rdesktop 11.11.11.11 -u ...
0
votes
0answers
31 views

Ccrontab script returns empty output

I'm writing a simple bash script for analysing disk health status with smartctl and when i run it in a terminal or by script all works fine: for i in {0..5}; do echo "***** /dev/sda$i *****"; ...