Help using the terminal.
I'm taking a survey course of languages and we are covering perl this week. I need to write perl script that will parse xml data, but I can't even figure out how to use the terminal.
when I open the terminal I get this line(I subed out my name and username):
firstName-LastName-MacBook-Pro:~ username$
i have tried command from tutorials such as ls and that works, but I can't figure out how to run scripts from a file. I have tried a simple hello world app by typing:
#!/usr/local/bin/perl
print "Hello World!\n";
in text edit saving it as hello.pl then I tried to type hello.pl in the terminal and it says
-bash: first.pl: command not found
can someone explain in simple terms how to run simple programs like this?
thanks, aaron
Thanks for the help. That was a lot of good information. I did have it saved wrong(as rich text).
It is a common mistake, and I'm glad you avoided it.
However I still could not figure out how to run first.pl. using ./first.pl and ~/first.pl
The "chmod +x first.pl" step is need to mark the file as an executable. As previously suggested by etresoft and me, you can also just use "perl first.pl" and avoid the other configuration stuff.
I downloaded fraise as you recommended. Can you guide me through the part were you said, "modify your PATH environment varialble so it includes a directory where you put your personal scripts." i did not understand what you meant by "Create the file .bash_profile in your home directory (you will need ls -a to see the file after you create it). In .bash_profile".
Any file that begins with a period will be invisible to the Finder. And the 'ls' command will by default not show files that begin with a dot. "ls -a" will so all files in a directory, including those that begin with a dot. This was the Unix way of cutting down on clutter in a directory, by having 2 classes of file name, and the ones with a leading dot were then typically used for things like initialization files.
In this case .bash_profile is a bash shell initialization file. By default Mac OS X Terminal sessions use the bash shell to service the commands you enter at the command prompt.
However, a new Mac OS X account typically does NOT have a .bash_profile, so if you wish to customize various bash behaviors you would need to create the .bash_profile yourself.
And as much as I happen to love the vim (and before that vi) text editors, they have a very steep learning curve, so I'm hoping that etresoft was being humorous when he suggested you should avoid a GUI text editor such as Fraise
And besides, if you start down the vi/Vim path, it will only lead to text editor wars with the emacs uses of the world Since you are trying to get through a programming language survey course, perhaps you can skip the text editor debates until a later semester.
With respect to PATH. PATH is a standard Unix environment variable that contains a list of directories that the shell (bash) will search when trying to find the executable file with the same name as the command you entered at the shell command prompt.
If you do not modify your PATH environment variable, it generally looks like:
echo $PATH
/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
where each directory is separated by a colon (:). The shell will take the command name you entered, and search each directory from left to right until it find an executable file that matches your command.
What I was suggesting is that you create your own personal directory where you put executable programs and scripts, and then add that personal directory to your PATH environment variable.
Since the bash shell is going to read .bash_profile when you start a new Terminal session and execute the commands it finds in .bash_profile, that is the idea place to customize your PATH
# Assuming you have created a folder called 'bin'
# in your home directory, and you put your personally
# created executable programs and scripts in there
# then the following export command would modify your
# PATH to include your personal bin directory. It does
# not need to be called bin, that is just a long standing
# Unix convention.
export PATH="$PATH:$HOME/bin"
After changing the .bash_profile, you would need to either restart your Terminal session or issue the command
source ~/.bash_profile
I'm a complete beginner when it comes to this stuff.
your help is greatly appreciated.
We all had to start somewhere. In my case the Unix command line prompt was a step up in usability
ps. how to I enclose my code quotes like you did?
Code segments (or anything you do not want the forum software to touch) are enclosed in an identical pair of tags. For example:
... your code snippit here ...
And one final point. etresoft pointed out that the she-bang (#!) line was wrong. I find the following to be the most portable way to specify the #! line
#!/usr/bin/env perl
print "Hello World!
/usr/bin/env is a POSIX standard program that must list in /usr/bin/env, and it will invoke the script interpreter specified as its single argument. /usr/bin/env will use PATH to find the script interpreter, so as long as perl exists in one of the directories specified by PATH, my above #! will always find it, no matter what Unix platform I copy my perl script to, or hand it in for a homework assignment (OK, it is been a lot of years since I did homework, but you might find it useful for your survey course).
etresoft also suggested included the -w option in your #! line. That is not possible when using "#!/usr/bin/env perl", however, you can can just add the "use warnings;" statement to the your perl script and get the same effect:
#!/usr/bin/env perl
use warnings;
print "Hello World!
And if you want perl to look even close at your code you can change warnings to strict
#!/usr/bin/env perl
use strict;
print "Hello World!
{code}
which makes perl really picky about your code.
Similar Messages
-
have iMac osx version 10.8.5 and i forgot my account login password. i can't change it using my apple ID nor i remember my password.also my fire vault is not on and my keychain won't help. PS i can't also use the terminal idea it always not found please help !!
You need to restart the iMac and hold down the Command and R keys immediately.
You will then have the utilities drop down and you choose Terminal
When Terminal opens, type exactly:
resetpassword
and press Return.
When the Reset Password window opens, select the user for which you want to change the password.
Enter the new password twice, and then click Save.
Accept the next dialog window,
And then Apply
When finished click the apple at the left side of the menu bar, and the Restart. -
Using the terminal????
I am new to the hole MAC world and know very little about using its terminal. How do I write a command using the terminal to find a file? Also are there any good tutorials out there that I can study from? Thanks.
Additionally, check the AppleScript and Unix forums under OS X Technologies. Note, that the default shell for OS X is bash. Check Terminal's help if you want to use another.
Since you're new to Macs, these should help:
Switching from Windows to Mac OS X,
Basic Tutorials on using a Mac,
MacFixIt Tutorials, and
MacTips Learning Centre.
Additionally, *Texas Mac Man* recommends:
Quick Assist.
Welcome to the Switch To A Mac Guides, and
A guide for switching to a Mac. -
Accessing dot mac email using the terminal
Is it possible to access one's dot mac email account using the terminal?
Thanks-
db
Powerbook G4 Mac OS X (10.4.7)Hm, Windows has this dang tendency to make simple things hard :-/
First note that Putty won't help you much, because it allows you to log into remote SSH servers, but I don't think it gives you a "local shell", i.e. replace or extend the normal DOS shell (or whatever it's called nowadays) that comes with Windows.
That said, I don't know whether you can find Windows ports of some Unix tool that would help you somewhere in the "vicinity" of Cygwin http://www.cygwin.com/ or so ... I don't use Windows enough to know that
My personal solution to a similar problem is to rent a Linux root server, together with a few friends, which gives us all a platform to perform anything in the internet as long as we have an SSH capable computer where we are.
If you have an ADSL flatrate you could even leave a computer at home on and SSH into that... -
Any unix commands to view network status & activity using the terminal?
I don't use the terminal much and was wondering if there are any unix network commands that let you view packet contents, connection status and other network information. I'm not interested in making any changes, I just want to use the terminal to get network and related information.
Thanks in advance to anybody who answers.
- Mark
G4/450MHz Sawtooth Mac OS X (10.4.7)Hi Mark,
There are tons of commands; it would help to know what you want to know. You can monitor the status of all ports with:
sudo lsof +Mi
That will display all network connections and all listening daemons. A command that is similar to that is:
netstat -a -f inet
Of course netstat specializes in network information and there are lots of different stats it will display.
If you run a firewall, it keeps stats on rule matches. You can see them with:
sudo ipfw -atdN list
As has already been mentioned, Mac OS X comes with tcpdump but there's only one great packet sniffer: Ethereal. It doesn't come with OS X but if you have X11, it can be installed with a packet manager like Fink.
Finally, many running services keep their own stats or logs. You would have to read up on the ones you're running to see what information they provide.
Gary
~~~~
A diplomat is man who always remembers a woman's
birthday but never her age.
-- Robert Frost -
Setting $PATH using the terminal
Hi All! I am a newbie with OS X and I am wondering as to how to add a directory into the PATH using the terminal. Thank you very much!
Ustilago wrote:
Hi All! I am a newbie with OS X and I am wondering as to how to add a directory into the PATH using the terminal. Thank you very much!
Welcome to Apple Discussions!!
export PATH=/path/to/your/directory:$PATH
Note that you should supply the complete path to the directory you want to add.
To make this automatic for each time you start the Terminal, you need to arrange for it to appear in ~/.bash_profile or ~/.bashrc. It's best to put it in the latter, since this is run for every Terminal window. ~/.bash_profile is only executed for the initial login window, but you can avoid duplication by having it source ~/.bashrc. Stripped to its essentials, my ~/.bash_profile is just
if [ -r ~/.bashrc ]; then
. ~/.bashrc
fi
If you have further questions, you might find posting them in the UNIX forum better. One of the regular posters there, Bill Scott, has this page which you may find useful: Unix Links, especially under the Mac OS X heading. -
i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
<Phone Number Edited by Host>You aren't addressing anyone from Apple here. This is a user forum.
You might want to call a neaby Apple store to see if they have a free class you could attend. -
Does anyone know the command and sequence to empty trash using the Terminal utility?
Does anyone know the command and sequence to empty trash using the Terminal utility?
Hi d,
1. Open Terminal (in Applications, Utilities).
2. Copy and paste the following command into theTerminal window (or type it exactly as follows):
sudo rm -rf ~/.Trash/*
3. Press Return.
4. Type in your password when asked (note: you will not see anything being entered as you type your password).
5. Hit Return.
6.Wait until the process finishes/the Terminal prompt returns.
7. Quit Terminal. -
First off I have a 3tb fusion drive.
I created a 200gb bootcamp, I tried deleting the bootcamp because I thought I messed it up and googled how to delete a mac partition which told me to use Disk Utility, did that and then erased it and somehow it got locked and wouldn't let me do anything to any partition on my hard drive (everything was greyed out)
After looking up and googling for hours I found a post saying the only way to fix it would be to go into CMD+R and go into the terminal window and type out disklist and then find the first UUID number and do something along the lines of disklist delete (UUID) i forget the exact formula. I did this, and then I had 3 separate untitled hard drives.
One in the size of 1.9gb on in 800gb and one in 121.3gb (which is the SSD), I put my time machine backup onto the 1.9gb untitled and now my computer is booting slowly (because it's no longer running off of the SSD and the original bootcamp is still there.
To be honest I am absolutely confused on what else to do!
Is there anyway I can fix this?How do I go about deleting and then re-adding the hard drives? Completely lost on how to make it back to being a 3gb fusion drive.
Thank you for all your help, I honestly really appreciate it.
I followed your instructions and got the following
diskutil list:
-bash-3.2# diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 120.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *3.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_CoreStorage 1.9 TB disk1s2
3: Apple_Boot Recovery HD 650.0 MB disk1s3
4: Apple_CoreStorage 251.9 GB disk1s4
5: Apple_Boot Boot OS X 134.2 MB disk1s5
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *1.3 GB disk2
1: Apple_partition_map 30.7 KB disk2s1
2: Apple_HFS OS X Base System 1.3 GB disk2s2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Untitled *1.9 TB disk3
Logical Volume on disk1s2
FD9357F1-1A71-44A0-A01E-41C84F1C8047
Unencrypted
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Untitled *251.5 GB disk4
Logical Volume on disk1s4
31B60F49-6981-47A3-9815-6396AD3A9BD6
Unencrypted
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: untitled *5.2 MB disk5
/dev/disk6
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk6
/dev/disk7
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk7
/dev/disk8
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk8
/dev/disk9
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk9
/dev/disk10
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk10
/dev/disk11
#: TYPE NAME SIZE IDENTIFIER
0: untitled *6.3 MB disk11
/dev/disk12
#: TYPE NAME SIZE IDENTIFIER
0: untitled *2.1 MB disk12
/dev/disk13
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk13
/dev/disk14
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk14
/dev/disk15
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk15
/dev/disk16
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk16
/dev/disk17
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *319.4 GB disk17
1: EFI EFI 209.7 MB disk17s1
2: Apple_HFS IMAC TMB 319.0 GB disk17s2
/dev/disk18
#: TYPE NAME SIZE IDENTIFIER
0: untitled *6.3 MB disk18
/dev/disk19
#: TYPE NAME SIZE IDENTIFIER
0: CD_partition_scheme *804.4 MB disk19
1: Apple_partition_scheme 700.4 MB disk19s0
2: Apple_partition_map 32.3 KB disk19s0s1
3: Apple_HFS WD SmartWare 237.5 MB disk19s0s2
-bash-3.2#
diskutil cs list
-bash-3.2# diskutil cs list
CoreStorage logical volume groups (2 found)
|
+-- Logical Volume Group 687E889E-B4A1-4F20-8B36-43D7A3701076
| =========================================================
| Name: Untitled
| Status: Online
| Size: 1946162462720 B (1.9 TB)
| Free Space: 5402624 B (5.4 MB)
| |
| +-< Physical Volume 7BCD8D9C-AEB2-4D48-B248-257EFC7EA922
| | ----------------------------------------------------
| | Index: 0
| | Disk: disk1s2
| | Status: Online
| | Size: 1946162462720 B (1.9 TB)
| |
| +-> Logical Volume Family 3A8A9627-5963-49BA-8E2F-96DC7A1B033D
| ----------------------------------------------------------
| Encryption Status: Unlocked
| Encryption Type: None
| Conversion Status: NoConversion
| Conversion Direction: -none-
| Has Encrypted Extents: No
| Fully Secure: No
| Passphrase Required: No
| |
| +-> Logical Volume FD9357F1-1A71-44A0-A01E-41C84F1C8047
| ---------------------------------------------------
| Disk: disk3
| Status: Online
| Size (Total): 1945804734464 B (1.9 TB)
| Conversion Progress: -none-
| Revertible: No
| LV Name: Untitled
| Volume Name: Untitled
| Content Hint: Apple_HFS
|
+-- Logical Volume Group 98213AE6-9EA8-4FB7-8B72-8E08BFBFD82C
=========================================================
Name: Untitled
Status: Online
Size: 251864797184 B (251.9 GB)
Free Space: 5226496 B (5.2 MB)
|
+-< Physical Volume 20CEF763-635D-4A0D-A107-40E8FB161D06
| ----------------------------------------------------
| Index: 0
| Disk: disk1s4
| Status: Online
| Size: 251864797184 B (251.9 GB)
|
+-> Logical Volume Family 2D3173B3-5B04-47E6-B331-49D1BA58E9F2
Encryption Status: Unlocked
Encryption Type: None
Conversion Status: NoConversion
Conversion Direction: -none-
Has Encrypted Extents: No
Fully Secure: No
Passphrase Required: No
|
+-> Logical Volume 31B60F49-6981-47A3-9815-6396AD3A9BD6
Disk: disk4
Status: Online
Size (Total): 251507245056 B (251.5 GB)
Conversion Progress: -none-
Revertible: No
LV Name: Untitled
Volume Name: Untitled
Content Hint: Apple_HFS
-bash-3.2#
Disk0
-bash-3.2# gpt -vv -r show /dev/disk0
gpt show: /dev/disk0: mediasize=121332826112; sectorsize=512; blocks=236978176
gpt show: /dev/disk0: PMBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: Sec GPT at sector 236978175
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 235298960 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
235708600 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
236978136 7
236978143 32 Sec GPT table
236978175 1 Sec GPT header
-bash-3.2#
Disk1
-bash-3.2# gpt -vv -r show /dev/disk1
gpt show: /dev/disk1: mediasize=3000592982016; sectorsize=512; blocks=5860533168
gpt show: /dev/disk1: PMBR at sector 0
gpt show: /dev/disk1: Pri GPT at sector 1
gpt show: /dev/disk1: Sec GPT at sector 5860533167
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 3801098560 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
3801508200 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
3802777736 1912
3802779648 491923432 4 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
4294703080 262144 5 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
4294965224 1565567911
5860533135 32 Sec GPT table
5860533167 1 Sec GPT header
-bash-3.2# -
How do I use the Terminal to run the 10.6.8 update?
After my iMac crashed during the 10.6.8 update install, the Finder won't launch (tried via the Dock and "Force Quit" command). I've used a Terminal window to get to the folder (ChangeDirectory) with a downloaded copy of the 10.6.8 update but I don't know how to launch the Installer program to try to re-install the update (Software Update won't help here because the Mac is updated enough to claim to be running 10.6.8 so it doesn't think there is anything to update).
TIA.now able to create logical drive but installation again failed, here is the console log:
6/30/11 11:41:30 PM Installer[966] Mac OS X Update Installation Log
6/30/11 11:41:30 PM Installer[966] Opened from: /Volumes/Mac OS X 10.6.8 Update/MacOSXUpd10.6.8.pkg
6/30/11 11:41:57 PM Installer[966] ========================================================================== ======
6/30/11 11:41:57 PM Installer[966] User picked Standard Install
6/30/11 11:41:57 PM Installer[966] Choices selected for installation:
6/30/11 11:41:57 PM Installer[966] Install: "Mac OS X Update"
6/30/11 11:41:57 PM Installer[966] Install: "Mac OS X Update"
6/30/11 11:41:57 PM Installer[966] ========================================================================== ======
6/30/11 11:41:57 PM Installer[966] Configuring volume "HD"
6/30/11 11:41:57 PM Installer[966] Free space on "HD": 63.61 GB (63612735488 bytes).
6/30/11 11:41:57 PM Installer[966] Create temporary directory "/var/folders/eW/eWl9WrwqGQ0hARMov5qLTk+++TI/-Tmp-//Install.9664INg9O"
6/30/11 11:41:57 PM Installer[966] IFPKInstallElement (1 packages)
6/30/11 11:41:57 PM installd[984] PackageKit: ----- Begin install -----
6/30/11 11:42:14 PM kernel disk0s2: I/O error.
6/30/11 11:42:14 PM kernel
6/30/11 11:42:14 PM kernel
6/30/11 11:42:21 PM kernel disk0s2: I/O error.
6/30/11 11:42:21 PM kernel
6/30/11 11:42:21 PM kernel
6/30/11 11:42:29 PM kernel disk0s2: I/O error.
6/30/11 11:42:29 PM kernel
6/30/11 11:42:29 PM kernel
6/30/11 11:42:36 PM kernel disk0s2: I/O error.
6/30/11 11:42:36 PM kernel
6/30/11 11:42:36 PM kernel
6/30/11 11:42:51 PM kernel disk0s2: I/O error.
6/30/11 11:42:51 PM kernel
6/30/11 11:42:51 PM kernel
6/30/11 11:42:58 PM kernel disk0s2: I/O error.
6/30/11 11:42:58 PM kernel
6/30/11 11:42:58 PM kernel
6/30/11 11:43:06 PM kernel disk0s2: I/O error.
6/30/11 11:43:06 PM kernel
6/30/11 11:43:06 PM kernel
6/30/11 11:43:13 PM kernel disk0s2: I/O error.
6/30/11 11:43:13 PM kernel
6/30/11 11:43:13 PM kernel
6/30/11 11:43:27 PM kernel disk0s2: I/O error.
6/30/11 11:43:27 PM kernel
6/30/11 11:43:27 PM kernel
6/30/11 11:43:34 PM kernel disk0s2: I/O error.
6/30/11 11:43:34 PM kernel
6/30/11 11:43:34 PM kernel
6/30/11 11:43:42 PM kernel disk0s2: I/O error.
6/30/11 11:43:42 PM kernel
6/30/11 11:43:42 PM kernel
6/30/11 11:43:49 PM kernel disk0s2: I/O error.
6/30/11 11:43:49 PM kernel
6/30/11 11:43:49 PM kernel
6/30/11 11:43:58 PM kernel disk0s2: I/O error.
6/30/11 11:43:58 PM kernel
6/30/11 11:43:58 PM kernel
6/30/11 11:46:47 PM installd[984] Deferred path /usr/bin/mdcheckschema is not in sandbox and will be skipped.
6/30/11 11:47:16 PM kernel disk0s2: I/O error.
6/30/11 11:47:16 PM kernel
6/30/11 11:47:16 PM kernel
6/30/11 11:47:24 PM /System/Library/PrivateFrameworks/PackageKit.framework/Resources/shove[100 3] [source=file] failed _RelinkFile(/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root/System/Library/Frameworks/SystemConfiguration .framework/Versions/A/_CodeSignature/CodeResources, /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/_CodeSignat ure/CodeResources): Input/output error
6/30/11 11:47:24 PM kernel disk0s2: I/O error.
6/30/11 11:47:24 PM kernel
6/30/11 11:47:24 PM com.apple.installd[984] Input/output error
6/30/11 11:47:24 PM kernel
6/30/11 11:47:24 PM installd[984] PackageKit: Install Failed: (null)
Error Domain=PKInstallErrorDomain Code=120 UserInfo=0x1040d2e70 "An unexpected error occurred while moving files to the final destination." Underlying Error=(Error Domain=NSPOSIXErrorDomain Code=5 "The operation couldn’t be completed. Input/output error") {
NSLocalizedDescription = "An unexpected error occurred while moving files to the final destination.";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=5 \"The operation couldn\U2019t be completed. Input/output error\"";
arguments = (
"-f",
"-s",
"/var/folders/zz/zzzivhrRnAmviuee+++++++++++/Cleanup At Startup/PKInstallSandbox-tmp/Root",
6/30/11 11:47:25 PM Installer[966] Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
6/30/11 11:47:27 PM Installer[966] IFDInstallController 3EFB090 state = 7
6/30/11 11:47:27 PM Installer[966] Displaying 'Install Failed' UI.
6/30/11 11:47:27 PM Installer[966] 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
6/30/11 11:47:27 PM Installer[966] The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
6/30/11 11:47:29 PM /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982] MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
6/30/11 11:47:29 PM /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982] MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
6/30/11 11:47:29 PM /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982] MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
6/30/11 11:47:29 PM /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982] MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
6/30/11 11:47:29 PM /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982] MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
6/30/11 11:47:29 PM /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982] MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds
6/30/11 11:47:29 PM /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.fram ework/Versions/A/Support/mdworker[982] MDS Error: unable to create user DBs in /var/folders/zz/zzzivhrRnAmviuee++++KE+++3Y/-Caches-//mds -
After using the terminal,wireless connection is gone
Yesterday I was looking online to see ''how can I transfer pictures,files from my Nexus 7 tablet to my desktop computer with the usb cable''..
I've found several support forums like this one I'm using right now,someone has already asked a question like mine so I followed the best answer,
I typed the commands in the terminal as the helper suggested,then I restarted my desktop pc,after that it didn't connect any more,it connects wireless usually,but since yesterday no connection:(
I still have the page/link that shows the answer I've followed (the top one) :
http://askubuntu.com/questions/207569/how-do-i-connect-a-nexus-7-to-transfer-files
thank you!!Hello mediterranean,
Thank you for contacting Mozilla Support. Are you having trouble getting a wireless connection on your Ubuntu machine? This is probably not the best forum for Ubuntu or Nexus 7 questions, but you might try taking a look at this article:
http://askubuntu.com/questions/247993/cant-connect-to-any-wireless-connection-after-updating
Cheers,
Patrick -
A Guide on How to Use the Terminal?
hey all, i've been looking for a guide on how to use the command prompt in Lion and haven't been able to find anything. i'm brand new to the OS X and would appreciate any help. i'd like to learn the different commands first instead of the GUI.
by the way, are there any guides on what to do in the first stage of setting up OS X on a mac mini?
thanksI'd start here: Terminal 101. Reading books on UNIX would be helpful too.
-
Help using the Connection Trunk command
Hello Group,
I could use a bit of assistance accomplishing the following.
I have two Cisco 1760 Routers with a WIC 1/DSU T1 and one VIC2/E/M in each router. I am new to CLI commands and could use some tips.
I would like to set up these routers (I will call them Router A and Router B) to communicate with each other via a internal IP network which spans between two seperate locations.
I would like to set up these routers to use the E&M ports to send and receive audio between locations. The E&M ports are connected to my external equipment which allows for transmit and receive audio to be delivered to the E&M port.
I need to be able to allow for the routers to use 2 wire or 4 wire audio between locations, which is matched at both ends. The routers do not dial phone numbers nor are phones in use at all. Basically the routers are going to be used to send and receive two way radio voice between the locations which the radios are interfaced to the E&M ports.
Can anyone please help me on configuring these routers to accomplish this and if I need to use the Connection Trunk command I can do so, as this is the only purpose of the routers is to relay audio between locations.
Please Help.
Thanks A bunch!!
RickThank you for taking the time to reply, However I have allready configured the routers to link the LMR sites together. I have been connecting LMR assets utilizing ROIP for many years using non-cisco equipment which is specifically designed for ROIP, I have a large inventory of 1760 routers which were originally used for Telco applications which were replaced by newer equipment. The fact that the routers have become "obsolete" does not mean that they are not usable for my application. How can you make a statement that this is "limited equipment" when the intended use of this equipment for my application has been accomplished without limitations which are specific to my operation.
I posted a request on this forum to obtain some help in the configuration of these devices from people who are familiar with the 1760 router. Your response was the first response which I had received in regards to my request for assistance, I thank you for at least attaching a link to some resources which I can utilize. Utilizing the services of a "reputable consultant" or "UC certified partner" would be acceptable in some circumstances, however utilizing the services which would be provided by such would only pose limitations on our technical skills. I do not want to have to rely on a third party consultants to acheive what is engineered and desgned in house by our staff.
I am not looking to purchase new equipment, nor am I looking for consulting help on this issue as we manage and deploy equipment in house. Enlisting the services of a consultant or certified partner for our Cisco equipment deployments would only add unnecessary costs and time to deploy equipment. Again thank you for the link to the examples.
Respectfully,
Richard Wiglesworth -
I can only shutdown arch linux using the terminal.
Recently I started using SLIM to log into Arch Linux. I was having trouble with the gnome-keyring window popping up everytime I logged in while using GDM. I downloaded SLIM and changed some settings so that gnome-keyring wouldn't pop up everytime.
Here are the changes I made:
~/.xinitrc using this article https://bugs.archlinux.org/task/18930
exec ck-launch-session gnome-session
eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh)
And /etc/pam.d/slim
#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so
auth required pam_unix.so
account required pam_unix.so
password required pam_unix.so
session required pam_limits.so
session required pam_unix.so
session optional pam_loginuid.so
session optional pam_ck_connector.so
auth optional pam_gnome_keyring.so*
session optional pam_gnome_keyring.so auto_start*
*= the changes I made to the file.
I was hoping to just stop gnome-keyring from popping up everytime I log into Arch Linux (ideally I wanted to auto log in) and now I can't shutdown unless I use the $ sudo shutdown -h now command in the terminal. When I click on the "Power Off" button in Gnome 3 it basically logs me out to the SLIM log in screen. I was able to shutdown the computer before by shutting the laptop screen/lid but that doesn't do anything now for some reason. Is there a way for me to auto log into arch without the gnome-keyring popping up everytime?
Additionally, with the gnome keyring dialog I wasn't able to click the "Automatically log in....." radio button because it was grayed out for some reason.
Last edited by rg_arc (2011-09-06 19:45:05)$ ck-list-sessions
Session2:
unix-user = '1000'
realname = 'Ricky ******'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0.0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-09-06T10:32:31.899610Z'
login-session-id = '1'
Session1:
unix-user = '1000'
realname = 'Ricky *******'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0.0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-09-06T10:32:31.706583Z'
login-session-id = '1'
$
I believe everything is working smoothly after I rebooted... I think this is solved... but its good measure to double check.
thanks for the input guys
Last edited by rg_arc (2011-09-06 15:37:05) -
How Do I Learn How To Use The Terminal?
Are there any places to learn how to use the command line in Terminal?
Whywutt,
Thank you very much.
Its appreciated.
Maybe you are looking for
-
Problem in punching AP invoice.
Problem in punching AP invoice afetr upgrade to ERP R-12.
-
Forced to manually manage songs in iTunes
I got a new Macbook a couple days ago and transferred all of my music onto it. I plugged my iPod, which was previously synced up to my old PC, into my new Mac and it comes up in iTunes with the 'Manage songs manually...' option already checked. If I
-
Anyone familiar with error 4000 while attempting to burn playlist to a cd?
I would like to burn a playlist to a cd, but the process is interrupted everytime with error 4000. I wish I knew what that meant! I've read other similiar cd burning posts and have read about the filmware possibly needing updating, but I do not under
-
Is it legal to burn friends cds to your itunes
My friend lent me a cd and it does not say no copyright does that mean i can burn it on to itunes
-
Bank Reconciled transactions are shown as not reconciled
Hello, After upgrade from 8.82 PL 13 version to 9.0 PL 11 version all Bank Reconciled transactions are opened and in Bank Reconciliation Report I got message "This Reconciliation has been cancelled" . How can I retrieve it. I have gone through two SA