SPI Systems - Employee page
Suse 8.1 and above
Booting into Single user mode
The machine should boot into a single-user mode, asking for the root password as it comes up.
Make any configuration changes you want, then reboot the machine again normally to enter runlevel 5find . -exec grep "www.athabasca" '{}' \; -print
This command will search in the current directory and all sub directories. All files that contain the string will have their path printed to standard output.
If you want to just find each file then pass it on for processing use the -q grep option. This finds the first occurrance of the search string. It then signals success to find and find continues searching for more files.
find . -exec grep -q "www.athabasca" '{}' \; -print
This command is very important for process a series of files that contain a specific string. You can then process each file appropriately. An example is find all html files with the string "www.athabascau.ca". You can then process the files with a sed script to change those occurrances of "www.athabascau.ca" with "intra.athabascau.ca".
----------------------------------------------------------------------------------
Multiple default routes
http://lists.suse.com/archive/suse-linux-e/2004-Jan/1956.html
I'm posting this just in case anyone else is interested or perhaps experiences
the same problem. This is what I did:
1. Renamed the /etc/sysconfig/network/routes file to oldroutes
2. Created two files:
a) /etc/sysconfig/network/ifroute-eth0
containing the line:
default "gateway" - eth0
b) /etc/sysconfig/network/ifroute-eth1
containing the line:
default "gateway" - eth1
(where "gateway" = the ip address of the gateway or router)
3. Restarted the network with the command:
rcnetwork restart
The computer is set up for dhcp configuration. What happens is that; if both
cards are connected to the network then a gateway is chosen (I don't know on
what basis but it works). If only one card is connected then a gateway is
setup in the routing table associated with that device (card). It all works
beautifully now.
Got the info. from the man pages, (man ifup and man routes).
Redirect firewall logs
Redirect the firewall's output to a different file such as /var/log/SuSEfirewall2. For this purpose, edit the file /etc/syslog.conf as root user and append the following section:
# # SuSEfirewall2 # kern.debug -/var/log/SuSEfirewall2
Then search for the line:
*.*;mail.none;news.none -/var/log/messages
and change it to:
*.*;mail.none;news.none;kern.!debug -/var/log/messages
After saving the changes, execute the command:
rcsyslog restart
The firewall's output is now redirected to the file /var/log/SuSEfirewall2 and the firewall will no longer log to the file /var/log/messages.