When login through a terminal into my Ubuntu 9.10 Server, I see the following message:
=> There is 1 zombie process.
How can I identify this zombie process?
I was messing around with sendmail in Rails a year ago and have had this message popping up in the terminal after every command ever since:
You have new mail in /var/mail/Lance
How do I properly get rid of that so the message goes away? I ever use any of that functionality and don't have mail on my computer. There's one file in /var/mail called lance, and it's huge. Can I just remove it?
I use Gmail and Mac's Mail for emails.
It seems that you can use git am only with a terminal's Mail in OS X/Ubuntu.
I apparently need to set up my ~/.mailrc such that
# gmail account
account gmail {
set from="[email protected] (Masi Masi)"
set sendmail="/usr/bin/msmtp"
set message-sendmail-extra-arguments="-a gmail"
}
I run
mail [email protected]
I get
Unknown command: "account"
How can you use Gmail for Mail such that I get my mails' patches to git am?
I had migrated from a Xenon Mac Pro to a late 2012 Mac mini, using Migration Assistant. Now, the Mac mini won't recognize PHP. I can't even open my user folder, through terminal neither.
I was running Homebrew and PHP 5.4. The Mac mini came out of the box with PHP 5.3 what could be the source of the problem.
Can someone confirm that it is a version caused problem or point me in the right direction?
We have two paths. First one is directory, second either dir or file.
/a/b/c and /a/d/e.txt
Relative path from first path to second will be:
../../d/e.txt
How to get it in linux terminal?
PS: For those who ask "what is use case?" - creating lots of relative symlinks (just as an example)
I'm trying to get Sublime Text 2's command line alias working.
The instructions make perfect sense: Run
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
So, in ~/bin, subl exists. However, even when I restart terminal, the command 'subl' is not found. The path specified to the application's subl file is correct, I've verified that. Logging out does not fix it.
Any help would be awesome!
I'm looking for a tool to monitor custom PHP Error logs/Apache and possibly Java logs on remote development servers.
I'm not looking for a full production log system like Splunk, but something that's a little more flexible than an ssh terminal doing a "tail -f".
Perhaps something that will:
* Monitor multiple log files to my local machine for searching/analysis later
* Allow "alerts" when certain strings appear in the log
* Provide some kind of tabbed/dashboard view of the multiple logs being monitored (in total less than 10 logs).
With putty on windows I added some tunnel for terminal service through ssh
6664 192.168.20.44:3389
6665 192.168.20.45:3389
6666 192.168.20.46:3389
So when I connect with client to 127.0.0.1:6664 it work...
Now I want to use localtest.me to select the machine directly without port number.
I want when I type foo.localtest.me in TS client to connect automaticaly on the 127.0.0.1:3389 is it possible or do I need a proxy to translate port regarding domain name.
I have downloaded the zip version of KeePass. To run it I have to open the Terminal, go to wherever I unzipped it and run mono KeePass.exe. Is there someway I can take all the files in that zip file and that command and bundle them up so I get a KeePass.app I can stick in my Applications folder that can more easily be run?
How to disable the annoying Option-Space key combination for non-breaking spaces?
This is very very annoying in Eclipse or the terminal as I often type the non-breaking space instead of a regular one.
I'm new to mac os, I have installed and configured nginx with php-fastcgi.
I need to run this command in a terminal and keep that terminal open to access php files from my browser.
php-cgi -b 127.0.0.1:9000 -q
Here's the plist that I wrote by looking up sources on the internet
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Debug</key>
<false/>
<key>EnvironmentVariables</key>
<dict>
<key>PHP_FCGI_CHILDREN</key>
<string>2</string>
<key>PHP_FCGI_MAX_REQUESTS</key>
<string>1000</string>
</dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>UserName</key>
<string>nikhil</string>
<key>Label</key>
<string>php-fastcgi</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/php-cgi</string>
<string>-b 127.0.0.1:9000</string>
<string>-q</string>
</array>
</dict>
</plist>
I'm loading it using launchctl load -w ~/Library/LaunchAgents/php-fastcgi.plist without any success, can anyone tell me how this can be done.
We're running a Terminal Server farm in a Windows 2003 Domain, and I found a problem with the Software Restrictions GPO settings that are being applied to our TS servers. Here are the details of our configuration and the problem:
All of our servers (Domain Controllers and Terminal Servers) are running Windows Server 2003 SP2 and both the domain and forest are at Windows 2003 level. Our TS servers are in an OU where we have specific GPO's linked and have inheritance blocked, so only the TS specific GPO's are applied to these TS servers. Our users are all remote and do not have workstations joined to our domain, so we don't use loopback policy processing. We take a "whitelist" approach to allowing users to run applications, so only applications that we approve and add as path or hash rules are able to run. We have the Security Level in Software Restrictions set to Disallowed and Enforcement is set to "All software files except libraries".
What I've found is that if I give a user a shortcut to an application, they're able to launch the application even if it's not in the Additional Rules list of "whitelisted" applications. If I give a user a copy of the main executable for the application and they attempt to launch it, they get the expected "this program has been restricted..." message. It appears that the Software Restrictions are indeed working, except for when the user launches an application using a shortcut as opposed to launching the application from the main executable itself, which seems to contradict the purpose of using Software Restrictions.
My questions are: Has anyone else seen this behavior? Can anyone else reproduce this behavior? Am I missing something in my understanding of Software Restrictions? Is it likely that I have something misconfigured in Software Restrictions?
EDIT
To clarify the problem a little bit:
No higher level GPO's are being enforced. Running gpresults shows that in fact, only the TS level GPO's are being applied and I can indeed see my Software Restictions being applied. No path wildcards are in use. I'm testing with an application that is at "C:\Program Files\Application\executable.exe" and the application executable is not in any path or hash rule. If the user launches the main application executable directly from the application's folder, the Software Restrictions are enforced. If I give the user a shortcut that points to the application executable at "C:\Program Files\Application\executable.exe" then they are able to launch the program.
EDIT
Also, LNK files are listed in the Designated File Types, so they should be treated as executable, which should mean that they are bound by the same Software Restrictions settings and rules.
I know of terminating a command with & and then moving it into the background by pressing Ctrl-Z and then bg [pid], and I also know of nohup.
But say you started a process that turned out to take much longer than one expected, is there a way of pulling, so to speak, this process from another terminal screen into the background so that even if I log off from the server the process would continue?
I have just installed pidgin from the source code that i downloaded from pidgin site, it compile correctly with using below commands :
./configure --disable-gtkspell ; make ; make install
but, when i try to start pidgin from terminal, occurres an error :?
pidgin: symbol lookup error: /usr/lib/libfarstream-0.1.so.0: undefined symbol: g_key_file_free
how can i solve this problem ?
Thanks for your attention :)
Every fetchmail tutorial I've read says putting your email account password clear-text in a config file is safe. However, I prefer security through layers (since, if my terminal is up and someone suspecting such email foolery slides over and simply types "grep -i pass ~/.*" then, oops, all my base are belong to them!).
Now, with msmtp (as opposed to sendmail) I can authenticate using the OSX keychain. Is there an email 'grabber' that lets me use Keychains (or at least, that lets me MD5 the password)?
I want to use highly secure encryption for zipped files via Linux/Ubuntu using a command line terminal, what is the best command line tool to get this job done?
zip -e -P PASSWORD file1 file2 file3 file4
Or
7za a file.7z *.txt -pSECRET
What encryption is used and how secure is it?
I support the IT infrastructure for a small retail business which is now required to undergo a PCI-DSS assessment. The payment service and terminal provider (Streamline) has asked that we use Trustwave to do the PCI-DSS certification.
The problem I face is that if I answer all questions and follow Trustwave's requirements to the letter, we will have to invest significantly in networking equipment to segment LANs and /or do internal vulnerability scanning, while at the same time Streamline assures me that the terminals we have (Verifone VX670-B and MagIC3 X-8) are secure, don't store any credit card information and are PCI-DSS compliant so by implication we don't need to take any action to ensure their network security.
I'm looking for any suggestions as to how we can most easily meet the networking requirements for PCI-DSS.
Some background on our current network setup:
single wired LAN, also with WiFi turned on (though if this creates any PCI-DSS complexities we can turn it off).
single Netgear ADSL router. This is the only firewall we have in place, and the firewall is out the box configuration (i.e. no DMZ, SNMP etc). Passwords have been changed though :-)
a few windows PCs and 2 windows based tills, none of which ever see any credit card information at all.
two swipe terminals. Until a few months ago (before we were told we had to be PCI-DSS certified) these terminals did auth/capture over the phone. Streamline suggested we moved to their IP Broadband service, which instead uses an SSL encrypted channel over the internet to do auth/capture, so we now use that service.
We don't do any ecommerce or receive payments over the internet. All transactions are either cardholder present, or MOTO with details given over phone and typed direct into terminal. We're based in the UK.
As I currently understand it we have three options in order to get PCI-DSS certification.
segment our network so the POS terminals are isolated from all PCs, and set up internal vulnerability scanning on that network.
don't segment the network, and have to do more internal scanning and have more onerous management of PCs than I think we need (for example, though the tills are Windows based, they are fully managed so I have no control over software update policies, anti virus etc). All PCs have anti virus (MSE) and windows updates automatically applied, but we don't have any centralised
go back to auth/capture over phone lines.
I can't imagine we are the first merchant to be in this situation. I'm looking for any recommendations a simple, cost effective way to be PCI-DSS compliant - either by doing 1 or 2 above with (hopefully) simple and inexpensive equipment/software, or any other ways if there's a better way to do this. Or... should we just go back to the digital stone age and do auth/capture over the phone, which means we don't need to do anything on our network to be PCI-DSS certified?
I have a Ubuntu Server.
From the terminal, how should I install JDK?
In this guide it says to use this command:
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
But on Suns website, it says JDK includes the JRE, so why the JRE in the line above?
Anybody know how to actually install Java?
Every guide and every forum shows different ways of doing it.
BTW: It is a VPS (virtual private server)
Thanks
I have a Ubuntu Server.
From the terminal, how should I install JDK?
In this guide it says to use this command:
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
But on Suns website, it says JDK includes the JRE, so why the JRE in the line above?
Anybody know how to actually install Java?
Every guide and every forum shows different ways of doing it.
BTW: It is a VPS (virtual private server)
Thanks
CentOS 6.3, running as root (Shush). Can you please tell me why I would get initialisation failures from the init scripts but the service command works a treat?
There was nothing in /var/log/messages or /var/log/libvirt/* all I have it the Terminal output:
/etc/init.d/libvirtd start Starting libvirtd daemon: libvirtd: initialization failed [FAILED]
I changed the libvirtd logging level to 1, the highest, but saw nothing in messages after another failure.
A software I need to install on my Ubuntu Hardy has a MAKE file which includes the command cp -n.
However, I get an error stating the -n is an invalid option.
The command will work on a Mac terminal but I need it to work on Ubuntu.
Does anyone know the equivalent command for Ubuntu?
Thanks.
OS:WinXP
Say I got some files in Chinese and some files in Korean. And in windows 'Region and Language Options', I set language for non-unicode program = Chinese. Is there any way that I can read some Korean text file in text editor easily without using Microsoft Word?
I need an environment that can support multiple unicode easily, I need to read Chinese, Japanese, Korean in text editor (Ultraeditor, notepad++) and terminal clients like SecureCRT. Please advise, thanks.
I am trying to create a login script, or bat file to delete the folder located in the following directory. I would like the whole folder deleted with all of its contents "Juniper Networks".
This is on a terminal server -
C:\Users(username)\AppData\Roaming\Juniper Networks
I can write a script for each username, but want a script to put in the startup folder that deleted the folder of the current user each time they login.
In bash, can I arrange for a function to be executed just before running a command?
There is $PROMPT_COMMAND, which is executed before showing a prompt, i.e., just after running a command.
Bash's $PROMPT_COMMAND is analogous to zsh's precmd function; so what I'm looking for is a bash equivalent to zsh's preexec.
Example applications: set your terminal title to the command being executed; automatically add time before every command.
I have a Macbook with Snow Leopard that I need to update, but I want to limit the speed so it doesn't wipe out my entire bandwidth.
Is there an application or setting change I can use to limit the speed to 20KBps?
I've already tried ipfw through the terminal with little success.
Thanks :-)