Archive

Archive for the ‘Lab Notes’ Category

Syncing Samba Passwords to User Account Passwords

October 10th, 2009

http://jaka.kubje.org/2007/05/14/unix-samba-password-sync-on-debian-etch/

This URL explains how to use pam_smbpass to allow synchronization of Samba passwords with actual Linux account passwords — making things infinitely easier for me.

sloik2004 Lab Notes

Changing Gnome’s Default Browser

March 13th, 2009

Setting default browser using *gconftool* (Gnome 2.0/2.2)
———————————————————

You will need GConf (and the gconf daemon running) to set this. If you
do *not* have the Gnome Control Center installed, there is a way to set
this using GConf directly:

See, which values are stored in that sub-tree. Save the output to a
file, so you can revert to those settings!

$ gconftool-2 -R /desktop/gnome/url-handlers/unknown
command = mozilla %s
need-terminal = false
enabled = true

Now, this should enter all those values (at least, they work for me):

$ gconftool-2 –set –type=string
/desktop/gnome/url-handlers/unknown/command ‘mozilla %s’
$ gconftool-2 –set –type=bool
/desktop/gnome/url-handlers/unknown/need-terminal false
$ gconftool-2 –set –type=bool
/desktop/gnome/url-handlers/unknown/enabled true

Setting default browser using *gconftool* (Gnome 2.4/2.6)
———————————————————

This is basically the as above, just some GConf key change:

The relevant key on Gnome 2.4 has changed, but is pretty much similar.
Simply substitute “unknown” by “http”, especially in the commands to set
the values.
/desktop/gnome/url-handlers/http

Also, the “https” branch may be useful. However, this is *not* set using
the GUI method mentioned above.

sloik2004 Lab Notes

Typing Spanish (Accented) Characters In Kubuntu…

January 21st, 2009

Found out how to do it here, it’s pretty straightforward:

http://techpatterns.com/forums/about865.html

  1. Open up kde control center. [ the k/s button on task bar], select control center.
  2. Select ‘Regional & Accessibility
  3. click on keyboard layout
  4. click on the ‘Xbd Options’ tab, then scroll down the list to: Compose key position. Make sure that Compose Key Position is checked. Now go down and check either right or left Win-key is compose. This will now enable functionality for the windows key, which otherwise isn’t used in linux/kde for much.

You have now enabled a key to control the creation of special characters, and you create those by doing the following:

Hit the windows key you selected, right or left one, one time, do not keep it depressed, then use the following combinations, after you release the windows key:

  • ?? = ¿
  • !! = ¡
  • ‘e = é
  • ‘a = á
  • ‘i = í
  • ‘o = ó
  • ‘u = ú
  • `a = à and so on…
  • “u = ü
  • << = «
  • >> = »
  • ^a = â
  • ,c = ç
  • ~n = ñ
  • (c = ©
  • (r = ®

There’s a big list of characters you can type here:

http://www.astro.ufl.edu/it/docs/intl-keyboard.html

sloik2004 Lab Notes, Uncategorized

A Minor Oversight…

October 16th, 2008

This is going to bug me for days on end. Electricutioner came in to my Tribes 2 server today and informed me of a “minor oversight” he discovered in my mod. He proceeded to give me a series of hints, and respond to my incorrect guesses. A very, very shortened chat log follows:

{NOS}Electricutioner: Hah..

[Kr]_Sloik: ?

{NOS}Electricutioner: Oh… nothing.

{NOS}Electricutioner: At least.. nothing… major.

{NOS}Electricutioner: But none the less… amusing… I think.

[Kr]_Sloik: What are you referring to?

{NOS}Electricutioner: Just an… um… oversight… a laughable one.

[Kr]_Sloik: Could you give me a good hint?

{NOS}Electricutioner: No, but I’ll see how long it takes you to figure out.

{NOS}Electricutioner: And I’ll tell you when you fix the oversight.

{NOS}Electricutioner: Well, if it makes you feel better, I had a equally stupid oversight in ECM for about 4 years until Turkey told me.

[Kr]_Sloik: OK… code or construction error?

{NOS}Electricutioner: Code.

{NOS}Electricutioner: If you don’t get it in like 2 weeks… I’ll tell you.

{NOS}Electricutioner: Yeah… it’s so minor, you’re going to laugh and cry when you figure it out.

{NOS}Electricutioner: Oh, and I’ll give you a hint. It has been around for about… three weeks or so.

He speaks in riddles…

sloik2004 Lab Notes, My Games, Projects

Securing A Directory With .htaccess

October 6th, 2008

It’s actually quite simple.

Create a .htaccess file in the directory with the following contents:

AuthUserFile /directory/containing/.htpasswd

AuthName “Title for Protected Site”

AuthType Basic

Require valid-user

To create the .htpasswd file, simple use the following command:

htpasswd2 -c .htpasswd hayden

And it will create the appropriate .htpasswd file in the directory you are in.

sloik2004 Lab Notes

Madwifi in Opensuse 11… Again

September 22nd, 2008

This guide is WONDERFUL for this problem.

http://www.susegeek.com/wireless/unable-to-set-atheros-wireless-card-with-madwifi-in-opensuse-110/

sloik2004 Lab Notes

Setting Default Sound Card in Ubuntu/Kubuntu

September 4th, 2008

I too was vexed by this problem. My preferred soundcard is my SBLive! but I use the VIA chipset based soundcard on my motherboard for VoIP stuff. Kubuntu was always making my VIA soundcard the default.

The solution is a bit obscure but it works.

Do:

sudo asoundconf list

I got back:

Names of available sound cards:
Live
V8237

I then did:

sudo asoundconf set-default-card Live

followed by a reboot to test.

Sure enough, the Live is now set to default. It’d be nice if there was a simple config app in the KDE configuration panel that did this.

sloik2004 Lab Notes

Tribes 2 Bots

July 12th, 2008

I’ve been messing with the bots in Tribes 2 a lot, and I’ve found these two documents to be somewhat helpful:

http://sloik.ezwebtogo.com/downloads/T2cmdlist.txt

http://sloik.ezwebtogo.com/downloads/botfuncs.txt

sloik2004 Lab Notes

MadWifi Problems in OpenSuSE 11

June 29th, 2008

Apparently the packager for MadWifi has messed up the version numbers for their OpenSuSE wifi driver packages.

A solution can be found below.

http://forums.opensuse.org/network-internet/wireless/386427-madwifi-kmp-issues-11-0-a.html

sloik2004 Lab Notes

Checking RAID Status

June 6th, 2008

To check the status of my server’s RAID array, I’ve found the following command to be useful:

# /sbin/mdadm --detail /dev/md0

sloik2004 Lab Notes