8
votes
0answers
31 views

Bash autocomplete with vim command

In bash, autocompletion of paths has recently stopped working when issuing vim commands (it continues to work as expected with other commands, such as ls and cd). For example, if I type ls ...
0
votes
2answers
40 views

find action not working for specific search [duplicate]

I'm trying to use the find command to list the size of a certain set of files but am getting no output. The command I use is: find POD -type f -name *.mp3 -or -name *.ogg -ls Which produces no ...
3
votes
4answers
346 views

Execute a program at login

I'm running Arch-Linux ARM on a Raspberry Pi. My project goal is to have a barcode scanner attached to the Pi that forwards the scanned messages to a server in a LAN. To harden the system against ...
2
votes
2answers
79 views

Changing username still leaves old traces

I changed my username about a month ago, and although I have forgotten the specificities of how I had done so, I'm pretty sure I followed the instructions on the Arch Wiki. Since then, some programs, ...
1
vote
0answers
320 views

Create adhoc network when disconnected from network

I am using ArchLinux and want to create an AdHoc network automatically when the connection to the home network drops (or the home network can't be connected to on startup). How can I achieve this? I ...
3
votes
3answers
738 views

How to convert all .wav files in subdirectories to .aac using neroAacEnc?

I have a collection of music in .wav format, and would like to convert it to .aac/.mp4 using neroAacEnc. How do I do this? I am using Arch Linux x86_64 and Xterm.
2
votes
1answer
172 views

Mystifying command not found at login

I've just set up Arch Linux (not my first time). Everything installed correctly but when I login (X isn't installed yet) I see: Arch Linux 3.8.4-1-ARCH (tty1) mgoszcz2 login: root Password: Last ...
4
votes
1answer
164 views

Restore default completion

I use compgen when $COMP_WORD equals 1, now I want to restore default completion when otherwise, Right now I have, _rr() { case $COMP_CWORD in 1) COMPREPLY=($(compgen -W "A ...
4
votes
2answers
2k views

Start X after automatic login

I have a working automatic login to a virtual console after boot. Now I want the X server to start automatically, instead of typing startx. This worked before, but after switching to systemd, X would ...
5
votes
2answers
2k views

missing argument to find -exec

I want to remove certain files using find and -exec. But unlikely bash tells me, that I'm "missing" some argument. find . -name *.png -exec rm {} /; what do I miss? same "missing argument" return ...
-1
votes
3answers
269 views

Duplicate bash prompts

I'm having an interesting issue with XFCE Terminal/Gnome Terminal (not reproducible in XTerm), where executing bash or logging in using login or su will open a new Bash instance inside a Bash instance ...
4
votes
1answer
501 views

Home key acting strange in bash (tty and X) on long input strings

When I hit Home if my current input is short enough (say, <36 characters), it works fine. However, when I've typed a longer command and then want to go back to the beginning, it seems like it does ...
7
votes
1answer
5k views

How to fix character encoding in bash (arch linux)

I have some issues with the encoding of german umlauts in bash. It mostly is working fine, but when i am typing a invalid command, the error message generated by bash contains strange escape sequences ...
3
votes
2answers
304 views

How can I “cache” a variable in Bash?

I have a bash script which is run every 10m by cron. The script performs an expensive calculation for some value (say variable x=value). I need to "cache" this value for 2-3 hours. What are possible ...
3
votes
5answers
763 views

How can I test whether connection to the given host/port is established in Bash?

Currently I'm using netstat for this: if netstat -an | grep ESTABLISHED | grep $address:$port > /dev/null; then # command fi Is there a more elegant solution?
2
votes
1answer
183 views

Stop cron script from destroying my mirrorlist with invalid data

I have to following cron script that runs daily. As you should be able to see from the code, it outputs the results from reflector to /etc/pacman.d/mirrorlist. $ cat /etc/cron.daily/update-mirrorlist ...