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

learn more… | top users | synonyms (1)

1
vote
0answers
431 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 ...
0
votes
0answers
10 views

How to make oh-my-zsh recommend uninstalled packages like bash?

I want zsh to recommend packages to install if I insert a command whose package is not installed like in Bash. Like
0
votes
0answers
6 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
10 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
45 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
28 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 ...
0
votes
0answers
48 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
19 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 ...
0
votes
0answers
21 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
6 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
21 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
20 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
23 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
19 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 ...
0
votes
0answers
28 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
18 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
45 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
41 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
14 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
22 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
15 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 ...
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
11 views

Integrating RVM with LXTerminal, but no “x-terminal-emulator” in lubuntu-rc.xml file

I'm trying to use this instruction to automatically load RVM and the profiles, but there's no "x-terminal-emulator" in my ~/.config/openbox/lubuntu-rc.xml file. Should I use this command for it to ...
0
votes
0answers
36 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
8 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
25 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
91 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
23 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
15 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
25 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
20 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
13 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
25 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 *****"; ...
0
votes
0answers
29 views

Cron script runs but dpkg command fails

I have a cron script that updates a package with dpkg. This is an oversimplified version of a much larger script. But this is the part that is not working. I copy the update cron script to ...
0
votes
0answers
33 views

Link broken but when “ls” is used on link in terminal the content is displayed

I noticed an interesting fact today. I have a link on my Desktop pointing to windows partition (dual boot Ubuntu 14.04 & Win8.1). Because this partition is not automatically mounted the link is ...
0
votes
0answers
20 views

Batch file to read file contents and iterate

I am trying to write a batch file/shell script that reads the contents of a file, matches those contents with a directory structure and invokes an executable file. Let's say there is a sequence.txt ...
0
votes
0answers
16 views

Scripts (suddenly) not running from Nautilus

I wrote some scripts, set Nautilus to run executable text files without asking, set the files as executable and everything worked as advertised. I double-click my scripts, they open up in ...
0
votes
0answers
36 views

ksoftirqd/0 using 100% cpu

I currently have a process that is using 100% of cpu its the ksoftirqd/0 the issue is I have 4 cores on this machine but it is only using one for this. I found this answer ...
0
votes
0answers
38 views

GNU GRAB version 2.02 + Keyboard does not work

GNU GRUB Version 2.02~ beta 2-36ubuntu3 Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file ...
0
votes
0answers
24 views

pacemaker corosynce lsb resource script( Sybase Database ASE Server and Backup Server)

I'm trying to create a lsb resource with pcs on rhel7.2 The "sybase" script is about Sybase Database ASE Server and Backup Server Startup & Stop & Restart $ status script The script is all ...
0
votes
0answers
19 views

No desktop and Loading Icons. . . Issue

I've recently installed Ubuntu 15.10 onto a virtual machine, however after logging in there is no icons or anything on the desktop, just the cursor and the background. I have looked online however am ...
0
votes
0answers
12 views

Runlevel script doesn't run when I change between runlevels

I have an Ubuntu server 15.04 and I want to trigger a simple script when I enter in the 2. runlevel. The script just creates a folder with a actual date: #!/bin/sh mkdir /home/me/"work-`date`" And ...
0
votes
0answers
20 views

.desktop file not executing properly

I have a script that works very well in terminal by simply typing aprs.sh from anywhere. This script runs a few terminal based applications, and then runs a graphical application giving me a total of ...
0
votes
0answers
23 views

Launching game (0AD) from the terminal

I was trying to play 0AD from my ubuntu box and was experimenting on launching the game via terminal. When running the bash command bash /usr/games/0ad it brings up an error regarding the video ...
0
votes
0answers
18 views

Script to grab file which is downloaded automatically when site is visited

I need a script that would enable me to grab the file that is automatically downloaded when a particular site is visited. I have a PHP script that downloads a file once the link is entered. I need a ...
0
votes
0answers
24 views

“Smart” update/upgrade script in bash

I have installed Ubuntu on my sisters computer. I know she will never touch the update icon. So I would like to make a script to perform update. But to disturb as little as possible, there are 2 more ...
0
votes
0answers
31 views

at command is not executed

I'm automating some mouse clicks using at and xdotool as follows: echo "./autocheckout" | at 18:00 where autocheckout is a bash script as follows: #!/bin/bash # Remember to see if Javascript is ...
0
votes
0answers
14 views

Wireless switching on two VLAN

I have a question regarding how to switch between two VLAN using terminal commands. One is a wired connection which I use for an application that needs to be inside our intranet. The other is a ...
0
votes
0answers
12 views

Script no longer running at shutdown

Before having upgraded to Ubuntu 15.10, I was running 14.04, I had a script which remotely backed up the code from my web server, and stored it in a new folder. This worked by running at shutdown, ...
0
votes
0answers
27 views

Start terminal through script with command option that can later be used for more commands?

I would like to programmatically start a terminal window that runs a command or a bunch of commands (from a script). And I would like to be able to Ctrl + C the command and also keep the terminal open ...