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

learn more… | top users | synonyms (1)

3
votes
1answer
28 views

Export PATH and EMSCRIPTEN

I am confused about PATH setup. I was installing emscripten and following their tutorial. As the last step you export variables running source ./emsdk_env.sh This exports couple of things: ...
3
votes
1answer
367 views

Bash script runs fine, but not in cron

I have a script that's supposed to record a shoutcast stream for an hour, convert it to mp3, and then save it. The script runs correctly when I run it from the terminal, but I can't seem to get it to ...
3
votes
1answer
947 views

How Do I Log USB Modem AT Command Output?

I want to be able to send the command "AT+CSQ" to /dev/ttyUSB1 every 5 seconds, and log out response to a text file. I can do it manually via screen (screen /dev/ttyUSB1 and type in AT+CSQ and see the ...
3
votes
1answer
558 views

Ubuntu for phones - is there a terminal similar to the one known from PC's?

I am thinking about install Ubuntu on a phone. I spend a lot of time in terminal while working on my PC. There are much things I do using bash scripts, for example. Then, is there a terminal on ...
2
votes
1answer
82 views

Not able to create user on Ubuntu 14.04 (32 bit)

I'm sorry this post is so long, but I wanted to make sure that all the stuff that might be relevant was readily available. I've been trying to create a new user account on my laptop, and, even though ...
2
votes
1answer
36 views

How to Launch Terminal Script with Appliation Icon?

I am relatively new to linux, but I wanted to get my Tor browser up and running. I have downloaded and extracted the Tor Browser Bundle. In order to open the browser I need to cd to the file and run a ...
2
votes
1answer
42 views

How to run a complex command by xfce mail-watcher

I just installed the xfce4-mailwatch-plugin I would like to use the option "Run on click" to either switch to Thunderbird, or to open it if it is not currently running. The command I use for this is ...
2
votes
1answer
121 views

post-receive: No such file or directory

I'm getting an error when trying to push to a remote Amazon EC2 (Ubuntu Linux) instance. I've given all related directories and files full permissions. I'm trying to use a post-receive hook to move ...
2
votes
1answer
458 views

Permission denied error after SSH login

I am having Permission denied errors after logging with non root user (which has permissions to do "sudo -i" command). I get these errors: -bash: /bin/uname: Permission denied -bash: [: =: unary ...
2
votes
1answer
60 views

Inconsistent parent directory of all symlinks

A large portion of my system depends on symbolic links, so this is a very serious problem. I do something like the following cd mkdir test mkdir other cd test ln -s ../other/ # So ~/test contains a ...
2
votes
1answer
251 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 the command line or within a shell script For example If I use sudo ...
2
votes
1answer
8k views

Tomcat Installation startup.sh not working

So I've followed the list of steps on : https://www.digitalocean.com/community/articles/how-to-install-apache-tomcat-on-ubuntu-12-04. When I try to run the startup script, I get this message: ...
2
votes
1answer
138 views

Function to change title doesn't work when run in script

I've got a simple command that sets the term title: # Allow the user to set the title. function title { PROMPT_COMMAND="echo -ne \"\033]0;$1 ($PWD)\007\"" } export -f title I'd like to access ...
2
votes
1answer
445 views

Modifying PATH does not work

I want to add /home/myname/adt-bundle-linux-x86_64-20130219/eclipse to PATH. I edited .profile: PATH="$HOME/bin:$PATH:/home/myname/adt-bundle-linux-x86_64-20130219/eclipse" but it won't work. Why? ...
2
votes
1answer
85 views

Allow any user to use shutdown with my own shell

First of all sorry if my english is not excelent but it isnt my native language. I have a project where I'm building my own shell (named MYSHELL). One of the tasks is to create my own built-in ...
2
votes
1answer
1k views

Shortcut to terminal/bash script without 'instant close'

I've created a desktop entry in ~/.local/share/applications. It looks similiar to the following: [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=Crontona Server GenericName=CA Server Comment=BDAF ...
2
votes
1answer
344 views

bash dirtrim produces strange results with ~/foo/bar/var directory

In some of my projects, I keep a var or a lib folder for runtime output and external libraries. To keep my prompt rather short, I have the export PROMPT_DIRTRIM=3 option in my .bashrc. This works ...
1
vote
1answer
23 views

How to temporarily disable sleep and hibernate from the command line

It seems like there are many ways in which a Ubuntu's settings can be permanently manipulated to sleep when desired as long as predetermined conditions are met. However, these are more permanent ...
1
vote
1answer
21 views

How do I fill certain percentage by height of an image using ImageMagick commands in ubuntu?

I have an image with around 20% of its bottom filled with white color. But the image has some dots of other colors than white. I have 100s of such images which I would like to remove those dots from. ...
1
vote
1answer
51 views

Start script on boot up?

I want to run a script when the system starts. The script is: #!/bin/bash gnome-terminal --tab -t "MyPC" -e "sh -c 'nohup firefox & nohup gedit & bash'" --tab -t "MYPC2" -e "sh -c 'ls -al;ls; ...
0
votes
0answers
108 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
57 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
57 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
190 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
84 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
43 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
60 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
62 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
10 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
216 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
140 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 ...
0
votes
0answers
27 views

Startup script xrandr missing LSB tags and overrides please help

hello i have a simple script that looks like this xrandr -s 1680x1050 When i run it standalone it works! when i put the script into /etc/init.d/xrandr.sh I get the error "missing LSB tags and ...
0
votes
0answers
40 views

Absolute basic MQ wanted - command line driven

I am looking to install a very basic command line accessible MQ product. It will be run on Ubuntu 12.04 lts, and should be able to support multiple readers. Any products I should be looking at?
0
votes
0answers
31 views

Openmpi mca parameters does not work

I am trying to setup some of the mca parameters for an mpi execution, The command I am trying to run is: mpirun --mca btl_base_verbose 30 --mca btl_tcp_if_include eth1 -nolocal -pernode -machinefile ...
0
votes
0answers
255 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 ...
0
votes
0answers
502 views

How to fix this rsync script?

rsync directory always starts in the home directory, but I want to sync files into a directory inside of a .kde directory. I tried this: rsync -avc -e ssh root@xxx.xx.x.xx:/var/www/.../backup/docdata ...
0
votes
0answers
58 views

Create a pre-commit git hook to fetch and place in appropriate folders

I'm trying to create pre-commit git hook that uses the Transifex Client or custom bash script to fetch all of the language files on Transifex and place them in appropriate folders...could be written ...
0
votes
0answers
260 views

Run multiple screen sessions in a bash script

I know this has been asked for many times. But my script just would not work. I would like to write a simple script running on EC2 in the beginning, which creates two screen sessions and execute some ...
0
votes
0answers
105 views

Terminal and Bash Meta/Alt key combinations

It seems to be impossible to use the Alt key as the Meta modifier for some Bash line navigation commands such as M-f and M-b. This is because Meta = Alt, and Alt-<letter> opens any menu that ...
0
votes
0answers
67 views

Terminator - Bash character encoding - problem visualizing content of some files

I'm using Terminator to manage several bash shells. If I print the content of some files, some characters are bad displayed. Even if the character encoding is setted to UTF-8. Below there is the ...
0
votes
0answers
72 views

A script which can be run from a flash drive and modify startup applications

So I have created a script I would like to run on computers at startup on the network I manage. Each is unique, so merging settings accross the network would be problematic. I could change each ...
0
votes
0answers
519 views

How to install windows 8/8.1 themes on ubuntu?

I found this link and this one that shows that win 8 theme could be implemented ! I could it even make it faster and 100% compatible to ambiance. My question is the following: We all know that ...
0
votes
0answers
69 views

Problem with apt-get

Whenever I run apt-get in terminal I always get the same error apt-get: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/x86_64-linux-gnu/libstdc++.so.6) I ...
0
votes
0answers
90 views

Kubuntu: open application on specific monitor using bash script

I use two monitors and i want to write a bash script which opens applications on my second monitor (thunderbird for example). I use conky which is also on my second monitor. I want to define the size ...
0
votes
0answers
119 views

Good option for a command line SIP client?

I am looking for a simple command line based SIP client that can do the following: Can Register to a Elastix PBX Auto answer calls Play a ring sound Dial a extension when a key is pressed OR be ...
0
votes
0answers
90 views

How to check scripts/jobs in batch mode with atq

Is it possible to know which script is related to any job listed with atq? Read info on man at but couldn't find the option. I would like to add a column to the following list with script name. atq ...
0
votes
0answers
23 views

how to pass uubaa{qv} arguments to gdbus?

I found the way to pass a {sv}, that is working well, (thanks to aport), but my arguments are more complex. uubaa{qv} I tried to pass it like that: "1 1 0 [[{160: <46.52>},{161: ...
-1
votes
0answers
20 views

What you want to see in daily server monitoring mail?

I write bash script, which collect information from ubuntu server and send it by mail. With this script you can see: Your clamav antivirus information Which ports are open How many users in your ...
-1
votes
0answers
16 views

.xinitrc: can't reliably keep caps lock and ESC swapped

I use my .xinitrc file to run the following line: xmodmap /home/eric/.xmodmaprc. .xmodmaprc in turn contains the following: remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape ...
-1
votes
0answers
22 views

check that mouse driver works or not

My laptop is Sony VGN-CS325J. I have mouse problem with all of Linux distributions. The problem is about my mouse driver. i am working & suddenly my left click will disable or something else. I ...