Linux Tips
 
 

Home

Sabayon Linux - Getting flash 9 to work with sound

Load windows partition at boot

Keep windows settings for thunderbird

Unmute sound for bttv card

Getting font to show up in steam

Remove cpu scaling

Kubuntu - work around for power saving

Install nvidia driver

Sabayon Linux - Getting flash 9 to work with sound

Do the following in a terminal:

su
emerge --sync
emerge emul-linux-x86-soundlibs
emerge netscape-flash 
emerge nspluginwrapper

Reboot your computer after doing the above.
Note: the first time you try and play a flash file there will be no sound, so close firefox and try again. It should work the second try.

Load windows partition at boot

First disable selinux. Not positive that you have too, but read that you need too. You can try without doing so, but you might end up having too anyways. Selinux will probably cause other problems anyways…
Go to Administration | Security level and firewall.
Click SELinux
Under setting choose disable.
Now open a terminal and do the below:

su
mkdir /mnt/windows
yum install ntfs-3g //only do if your file system for windows is ntfs
kedit /etc/fstab //or gedit

add:

/dev/hdc1           /mnt/windows             ntfs-3g    defaults         0 0 //change /dev/hdc1 to whatever the partiion is for windows.

You can see what it is by typing fdisk -l as root. Change ntfs-3g to vfat if the file system is fat.
Then save the file and run:

mount /dev/hdc1

Keep windows settings for thunderbird

Make sure you mount your windows partition first.
This is what I did:

su
yum install thunderbird
exit //Exits su
cd "/mnt/windows/Documents and Settings/user/Application Data/Thunderbird/Profiles/"  //replace user with your user name for windows.
dir 
cd xxx.default //There should be one folder for the output of dir, if you have multiple profiles, then it might not be .default<br />
thunderbird -P

If there is a profile delete and create a new one. For the directory you should already be in the right one, if you did the cd xxx stuff above. Just click choose folder, and then click open. If your not in your thunderbird profile folder for windows, then browse there. It should be something like /mnt/windows/Documents and Settings/user/Application Data/Thunderbird/Profiles/xxx.default

Unmute sound for bttv card

First install xawtv

yum install xawtv

then run

v4lctl volume mute off

That will unmute the sound from the card, you still might have to go into kmix, and adjust the settings there too.

To make that command run everytime you login to kde:

Open kedit and add v4lctl volume mute off to the file and save it as tv.sh under ~/.kde/Autostart/
Then in a terminal:

chmod 755 ~/.kde/Autostart/tv.sh

Sound should work fine now.

Getting font to show up in steam

Edit /home/tommy/.wine/drive_c/Program Files/Valve/Steam/resource/steamscheme.res in kate or vi or nano or something. Basically search for Tahoma and replace with a font you have. You have to replace all instances of Tahoma with the other font name. I replaced them with AlHor. Which looks the best to me. If you use kate then you can go to Edit then Replace, and put in Tahoma for text to find and AlHor or whatever in replacement text.

Some of the font was to small for me to read, so I changed the tall to 16. Unless it was bigger then 16 already.

You can see the font names by going into kcontrol and clicking fonts, and then click change font by one of them, and it’ll list them.

Update
Better solution is to copy the Tahoma font from your windows installation or download it from somewhere. If you don’t then you won’t see any text while playing half life 2, so you won’t be able to click new game. I copied all of the fonts from my windows installation, just to be sure I have everything I need. Copy the fonts to ~/.wine/drive_c/windows/fonts or install them into your system.

Fix found here

Remove cpu scaling

CPU scaling will make your computer run slower. My 2 GHz processor was running at 1 GHz, now its back at 2 GHz.

sudo /etc/init.d/powernowd stop
sudo apt-get remove powernowd

I have a big speed difference from doing that.

Kubuntu - work around for power saving

Problem:
After you reboot or logout the power saving setting changes.
Solution:

kate ~/.kde/Autostart/power.sh

add:

#/bin/sh
xset dpms 1800 1800 1800 #change all 1800 to the number of seconds you want it to turn off the monitor. 60 * x

save it then run:

chmod 755 ~/.kde/Autostart/power.sh

Install nvidia driver

Use the Add/Remove option in the menu to install it. Make sure when you search you choose to search all packages.
Then do the below:

sudo nvidia-glx-config enable
sudo dpkg-reconfigure xserver-xorg

You might not have to reconfigure xserver, but I would do it just in case. You could find out the hard way by clicking ctrl alt back space. If you get an xserver error, then you know you have to reconfigure. So click through all the dialogs, and then click alt F1. Then login and run sudo dpkg-reconfigure xserver-xorg.