The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Applications (http://hintsforums.macworld.com/forumdisplay.php?f=5)
-   -   Bluetooth switching off (http://hintsforums.macworld.com/showthread.php?t=169832)

RobertSK 03-11-2014 08:40 AM

No, it doesn't seem to :

Last login: Tue Mar 11 11:58:40 on ttys000
-bash: /Users/test/.bashrc: No such file or directory
rsk-853:~ test$ $ blueutil status
-bash: $: command not found
rsk-853:~ test$

RobertSK 03-11-2014 12:06 PM

Hi again, Trevor. Just wondering if when we get blueutil working whether it will overcome the current problem I have in that bluetooth switches off when I shut down meaning that I have to restart it again with a wired mouse using Bluetooth Setup assistant when I restart.

trevor 03-11-2014 01:00 PM

Quote:

Originally Posted by RobertSK
-bash: /Users/test/.bashrc: No such file or directory

Did you follow my directions to create .bashrc? It doesn't seem to have worked. But that means I'm confused as to how you got blueutil in your PATH.

Quote:

Originally Posted by RobertSK
rsk-853:~ test$ $ blueutil status

Can we see the results of the following commands, copy/pasted into Terminal?

ls -alOe /usr/local/bin
ls -alOe ~
cat ~/.bashrc
id
echo $PATH
echo "done"


Quote:

Originally Posted by RobertSK
Just wondering if when we get blueutil working whether it will overcome the current problem I have in that bluetooth switches off when I shut down

I have no idea. I've never used blueutil. I've been answering specifically your questions about how to install blueutil on the command line and how to get your environment working, and I have purposely not addressed the larger question of your Bluetooth problems, as I really don't know the answer to that larger question.

Trevor

RobertSK 03-11-2014 02:36 PM

Here are the results:
Code:

Last login: Tue Mar 11 12:38:59 on ttys000
-bash: /Users/test/.bashrc: No such file or directory
rsk-853:~ test$ ls -alOe /usr/local/bin
total 72
drwxr-xr-x  3 root  wheel  -  102  7 Mar 13:19 .
drwxr-xr-x  3 root  wheel  -  102  7 Mar 08:50 ..
-rwxr-xr-x@ 1 root  wheel  - 33860 11 Mar 11:58 blueutil
rsk-853:~ test$ ls -alOe ~
total 96
drwxr-xr-x+ 26 test  staff  -        884 10 Mar 17:41 .
 0: group:everyone deny delete
drwxr-xr-x  8 root  admin  -        272 25 Apr  2012 ..
-rw-------  1 test  staff  -          3 25 Apr  2012 .CFUserTextEncoding
-rw-r--r--@  1 test  staff  hidden 12292  6 Mar 17:20 .DS_Store
drwx------  4 test  staff  -        136 11 Mar 10:20 .Trash
-rw-------  1 test  staff  -      1744 11 Mar 16:02 .bash_history
-rw-r--r--  1 test  staff  -        23 11 Mar 10:07 .bash_profile
-rw-------  1 test  staff  -        22 10 Mar 17:16 .bash_profile.save
-rw-------  1 test  staff  -        22 10 Mar 17:24 .bash_profile.save.1
-rw-------  1 test  staff  -        22 10 Mar 17:37 .bash_profile.save.2
-rw-------  1 test  staff  -        33 10 Mar 17:26 .bashrc.save
drwx------  3 test  staff  -        102 26 Apr  2012 .cups
drwx------  15 test  staff  -        510 11 Mar 10:26 .dropbox
-rw-------  1 test  staff  -        50  8 Dec 10:11 .lesshst
drwx------  5 test  staff  -        170  9 Sep  2013 Applications
drwx------@ 11 test  staff  -        374 10 Mar 18:25 Desktop
 0: group:everyone deny delete
drwx------@ 16 test  staff  -        544  9 Jan 17:57 Documents
 0: group:everyone deny delete
drwx------@ 40 test  staff  -      1360 11 Mar 08:53 Downloads
 0: group:everyone deny delete
drwx------@ 22 test  staff  -        748 11 Mar 10:26 Dropbox
drwx------+ 46 test  staff  -      1564 12 Feb  2013 Library
 0: group:everyone deny delete
drwxr-xr-x  2 test  staff  -        68 14 May  2012 Memeo Backups
drwx------+  3 test  staff  -        102 25 Apr  2012 Movies
 0: group:everyone deny delete
drwx------+  7 test  staff  -        238 22 Apr  2013 Music
 0: group:everyone deny delete
drwx------+  8 test  staff  -        272 18 Oct 17:25 Pictures
 0: group:everyone deny delete
drwxr-xr-x+  5 test  staff  -        170 25 Apr  2012 Public
 0: group:everyone deny delete
drwxr-xr-x+  5 test  staff  -        170 25 Apr  2012 Sites
 0: group:everyone deny delete
rsk-853:~ test$ cat ~/.bashrc
cat: /Users/test/.bashrc: No such file or directory
rsk-853:~ test$ id
uid=503(test) gid=20(staff) groups=20(staff),98(_lpadmin),81(_appserveradm),101(com.apple.sharepoint.group.1),102(com.apple.sharepoint.group.2),79(_appserverusr),80(admin)
rsk-853:~ test$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
rsk-853:~ test$ echo "done"
done
rsk-853:~ test$


trevor 03-13-2014 06:01 PM

Code:

-rw-r--r--  1 test  staff  -        23 11 Mar 10:07 .bash_profile
-rw-------  1 test  staff  -        22 10 Mar 17:16 .bash_profile.save
-rw-------  1 test  staff  -        22 10 Mar 17:24 .bash_profile.save.1
-rw-------  1 test  staff  -        22 10 Mar 17:37 .bash_profile.save.2
-rw-------  1 test  staff  -        33 10 Mar 17:26 .bashrc.save

Your .bashrc file is misnamed .bashrc.save. Let's fix that, and get rid of a couple of other extraneous .bash_profile.save files, and improve the permissions on your .bashrc file. (This is assuming that you properly wrote the .bashrc file, it's just misnamed.) Copy/paste the following into Terminal:

rm ~/.bash_profile.sav*
mv ~/.bashrc.save ~/.bashrc
chmod 644 ~/.bashrc
cat ~/.bashrc
echo "done"


Trevor

RobertSK 03-25-2014 01:25 PM

Trevor, sorry not to have replied sooner but I have been away.
I copied and pasted what you suggested and got the following from terminal:
Last login: Tue Mar 25 08:01:19 on console
-bash: /Users/test/.bashrc: No such file or directory
rsk-853:~ test$ rm ~/.bash_profile.sav*
rsk-853:~ test$ mv ~/.bashrc.save ~/.bashrc
rsk-853:~ test$ chmod 644 ~/.bashrc
rsk-853:~ test$ cat ~/.bashrc
export PATH=/usr/local/bin:$PATH
rsk-853:~ test$ echo "done"
done
rsk-853:~ test$

What should I do next.?

trevor 03-25-2014 07:27 PM

Quit your Terminal program, restart it, and then test to see if things are now working.

Trevor

RobertSK 03-26-2014 04:36 AM

HI, no progress it seems:

Last login: Wed Mar 26 08:33:38 on ttys000
rsk-853:~ test$ $ blueutil on
-bash: $: command not found
rsk-853:~ test$

trevor 03-27-2014 06:41 PM

Quote:

-bash: $: command not found
You shouldn't type in the dollar sign ($). That's the prompt, meaning it shows that the computer is ready for your command. Just type

blueutil on

Trevor

RobertSK 03-28-2014 05:03 AM

Thanks Trevor. I did that and then tried to turn blueutil off but got:
Last login: Fri Mar 28 08:01:18 on console
rsk-853:~ test$ blueutil on
rsk-853:~ test$ blueutil off
Error: unable to turn Bluetooth off
rsk-853:~ test$

trevor 03-28-2014 02:02 PM

OK, you can turn it on, though, so that's at least a significant milestone that you've achieved. You have blueutil installed, properly in your PATH, and you can turn bluetooth on.

Perhaps someone else here can help you troubleshoot turning it off. Maybe try
sudo blueutil off
...and enter your admin password when asked.

Trevor

RobertSK 03-29-2014 10:22 AM

Thanks very much for all your help with BlueTooth. A great experience leaning the use of Terminal commands. Very kind of you to stick with me over the period.
Weather here in UK warming up now so good to see a little sun!
As a footnote to the use of Bluetooth, I found yesterday that my problem in BlueTooth turning off every time I shut down was corrected when I changed the settings in the Advanced menu of the Bluetooth Hardware setting in the System Preferences!
Again thanks.Hope all well in Boulder. regards Robert


All times are GMT -5. The time now is 12:55 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.