Archive

Archive for the ‘Lab Notes’ Category

Pulseaudio Not Remembering Default Sound Device?

May 19th, 2008

The solution is simple! Look to this thread:

http://www.fedoraforum.org/forum/showpost.php?p=948028&postcount=5

It’s as simple as shutting down and restarting the Pulse daemon as soon as you’ve got everything set up the way you like it. Otherwise, when you log off or shut down, the daemon is killed before it can save its settings, reloading the defaults on the next boot.

Pulseaudio daemon won’t save it’s settings to ~/.pulse if just killed when exiting your login session. It will only save if you kill the daemon with pulseaudio -k command. So I had to add a 1-line script (/usr/bin/pulseaudio -k) to /etc/kde/shutdown directory. Now it works.

sloik2004 Lab Notes

Change Java Version…

May 19th, 2008

To change the Java version you’re currently using under Fedora 8 (and maybe other distros) run the following command as a root user. Take note: this command is in /usr/sbin/, so just running it through su may not work.

update-alternatives –config java

sloik2004 Lab Notes

WG311T Connect At Startup – OpenSuSE

May 17th, 2008

This was a bit annoying, but eventually was easy to fix according to this thread:

http://www.suseforums.net/index.php?s=5bb4454b3b055089ec6b1deae9bb940c&showtopic=49571&pid=244126&st=0&#entry244126

There’s a boot script at /etc/init.d/boot.local. Add
modprobe ath_pci
sleep 5
ifup ath0
sleep 5

sloik2004 Lab Notes

Batch Processing Recursively In Windows

May 14th, 2008

It’s so much easier in Linux, but this page finally revealed what it takes.

http://kennethhunt.com/archives/000173.html

Recursive Find Text String In Files, Output Line Number:

FOR /R c:\~kenneth %v IN (*.css) DO find /N /I “#banner” “%~fv” >> test.txt

sloik2004 Lab Notes

Gnome’s Default Application Association

May 4th, 2008

Evolution likes to use Gnome’s setting for the default web browser. To edit Gnome’s default web browser, you use this command:

gnome-default-applications-properties

In order to get this app to work in a KDE only environment, the following package is needed:

control-center

sloik2004 Lab Notes , , , ,

Mounting An ISO Under Linux

May 3rd, 2008

The most beautiful built in feature ever.

mount -o loop disk1.iso /mnt/disk

Mounts an ISO to the specified directory.

sloik2004 Lab Notes , , ,

Nvidia Permissions Error

April 13th, 2008

With my NIS server and my OpenSuse clients, I’ve been having some problems getting 3D acceleration working.

Luckily, I’ve found a simple solution. Because I’m unable to assign the NIS users to the video group (which is what Nvidia’s permissions are set to), I must set the Nvidia device file to allow access for everyone.

Just edit /etc/modprobe.d/nvidia and replace 660 with 666. All done!

On another note, Doom 3 will only run at 24 bit depth. Make sure the xorg.conf file is set to that!

sloik2004 Lab Notes

Windows Update Reboot Nag Screen

April 11th, 2008

This is ridiculous.

Windows will not stop nagging me to restart my computer. Ever. It interrupts games, and is just plain annoying. Fortunately, I’ve found a way to disable it.

Now, to get rid of it:
Start / Run / gpedit.msc / Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations

Pretty nifty.

sloik2004 Lab Notes

Youtube Higher Quality Trick

March 18th, 2008

Apparently, adding &fmt=18 to the end of any YouTube URL will present you with a higher quality version of the video. Interesting…

sloik2004 Lab Notes

Login Screen Starts Too Early

March 15th, 2008

To keep the login screen from starting too early, before NIS is initialized and NFS shares are mounted, I used this command under OpenSuSE 10.3:

insserv -r earlyxdm

I got this command from the following thread:

http://linux.derkeiler.com/Mailing-Lists/SuSE/2007-10/msg01660.html

sloik2004 Lab Notes , , , , ,