0
votes
1answer
236 views

Archlinux - Autostart `screen` after boot

I'm building some small internet radio player using Archlinux. All I need right now is to autostart (without login!) script or just command: su -c 'screen "vlc (a lot of parameters)"' vlc_user By ...
-1
votes
1answer
2k views

How to run bash script as root on startup?

I am having some problems with this, I have a script that is supposed to start airodump-ng on boot but it usually only runs the first part of the script and thats it. I have tried creating a systemd ...
0
votes
1answer
378 views

arch linux update - Binaries move to /usr/bin requiring update intervention

I just botched the latest update for arch linux. Here's what I did: pacman -Syu --ignore filesystem,bash reboot So I logged out before running: pacman -S bash pacman -Su Now I see this: sh: ...
4
votes
1answer
372 views

How to execute bash script without password?

I need to execute the script after system boot. For example: (sleep 5 && (sudo dhcpcd wlp4s0)) What I need: Executing the script. What I have: [sudo] password for eugene: I has been edited ...
0
votes
0answers
65 views

Shell doesn't appear when connecting to RasPi via SSH

I have a raspberry pi with Arch Linux ARM installed. I would like to run commands via my laptop. I configured SSH correctly and I can log in, but I can't do anything. There is no shell. ssh user@host ...
0
votes
2answers
495 views

permanent powertop changes with systemctl

I have got a .sh-script, trying to make powertop changes permanent. 'auto' > '/sys/bus/pci/devices/0000:00:02.1/power/control'; the commands in this .sh-script are all of this type. I have a ...
1
vote
2answers
2k views

Easy way to get mac address of network card

I use a lot of scripts that involve the Mac addresses of my network cards. Is there a file I can read or a command that I can use to JUST get the Mac address? I don't want any headers or anything, ...
1
vote
2answers
1k views

Arch Linux: colors from terminal in bash script?

In addition to ArchLinux - yaourt: save updatelog? With tee I am able to get the output at a file and at the terminal at the same time. But when I execute yaourt -Syu | tee yaourt.log in a bash file ...
5
votes
1answer
1k views

How do I get ssh to read the destination's `.bashrc`?

I have two Linux computers at work, a desktop and a laptop, running Openssh under Arch Linux. Under my standard logins, I have a customized .bashrc file inside my home folder on both computers. ...
5
votes
4answers
4k views

Bash says file does not exist, but it does

I'm trying to compile the firmware for my linksys WRVS4400N. ls shows that exist but when it try to run it bash says it does not exist. I can also cat it, and it is an executable, not a shell script. ...
0
votes
2answers
688 views

Following script doesnt run as cronjob

snailmail.sh #!/bin/bash echo "Test" >> /tmp/out /usr/bin/kdialog --title "MAIL RECIEVED" --msgbox "mail recieved!!" crontab -e #CronJobs located in $HOME/cronjobs/* * * * * * ...
1
vote
2answers
936 views

Escape the need for “sudo” for a bash alias

I made an alias to shut down my arch linux computer. It runs sudo shutdown -h -P now. I run it and am asked for my password and then it shuts down and powers off. Is there a way I can get this to run ...
3
votes
2answers
2k views

What do I need to do to mount a USB drive in ArchLinux

What packages do I need to allow me to mount a USB drive in ArchLinux from the command line? What command do I use? Under Ubuntu these things happen automatically, but it's about time I learned how to ...
0
votes
1answer
209 views

Bash function/alias for package managers help

I'm using Arch Linux. I have packer installed for AUR packages, but I want to be able to use the pacman command for both. I think I will need a function for this -- what I mean is that whenever I use ...