Software :: Find Out Where Is The HOSTNAME Defined
Mar 24, 2011Normally each machine should have a host name such as [URL] Where should this HOSTNAME to be define normally? In ' /etc/sysconfig/network'? Else where?
View 9 RepliesNormally each machine should have a host name such as [URL] Where should this HOSTNAME to be define normally? In ' /etc/sysconfig/network'? Else where?
View 9 Replies/usr/lib/jvm/java-6-sun-1.6.0.20/bin
Code:
Have the default entries no changes with them.
Code:
Code:
When I run mvn get error
Code:
Error: JAVA_HOME is not defined correctly.
We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/java I am not having any clue as what is this error? As to me JAVA_HOME seems to be defined.
How do I make/find a host name in Ubuntu (10.04) so someone outside my local network can connect via VNC (Remote Desktop). I went to System> Preferences> Remote Desktop, but then it says
"Your desktop is only reachable over the local network. Others can access your computer using the address 192.168.1.102 or geordie-desktop.local."
*Note, would this error be due to my ISP?
I am having problems with this computer program called fluent. I have a service request open with them and they need to know my computer's hostname. ANything I have tried tells me that my computers hostname and fqdn is localhost.localdomain. The people on the service request seem to not believe me. Is there anyway that the computer hostname is hidden? This is what I have tried:
[powder@localhost ~]$ hostname
localhost.localdomain
[powder@localhost ~]$ dnsdomainname
[code]....
I have a server running centos 5 located in a datacenter. I am setting it up as a web server but haven't bothered to move the domain from my current registrar to the server as there are a lot of things I need to get done before that. I am having a problem where I couldn't install httpd. So i tried some of the basic fixes i knew as far as yum clean all and checking that my /etc/resolv.conf was ok. I have the two nameservers I am using listed there but I have no hostname set because I simply dont have the domain transferred or anything like that yet. Is that the reason I am having these issues. I installed the system with a network install fine about a month ago so im not sure why I am having problems now.When i try to ping centos.org I get an unknown host www.centos.org error. I tried changing the resolv.conf to have localhost as the hostname and I still have the same issues. I havent made any changes to anything that would potentially cause this.
My etc/resolv.conf looks like this:
search
nameserver 12.34.567.8
nameserver 12.34.566.8
Also it seems the problem may have got worse after yum clean-all because before that when I would try 'yum install httpd' it would show the files and filesizes and ask to install, when I would select yes It would give an error showing it could not find the fastestmirror. Now it doesn't give any file size or files or an option to approve the install. It just responds with an error saying it could not retrieve mirrorlist
<urlopen error (-3, 'Temporary failure in name resolution' Error Cannot find a valid baseurl for repo: base
I have a network of 2 WinXP machines and one linux box. I have fiddled around with the settings as you do when learning. The network is working. The network neighbourhood on the WinXP machines recognise the linux box and vice versa, (the linux Places|Network recognises the 2 WinXP). I can Ping the linux box using its hostname from a WinXp. But I cannot do the reverse. I get an 'unknown host' response. I can ping the linux to itself using its hostname.
View 7 Replies View RelatedI'm having an issue on two Fedora Core 13 machines where I can ping others by hostname, but the hostname resolution fails whenever I use ssh/scp/vnc/etc. I can still do these things by IP address, just not by hostname. RHEL5.3 machines on the same network with the same configuration do not seem to have this problem.
Here's the not-so-quick-and-dirty description of the situation:
I know that there is a virtual router at 192.168.31.1 and another at 192.168.30.1. I also know that there is another network (let's call it 90.90.90.0) and on that network lies a number of resources. By nature of this configuration, any machine on 90.90.90.0 can be accessed by any 192.168.x.x, but not the other way around. Beyond that is out of my hands and currently out of my scope of knowledge.
I have a dnsmasq server on 90.90.90.10 that operates as a secondary nameserver, another machine out of my sphere of influence is the primary nameserver (90.90.90.31).
The secondary nameserver on 90.90.90.10 holds the hostnames of our development machines. The problem is that in some cases, while I can ping by hostname all day long, services such as ssh, scp, vncviewer, etc all fail to resolve the hostname. In other cases I can do all of these things.
Every machine has an equivalent resolv.conf:
As an example, I will show the output of a handful of my development machines:
I also included columbia as a one-way test -- even though it cannot access 30.x or 31.x, they can access it:
columbia -- physical machine, Red Hat Enterprise 5.3, IP 192.168.100.200
Okay, so here are the various outputs. Remember, nibbler, discovery, and atlantis can ALL:
- Ping by IP address
- Ping by hostname
- ssh, scp, vnc, etc by IP addess
Additionally, the SERVFAIL reply from 90.90.90.31 is expected since my dnsmasq server is on the secondary server.
Note that the only machine that can both ping and ssh/scp/etc by hostname is nibbler, which also happens to be the only one of the three running RHEL5.3 instead of FC13. Other virtual and physical machines running on the 192.168.31.0 and 192.168.30.0 networks (all running RHEL5.3) work just like nibbler does. So the problem seems to only affect machines running FC13.
Final note: selinux is disabled, iptables is disabled, ip6tables is disabled.
Other than that, discovery is a brand-spanking-new install straight off of the FC13 DVD. atlantis has been around longer, but its just a file server so I haven't done anything too crazy to it.
How do I set $HOSTNAME to dynamically update with the hostname that is specified for the ip in DNS?
View 3 Replies View RelatedI'm trying to ping another Ubuntu computer on my local network. If I try doing,ping <hostname>then I get the messageping: unknown host <hostname>however, if I doping <hostname>.localthen I get a response back. I was wondering how I can change it so that I can ping without having to append .localI've installed winbind and modified my /etc/nsswitch.conf file but this has made no difference.
View 2 Replies View RelatedI have an ubuntu 10.04 server with hostname "abc.domain.com". However, due to migration, we had to change to hostname to something else, "xyz".
I have done changing /etc/hosts and /etc/hostname and run /etc/init.d/hostname start.
Checking the hostname and all shows it is now using hostsname of xyz. However, email sending out is still using old hostname. We have some scripts that will send out alerts like failed rsync or hdd space full to my email account. But I see the sender is still "root@abc.domain.com".
How do change that to xyz? I am using postfix. I have edited main.cf and restarted postfix but no go.
the difference between $HOSTNAME and $(hostname)?
View 5 Replies View RelatedUpon a fresh install of Fedora 11 (and as a Fedora n00b), I noticed there are several aliases defined for me.
Code:
$ alias
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
[code]...
files had these aliases. So where are they?
My OS Ubuntu 9.04
I installed java via
Code:
Code:
Code:
Now logged out and logged in again in my system checked
Code:
and
Code:
After which I type on command prompt
Code: ant and get the following error
Code:
Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/jvm/java-6-sun/bin/bin/java
both the file ant.sh and jdk.sh are executable.
when we do set -o ignoreof it will disable the working of ctrl+D confirm which file will effected with this command . also i want to assign that whenever i will press space bar my gnome-terminal will open how can it is possible . whre keyboard shotcuts working are placed any designation file ?
View 1 Replies View RelatedI have Ubuntu 10.04 installed on an Armada laptop with a Teac CD-W24E installed. This drive can handle cd, cd-r and cd-rw, however the cd/dvd writer and hence Brasero detects it as read only. So no possibility to write!! Also, when I load a blank disk the cd drive icon disapears from the file browser page . The disk utility program detects the loaded empty disk, but can not format it (read only) With F3b I can write to the drive, but only once (takes up the total disc), no multiple sessions. So where does F3b gets its drive definition from? My question is, is this read only forced by the kernel, or is there a file that i can edit in order to make it read/write and usable by Brasero? I prefer Brasero, because with the latest update it now allows easely multisession while I can stil not achieve it with K3b
View 1 Replies View RelatedMy OS Ubuntu 9.04I installed java via
Code:
apt-get install sun-java6-jre
also I downloaded ant-1.8.1 binary
[code]....
I've recently installed Ubuntu 10.04 64bit Desktop onto my 640GB hard drive. I used Wubi to download and install it onto a 100GB drive partitioned out from my 640GB hard. After I reboot and log into Ubuntu, it says that Roof File is Not Defined. The only thing I can do is to force my computer to shut down as so i did. After that I went to the demo mode of Ubuntu 10.04 as I can't do anything on the Normal Mode.
View 1 Replies View Relatedhow is the file permission is defined?
for example when i use the command list -l testp01.txt i get the result of testp01.txt file permission -rw- r-- r-- root root etc however i wonder where are those information written?
is there any special file which contains all of these information?
i'm practicing in very basic c programs using the gcc compiler.I found that when i create two variables let's say
Code:
int a,b and Code: a=15;
b=3;
a=b;
b--;
then a equals 2.I thought that this isn't normal in C isn't it?I haven't had the time to read the gcc documentation yet...so i think it has something to do with my compiler's default settings.I use the
Code: gcc filename.c -o filename command to compile
Are all variables defined like pointers?
ive been recently experiencing some problems with my ubuntu studio 9.10 setup, with the filesystem failing to mount. after deciding to try a new hard drive and cable, as well as clean install ubuntu, fedora and now mint, im still finding no filesystem.im using a live cd created for mint (like it ). having clicked install to hard drive, all is well until the partition manager, where all the boxes are greyed out. clicking forward produces a box saying "no root filesystem defined". i see there are a few on here from a few years back and having read through them, cannot find a fix for myself.
View 9 Replies View RelatedUsing Ubuntu 10.10, 64-bit, installing after LiveCD testing.sda3 can't really be erased due to its contents, something I can't exactly get back or transfer.
View 2 Replies View Relatedi installed an old hdd that i had laying around to my new desktop PC SO THAT I COULD USE IT SPECIFICALLY FOR UBUNTU. I FORMATTED IT THEN WENT TO RUN THE UBUNTU SET UP DISK.BUT I GOT THE MESSAGE "NO ROOT SYSTEM DEFINED" WHAT DO I NEED D
View 3 Replies View Relatedi m getting following error which executing a file : Code:version glibc_2.0 not defined in file libc.so.6 with link time referenceThe file is a binary file so cant be edited, its being called through a php file in which changes are possibl
View 14 Replies View RelatedHo do I modify the configuration /etc/httpd/conf.d/turbopanel.conf to remove the extra NameVirtualHost IPaddress:80? When I restart apache I'm getting the following error
[root@ip-208-109-184-220 ~]# apachectl restart
[Wed Feb 10 10:56:38 2010] [warn] NameVirtualHost 208.109.186.16:80 has no Virtu alHosts
[Wed Feb 10 10:56:38 2010] [warn] NameVirtualHost 208.109.186.16:80 has no Virtu alHosts
[Wed Feb 10 10:56:38 2010] [warn] NameVirtualHost 208.109.186.16:80 has no Virtu alHosts
[code]....
I converted my programming project over to autotools, which gives me a config.h file with all the cool definitions, like these ones:
Code:
/* Location of data files. */
#define DATADIR "/usr/local/share"
/* Define to the full name of this package. */
#define PACKAGE_NAME "lusus"
And naturally I think this is cool because then I can hardcore these into the binary. To my dismay, however, I discovered that the pre-processor does not do the text-substitution if the macro name is inside another quoted string.
Code:
// Prints out "/usr/local/share/lusus"
std::cout << DATADIR << "/" << PACKAGE_NAME << "
";
[code]....
This seems lame, because then this doesn't work:
Code:
CL_Image leaves_corner_tl(gc, "DATADIR/PACKAGE_NAME/img/leaves_corner_tl.png");
So, am I literally going to have to strcat DATADIR/PACKAGE with the other text every time I want to prefix DATADIR/PACKAGE_NAME onto another string?
I have a Red Hat 4.9 server running python 2.3.4. However I need some of the new functions so I downloaded and installed Python 2.7.1. I wanted to use the "set" function which was not in the earlier version.
/bin/python is 2.3.4
/usr/local/bin/python is 2.7.1
I have a script running 2.3.4 which calls the 2.7.1 script however it fails because it cannot find the "set" command here is an example
Script1
#!/bin/python
import Mytest
[code]....
The error message is :
NameError: global name 'set' is not defined
I've been reviewing some source code recently which contains many conditional compilation statements, and I found it hard to understand the code not knowing whether some macro is defined or not. Is there any way to test whether a macro is defined?
View 2 Replies View RelatedI found an interesting screencast online about how to make gtk Pyton apps. The thing is, though, the guy was using the interactive shell. I've been trying to get his code into a script, and have been having troubles.
Here's what I got:
Code:
It spits out the error "NameError: global name 'browser' is not defined"
I know I'm doing something wrong with how I'm telling it where to find "browser" and "text", but I can't figure out how to point it to the right place.
OS: OpenSUSE 11.2
Application: Recital Developer (database)
I'm running into this error when I startup the program."GLIBC_2.0 not defined in file libc.so.6 with link time reference"
Output of my #alias command looks just as normal as one would expect:
Code:
alias +='pushd .'
alias -='popd'
alias ..='cd ..'
alias ...='cd ../..' .....
And still whenever I (as root) type in bash
#ll
which would be short for
#ls- l
i get output of the command
#ls -al
So where aliases for root overwritten? Usually I would expect .bashrc in the /root directory. Or at least .alias file. But there none of those in my current /root. So, my question is where root user gets it's aliases from? This concerns only root user. Normal user has .bashrc and I made up my own aliases in .alias and that's works jut fine. And yes I could make .bashrc file in the /root and .aliases where I would define my own things.