This tip is submitted by reader Zacharie:
switchdesk is the command to switch from KDE to GNOME or viceversa. This command provides a simple method of choosing between the various desktop environments available under Fedora Core, Cent OS and Red Hat Enterprise Linux.
If X Windows is running, switchdesk will bring up a dialog box which allows the user to choose between the available desktops installed on the system.
Task: To switch from GNOME to KDE, use the command
$ switchdesk kde
Task: To switch from KDE to GNOME, use the command
$ switchdesk gnome
Please note that file ~/.Xclients, ~/.Xclients-default stores the currently selected desktop.
A note about other distros/BSD
switchdesk is RedHat and friends only command. If you are using different Linux distribution or FreeBSD, open ~/.xinitrc file and type full path to your desktop manager. For example, to use xfce4 desktop:
$ vi .xinitrc
Append following line (your path may be different use, which command to get exact path):
Save and close the file. Enjoy new desktop.
While login you will see option for different desktops (provided that all of them are installed). Usually this is located below Username / password box or lower left button. Just select appropriate desktop (KDE/XFC4 etc).
Load KDE while running Gnome
You can load KDE while running Gnome desktop (thanks to sweta for pointing it out): Sysadmin because even developers need heroes!!!
Just open your gnome terminal and type the command:
$ startkde &
I am getting error that read as No Route to Host. I am trying to ping my ISP gateway as well as DNS server but I am getting this error. How do I solve this problem?
This problem indicate networking conflicts or some sort of networking configuration problem.
Here are things to check:
Can you ping to your local router interface (such as 192.168.1.254)?
Make sure your card (eth0) is properly configured with correct IP address and router address. Use ifconfig command to configure IP address and route command to setup correct router address. If you prefer to use GUI tools:
- redhat-config-network – Works on Red Hat and Fedora Linux/Cent OS.
- network-admin – Debian and Other Linux distribution use this GUI too
Use above two GUI tools to setup correct IP address, DNS address and router address.
b) Make sure firewall is not blocking your access
iptables is default firewall on Linux. Run following command to see what iptables rules are setup:
# /sbin/iptables -L -n
You can temporary clear all iptables rules so that you can troubleshoot problem. If you are using Red Hat or Fedora Linux type command:
# /etc/init.d/iptables save
# /etc/init.d/iptables stop
If you are using other Linux distribution type following commands:
# iptables -F
# iptables -X
# iptables -t nat -F
# iptables -t nat -X
# iptables -t mangle -F
# iptables -t mangle -X
c) Finally make sure you are using a router and not a proxy server. Proxy servers are good for Internet browsing but not for other work such as ftp, sending ICMP request and so on.
If you have, a password protected grub boot loader and you forgot both root and grub password, then you can recover grub-boot loader password using the following method/procedure:
* Use Knoppix cd
* Remove the password from Grub configuration file
* Reboot the system
* Change the root password
* Setup new Grub password if required (optional)
[click to continue…]
Simple and quick way to set up straightforward bandwidth monitoring with iptables,”Linux has a number of useful bandwidth monitoring and management programs. A quick search on Freshmeat.net for bandwidth returns a number of applications. However, if all you need is a basic overview of your total bandwidth usage, iptables is all you really need — and it’s already installed if you’re using a Linux distribution based on the 2.4.x or 2.6.x kernels” ..
Full article: online here.
Have you ever wondered why shutdown account exists on Linux server, especially under Red Hat Enterprise Linux distribution? The answer is quite simple – shutdown account can shutdown server. Here is how you can enable the shutdown account:
[click to continue…]