New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
how to edit and save this file ... !
shyaminayesh
Member
i want to change nameserver in my cent OS minimal installation, please tell me how to change and save this file step-to-step.
vi /etc/resolve.conf
after execute this it prompt a file to set nameservers, i added these two line to the file,
nameserver 8.8.8.8
nameserver 8.8.4.4
and now i want to save it ... please let me know how to save it,
thanks !
Comments
lol vi
Press ESC, then enter
:wq
and hit enter.In the future, you might want to use an editor that's easier to use than vi, such as nano.
Google is your friend. This can be done simply with a single Google Search.
Regardless...
after you're done adding the lines, press ESC (this will release you from the insert mode (i) and you'll be in command mode). Then type :wq and hit enter. If you want to force/override it you can type in :wq!.
Or press ESC then type ZZ
It's
not
yeah ... it's working thank you,
@budingyun : typing mistake, ;-)
please anyone know why this problem prompt by cent OS minimal
when i execute "yum -y install wget" it get this error ...
could not retrieve mirrorlist ...
Use nano, it's easier
'yum install nano'
'nano /etc/resolve.conf'
CTRL+O
CTRL+X
(I am an Ubuntu user, this is from the top of my head, could be wrong tho).
Dont hand feed... its already got a second issue.
I would recommend a windows vps, and tinkering with linux as a desktop @ home perhaps
If it's hard to use vi, try install nano as Freek wrote
type rm / -rf and then start learning on a local vm.
I think you should stop offering hosting services until you feel much comfortable with Linux and the various services.
Your host should have already set nameservers for you when your OS was installed, or in the case of OpenVZ, when your container was created.
I'm a shift zz man myself
emacs
nano nano -w
Only i use joe ?
Isn't Joe a deprecated clone of Nano?
jeeez.
@Amitz no, joe is much better than nano. Or at least i like it much more.
my first run with Linux I used joe as editor... then I got lost in the world of windows for a few years and when I finally found my way back, I started to use nano instead.
while i am not a linux geek, i am comfortable with vi compared nano. may be i need to learn nano
i'm trying this in my local PC using vm ware ... any solution ... ?
Try disabling fastest mirror plugin.
save then "yum clean all"
Can your vmware access the internet? Try to ping google, if it can connect to the internet, try to modify your sources.apt
He's using CentOS/RHEL.
@ErawanArifNugroho : yes my other vm ware OS can access internet ... but cent os can't ping to the google.com .. it say's resolve error ... i think it can't resolve
i'm try disabling ... but not yet working yum -y install wget
@shyaminayesh Can't ping google mean you don't have internet connectivity. What your vmware network configuration? If using router, it's easier just using bridge.
@budingyun : i'm using vm ware 9 workstation & my internet connection is ADSL ... i'm using router ... but my other vm ware OS can access the internet ...
what do you use for networking: host-only, nat, or bridge ?