[SOLVED] Hostname lost
Hello all,
I tried all what I could, impossible to get my hostname back !
I made an upgrade on a machine and lost the hostname !! This computer should be named crystal, but now I have :
$ uname -n
(none)
$ echo $HOSTNAME
Here is /etc/hosts :
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 crystal.localdomain crystal
::1 crystal.localdomain crystal
# End of file
I tried installing everything I could like net-tools, coreutils, ypbind but nothing
I don't have the `hostname` command.
I've also put crystal in /etc/hostname.
Don't now what to do now or where to search.... Any help please ?
Last edited by Kooothor (2011-06-16 09:31:36)
Thanks the problem is solved \o/
Dunno if it was the new /etc/hosts format or the -Syu or both...
Thanks guys
Similar Messages
-
[SOLVED] hostname functionality lost
After a recent update I see that most of hostname's functionality is lost. Unfortunately I use it in many scripts etc. What is the "correct" alternative now? I installed yp-tools but it does not include any hostname binary (or variant thereof).
I obviously can compile net-tools (and/or it's components) myself but is there a formal package (or AUR) with the original functionality?
Last edited by lefallen (2011-06-20 00:46:56)karol wrote:I think keeping net-tools for now would be the best choice.
I think you misunderstand. The issue is caused by the OFFICIAL ArchLinux changes within the net-tools package that provides hostname. Specifically, this change I believe:
http://projects.archlinux.org/svntogit/ … e7496e09cb (1.60-15).
EDIT: Ah. NVM, it appears 1.60-18 rectified this: http://projects.archlinux.org/svntogit/ … 478efd36ce
Just another pacman -Suy required
Last edited by lefallen (2011-06-20 00:46:00) -
SOLVED - T500 - Lost sound volume after a very recent update
I keep my T500 current with new drivers, however in a recent update (I do not know which) I lost almost all the volume on my speakers and headphone.
Has anyone experienced this?
Has anyone found a solution to this problem?
Thanks,
Persio.
Solved!
Go to Solution.ONeill, thanks for your response and interest in helping.
I am running Win 7 Ultimate x64.
I have just finished doing a series of tests with NO success.
All my drivers are current with the Lenovo Support Site drivers' versions.
I have unistalled the Conexant driver using the Device Driver screen and let the system reinstall (PnP).
I have unistalled the Hot Key Drivers, tested without them installed, and reinstalled them.
I have reinstalled the Conexant driver fresh from the Lenovo Support Site.
The problem I am having is the following:
In a silent room, using the SmartAudio aplet from Control Panel, I can barely hear the sounds with the volume set at 100%. This is true for the internal speakers and for a headphone plugged into the system.
This indicates to me that the it is a volume issue.
I would appreciate your comments and suggestions.
Persio. -
[solved] hostname command not found
Some months ago i've got this problem:
startx: line 127 hostname command not found
that i solved with
pacman -S net-tools
Today the problem is here again O.o
I've reinstalled net-tools and coreutils but nothing
Last edited by polslinux (2011-08-26 11:31:26)http://mailman.archlinux.org/pipermail/ … 21397.html
Edit: inetutils from [testing] http://www.archlinux.org/packages/testi … inetutils/ have the hostname binary and it was removed from the [testing] net-tools http://www.archlinux.org/packages/testi … net-tools/
Packages in [core] still work the old way: net-tools provides hostname.
Last edited by karol (2011-08-26 10:29:33) -
[SOLVED] Hostname not showing in DHCP lease list
This is a brand new installation using the new systemd base.
Installed openbox as window manager and Network Manager.
What did I miss that the hostname of this computer (opus) is not showing up in the DHCP Leases list?
When I connect to the network using Network Manger(DHCP), hostname is not sent to the DHCP server (DNSmasq). It shows up as a "*":
DHCP leases
Hostname IP-address MAC-address Lease expires
* 192.168.10.100 XX:XX:XX:XX:XX:XX Nov 28th, 19:34
* 192.168.10.59 XX:XX:XX:XX:XX:XX Nov 28th, 19:23
alarmpi 192.168.10.69 XX:XX:XX:XX:XX:XX Nov 28th, 16:56
RM696 192.168.10.97 XX:XX:XX:XX:XX:XX Nov 28th, 18:23
(I blanked out the MAC-addresses.)
The first entry is connecting through wireless. The second is wired.
At the command line:
hostname
opus
hostname -f
localhost.localdomain
/etc/hosts:
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost opus
::1 localhost.localdomain localhost opus
# End of file
What file do I need to change and how?
Updated:
1) I created a /etc/dhclient.conf file and added:
send host-name "opus";
request subnet-mask, broadcast-address, time-offset, routers,
domain-search, domain-name, domain-name-servers, host-name;
and rebooted.
This had no effect.
2) Just for kicks, I uninstalled Network Manager and installed Wicd.
This DID send the hostname and it displayed on the DHCP Leases List. But it also had the effect of turning off the WiFi radio.
I did try to turn it back on: Went to the BIOS, made sure it was on (it was). Read some posts about power savings and what to do (tried them, didn't work).
So I uninstalled Wicd, re-installed Network Manager and I am back to where I was.
Last edited by dastagg (2012-11-29 11:15:11)Sorry, forgot to add this:
https://bbs.archlinux.org/viewtopic.php?id=152376
Follow the instructions on the bottom. -
How to solve RDP lost focus issue when RDP window minimized
Hello,
I have an application running on Windows 2012 server where users connect to the server via RDP client. Users run on Windows 7/XP. The application is a screen recording software which records all the activity.
Users connect to Windows Server 2012 by giving the IP Address in RDP. The user opens the applications & starts his work and recording is also started.
At an instant, the user minimized the RDP window on his Laptop/Desktop, now the screen-recording stops. As soon as the RDP window is maximized, the recording starts again.
I learned from Technet that there is a workaround by tweaking the registry on user laptop/desktop. However the problem here is that I have no control on user laptops/desktops as the users are spread in the whole world & does not belong only to my organization.
Hence is there any other way by which I can solve the issue without any registry tweak. Is there a way by which I can enforce users to use the RDP client of the Windows 2012 Server on which I have control and I can change the settings on the same.
Will Windows 2012 Server RDS services resolve the issue without any change at the user end.
This is a P1 issue for me. Hence expecting support from the community
RegardsHi,
Thank you for posting in Windows Server Forum.
Initially suggest you to upgrade the RDP client version to RDP 8.1 for better performance.
From the description it seems you are using RDP to connect to the server. Can you please clarify again, if it’s RemoteApp application or connecting the application after RDPing to the server?
If it’s RemoteApp application and facing problem then there is one Hotfix available to try:
A RemoteApp application main window takes the focus after the applications windows are maximized in Windows
http://support.microsoft.com/kb/2862019
For RDP, you can try the following option to configure. You can configure “Keep-alive connection interval” under group policy and check.
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Services Session Host\Connections\
Configure Keep-alive connection interval: Enable and specify value
In addition to this also verify the registry setting must be set as per following
HKEY_Local_Machine \ SOFTWARE \ Policies \ Microsoft \ Windows NT \ Terminal Services
KeepAliveEnable REG_DWORD
0x00000001 (1)
KeepAliveInterval REG_DWORD
0x00000001 (1)
Hope it helps!
Thanks.
Dharmesh Solanki
TechNet Community Support -
[SOLVED] I lost all file-program associations!
it's all gone, for all users, in fact, some were preserved (have only seen it in the folder) but stay read only (directories are associated with thunar and I can do nothing about it). maybe it has to do with uninstalling perl-file-mimeinfo, although I installed it for like 2 hours and then uninstalled it, or could be some problem with having a rather outdated nautilus (I have a custom-built nautilus with tracker support that I haven't bethered to update), although I do not think it's that because the same happens from thunar :\
I'll keep trying to get them back, if you have any idea please enlight me, now I'm off to update nautilus.
EDIT: Looks like shared-mime-info got corrupted somehow... I reinstalled it and now everything is back.
Last edited by Phrodo_00 (2007-08-10 02:20:24)read reply #3 about the ORDER of uninstalling & installing
If you uninstall and reinstall to fix, run the cleaner after UN and before RE
Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 -
[SOLVED] Hostname always get set to localhost despite setting in...
Hi,
For some reason my hostname always get set to "localhost", but I want to have Arch for hostname.
My configuration:
[christer@localhost ~]$ cat /etc/hostname
#Hostname
Arch
[christer@localhost ~]$
[christer@localhost ~]$ cat /etc/hosts
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 Arch.localhost.localdomain localhost.localdomain localhost Arch
::1 Arch.localhost.localdomain localhost.localdomain localhost Arch
192.168.1.101 torr
192.168.1.111 bubba
192.168.1.102 fuel
# End of file
[christer@localhost ~]$
I use static IP assigned with netcfg.
[christer@localhost ~]$ cat /etc/network.d/eth0-static
CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth0'
IP='static'
ADDR='192.168.1.100'
ROUTES=('192.168.0.0/24 via 192.168.1.1')
GATEWAY='192.168.1.1'
DNS=('192.168.1.1')
## For IPv6 autoconfiguration
IP6=stateless
## For IPv6 static address configuration
#IP6='static'
#ADDR6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#ROUTES6=('abcd::1234')
#GATEWAY6='1234:0:123::abcd'
[christer@localhost ~]$
[christer@localhost ~]$
In rc.conf I have.
DAEMONS=(hwclock syslog-ng net-profiles netfs crond dbus cupsd mpd mpdscribble autofs iptables munin-node)
Is it something in my /etc/hosts config thar missing so it defaults to localhost?
Any ide whay I do not ger "Arch" as hostname?
Best regards,
/Christer
Last edited by agkbill (2012-10-20 08:59:47)The problem was the empty lines and comment in /etc/hostname.
I tried it back and forth and the problem was reproducible by adding the comment and empty lines in /etc/hostname again.
Thank you for helping me with this!
All the best,
Christer
PS:
In the wiki "Editing Configuring Network" I added:
/etc/hostname should not contain comments or empty lines.
Last edited by agkbill (2012-10-20 10:51:07) -
[SOLVED] systemd + lost networking
After the last update I seem to have lost my network. Systemd complains it cannot find the network.service file.
The systemd package only contains network.target and not network.service
How can i manually start the network ( simple eth0 + dhcp).
And how can i fix my system?
Last edited by GogglesGuy (2012-07-16 14:52:17)65kid wrote:network.service has been removed from systemd-arch-units, have a look at:
https://wiki.archlinux.org/index.php/Systemd#Network
Ah I see. Thanks. -
[SOLVED] KMix lost sliders
After last KDE upgrade I lost all those sliders in KMix left with only one called Internal Audio Analog Stereo (see screenshot)
Anybody knows what's going on and how to restore previous look? Thanks.
Last edited by benke (2010-12-05 14:21:09)toad wrote:kmix has gone the way of the pulse... Check the KDE change log for 4.5.4-1
Do you have a link with detailed informations? -
[SOLVED] Hostname appearing in titlebar
Hi,
I'm using ArchLinux with Openbox as a WM and LXDE as a DE.
A while ago, I don't really know if it's after an update or what but in my windows' titlebar after the application title there is "(localhost)" written.
Here's what it looks like :
As I really don't need this, I'd like to remove it but after having searched what I could about Openbox and LXDE I haven't found anything.
Thank you for your help.
Last edited by tuvistavie (2012-09-30 17:51:11)Um, rc.conf is not what it used to be... That's the legacy way of setting a hostname. Basically, the new rc.conf has just the DAEMONS line in there. Everything else has been outsourced.
See: https://wiki.archlinux.org/index.php/Rc.conf
Last edited by DSpider (2012-09-30 18:27:14) -
[solved]hostname / servername advice please
hi, i have a samba share on my network, but the ip's are dhcp assigned. is there a way of using my machines host names to access the shares instead of the changing ip's? I read about /etc/hosts, but this appears to oonly work for static ip's to lookup hostnames.
thanks
Last edited by ninjaprawn (2012-03-23 22:01:10)cool, just playing with it now ta
-
[SOLVED] Hostname is "new-host" in router dhcp table
I've just installed Arch Linux on a machine for the first time since the systemd changeover. Now, when I look at my router's DHCP connections, the computer hostname is listed as "new-host". However, I've set the correct hostname in /etc/hostname and run the hostnamectl command, and when I issue the command 'hostname' it tells me that my hostname is correct (i.e. something else than "new-host").
So, where is my router getting this "new-host" hostname from? Is there another place where I should be configuring the hostname besides these?
Last edited by nordog (2013-01-18 22:13:53)Saran: Thanks for the suggestion. I tried rebooting the router but it didn't do the trick.
Tharugrim:
tharugrim wrote:Try this: https://wiki.archlinux.org/index.php/Ne … e_problems
Thanks for pointing this out to me. I added
dhcp=dhcpcd
to /etc/NetworkManager/NetworkManager.conf and that took care of the issue.
Best regards -
[SOLVED] Hostname: Thisfiletakesprecedenceoveretchostswhere
Some days ago I converted Arch to pure Systemd, which is a great system imho.
One lingering problem is that my /etc/hostname file (which has the same hostname as /etc/hosts is not effective?
I get the following:
handy ~ $ hostname
Thisfiletakesprecedenceoveretchostswhere
I have searched & can't find any information on this.
In /etc/hostname I have tried using each of the following to no avail:
righpc
"rightpc"
HOSTNAME="rightpc"
HOSTNAME=rightpc
Any ideas?
Last edited by handy (2012-08-18 09:52:04)Thanks for your reply.
/etc/hostname :
handy ~ $ hostname
Thisfiletakesprecedenceoveretchostswhere
handy ~ $ cat /etc/hostname
# This file takes precedence over /etc/hosts where
# the hostname must also be included:
rightpc
/etc/hosts :
# /etc/hosts: static lookup table for host names
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost rightpc
#192.168.1.2 rightpc.localdomain rightpc ## the HP server
#192.168.1.3 leftpc.localdomain leftpc ## the iMac client
# End of file -
SOLVED: Hostname not on domain
Hey, I've set up the following, but cannot get my hostname to get on the network. If I use the hostname command it comes up as set, but if I try to ping the hostname on a different network machine it does not resolve. I've got the following:
rc.conf:
HOSTNAME="ma"
/etc/resolv.conf:
domain XXXXXX.com
search lol.XXXXXX.com private.XXXXXX.com XXXXXX.com
nameserver 172.20.2.10
/etc/hosts
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost myhost ma ma.lol.XXXXXX.com
Last edited by beatbreaker (2011-11-03 04:50:35)beatbreaker wrote:If you're referring to DNS (like this? https://wiki.archlinux.org/index.php/DNS_with_bind ?) then I don't see how that will work.
Yes, that is correct.
beatbreaker wrote:My network already has a DNS, it works for every other machine on this network apart from the arch machine.
Are you already running bind internally for lol.XXXXXX.com private.XXXXXX.com and/or XXXXXX.com?
What are the other machines? If they are Windows or Mac's, then they may be using NetBIOS / WINS / mDNS (I'm not fully up to speed on the latest Windows/Apple name resolution systems) to resolve each other.
All you've done at the moment is tell your computer what it is called; now you have to find a way to "announce" (or otherwise inform) the rest of the world (whether that is the whole internet, or just your LAN) what it is called. The normal (heterogeneous) way to do this is using DNS.
Last edited by fukawi2 (2011-10-10 07:13:13)
Maybe you are looking for
-
Downgrading from windows 8.1 single language to windows 8
Hi, i want to downgrade my laptop pavilion g6 2231tx from windows 8.1 single language to windows 8 which came in default with my laptop. My question: since my lappy came pre installed with the windows 8 (64bit) and then got upgraded. So if i refresh
-
How to set google search language in latest Safari
There are various posts on how to set the default Google search language for the new unified search bar within Safari. But, those did not help me at all. I'm still having french as default language for Google in Safari. I set my language to english (
-
Hi all, we have recently installed PI 7.1 SPS 6. But now we are having issues with XSL mappings. Every XSL mapping results in this error: SAXException during XSLT processing, cannot create source for input: Thrown: org.xml.sax.SAXException: SAX2 driv
-
HT1918 can i put my purchase onto a itunes voucher not my account? need to swop it over
I wanted to use my itunes voucher but accidently purchased a film on my account. can i switch the payment over?
-
hi all, i created a report that displays results based on this query initially. select * from EMP where 1=1; i'm using a SQL Query (PL/SQL Function Body Returning SQL Query). i have search items in my page like empno, lastname, firstname, middle, ema