2
votes
1answer
55 views

How can I run as another user?

This is the bash code that should be runned. So first it substitutes the user to openproject and than runs all the code su openproject -c "bash -l" cd ~/openproject git checkout Gemfile.lock git ...
0
votes
2answers
36 views

No numlock in screen?

I am using a laptop and Putty on a Windows system. When I connect to my Debian Squeeze server in Bash environment, I can use the "Pos1/Home" or "End" (at the numlock part of the keyboard) to navigate ...
2
votes
2answers
55 views

What is bitwise.c~? [duplicate]

I am new to Linux Debian and I am trying to made a program to experiment bitwise operators. The name of the program is bitwise.c Before compiling the program, I decided to look at the directory just ...
0
votes
0answers
29 views

udev set kdbrate settings on linux with console users issue

I have a kbdrate setting as a udev rule for usb devices(keyboards and scanners that re repluggd in). kdbrate needs to be set by someone with /dev/port access which is the console user. The udev rule ...
2
votes
1answer
69 views

lockfile-progs utilities usage [duplicate]

There is another question that is related, but it is actually different, because I'm asking why the behavior of lockfile-create & lockfile-touch is different to the current contents of the manual ...
0
votes
1answer
142 views

Bare-bones linux? [closed]

I am working on a homemade OS and I was originally going to write it myself in Assembly and Python, but I decided that doing this would just be easier, faster, and more Linux-y. I have the Python part ...
3
votes
1answer
330 views

adduser: Specify only one name in this mode

I'm trying to add a user with this command on my debian server: #!/bin/bash APPUSER="test1" APPGROUP="test2" # User adduser -c 'uwsgi user' --group $APPGROUP --system --no-create-home ...
1
vote
1answer
321 views

Split screen just like Windows or Unity do

I'm looking in Debian wheezy for a way to split screen in two windows just like you can do in Ubuntu or Windows7/8. I mean I'm used to select a window and push windowskey+left and select another one ...
0
votes
0answers
217 views

change the panel font color of the numix theme

So I loved numix and I installed it in lubuntu 13.10 and now, when I apply it, it does into show the name of the minimized app. it does not even have option to edit.
1
vote
2answers
259 views

Keeping xterm terminal alive on crunchbang linux debian wheezy

I like to keep a number of terminals open at different locations on my development VM. For this I use terminator because I got a big screen and I can divide the terminals anyway I want. But after ...
3
votes
2answers
218 views

Bash Script To Find Debian Release Number from /etc/debian_version

The following is what I'm currently using for testing the version of Debian. Instead of doing it this way, can I make it more succinct? #!/bin/bash VERSION=NONE if [ $(cat /etc/debian_version) == ...
4
votes
1answer
1k views

#!/bin/bash: No such file or directory [duplicate]

I'm sorry to ask this but I don't understand why I've got this error: line 1: #!/bin/bash: No such file or directory while running any piece of bash script like this: #!/bin/bash echo "pouet" ...
1
vote
4answers
178 views

Why does “sudo ./foo” return “./foo Command not found”?

I'm having trouble with my new Raspberry Pi. Any time I try to run ./foo, it returns -bash: ./foo: Permission denied But if I try to run sudo ./bar, then it returns sudo: ./bar: command not found ...
7
votes
1answer
260 views

bash completion not working for one user

On my Debian Wheezy system I have several users. For one user, lets call him martin (UID 1000) bash completion is not working. It works fine for all other users, even though they all use the same ...
7
votes
2answers
147 views

Re-installing apps after a fresh install?

I'm on Debian and I want to re-partition my drive and reinstall. Is there an easy way to restore all currently installed packages after a fresh installation? I'm thinking of doing it by making a ...
0
votes
2answers
190 views

Two or more yes/no questions in a script?

I'm writing a bash script which has a "yes/no" question in it, but now I want to have another yes/no question in it. The script can only cope with one yes/no, so how can I have two, or more, yes/no ...
3
votes
2answers
1k views

realpath command not found

I have debian squeeze amd64. My current shell is bash. If I write the following in my terminal, it works: $ uname -a Linux core 2.6.32-5-amd64 #1 SMP Fri May 10 08:43:19 UTC 2013 x86_64 GNU/Linux $ ...
0
votes
1answer
136 views

Can't create a minimal chroot jail

Was trying to create a minimal chroot jail. The steps followed was: Created a folder chroot Copied bash to the folder chroot Run ldd bash to know the dependencies ldd /bin/bash linux-vdso.so.1 ...
0
votes
2answers
192 views

debian prompt is broken

When I login via ssh or from the console this is what I see: Linux sensu.lbox.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 The programs included with the Debian GNU/Linux system are free ...
0
votes
0answers
119 views

Do all Debian-based distributions come with the same default .bashrc?

I ask this out of curiosity because while I have kept my system configuration files under version control for some time now, they've only ever been for OS X. Recently, though, I've been developing ...
2
votes
1answer
310 views

bash_completion not working (for some commands)

I have new installation of Debian Wheezy, and I have noticed bash_completion does not work for some commands. For example, it works for ping, but not for host (both ping and host should complete ...
1
vote
2answers
983 views

How to see all commands executed by the current user, in all sessions/screen/byobu terminals?

If there is debian box, some users have access to the root account, some of those users open an ssh connection and start executing commands, some open screen or byobu or other similar tools to execute ...
3
votes
2answers
539 views

SSH tunnel through middleman server - how to connect in one step (using key pair)?

My question is basically how to turn my existing two steps into one step. I have a working SSH tunnel set up between two computers using a middleman server like this: ...
3
votes
3answers
725 views

Are there any command line utilities that can capture joystick button presses?

Here's my situation: I have a Raspberry Pi with Raspbian installed on it. I also have RetroArch installed and a simple USB gamepad hooked up. Everything works fine, but I wanted to set it up so that ...
0
votes
1answer
233 views

where to (apt-get) install aliases system-wide?

I am making a Debian package that contains bash aliases. Where should these aliases be installed, so that they are available system-wide? The "right" place would be /etc/bash.bashrc, but this file ...
2
votes
1answer
545 views

How to write a script to read wifi SSID and password from USB drive at boot up and auto logon to wifi network

I have an embedded system that is running Debian. I want to be able to provide wifi network SSID and password information via a USB thumb drive. That way I can easily deploy it to any wifi network. ...
5
votes
3answers
1k views

Count number of lines of output from previous program

I'm trying to count the number of lines of output a certain program produces. The problem is, the program takes a long time to run, and I want to display the output to the user. Is there a way to ...
6
votes
2answers
876 views

How to implement package install suggestion on Debian?

I have noticed that while on Ubuntu, if I type the following: mc and it isnt installed, I get the message below: The program 'mc' is currently not installed. You can install it by typing: sudo ...
2
votes
2answers
231 views

List all users and last time they read mail, pipeing to multiple output

I have one system that I would like to do a little clean up, so I would like to get all user accounts and last date they accessed they mail. It is a Debian system. So far I got to this: cut -d: -f1 ...
2
votes
1answer
542 views

git tab-completion does not work on Debian Wheezy but works on Squeeze

My question is about git command tab-completion, i.e. when I type git stat and hit Tab, it completes the command line to git status. (Where applicable, this also works with remote names and branch ...
1
vote
1answer
325 views

How to configure ADSL connection using bash?

I know it's possible to configure the modem to automatically connect the internet using a browser, but I want to do it using bash. I would like the network to automatically connect when the system ...
2
votes
0answers
287 views

A problem with mknod when logged in as root

I am trying to load a char device driver written by myself. To achieve this I use a modified bash script published on this site: http://www.makelinux.net/ldd3/chp-3-sect-2. Here is my version of the ...
3
votes
2answers
2k views

Bash script doesn't work as cronjob

I'm trying to get this simple bash script to work within a cronjob. It's used to generate static nginx webserver statistic pages using GoAccess. I tried everything I know to resolve this issue, it ...
3
votes
5answers
173 views

gnome-dictionary no-window option does not work

I would like to have a bash dictionary so I found gnome-dictionary. However, just typing gnome-dictionary will bring up a GUI box. In gnome-dictionary --help, and in the man file, it says a -n or ...
3
votes
2answers
2k views

change terminal title

I want to make a shell alias that starts a certain program and also changes the title of the terminal to the name of the program. How can I do that? In case it matters, I am running the terminal on ...
1
vote
4answers
1k views

Debian sed: can't read

I'm trying to run a command to remove require_once from php files from here (code below), but I am getting the error: sed: can't read -: No such file or directory I am in the correct folder; ...
33
votes
1answer
9k views

What is $debian_chroot in .bashrc?

What is the debian_chroot variable in my bashrc file? and what is it doing here? PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '