Category How To

Disable iptables on RedHat

To disable iptables on a Red Hat server, you can use this command to save the current rules first:

root@test [/]# /etc/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]

Then, this command turns off the firewall

root@test [/]# /etc/init.d/iptables stop
iptables: Setting chains to policy ACCEPT: nat mangle filte[ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]

You can also use this command to disable it when the server boots.

root@test [/]# chkconfig iptables off

Read More

Ubuntu – No Sound After Installing XFCE/Xubuntu

Sometimes after installing XFCE/Xubuntu along side Ubuntu LightDM the configuration for your present and active sound devices will get overwritten or removed. The first thing you should do is go to “Application Menu -> Multimedia -> Pulse Volume Control” Click the “Configuration” tab and check what audio devices it is listing. If it doesn’t display any skip to the section titled “Update”.

Check:

Configuration

Configuration

Output Devices

Output Devices

If it shows your sound devices click the “Output Devices” tab and make sure the sound device which should be outputting sound is not muted and that it has “Speakers” or “Headphones” in the “port” dropdown box which ever the case may be. Your sound should be functional now

Update:

If the “Configuration” tab doesn’t show any of your audio devices run the following c...

Read More

Ubuntu – Disable Boot Up Splash Screen

Splash screens are every were created to basically cover up the boot process. If your like me you prefer to see the initiation  process so you can watch for errors and  . To disable the boot you will need to make the following.changes to /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” and change it to GRUB_CMDLINE_LINUX_DEFAULT=”text”
After making the change in GRUB_CMDLINE_LINUX_DEFAULT you will need to rebuild and apply the new changes by running sudo update-grub2.

Now when you boot you will get a grub boot menu   after selecting which installation or mode to use.  Now you should see the verbose boot process rather the splash screen.

Read More

If your like me and are not a fan of the gui login screen that ubuntu uses or you want to reduce resource usage you can do the following to disable the gui login and rather use a console login instead.

echo "manual" | sudo tee -a /etc/init/lightdm.override

You can also do this with GDM

echo  “manual” | sudo tee -a /etc/init/gdm.override

This prevents the desktop manager from loading it’s service, you will now either need to start lightdm manually or have a different window manager installed because with out lightdm being started unity will not work. You can restart lightdm by doing the following

sudo service lightdm start

I personally use XFCE rather than lightdm since it uses less resources, you can edit the ....

Read More

Ubuntu – Changing Window Managers (Gnome/KDE/XFCE/LXDE)

Using one of the many versions of Ubuntu but want to use a different window manager than the one it came with? This can be done quickly and easily by installing the window manager you wish to use and logging out and back in. Sound simple enough? It is.

To install your new window manager you can use the following commands through a terminal.

For LXDE

sudo apt-get install lxde

for XFCE

sudo apt-get install xubuntu-desktop

for Gnome

sudo add-apt-repository ppa:gnome3-team/gnome3

sudo apt-get update

sudo apt-get install gnome-shell

For KDE

sudo apt-get install kde-plasma-desktop

Once you install the one you want, log out, choose the one you want by clicking the icon next to your username, and log in.
ubuntu-login

No sound after rebooting into XFCE or other window manager read...

Read More

Ubuntu – How to disable popup notifications

In recent versions of Ubuntu popup notifications have been added keeping you aware of software and system activity. As great as it sounds to be constantly updated with this information it can get very annoying if you are running peer 2 peer software or other highly active software. In cases such as this popup notifications  just get in the way and become annoying. Unfortunately there is no option to disable these notifications with in the system settings.

Not to worry though there is a simple way to disable these popup notifications which I have included below how to disable popup notifications for each branch of ubuntu that is available.

Ubuntu 10.xx +
sudo apt-get remove notification-daemon

Xubuntu
sudo apt-get remove xfce4-notifyd
or
if you only want to disable the notifications
sudo...

Read More

Ubuntu – Disable Super key (windows key) Application Launcher

If you are a gamer and play most of your games on a laptop running Ubuntu 11.xx + you might have run into the same issues I have regarding keyboard hot keys by accidentally hitting the super key(windows key) causing your game to minimize or behave in a less then preferable way.

The solution to this is to disable the super key (windows key) using compiz.

  1. Install the compizconfig-settings-managerInstall compizconfig-settings-manager package.
  2. Hit Alt+F2, type about:config and hit Enter to open the Unity configuration.
  3. Change or disable the shortcut for Key to show the launcher as you like to free your Super key:compiz
    compiz2 By selecting the super key(windows key) you can effectively disable it or change the key combination that is used to open the program launcher.

 

 

Read More

Ubuntu – Unity hiding the launch bar

hide launch bar

If you are using Ubuntu 11.xx or greater you are familiar with Unity and it’s launch bar. Some times this bar can just be in the way or become annoying taking up desktop real estate. Luckily hiding this sucker is a snap.

hide launch bar From the launch bar open “System settings”, then select “appearance” and finally select the “Behaviour” tab. From here set “Auto-hide the launcher” to “on” and set the desired sensitivity. The sensitivity is how much you will have to roll your cursor over the reveal area to make the launcher pop out.

 

Read More

Wine – No sound/garbled sound ubuntu 11.XX + 32 bit / 64 bit

Having trouble with sound not playing properly (sounding garbled or staticy) or have no sound at all when using wine? There are two  solutions which should resolve this issue for you quickly.

The first is using winetricks to change your sound driver to ASLA rather than using the default pulse audio drivers.

winetricksFrom the application launcher open winetricks, if you do not have winetricks installed you can do so quickly using the ubuntu software center or the SynapticPackage Manager.

defaultOnce you have opened winetricks select the default prefix or the prefix of whichever virtual instance you are having sound issues with.

changesettingsOnce you have selected the prefix you need to change select “change settings” from the menu and a list of configurable settings will be displayed.

alsaOnce the ...

Read More

Change the hostname in CentOS

To change the hostname in CentOS, you will first need to update the hostname line in the /etc/sysconfig/network file.

HOSTNAME=example.randomlinux.com

Once that is changed, you will want to add the IP address for the hostname to /etc/hosts.

127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.5 example.randomlinux.com

Then, you need to restart network for the changes to take affect.

service networking restart
or
/etc/init.d/network restart

Once that is done, you should be able to use the hostname command and it should show the new hostname that you set. On my test box I did have to restart the box for it to take affect, so if you don’t see the changes, you may need to reboot.

[root@example ~]# hostname
example...

Read More