General :: Make Default Gateway Permanent In CentOS?
Aug 9, 2011
I have a CentOS running. It is important to have my CentOS available when I am remotely connected to a VPN router. I tried to add a default gateway to the VPN router, but after reboot it goes away. How can i put this as permanent?
I'm having some difficulty setting my txpower setting on my atheros wifi card. I am using ath_pci driver on ubuntu 8.1 64 bit. I can set the txpower to whatever, 12dBm for example, it accepts the change but quickly reverts back to a default value of 8dBm. Power saving is off. How can I make these changes permanent, or adjust the default value?
I posted it on another forum, but could not get response,So I have this cenOS, Ubuntu and windows operating system running on virtual machines.Now I gave them manual ip address, both ubuntu and windows machines can ping the default gateway, but not the CentOS.It should forward 0.0.0.0. to my cisco router address(192.168.5.254),
I could not able to configure the default gateway ip address onto the system. i use the route command (" route add default gw 192.xxx.xxx.xxx eth0 ") to add a default gateway onto the routing table but it is "disappear" in the routing table when i had restart the service network.
I have a dual boot PC, installed Win XP first, then Centos 5.5 While installing Centos, I set Centos as default. So at boot up time, it does give a choice of selecting from the two if pressed any key, otherwise boots Centos. Now I wish to set it in such a way that Windows is the default OS to boot.
My grub.conf file:--
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition.
I have a Finnix live CD. I can customize it by remastering it. When I boot with the live CD I need to make a little change in the boot profileThe boot profile before making the changes islinux apm=power-off vga=791 initrd=minirt quiethe boot profile after making the change become linux apm=power-off vga=791 initrd=minirt quiet root=/dev/sr0Now, I need to make this change (adding root=/dev/sr0) permanent. How can I do that?
I have just booted to Puppy (for the first time in my life) on a 6 y/o amd type with a 40Gb HD, Ram: 512.I would like to make a permanent install of puppy onto the HD, I have read various pieces on how to install, defraging, repartitioning, differing file systems. However, i am a bit lost. The computer will be used for e-mail, web browsing, and watching the odd film (films installed on the drive) - I am unsure as to the best combination of file types and partition in order to keep puppy happy and keep some compatibility with the world outside of linux.
For instance, could i have a small partition with the puppy install and setting, and the rest on a format that would be compatible with windows/mac/linux? If so, how do I do this, pls bare in mind that my windows install is running but incomplete. I have the feeling this will be a really simple problem for someone to help me with,
When I enter my bootloader Grub I have to go to the system I want to load and press e to edit. Then I add vga=792 in the end of one line to change the tty resolution. How can I make this change permanent? My distribution is Debian Squeeze and there is no menu.lst in squeeze.
I have a generic monitor which has problems with many Linux distros. We can boos Sugar on a Stick v2 by pressing <tab> at the Sugar splash screen and adding the boot parameter "nomodeset". I'm handy enough to do this, but my wife, well, not so much. So is there a way to make that boot parameter permanent?
in fedora/redhat system I want to add IP address along with Default Gateway and DNS.For assigning IP to eth0 i use the command # ifconfig etho 192.168.1.10 subnet mask 255.255.255.0 upthis remain temporary and when I restart my system it lost the IP address. Well to permanently add IP address in etho I use the file #cd /etc/sysconfig/network-scripts and then use # vi ifcg-eth0 to add IP address and Network Mask. How can I add Default Gateway and DNS permanently in ifcg-eth0 file or there is any other file for it ?
i have a leased line ( speed 2 MB ) which we use to connect to our mail server , oracle ERP etc.. we have a dhcp scope defined as 192.168.100.1-192.168.101.254. with a default gateway as 192.168.100.90 ( which is a cisco router ) we have a pix firewall ( 192.168.100.10 ).. now the gateway passed all the request to firewall..we have an ADSL of 4 MB speed.. ip is 83.*.*.230 from ISP. i have a proxy server ( squid ) eth0 is connected to ISP (83.*.*.230).. eth1 to LAN ( 192.168.100.79 ) now the problem is when i put default gateway to eth1 ie 192.168.100.90 the squid connects to internet via leased line.. if i leave the default gateway field empty on eth1 , the squid connects to internet via ADSL ( which i want ) but the problem is no one on the lan cant ping the squid server ( no connectivity to internet for the whole LAN ) how can i solve this problem? PS : i want squid to connect to internet with ADSL, but if i put gateway on eth1 ie LAN squid goes through leased line which i dont want to happen
I just installed CentOS 5.2, and would like for xterm to be my default terminal instead of the gnome-terminal. I was able to do this on a RHEL4 system and Fedora 9, but I can't figure out how to do it in CentOS.
Here's the output of uname:
Linux 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
I'm running Ubuntu 10.04 and I've been looking to customize what's given as my command prompt, and I learned how to do this by entering PS1="desired text" which is remarkably straight forward.
I'm a little stuck on how to make this permanent though. If you just type in that command, then when you close that terminal session and open a new one, it resets to the old/default prompt. I read the tutorial at:
and it referred to editing the .bashrc file in ubuntu. I found the bash.bashrc file in /etc/ and edited the line that said PS1=, however it didn't change my command prompt. I searched for other files relating to bash and in clear instances that PS1= was given, I changed it to see if the command prompt would change. This has been to no avail so far though.
Does anyone know which file needs to be edited/what needs to be done in order to make a customization of the command prompt permanent?
I use Ubuntu 10.04 and after installing the driver for my onboard video card, I can no long boot into Ubuntu. I'm thinking that if I was somehow able to remove it, this might fix the problem. Is there a way to do this, possibly from the boot cd?
i has setup a persistent DNS cache to improve my web-browsing. it works wonders and with my ICC built firefox my web-browsing is laser-fast, pretty much like using internet explorer in windows! however, everytime i reboot, my modifications to /etc/resolv.conf have been replaced... 1st. the file must contain:
# Generated by NetworkManager (obviously modified by this) nameserver 127.0.0.1 <----this is lost on reboot, and is needed to make it all work nameserver 184.108.40.206 nameserver 220.127.116.11
i have tried to add this to - System/administration/network, but it doesn't seem to fix the problem. 2nd. my next problem is that when fedora 12 starts up,i need it to start "dnsmasq".i have tried to add it as a startup application, but it doesn't start automatically.so i end up having to start it manually everytime:
sudo /etc/init.d/dnsmasq start
it is annoying, but so far i just deal with it, because my browsing is that much faster! i am planning to post a tutorial for those interested in faster web-browsing in linux, but until i can make the changes perminent there isn't much point.
PS: i have tried to write a shell script to do this and every which way i try it fails
I came across very useful nautilus keyboard shortcut Ctrl-L - change view of location bar to display full folder address but can't find an option to make this changed view permanent. where can i find it? i don't mind editing config files
Since the 10.10 upgrade my mouse clicks on my laptop have been behaving rather oddly. Sometimes it randomly does a middle click when i'm doing a left click, which is really annoying because it means that sometimes tabs close or my text gets random bits of text appearing in it. I've found that running this command "synclient tapbutton2=2 tapbutton3=0 rtcornerbutton=0 rbcornerbutton=0 clickfinger3=0" fixes it, but only temporarily, sometimes it only lasts like 10 minutes or so, other times it lasts till reboot. So, is there anyway to make these changes permanent?
I would like to make group changes on serial ports permanent. I can become root and use chgrp:
chgrp uucp /dev/ttyaa00
but it only lasts until reboot. I think I need to add this line to a startup file but not sure where. I want this to work in run level 3 and 5 (at least). I have a digi portserver and their realport software. The ports are /dev/ttyaa00 through /dev/ttyaa07 and are in group root on startup. I want them in uucp so any user in uucp can use them. This is for F10.
I recently compile Kernel 2.6.34 (to fix the AMD PowerNow issue with 1055T processor, and it worked!) However, the device /dev/shm starts up at boot as Read-Only.
Google Chrome requires this device to be user-writable, or it won't start up. Presumably, the stock kernels (and all that are updated) have it set to User-Write. I have not noticed any other ill effects with the permission being read-only. If I do: sudo chmod a+w /dev/shm Everything will work from there, but each time I reboot, I have to do that. How do I make that permission-change permanent?
This command is working like a charm. The only problem is, for some unknown reasons, this rule will be dropped at some point. I did not manage to identify what is causing this to happen. It occurs during night, but I have nothing about that in my log files. messages / firewall / ...) The only way I managed to reproduce this 'dropping' is this one: I type the command like as root. The command is effective and working fine. I open yast, I go to the firewall module, the I do a simple "save changes and restart firewall" (without changing anything). As soon as this process is finished, the iptables rule is gone.
-How can I make this rule permanent ?
-Is there a place where I can launch a script executing this rule, after the yast firewall module is 'touched' or something ?
I have an eeePC 1005HA, with a Linux Mint 8 distro on it. Each time i start it, i slide down the lcd brightness to take the power consumption low, using the Power Manager Brightness Applet on the gnome panel and each time i restart the pc i have to repeat this over again,I'd like to make this change permanent.
The idea is that I got to grips with Linux a couple of times in the past; most recently in a Radio Astronomy class (where we had to use openSUSE and terminals 24/7). I loved it so much that I fired up Wubi on my laptop and I am having a play.
Then I loved it even more.
So here's the plan:
Find Windows (Vista) CD *sigh* Get 500 GB external Hard Drive Backup files to HD (60 GB max) Reformat Laptop & Reinstall Windows ====
To my understanding, this gives me a blank slate with a lot of room to play with because of the external HD. If this is not possible/too risky etc. then what are the best alternatives?
The plan is to make my primary OS Ubuntu. The way I figured, to keep things simple, is to keep the laptop's HD with Windows as 'normal'. I would thus install Ubuntu to the external HD, and put my files etc. on that.
Now, is that possible for a clean installation? Ideally, it would be fantastic if the boot can be configured so it would boot Ubuntu if the HD is connected, and Windows if not.
just can't find the answer for this one (after Google and these forums) So I want to configure my Synaptics touchpad in this fashion:
Code: synclient RTCornerButton=8 RBCornerButton=10 LTCornerButton=11 LBCornerButton=12 FastTaps=1 This line of code does what it's intended of it. However, the changes made don't really stick after a system reboot.I'll explain:
So, the "FastTaps" part works flawlessly (as intended). However, the corners bit doesn't work after system reboot!...and weird enough, if I set up a start up script with that bit of code on it it'll only remap the last two corners (LT and LB), because RT and RB always get automatically set to "2" and "3". It's obvious then that those corners are getting remaped somewhere I haven't found yet. I've already tried ppa:yurivkhan/ppa and adding new options to "usr/lib/X11/xorg.conf.d/10-synaptics.conf" to no avail either. how to make the remap of touchpad corners permanent? P.S. - I'm using Ubuntu 10.04 LTS with Macbuntu.