Red Hat / Fedora :: Making Route In RHEL4 Permanent?
Feb 9, 2009
I am using RHEL4 server in my network. I have configured VLAN in my network. i am using two gatways to access my Network. I also add two gateways to both the network. but only one gateways will work. Then I added a route for the other netowrk. but when i restart my computer my route is deleted. i used this command to add the route
I have recently used PowerTop to get information about what settings I could tweak to make my laptop more power efficient. However, my problem is that all such changes seem to dissapear as soon as I reboot my machine. For example, if I run:
This value will have been rewritten to 500 when I reboot. Is there any way to change this, and make sure that any and all changes I do to my system remain permanent until I change them to something else? This question is of course not limited to Powertop, I would also like changes I do via for example cpufreq to be permanent as well.
I'm trying to make sure I don't screw anything up. When I type in the following into the terminal:
sudo hdparm -M 128 /dev/sda
Are the changes permanent, even if I restart? If not, how can I make sure it is permanent? I've read of going into the /etc/hdparm.conf file and editing it, but what exactly do I type and where should it be put in the file?
Is there any way of making nomodeset permanent one has to reinstall? I know at least 1 distro has an etc/sysconfing/kernel file you can edit to make the value NO_KMS_IN_INITRD=yes
then mkinitrd makes nomodeset permanent Otherwise its a real bind to have to keep burrowing into the grub2 menu each time to make sure it loads.. :>(
I'm seeking to make permanent a selection in openSUSE-11.4 LXDE between english and Thai keyboards. And I need help here, as I have only succeed partially. After installing Thai via YaST regional settings, I followed the advice in an LXDE forum here LXDE.org Forum - View topic - How to add layouts to keyboard preferences in LXDE? and on the LXDE Panel I righted click on LXPanel->Add/Remove Panel Items->Panel Applets->Add->Keyboard Layout Switcher. Upon a restart of X that gave me a US flag symbol (for US keyboard) in lower right hand corner. No other language selection. I then as a regular user sent the command
and I then had a choice between Thai and US keyboard which worked well. That unfortunately is only temporary until the next reboot. HOW to make it permanent ? I tried, and I was unable to make that permanent. I tried adding .Xkbmap to /home/user (restarted/tested) and when that failed I tried adding .Xmodmap to /home/user (restarted/tested) and when that failed I tried adding /etc/X11/Xkbmap (restarted/tested) and when that failed I added same line to /etc/X11/Xmodmap (restarted/tested) and that also failed. The line in all cases was
I could create a script with my 1st successful effort (and have that run when LXDE starts up) but surely there is a more elegant way? I am also NOT keen to have this system wide (even thou I tried that system wide (unsuccessfully) at the end) but I would rather only have this for one LXDE user.
br0 - 192.168.0.1 - Internet eth2 - 192.168.1.1 - LAN tun0 - 10.0.0.2 - VPN (via br0)
What I'd like to do is to route all TCP packets coming from eth2 to tun0 where a VPN client is running on 10.0.0.2. If I delete all default routes and if I add a new route to tun0 like :
Code:
route del default route add default gw 10.0.0.2
Everything is fine, and everyone on eth2 can reach the Internet using the VPN access. Now the problem is that my VPN client does not allow any other protocols other than TCP. And I also want to allow VPN access only to eth2, no other LAN nor the router itself. use iptables to filter any TCP packets and mark them, so they can be sent to tun0, while any other packets can reach the Internet via br0 (192.168.0.1). I found on the Internet that we can mark packets before they get routed. Using the following commands :
Code:
iptables -t mangle -A PREROUTING -j MARK --set-mark 85 -i eth2 -p tcp --dport 80 ip route add table 300 default via 10.0.0.2 dev tun0 ip rule add fwmark 0x55 table 300
First of all, --dport 80 never work... :/ I wanted to filter TCP 80 packets coming from eth2, but none of them seems to be HTTP packets... oO (very strange...). Nevermind, I decided to forget about the --dport option. I use the "iptables -L -v -t mangle" command to see how many packets are marked, and it is working fine, all TCP packets coming from eth2 are marked. Now the problem is that none of them are routed to tun0 they are all respecting the "route -n" rules... and not the "table 300" rule I have created.
Ive created a bootable RHEL4 USB flashdrive so that I can do my installs from rather than using CDDVD's. The USB key boots fine to the point where it asks me to select a drive that contains the ISO images, but it doesn't show me the USB drive to select, only my 2 hard drives sda1 and sdb.
We currently use HP xw9400's with the following spec as shown in dmidecode:
BIOS Information
System Information
I know that the xw9400's have the nvidia mcp55 pro chip on the motherboard that handles USB, keyboard, mouse and other peripheral traffic, so am wondering if this could be what the problem is? Like there may some code that i need to tell the machine to use this or something?
I am using rhel4 with kernel 2.6.9-55 ELsmp. I have recently purchased 250gb seagate portable usb HDD. I have already mounted the usb HDD by updating Kernel with mode 755 and root user. I can transfer file from usb HDD to rhel system. But I am unable to make directory or copy file from rhel4 file system to usb HDD with ntfs. It is giving error message of permission denied though the device having write permission. I have already installed ntfsprog-2.0.0 in root. But there is no improvement. Is there any thing I can do to transfer data from linux system to ntfs.
I am trying to setup Postfix along with dovecot on RHEL4. I have done the necessary settings in dovecot.conf, yet I am not able to log into the POP3 server. The error I can see through WireShark/Ethereal is "Err- Authentication failed" Some of the important settings in /etc/dovecot.conf are
It's work very well until i try restart my client server and the mount from 192.168.2.83 is gone, if i want it work again i must run mount script again. Can it become the permanent mount, so when i restart my server the mount is already exist?
My Fedora 10 install runs from a single PC, from a single location. I'd like the connection, via wireless, to automatically connect to my home network. Right now, I suspect that NetManager scans all the options first.But that's a waste of time. How do I set things up to skip all that and just grab the only connection that will work?I have NetManager set up to "Auto linksys" with MTU set for "automatic" too. I've Googled around for this, but maybe have missed something. Too often, at login I do NOT connect though the network is available. I suspect there's a way to lock this in that I have not yet discovered...
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 209.226.175.223 nameserver 198.235.216.134
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
So I started playing with my hotkeys today, and much to my dismay, I seem to have irreversibly set the delete hotkey. This is extremely annoying now because instead of deleting the selected text, it executes the command that I put in. The problem is that that specific command is not listed under system>preferences>keyboard shortcuts. Somehow I set it to open the terminal, and now I can't turn it off. (One thing to note, though, is that I can set another command to do nothing with delete as the hotkey. Then terminal doesn't open, but I still can't use the key!)
I got this definition:"a process that replaces a series of related, specific routes in a route table with a more generic route." honestly I found it not so clear.. I want to know if this definition is correct and also more details about this subject..
If /mnt & /media are for temporary mount points and removable drives, what is the usual convention for locating permanently mounted partitions for all users on the computer? e.g. I have a partition for photographs, I'll just call it "photos" would it be bad form to mount it as /photos or something like /my_hdd/photos ?In practice it probably won't matter, but I want to make sure it's easy for anyone else to perform admin tasks on the computer when I'm not available.
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?
Our Fedora 15 linux box have the following requirements:
1. Runlevel 3 1. Autologin as root for convenience 2. Run Xorg 3. Run xterm on display :0.0 4. Lauch our program on display :0.0
So we simply put step 2 ~ step 4 in the .bash_profile of root user:
# .bash_profile if [ -f "/.bahsrc ]; then .~/.bashrc fi export DISPLAY=:0.0 Xorg & sleep 3 # for some reason, we need this three seconds to make sure that xterm start up successfully xterm &
The problem is, if I issue "kill xterm", it flashes out some messages disappearing so quick that I can't even read, and then leave me with a black screen with a cross cursor at the center. The system seems to be crashed, even the numlock doesn't work. Since we execute xterm & during logging in, now I can crash my system simply by pressing ctrl + C ! That's disaster!
Having trouble getting my Netgear WNA1000 working thru wireless router. Have tried lots of suggestions from other threads to no avail. Someone suggested that th routing table isn't set correctly, so have been trying to use the follwing to make the proper entry in the routing table: sudo route add -net 192.168.0.1 netmask 255.255.255.0 dev wlan0
Result: error message stating with: "route: netmask does not match route address"
followed by "Usage" instructions which tell me to do what I just did. Any ideas on how I can populate my routing table with correct entry for my wireless card? Not to complicate matters, but I temporarily turned off encryption on my router to eliminate that as a possibility until I get connected. So maybe it'still trying to connect via encrypted mode - do I need to turn off encryption on my (client) end?
I am trying to set up a permanent resolution in the xorg.conf file. At the moment whenever I reboot the machine the resolution defaults to auto. How I can change that to be constantly at 1600x1200?
Here is my xorg.conf file. Code: # nvidia-xconfig: version 1.0 (buildmeister@builder62) Wed May 27 01:58:49 PDT 2009 Section "ServerLayout" Identifier "Layout" Screen 0 "Screen0" InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" InputDevice "stylus" "SendCoreEvents" # Added InputDevice "eraser" "SendCoreEvents" # Added InputDevice "cursor" "SendCoreEvents" # Added InputDevice "pad" "SendCoreEvents" EndSection .....
In Power Manager I set a 5 minutes period of inactivity before turning off the monitor... But in Fedora 11, when I saw movies, the sleep mode didn't come... But in Fedora 13 (programm VLC-player), after 5 minutes, computer come into sleep mode..What do I do to configure Power Manager or another program for watching movies without permanent dragging mouse?))
to /etc/sysconfig/network/network-scripts/route-eth0 after doing 'service network restart' I'm do see the new route as described by directive above. However, I still do not see the default gateway that's supposed to be on my box. Where/how do I define the default gateway using the route-ethX method above?
basically what i'm trying to do is get sound from flash videos on videos. my plan is to use gnash to play flash files within firefox. since gnash uses gstreamer to output audio and since i'm using jack for playback, i need to somehow route gstreamer to jack. does anyone know how to do that? here is an ubuntu thread that may help, but i'm not sure how to translate that to fedora. i'm already able to hear the sine tone from running:
code: gst-launch audiotestsrc ! audioconvert ! audioresample ! jackaudiosink in the console. i just don't know what to do next.