Software :: Grep Current Vnc Server Name Setting?

May 23, 2011

I vnc to a server and the vnc server name will be xxx1:0. Is there a way to grep my current vnc server name setting? Plan to write a script but need to know the current vnc server name.

View 3 Replies


ADVERTISEMENT

Fedora :: Bash Function Alias To Recursively Grep Current Directory?

Feb 14, 2011

This should be a simple thing to accomplish, but I can seem to figure it out. Essentially, I want to have a bash alias or function that will let me recursively grep the current directory. A while back I added this to my .bashrc:

Code:

alias rg="grep -r --exclude=*/.svn/* --exclude=*.swp"

This works fine, (and also ignores any svn and vim swp files), and I can call it like:

Code:

rg foo *

However, 99.999% of the time, I am only interested in searching in the current directory, so the "*" is a bit redundant. Also, I would say 5-10% of the time, I am typing faster than thinking and forget the "*", so grep just sits there trying to read from stdin. It's a pretty minor thing, but ideally I'd like to be able to just type:

Code:

rg foo

I've tried creating a function to handle this:

Code:

function rg(){
grep -r --exclude=*/.svn/* --exclude=*.swp $1 *
}

but it behaves exactly the same as the alias above. escaping the "*" with 's doesn't work, and neither does trying `pwd` (or even a hard-coded path) in its place.

View 2 Replies View Related

General :: Setting Multiple Switches In Grep - Bash Script ?

Feb 21, 2010

I'm working on setting multiple switches in grep.

Here's an example of how to run my script:

would (should) produce the results of this:

Right now i have some code to catch the inputs, using a variable "z":

Code:

Then:

Code:

I'm almost positive that the problem is in the bolded line above (for one thing, it always leaves off the initial "-e"). So basically i want a string that gives me "-e input" and concatenates as many times as necessary.

View 5 Replies View Related

General :: Setting Current Directory In Init.d Boot Script

Jul 28, 2011

I have a jar file which can be executed by going to the directory and then running 'java -jar start.jar'. Start.jar is the Solr example server.I would like to create a boot script in init.d for this, but have little experience with this.Is there a way to specify the 'current' directory in a boot script?

View 1 Replies View Related

Slackware :: [slackware64-current] Cfdisk Setting Partition Type?

Jan 28, 2011

I've just synchronized my slackware64-current mirror, iso burned, booting, starting cfdisk, creating a partition, and I'm not able to set the partition type to `Linux Raid Autodetect` (FD) or any other, that needs 2 characters to be entered in cfdisk -> Type.Cfdisk alows only one character to be entered ("F" or any other).

View 3 Replies View Related

Software :: Failed To Install Oracle - Command To View Current DISPLAY Environment Variable Setting

Jun 28, 2010

How to install oracle? I have been tried many times but seems can't resolve the DISPLAY issues.

All installer requirements met.

Use the following command to view the current DISPLAY environment variable setting:

View 2 Replies View Related

Programming :: Input File - Grep Within Grep

Nov 22, 2010

I need to kind of grep within grep. My input file would be something like:

[Code]....

and I need to find the first occurrence of hello before MY PATTERN (hello 9008 in this case), so the output should be:

[Code]....

View 4 Replies View Related

General :: Grep Contents Of File On Remote Server?

Sep 24, 2010

I am attempting to grep the contents of a key file I have SCP'd to a remote server. I am able to cat it:

Code:
[bluethundr@LBSD2:~]$:ssh root@sum1 cat /root/id_rsa.pub
root@lcent01.summitnjhome.com's password:

[code]...

View 5 Replies View Related

Debian Configuration :: Keeping The Dns Server Running With Current Server Information?

Jun 26, 2010

I'm running the current release of Debian with the 2.6.26-2 kernel. This is an upgrade from an older (2.4 kernel) series redhat release. One of the things I had working in the older system was a dns server with accompanying monthly update of the root hints file. I tried working through a dns how-to to set this up again, but it seems much has moved around since I last played with this. All of the files listed in the how-to are not where it says they should be. I am looking for a better reference on keeping the dns server running with current server information.

View 1 Replies View Related

Ubuntu Servers :: Can Server Alongside Current Windows Server Without Bring Everything To Screeching Halt?

Dec 8, 2010

In trying to help our office modernize its IT infrastructure, one of the key components is maintaing our server. We have around 50-60 people who need access to a local server primarily for secure general file storage. These employees are geographically dispersed. We currently use some(?) version of Windows Server which is maintained and updated by a IT company we keep on retainer. After doing some very basic research on Ubuntu Server, I would like to try and incorporate a pilot program utilizing the Ubuntu Server software.I was successful in installing Ubuntu Server on an unused PC that I put a clean hard drive in. I have been following the direction of the Official Ubuntu Server manual to assist in the server setup, and this has progressed my cause up to a point.

Can I run an Ubuntu Server alongside our current Windows server without bring everything to a screeching halt? Additionally, I am the only mac computer in an office filled with varying version of windows. I have begun to configure samba but need some direction from the community as to updating the workgroup so my mac can connect to the Ubuntu Server. What do I need to put in the workgroup part of the /etc/samba/smb.conf directory?I have no doubt there will be face palms by the community after reading this thread, but I am trying my best to teach myself the Ubuntu way.

View 2 Replies View Related

Server :: How To Get Info About Current Timezone

Jan 13, 2010

I was wondering if there is a way of knowing what is the current set timezone for a linux server. I know that "date +%Z" gives the 3 letter abbreviation of the timezone, but then CST can be interpreted as Central Standard Time (US) and as China Standard Time. I'm looking for a way I could tell what is the real timezone, e.g. "Asia/Jerusalem", "Europe/London", etc. I know that I can set the timezone by symlinking /usr/share/zoneinfo/<Timezone Name> to /etc/localtime, but when I freshly install CentOS and choose my timezone, /etc/localtime isn't a symlink at all so I can't use this info...

View 3 Replies View Related

CentOS 5 :: How To Mirror Current Server

Jun 26, 2009

I have a server, running Centos 5 and it is working fine. Now I want to have another server (server2), mirror of my current server (server 1) if any time my (sever 1) stopped responding, (server 2) should start working until I fix server 1.

View 1 Replies View Related

CentOS 5 Server :: Setting Up Tftp-server - Cisco Switch Configurations Can Be Sent

Feb 15, 2011

I am trying to setup CentOS server 5 with tftp where the Cisco switch configs can be sent. I have the following:

[code]...

View 14 Replies View Related

Ubuntu Installation :: Setting Up MySql Server (which Is No Server) For Local Use Only

Apr 20, 2010

I like to run a mySql database server on a Ubuntu (which is no server) for local use only. Is there some instruction how to do this? I downloaded several DBMS but they all seem to assume a running server.

View 1 Replies View Related

Server :: Stop Setting Up An Open Relay Spam Server?

Jul 25, 2011

Because our visitors/customers are short term, and may be configured incorrectly with their own mail servers we automagically redirect all port 25 traffic going to internal IP's to our own mail servers while on our network.(postfix on centos 5.6)While I have taken some measures to prevent it from spamming, I would greatly appreciate some assistance.I will be putting in clamav, but I haven't configured it yet with the mail.I am using postfix, but can also put on procmail or even spam assassin

View 6 Replies View Related

Server :: Setting Up Sendmail On A Blank RHEL 5.5 Server Setup

Jun 21, 2010

Having some issues setting up sendmail on a (basically) blank RHEL 5.5 server setup. My ultimate goal is to be able to automagically send logs / errors / notifications to ourselves from the server.

Our basic setup is a Win 2003 domain with exchange running on mail.domain.com.au.

I've edited the '/etc/mail/sendmail.mc' and added the :

Code:

line to it.

Also added the domain (domain.com.au) to the '/etc/mail/local-host-names' files

Also edited submit.mc and added

Code:

When I try and send a mail from root or a test user to one of the domain accounts, it seems to go fine, i.e no errors are reported but it never gets delivered.

From the mail logs:

Code:

So it seems to be sent to the queue no problems and when I check the queue :

Code:

Total requests: 0

Not nothing ever gets received. Am I missing something? I have read and read and read but dont seem to be getting any furthur.

So in the end this server doesn't need to do anything except be able to send mail from root to an external mail address.

View 1 Replies View Related

CentOS 5 Server :: Setting Up CUPS (command Line) On New Server?

Mar 29, 2009

I was using Red Hat 7.3 forever and decided it was time for a change. I went to Fedora 10 but it was really buggy. CentOS 5.2 is VERY stable.Here is my problem.The server is command line only -- I tend to hate GUI"S.I setup Samba no problem disabling the ports needed through the firewall and that was straightforward.CUPS is a nightmare for me since CentOS locks down the cupsd.conf and then the firewall does its thing. I allowed port 631 through the firewall but then got lost on the cupsd.conf. It's been too long and the old redhat one won't work with CentOS (not surprising since it's a VERY old system) straight-forward CUPS tutorial for a command line interface. I just need it to be:

a) do this

b) do that

View 4 Replies View Related

General :: Retrieve The Current Time On A Server?

Feb 18, 2011

I want to know the time on a server accurate to the millisecond.there's this way:

local $ ssh user@servername
Welcome to server!
server $ date
Fri Feb 18 11:27:50 EST 2011

But I need more accuracy. Is there a command that will be more precise?

View 2 Replies View Related

General :: Copying Files From Current To New Server?

Oct 9, 2009

I'm trying to copy files from my current server to a new server. Both servers have SSH installed. These are the commands I'm using. However I'm getting connection refused. I did a google search and found out that maybe the reason of this error could be due to the fact that my current server doesn't have SSH. However I use SSH often on my current server so I can say that it has SSH for sure.

OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to IP_OF_CURSERVER [IP_OF_CURSERVER] port 22.
debug1: connect to address IP_OF_CURSERVER port 22: Connection refused
ssh: connect to host IP_OF_CURSERVER port 22: Connection refused

View 4 Replies View Related

Server :: Setting Up Sendmail To Relay To Exchange Server

Oct 27, 2010

Have read a whole bunch of threads from how and troubleshooting but still having problems.Was thrown a box configured by someone who resigned today. Need to get mail from the box outbound via SMTP relay off our exchange server.

View 4 Replies View Related

Ubuntu :: TightVNC - D Key Minimizes Current Window On Server

Nov 11, 2010

When accessing the server from any client, the 'd' key minimizes the current window on the server (not the VNC client itself). Every other key seems to work fine and I can use the key combo <ALT>-d to issue a 'd', but that is less than convenient. I saw this post [URL] which said to use gconf-editor to set a keyboard layout, but that didn't fix the problem.

Server Environment
Ubuntu 10.10 (upgraded from 10.04)
32-bit
tightvnc server

Client 1
Windows 7
64-bit
tightvncviewer

Client 2
Windows 7
64-bit
realvncviewer

Client 3
Ubuntu 10.10
32-bit
Vinagre

Client 4
Ubuntu 10.10
32-bit
tsclient (uses tightvncviewer)

View 9 Replies View Related

Ubuntu Servers :: Get The Newer Version 1.4.5 Using Apt-get On Current Server?

Feb 9, 2011

I have Ubuntu Server 10.04 Lucid (LTS) installed on my server (EC2 instance). I'd like to install Memcached on it. When I type "sudo apt-get install memcached" I get version 1.4.2-1ubuntu3 installed.

I know there's a newer version 1.4.5 and looking at [URL]..I found it's available in the newer version of Ubuntu (Maverick). Question: is it possible to get the newer version 1.4.5 using apt-get on my current server?

View 1 Replies View Related

Server :: Upgrading Kernel 2.6.18-128.7.1.el5xen To Current Non Xen Release

Feb 18, 2011

I currently have a server that is running on the Linux kernel 2.6.18-128.7.1.el5xen and I was wondering if it was possible to upgrade it to a new official Red Hat non-xen kernel(currently 2.6.37.1).What is unique about this kernel is that it is NOT a virtual system kernel but an older XEN kernel with proprietary material removed.If it is possible I was wondering about any repercussions that may occur as a result of said update. This would include, any issues with potential data/driver losses as well as recovery procedures that may be used if something would happen to it during the upgrade.

View 2 Replies View Related

Red Hat / Fedora :: Change The Current Directory To Server And Then Create A Repo?

Feb 6, 2011

I was installing yum from the server folder. first i copied the server folder in a folder which was at root then i change the current directory to server and then create a repo by using following command

Server]# rpm ivh createrepo then tab to get the correct name
then ]# createrepo .
]#cd /etc/yum.repos.d/
]# cp -apr rhel_debug_info.repo yum.repo
]# vi yum.repo

[Code]...

how can i completely install the yum so that i can install my necessary packages

View 1 Replies View Related

Server :: Rename The Hostname Without Affecting Current Time In Nagios?

Jan 27, 2011

How to change the hostname without affecting current status ie i dont need to change the already having time, just rename the hostname.. what is the command to refresh

View 2 Replies View Related

CentOS 5 :: Setup Software RAID On A Current Production Server?

Mar 12, 2009

Is it possible to setup software RAID on a current production server.

If so how would I go about doing so?

View 2 Replies View Related

Debian :: Setting Up VPN Server On Windows Server

Apr 7, 2011

I need to grant windows client an access to fileserver. The easiest way to do it is how? Setting up VPN server on Windows server, what rules are going into iptables in linux machine then. Or setting up VPN server on Linux machine (which is the best option) and how the user gets to fileserver?

View 1 Replies View Related

Server :: Setting Up Server With Shell Accounts

Mar 31, 2011

How do i configure the system and user accounts so that the users can't access each others directories, delete system files, install packages etc.I know i am probably going to need tools like chmod mkdir useradd.But i can't figure out how.If you know a good tutorial, please point me in that direction.

View 3 Replies View Related

Server :: Setting Up Local Server Using Localhost?

Mar 18, 2010

I have a need to set up the program TNG - The Next Generation of Genealogy Sitebuilding and run it on a local server (not on the Internet) for the purpose of learning the system prior to developing it on an actual website. I was told to use http://localhost on my browser (Mozilla Firefox). I get a message saying "That Works!", but it goes on to say that the contents of the web server have not yet been entered. The instructions for the downloaded files (which I unzipped) said to copy to the web root folder (the folder where the web server is located ?, I guess). But I don't know where it is or how to go about it. Can someone help? I already have MySQL and PHP, which are required to run this program, and I also have Apache installed on my Kubuntu 9.10 system.

View 1 Replies View Related

Server :: Setting Up SMTP Server For The First Time?

Apr 19, 2010

I have been having trouble figuring this out. I have a machine running CentOS 5 and I want to setup an SMTP server behind a router on a home broadband connection. I've read many guides but nothing too specific as to what I need to do. I want to use either sendmail or postfix, but I don't know if I should purchase an SMTP relay. If anyone could point me in the right direction it would be great. I also have bought a domain name that I want to use, but I just cant put all these pieces together as of right now.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved