Friday, August 25, 2006

Mac OS X Adding a User From the Command Line

  1. Create a new entry in the local (/) domain under the category /users.

    niutil -create / /users/username

  2. Create and set the shell property to bash.

    niutil -createprop / /users/username shell /bin/bash

  3. Create and set the user’s full name.

    niutil -createprop / /users/username realname "User Name"

  4. Create and set the user’s ID.

    niutil -createprop / /users/username uid 503

  5. Create and set the user’s global ID property.

    niutil -createprop / /users/username gid 1000

  6. Create and set the user name on the local domain, as opposed to the network domain or another domain.

    niutil -createprop / /users/username home /Local/Users/username

  7. Make an entry for the password.

    niutil -createprop / /users/username _shadow_passwd

  8. Set the password.

    passwd username

  9. To make that user useful, you might want to add them to the admin group.

    niutil -appendprop / /groups/admin users username

Wednesday, August 23, 2006

Ten tips for new Ubuntu users

Monday, August 14, 2006

Google Games

Here is the link to eight wonderful google games. Have fun!

Saturday, August 12, 2006

Make Ubuntu look like OSX

Here is a guide to modify Ubuntu desktop look like OS X.

Friday, August 11, 2006

Working suspend the nvidia modules

Fedora Core 5
copied from http://forums.fedoraforum.org/forum/showthread.php?t=106444

1) Make backups of files we're going to edit and install pm-utils:
Code:

su -
yum install pm-utils
cp /etc/pm/functions-nvidia /etc/pm/functions-nvidia.backup
cp /boot/grub/grub.conf /etc/grub.conf.backup

Now, edit the /etc/pm/functions-nvidia and commend out this line:
Code:

/usr/sbin/vbetool post

in the resume_video() so that the line ends up looking like this:
Code:

### /usr/sbin/vbetool post

2) Next, we have to remove the built-in AGP support and use Nvidia's AGP driver. So, let's edit the /boot/grub/grub.conf, and add agp=off to the kernel line.
See a line like this:
Code:

kernel /vmlinuz-2.6.16-1.2096_FC5 ro root=LABEL=/ quiet

agp=off should be added to the end to look like:
Code:

kernel /vmlinuz-2.6.16-1.2096_FC5 ro root=LABEL=/ quiet agp=off

Your line may look a little different or the kernel version in the /vmlinuz-... path may not be the same. Please don't change that part, like last time this is just to show where to add the text.
3) Reboot, and you're good to go. Hitting the "suspend" button will put the computer into power-saving mode, and all your previous windows and applications will return to their previous state on resume.

Ubuntu
copied from http://parrenin.frederic.free.fr/DellLatitudeD800/linux-DellLatitudeD800.html
1)Change /etc/X11/xorg.conf from Driver "nv" to Driver "nvidia"
2)add Option "NvAGP" "1" in section "devide"
3)set POST_VIDEO to false in /etc/default/acpi-support

Thursday, August 10, 2006

Speed Up Firefox

1.Type "about:config" into the address bar and hit return. Scroll down and look for the following entries:
network.http.pipelining network.http.proxy.pipelining network.http.pipelining.maxrequests

Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.

2. Alter the entries as follows:
Set "network.http.pipelining" to "true"
Set "network.http.proxy.pipelining" to "true"
Set "network.http.pipelining.maxrequests" to some number like 30.
This means it will make 30 requests at once.

3. Lastly right-click anywhere and select New-> Integer. Name it "nglayout.initialpaint.delay" and set its value to "0". This value is the amount of time the browser waits before it acts on information it receives.

Saturday, August 05, 2006

VLC under Fedora Core 5

bug:vlc: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv-
>format)' failed.
解決方法:修改[Settings][Preferences]下的[Audio][Output modules][ALSA]
將ALSA Device Name由Default改為自選(按[Refersh list])