Random Linux

Linux, video games and web hosting

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

[email protected] [/]# /etc/init.d/iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]

Then, this command turns off the firewall

[email protected] [/]# /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.

[email protected] [/]# chkconfig iptables off

 

January 27th, 2015

Posted In: How To

Tags: , , , ,

Leave a Comment

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 commands from a terminal window.

killall pulseaudio; rm -r ~/.config/pulse/* ; rm -r ~/.pulse*
If it says it couldn't remove the files in question it means pulse never created them when it was loaded. 

Now run the following commands from terminal, once they have completed reboot your computer, once you are back in XFCE open “Pulse Volume Control” and  follow the directions from the section titled Check.

sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; sudo apt-get -y –reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status; sudo usermod -aG `cat /etc/group | grep -e ‘^pulse:’ -e ‘^audio:’ -e ‘^pulse-access:’ -e ‘^pulse-rt:’ -e ‘^video:’ | awk -F: ‘{print $1}’ | tr ‘\n’ ‘,’ | sed ‘s:,$::g’` `whoami`

 

October 28th, 2013

Posted In: General, How To

Tags: , , , , , , , , , , , , , , ,

Leave a Comment

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.

October 27th, 2013

Posted In: General, How To

Tags: , , , ,

Leave a Comment

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 No Sound After Installing XFCE/Xubuntu

October 23rd, 2013

Posted In: How To

Tags: , , , , , , , ,

Leave a Comment

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 mv /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service /usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service.disabled

Kubuntu
sudo apt-get remove notify-osd
or to disable
sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service.disabled

Lubuntu
sudo apt-get remove notify-osd
or to disable
sudo mv /usr/share/dbus-1/services/org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service.disabled

October 12th, 2013

Posted In: How To

Tags: , , , , , , ,

Leave a Comment

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.

 

 

October 9th, 2013

Posted In: How To

Tags: , , , , , , ,

Leave a Comment

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.

 

October 9th, 2013

Posted In: How To

Tags: , , , , , , ,

Leave a Comment

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 settings menu comes up you are going to scroll down until you find the setting “sound=alsa” select this and click “Ok”. Your sound should now be working and clear.

 

 

 

 

Another way to resolve this sound issue is to install ia32-libs and ia32-libs-multiarch through synaptic package manager. These two packages will also update a number of packages relating to pulse sound. Once you have installed these packages you will need to reboot to load the new libraries. It is important that you reboot and not just log out. Logging out will not load the updated libraries.

Once rebooted your sound should be working properly in wine.

October 9th, 2013

Posted In: How To

Tags: , , , , ,

Leave a Comment

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.

[[email protected] ~]# hostname
example.randomlinux.com

September 20th, 2013

Posted In: How To

Tags: ,

Leave a Comment

Next Page »