You are not logged in.
Hello,
I'm a newb, so please be gentle. I've tried searching both Google and the Arch website for information and I'm coming up empty, so help would certainly be appreciated. I hope I've selected the right forum here.
I have a line in my .bash_profile (both for root and my regular user) that connects to the USB-network on my phone:
dhcpcd <my usb device id - I forget what it is> &&
There's almost nothing else in the bash_profile (only what is there by default).
This worked fine for a long time, but suddenly it started causing the error in the thread subject for BOTH the root user and my regular user accounts. I had to boot up Arch from a USB key, mount my computer's drive and remove the "&&" from the bash_profile just to be able to login again.
Strangely enough - and for no apparent reason that I can see - it's since stopped happening on the root account (that now just connects to my USB tethered device as expected). But it's still happening with the regular user. If I run 'dhcpcd', even without any parameters on the command line, I get the same result.
If I run "ps aux", I can't see any dhcpcd process running, and despite a long time searching, I have no idea how to find what is locking it, or even what it really means.
Any help greatly appreciated. This has been very frustrating.
Thanks!
Last edited by wombatvvv (2016-07-29 21:19:08)
Offline
I can't describe exactly why this would be happening - but I can think of *many* problems with this approach. .bash_profile is just so very much the wrong way to do this. If nothing else, this should just completely fail when run in your user's ~/.bash_profile as dhcpcd should be run as root.
Just enable dhcpcd service for that device and it will start (once and only once) on boot.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Not a Sysadmin issue, moving to NC...
Offline
Thanks Trilby,
I am a newb, but I sort of guessed adding it to the .bash_profile wasn't the "right way", I just did that as a temporary stop-gap while I was setting up the Linux environment. I wanted it there because so I wouldn't forget to remove it once I switch over to a proper wired/wifi connection.
That said, when I think about it, it's still better just to enable the service as you suggested.
Offline