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

learn more… | top users | synonyms (1)

1
vote
0answers
52 views

Change iface when internet is slow bash script

Need help with script that will change eth1 or eth2 ( to auto set different route ). I have eth0 that is shared to lan and two different gateways (routers), one on eth1 and second on eth2. For now ...
1
vote
0answers
55 views

How to terminate server process?

I just created automation sending an email using a shell script, but it always running and send me an email every sec to my email. I'm using PID and that process name to terminate it, I'm writing ...
1
vote
0answers
86 views

$DISPLAY env var gets cleared at random times

Stock Ubuntu 14.04 Trusty. I seem to regularly experience the $DISPLAY environment variable getting cleared for some reason I don't understand. Basically everything will work just fine until it's ...
1
vote
0answers
50 views

Change content of list in app indicator made using cappind

I made a simple indicator using cappind script which is based on zenity - Webupd8 article Capind page I want to change the text of the list according to some condition.. Like, if the contents are - ...
1
vote
0answers
186 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
94 views

Launch app with absolute path does not woks

I'm quite new in Linux environments, but for this one, I need help on bash. I'm on Kubuntu 14.04 x64 I have an embedded JRE for my business application , placed like this: app_root/run.sh (my script)...
1
vote
0answers
60 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
491 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
883 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
236 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
462 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
346 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
468 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
9 views

adcli --stdin-password option not acting like expected

I am trying to automate joining some of our servers to AD using kerberos/sssd with bash scripts to be run across ssh. I ran into a problem with automatic authentication. We are using the adcli join ...
0
votes
0answers
16 views

Create Package To Install Programs

Is there a way in Ubuntu to create a package or a script that when double clicked will install packages such as Lamp & Joomla? Not sure if Ubuntu already has a pre-configured package to do this, ...
0
votes
0answers
20 views

Problem with startproc command

I have a problem with startproc command Even though the package sysvinit-utils is installed I get an error : Starting DLS Daemon ./dls: line 131: startproc: command not found failed Here is the ...
0
votes
0answers
6 views

Unable to configure Ubuntu kiosk mode 12.04

Setting Up Ubuntu as a Kiosk Web Appliance How-to Ubuntu Kiosk How to set up an Ubuntu Kiosk Ubuntu Web Kiosk in 10 Easy Steps I saw the websites above but I am unable configure kiosk mode. I ...
0
votes
0answers
34 views

Change bash shell to look like the one on heroku demo

I am in love with the bash shell look and feel show in the intro video of heroku. Anyone has got an idea how I can implement this kind of bash look :
0
votes
0answers
11 views

How to check if another ubuntu machine already has remote connection happening?

What is a good way to check (preferably through bash script) from an ubuntu machine A, if ubuntu machine B is already remotely connected from ubuntu machine C? This is assuming that these machines ...
0
votes
0answers
13 views

how to add GLIBC_2.14 and GFORTRAN_1.4 to a remote computer

since I am still beginner in Linux so, I need more explanation for the following; I tried to run -bash-4.1$ ./gtest by the remote computer but it give me the following message. and I need a help to ...
0
votes
0answers
13 views

ISAKMP invalid with VPN connection

I need to create a VPN connection to office.sth.com In the end the var/log/sys/log reads: Jul 20 19:48:02 linux NetworkManager[3364]: <info> [1469036882.5641] audit: op="connection-...
0
votes
0answers
56 views

My bash script for Grive2 works well in Ubuntu Mate but for some reason it doesn't in Lubuntu

I'm new and I'm learning English so please don't be too rude if i make things wrong, but tell me if I'm not doing them good, of course. Hello community!, by the way. Anyway, getting to the point of ...
0
votes
0answers
23 views

Script using zenity and ghostscript to compress PDF files modification

I need help to change the script I have to compress PDF files using Thunar file manager custom actions. The script runs well compressing one by one file, I want to make changes that all PDF files I ...
0
votes
0answers
17 views

gdialog does not allow entering or double clicking

The thing is, I have had pretty hard times with gdialog recently. Let's demonstrate the problem first with this bash code sample: #!/bin/bash source ./Functionlib temp1=$(mktemp -t tfile.XXXXXX) ...
0
votes
0answers
17 views

Screen br tightness script will not run in crontab

My laptop periodically turns on at full brightness, despite the previous setting. As a quick fix, I made the following script which works just fine if I run it manually: #!/bin/sh /usr/bin/...
0
votes
0answers
32 views

How to install HBase on Ubuntu in a 4 node Hadoop cluster?

I have a running Hadoop 2.x cluster. Now I want to install HBase,and Zookeeper in fully distributed mode and use it. But, I have few doubts. I have Hadoop distributed cluster. Lets say I have 3 ...
0
votes
0answers
23 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
21 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
65 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
26 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
60 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
35 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
30 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
42 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
12 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
108 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
61 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
141 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
41 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
49 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
33 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
37 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
32 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
41 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
26 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
33 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 ...