General :: Save Changes After Editing Vi /etc/hosts?

Jul 28, 2010

I am doing a Linux installation. I installed the system fine and am trying to change the vi /etc/hosts file. I have edited the file but am not sure how to save it. I have --INSERT-- showing at the bottom.

View 2 Replies


ADVERTISEMENT

General :: Make A Save Command By Editing The .bashrc

Feb 19, 2011

I found this script [URL].. Basically this is a shortcut for cd-ing my file system..

I can type "save nm" where "nm" is any short name for the directory, like "blog" or "blg" Then whenever I want to go to nm I'll just use 'cd nm'

But it is not working out for me, I get this error every time I enter save:

bash: save: command not found
bash: parse_git_branch: command not found

So How can I make this command work?

View 1 Replies View Related

Debian Configuration :: Editing / Etc / Hosts File To Make Website Loopback

Sep 6, 2010

I am trying something a bit tricky.Suppose there is a website URL...Now suppose when i open a file /var/www/ test.php which connects to the above website to gather some info and then allow me to further in the process, i want it to instead direct to a file say /var/www/test_done.php.How do i edit my hosts file for such a scenario? Is there any other better option than using a hosts file ?

View 1 Replies View Related

Ubuntu :: Music File Information Editing Doesn't Save

Apr 5, 2010

I have some japanese music files stored on a flash drive that the titles of which are in japanese originally. While in the flash drive, when I go to Properties -> Audio, the title is written in japanese. It does not allow me to edit the file, no matter what permissions I have on it, therefore I can't change the name to english. So, I tried Rhythmbox instead, and transfered the file there. I could change the name, however there is STILL a huge problem.

I have around 300 japanese music files, all of which have to be renamed into english.
I did all this for all of them in Rhythmbox, and clicked "quit" when I was done. When I came back to transfer the files to my MP3 player like usual, I opened Rhythmbox, and...

ALL OF THE FILES WERE STILL IN JAPANESE! It didn't save any of the work I did on editing them. But, I calmed down and thought "oh, you can save playlists! I am sure that if I save them on one, it will keep the edits!" I did this, and it saved nothing. It took me 2 hours to finish the renaming, just to find out that it can't save information edits at all.

View 9 Replies View Related

Ubuntu Multimedia :: Any Video Editing Program That Can Save To Uncompressed File Formats

Aug 4, 2011

I would like to ask if there is any video editing program that can save to uncompressed file formats.

View 5 Replies View Related

Security :: Use Current /etc/hosts File To Do An Ssh-keyscan Instead Of Making A Special List Of Hosts?

May 2, 2011

I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?

View 2 Replies View Related

Ubuntu Networking :: Proxy Settings: Allowed Hosts Instead Of Ignored Hosts

Aug 17, 2011

Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?

PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.

View 9 Replies View Related

Ubuntu :: No Hosts File - Just Hosts.allow And .deny?

Jan 26, 2011

Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?

View 1 Replies View Related

Ubuntu Servers :: Apache2: SNI & Virtual Hosts - Multiple Virtual Hosts With Ssl And Only 1 Ip Address

Jan 17, 2011

[Code]....

What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server = 192.168.227.129

[Code]....

View 9 Replies View Related

General :: Save Iptables When Iptables-save Doesn't Exist?

Apr 14, 2011

I'm working on a Soekris net4801 that is running an unknown distro of Linux. The kernel is 2.4.29, and iptables is v1.3.4.

I can't work out how to save the iptables. I searched the whole system for files/folders containing the name "iptables" and got 3 results:

/user/local/lib/iptables
/sbin/iptables
/lib/iptables

I've tried iptables save, iptables-save and iptables save active.

"iptables save" and "iptables save active" give me an invalid argument error. "iptables-save" isn't a valid command. "iptables --help" gives me a list of valid switches, none of which have to do with saving.

how I can save the iptables?

View 1 Replies View Related

General :: What Does /etc/hosts Specifying In Particular Line

Jul 2, 2010

I'm doing a how-to to setup my debian server. It tells me to edit /etc/hosts to look like this (with different IPs and hostnames of course)

Code:
127.0.0.1 localhost.localdomain localhost
192.168.0.100 server1.example.com server1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

I'm curious about that second line. I know it'll be my actual server ip, but what does it specify? what is the 'server1' at the end of the line specifying? I *think* that 'server1' would be part of my bash prompt when i login, but am not sure. Is it used for anything else?

View 5 Replies View Related

Ubuntu :: Grub2 Editing - Editing Directly To /boot/grub/grub.cfg?

Jun 6, 2010

I have an old laptop that I installed EasyPeasy Lucid on. I have never used Grub2 as my other Ubuntu installs still use Grub Legacy. I have studied all the tutorials which instruct that the grub.cfg file should not be edited directly.This old laptop has one of the dreaded Intel graphics chips for which the kernel automatically loads the i915 module. Of course (like a multitude of others with Intel graphics and Lucid) I booted into a black screen but knew the workaround was to enable mode setting through grubI used the

Code:
i915.modeset=1
and added it to /etc/default/grub line GRUB_CMDLINE_LINUX, just after "quite splash", just

[code]....

View 9 Replies View Related

General :: [SSH] User Disallow From All Hosts Except One?

Apr 12, 2011

I have a requirement to implement SSH Services in a way, oracle user should be disallowed from everywhere other then one host. While no restrictions for other users.

I worked with DenyUsers, but it disallow oracle logins from all hosts.

View 15 Replies View Related

General :: Hosts.allow - Permission Denied

Oct 4, 2010

After I type sshd: 192.168.1.11 : allow and

sshd : ALL : Deny

I can't access hosts.allow or deny any more.

It says "Permission denied"

Before I typed that, I can access hosts.allow and deny.

By the way, I was wondering what command to edit hosts.allow.

For example, I want to put sshd: xxx.xxx.xxx.xxx : allow in that file.

View 14 Replies View Related

Ubuntu :: Firefox - Unable To Save Files By Right Clicking And Save As

Jan 13, 2010

I have Ubuntu 9.10 dual booting with Windows7.My ext3 /home is mounted as F: in windows.I share a firefox profile between them so that when i am in Windows my firefox uses the same profile as it does when in Ubuntu.It all worked great until recently. I am unable to save files by right clicking and save as. In the config i am unable to set a directory to save to. It neer asks me where to save to. Just nothing happens. some off my book marks are all messed up as well, my rss feeds have the same post on some random website every time i log on and i have to manually refresh to get the correct feeds back. I am unable to delete the random bookmark.

View 1 Replies View Related

General :: Avoid SSH's Host Verification For Known Hosts?

Mar 29, 2010

I get the following prompt everytime I try to connect a server using SSH.

I type "yes", but is there a way to aovid this?

The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.

RSA key fingerprint is f3:cf:58:ae:71:0b:c8:04:6f:34:a3:b2:e4:1e:0c:8b.

Are you sure you want to continue connecting (yes/no)?

View 3 Replies View Related

General :: Eth0 Not Working But Virtual Hosts Are?

Apr 20, 2010

Some time throughout the night last night eth0 stopped working entirely, I could not resolve dns or any thing. Oddly though eth0:1 and eth0:2 worked perfectly with a ping -c 10 -I eth0:2 xxx.xxx.xxx.xxx but still could not resolve domain names. My nameservers are good as i have tested them on my other machine. My setup had been working fine for quitte some time and i did not make any changes besides updating webpages, it is a server running Debian Lenny. Unfortunatly since eth0:1 was working for the most part i was trying to change the IP's in the config and accidentally killed the settings using webmin so I cant post to many details at the moment until my host for the dedicated gets my /etc/network/interfaces restored but in the meantime i have searched all over google to try to find an answer to the original problem but cannot so i would like to prepared for when the server is accessible again.

View 2 Replies View Related

General :: How To Edit Alllow.hosts - Debian

Dec 27, 2010

I am trying to setup a basic file server, but seem to be stuck with the editing of the allow.hosts file. I installed the latest Debian, and when I try to edit it, and then save, it says I dont have permissions.

As a sidenote, I dont mean to belittle linux or start a debate, I am behind the whole open source/free software thing, but every time I say to myself, "okay, time to give Linux another chance", I cant believe how difficult it is to do even the most simplist of tasks. No wonder MS is still on top. If only one could do it ALL from a GUI.

View 5 Replies View Related

General :: Fedora 5 - Getting Hosts To Connect To Server?

May 21, 2010

I am very new to Linux, 1 week old. Have just installed fedora 5 days ago and I now need to get hosts to connect to this server through telnet. I downloaded a xinetd rmp file but do not know what do next to get it installed and configure it.

View 4 Replies View Related

Ubuntu :: Xrandr Doesn't Save Changes - How To Make It To Save Changes

Jun 16, 2010

my mediacenter is attached to an beamer with the optimal resolution of 1280*720 ubuntu 10.04 doesnt offer me this revolution (on my intel 915 graphis controller). this means i have to add this resolution to the possible resolutions. first i used cvt

Code:

cvt 1280 720 60

and got this result:

Quote:

# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync

then i added this to xrandr

Code:

xrandr --verbose --newmode "1280x720" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync

and

Code:

xrandr --verbose --addmode VGA1 1280x720

now i can select and use the new resolution - until next reboot. after an reboot 1280x720 is again not available. even if i work with sudo - the resolution isnt there....

View 1 Replies View Related

General :: Denyhosts Keeps Adding IP Address To Hosts.deny?

Aug 10, 2010

I have setup Denyhosts to run on my server, and have been using it succesfully for the last few weeks, to allow me to ssh into my server from my home dev machine.

This morning, I accidentally typed my password incorrectly three times - and ended up being locked out of the system (tghat was ok, because that was what was supposed to happen). I logged into the server via another way and took the following actions (in the order given)

/etc/init.d/ssh stop
/etc/init.d/denyhosts stop
removed my IP address from /etc/hosts.deny
/etc/init.d/ssh start

[Code].....

View 1 Replies View Related

General :: Ubuntu - How To Lock The /etc/hosts File With A Passcode

Dec 18, 2010

I would like to lock the /etc/hosts file somehow in a way that only someone else can unlock it, possibly using a lock code.I would then give the passcode to someone else.I'm running Ubuntu 10.10.

View 2 Replies View Related

General :: Dnsmasq Without Altering /etc/hosts File Manually?

Jul 19, 2011

I've trying to get dnsmasq working as a combined dns and dhcp server. It's infuriating so far... In short, the DNS works fine for anything added to /etc/hosts, and the dhcp works fine, but the dhcp is not updating the dns with hostname information from clients.

The outcome of this is that i can only ping a node by hostname if i know it's address, which means setting a static dhcp allocation and putting the hostname into /etc/hosts manually, which is very annoying and kind of defeats the poit of dhcp. There must be a way to get dnsmasq to update the hosts file, surely The clients aren't using fqdn's if that matters, and i think i've tried every combinination of "expand-hosts" and "domain=" following is the dnsmasq config file contents:

domain-needed
bogus-priv
except-interface=tun0

[code]....

View 2 Replies View Related

General :: Nagios Don't Send Mail For Individual Hosts?

Jun 3, 2010

It does not send mail if I only add contact_groups in host definition.

Code:

define host{
use generic-host ; Inherit default values from a template
host_name NAME1 ; The name we're giving to this switch
address XX.X.X.X ; IP address of the switch

[Code]....

View 3 Replies View Related

General :: Editing A Compressed Tar?

Mar 14, 2011

think of this directory as the current structure..

Quote:
|-- test
| `-- test1
`-- test.tar

test.tar is a compressed tar of /test/ (cvfz), now... I need to add another file called test2 to test.tar, WITHIN the test directory in the tar. Is this possible?

[Code]...

View 5 Replies View Related

General :: Editing A File Using Awk?

Apr 29, 2010

I have a list of millions of filename in form of say "drau3DDFEA5E01205841DC1B277A".
I need it convert it intousr/local/data/d/dr/dra/drau/drau3DDFEA5E01205841DC1B277AI believe that can be achieved by awk or sed.

View 1 Replies View Related

General :: Editing Eth-1 -asteriskNow ?

Feb 16, 2010

I have a AsteriskNow Linux box and i wanted to add another network card, i have done this and it has loaded the drivers... I have found out that second cards need to be enabled... if i type ifcfg eth1 it shows me the card.... and I need to edit that device with BOOTON selected to ON to enable it.

I have two questions:

A) what is the comand to edit the ifcfg eth-1 card, Apparently i use a text editor but how ? i know what to do once in but can't get in...

B) is there a list of very common linux commands i cuold use to start me off on my linux journey ?

View 2 Replies View Related

General :: Reboot Not Required After Changing HOSTS File Content?

Oct 18, 2010

I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and I've seen others do the same thing. I assume Linux has no exception(s), but is there any reason why a reboot is not required (to at least justify my actions)?

View 2 Replies View Related

General :: Access Internal Network Virtual Hosts In Apache?

Mar 6, 2011

I currently have an Apache Web Server running on Ubuntu 10.4 and I use a DynDNS service to make them accessible to the outside world via a domain and/or subdomain.

My configs currently look like this:

<VirtualHost *:80>
ServerAdmin <obscured>@<obscured>.com
ServerName <subdomain>.<obscured>.com
ServerAlias <subdomain>

[Code].....

This works fine from access outside of the network and all subdomains resolve to the correct directory.

The problem I am having is with accessing a subdomain over my internal network.

I can access the Web Server using the server's IP address: http://192.168.1.123/ but this always takes me to the same virtual host and I don't know how to distinguish between different virtual hosts (different subdomains).

Ideally I would like to access the same subdomains using http://<subdomain>/ where <subdomain> is the same as the subdomain attached to the external domain name.

View 2 Replies View Related

General :: Sun Grid Engine - Reserve Multiple Cpus On Hosts

Mar 14, 2011

I am somewhat familiar with SGE (Sun Grid Engine, now Oracle Grid Engine) commands but am having a problem when running parallel jobs.

Present Machine configuration:
machine I - 12 cpus
machine II - 12 cpus
machine III - 12 cpus
.... so on ...
One_machine - 16 cpus

(I have all machine of 12 cpus and 1 machine having 16 cpus)

I want to schedule jobs on these machine such that if I ask for 12 cpus - my jobs should execute on any of the machines which has all 12 free cpus (eg machine I or machine II) in this case.

Eg. suppose I ask for 24 cpus

Option I : 12@machine1 12@machine2 ----- I need this

Options II : 10@machin1 10@machine2 4@machine3 ---- I don't need such a distribution

Hence, Option I is ideal here. Also, when running 12 jobs on machine1 (say) - even if all 12 cpus are not being used at some instance of time, none of the 12 cpus should be freed.
In short, until my run finishes, all blocked cpus should remain blocked.

If you may understand, the purpose here is to run some performance tests.

I'm using 'qrsh' to launch jobs.

View 1 Replies View Related







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