Active Directory Mass import

Last Updated on Tuesday, 10 August 2010

Mass Import Users with individual passwords in Active Directory

I looked for a nice way to bulk import hundreds of users in one of our Active Directory's, without hassling with ldifs, csvde's and base64 encoded passwords.

What you need :

Domain Admin Account on AD server
CSV-like file (delimiter ";"), first column username, second column password (here the file is named logins.dat)
The Name of the OU which will be containing your new users (in our example the OU is called Name-of-OU)

What you'll get

A simple way to import hundreds or thousands of users, without knowledge of ldifde and preparing the proper password file

How ?

On the AD server, open a DOS Prompt with admin rights ("right click-> run as Administrator", then issue this command :

FOR /F "tokens=1,2* delims=; " %i in (logins.dat) do dsadd user "CN=%i,OU=NAME-of-OU,DC=DOMAIN,DC=LOCAL" -samid %i -pwd %j

where %i = username (1st column in our CSV-like file called logins.dat)
and %j = password (2nd column in our CSV-like file called logins.dat)


Be sure that the specified Passwords meet the minimum required complexity, or temporarily disable that annoying Group Policy

After the operation completes, your OU will be populated with the imported users.

Fedora 11 - Sound problems

Last Updated on Tuesday, 19 July 2011

If you have a Notebook with an Intel HDA -Conexant Waikiki Chipset like me, and have ever had trouble to get sound working in Linux, then this is for you.

Recently , I installed Fedora 11 onto my Toshiba Notebook. Everything went fine, except that there's no sound coming from the speakers at all .

Symptoms :

Simple : there is no sound at all

output of cat /etc/proc/asound/cards :

[yannick@toshiba ~]$ cat /proc/asound/cards
0 [Intel          ]: HDA-Intel - HDA Intel
HDA Intel at 0xd2500000 irq 22

output of aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: Conexant Digital [Conexant Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0

All sound channels are unmuted (checked with alsamixer and the Gnome Panel applet

Googling :

Several forums suggest to edit /etc/modprobe.d/alsa-base, to add  aline

option snd-intel-hda model=xyz

I tried several options, including toshiba, auto, 3stack, laptop-micsense,laptop-eapd etc..

Then, in a single post on a forum (unfortunately forgot to bookmark the URL), there was the solution, as incredible as it is..


Solution :

(This solution is confirmed to be working with Bios Version 4.7 or above, if you have an earlier Version, please visit Toshiba's Support Site to download a recent Version)

Just use kmix, the kde Sound Mixer Applet, to unmute (!) the sound channels. Yes, it works, even if the Gnome Panel and alsamixer see the channels as unmuted.

Kmix is part of the kdemultimedia package, so you'll have to install :

yum install kdemultimedia

Afterwards, pop up a terminal and launch (as a normal user) kmix

Ignore the error messages and have a look in the upper right corner.

There is a new icon, kmix. 

Open it, and untick "mute".

Voila, there you go, now you have Sound.

Fedora 16 - Install XBMC 11

Last Updated on Friday, 17 February 2012

This little guide will help to install (compile) World's best Media Centre, XBMC, in Fedora OS (latest release is 16)

We will install XBMC with all nice features such as Airplay / Airtunes Support and HDMI-CEC (plug the USB adaptor before you start)

Please note that there is no HAL Support, as it is not used by Fedora anymore. Also, there is no NFS Support, you should mount your Network Shares with SMB/CIFS or Apple Filing Protocol

All these commands are to be done with the root account.

Prepare System

Activate RPM Fusion Repository:

rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

yum update

Install Dependencies

yum install autoconf automake sysconftool libtool gettext-devel gcc-c++ boost-devel mesa-libGL-devel SDL-devel SDL-static glew-devel mysql-devel libass-devel libmpcdec-devel libmpeg2-devel libmad-devel libjpeg-turbo-devel libsamplerate-devel libogg-devel libvorbis-devel libmodplug-devel libcurl-devel flac-devel libgcrypt-devel bzip2-devel libtiff-devel lzo-devel libssh-devel bluez-libs-devel yajl-devel libsqlite3x-devel libpng-devel pcre-devel libcdio-devel libbluray-devel jasper-devel libvdpau-devel SDL_mixer-devel SDL_image-devel dbus-devel libmicrohttpd-devel pulseaudio-libs-devel avahi-devel libXt-devel libXmu-devel librtmp-devel libsmbclient-devel libplist-devel libudev-devel libusb-devel python-devel gperf readline-devel nasm expat-devel

Download XBMC source

download source from http://mirrors.xbmc.org/releases/ and extract :

tar xzf xbmc-*.gz

cd xbmc-*

Build included Dependencies

Building libshairport :

cd /path/to/xbmc-sources/lib/libshairport make make install

Building libdvdcss

cd /path/to/xbmc-sources/lib/libdvd/libdvdcss ./configure make make install

Building libafpclient

cd /path/to/xbmc-sources/lib/afpfs-ng make make install cd /path/to/xbmc-sources/lib/libshairport make make install

Building libcec

cd /path/to/xbmc-sources/lib/libcec make make make install

Installation

Now it's getting serious.

In the XBMC Sources folder, do:

./bootstrap

./configure --enable-airplay --enable-airtunes --enable-libusb --enable-libcec

make

Take a walk in the park, this is going to take some time

make install

Afterwards, you can start XBMC directly via the Application Menu or via the command line:

xbmc

Voilà, there you go.

Magic Linux Tips

Last Updated on Friday, 06 January 2012

Java Plugin for Browsers ,this example is for Java 1.6u29:

Install Java following this guide, then :

update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so /usr/java/jre1.6.0_29/lib/i386/libnpjp2.so 20000

 

Complete Backup of a live linux system to /backups

do not forget the . at the end:

tar -zcvpf /backups/fullbackup.tar.gz --directory=/ --exclude=proc
--exclude=sys --exclude=dev/pts --exclude=backups .

 

To restore , put the fullbackup.tar.gz at the top level (i.e. /)

tar -zxvpf /fullbackup.tar.gz


 

OCS Inventory a XEN Server 5

Last Updated on Tuesday, 19 July 2011

How to : Perform an XEN Server 5 Inventory with OCS-Inventory

What you need :

  • Internet access on the Xen Server
  • OCS-Inventory Linux client (OCSNG_LINUX_AGENT_1.01.tar.gz)
  • Shell Access to XEN Server (can also be via ssh or XenCenter)
  • a running OCS-Inventory Server (of course)
If you don't know what OCS is, it is simply a very powerful OpenSource Computer Inventory and Package Deployement tool. (check it out www.ocsinventory-ng.org for more info)

As the XEN Server 5 is based on a CentOS Linux System, only few steps
are required to compile and use the OCS Linux Client :

  1. Enable CentOS Rositories
Edit /etc/yum.repos.d/CentOS-Base (i.e.with nano or vi)
Change every "enabled=0" to "enabled=1"
Save the file

  1. Prepare System for compilation
Compiling and runnung the OCS Linux client requires following packages :

make
gcc
perl-libwww-perl.noarch
perl-XML-SAX.noarch
perl-NET-SSLeay.i386

Install packages via
yum install <<package1>> <<package2>> etc...

  1. Compile OCS Linux client
untar the package
tar -xvf OCSNG_LINUX_AGENT_1.01.tar.gz
change into the newly extracted directory :
cd OCSNG_LINUX_AGENT_1.01
launch the setup process :
./setup.sh

Answer all the questions, i.e. Address and port of OCS Inventory Server
For the rest, use default answers (mostly yes).
Compiling should not take that long.
Wait until it is finished, if you see error messages, you can view ocs_agent_setup_log for details.

  1. Performing an Inventory
Simply launch ocsinventory-client.pl
Wait a few seconds, then login onto your OCS Inventory Server to verify that it worked.


Ocs inventory MacOS X 10.7 Lion

Last Updated on Friday, 12 August 2011

This small Workshop will help you setup the OCS Inventory Agent for Apple's latest MacOS X Installment: Lion (a.k.a. 10.7)

It also works for older versions of OS X, just make sure to install XCode before you start.

Read more...

Pinnacle USB PCTV 150e in Linux

Last Updated on Tuesday, 19 July 2011

I got myself an used USB Analog TV Grabber PCTV150e from Pinnacle :

This thingy comes with Windows only Drivers (of course, what did you expect?)

However, with a very little fine tuning, this nice little Device works great (and even better according to Image Quality) in Linux then in Windows.

 

This is me playing Super Mario Bros 3 on a NES hooked up to my Linux Box via the Pinnacle USB PCTV 150e, I like the quote on the title bar, it fits me so much ;)

How?

  1. Install TVTime
  2. TVTime is a very great software for watching Television on a Linux Desktop. Furthermore it grabs Video and Sound from nearly any source of an Analog Tuner (Composite Video, SVHS, you get the trick..)

    Install it with

    On Ubuntu  : "sudo apt-get install tvtime sox libsox-fmt-all"

    On Fedora : "yum install tvtime sox"

    I'll come to the sox and libsox stuff a bit later...

    A shortcut will be placed in you apps Menu, or you can simply launch it with "tvtime".

    You'll notice that the image quality is great, but there is no sound...

  3. Determine the Audio Device of the Pinnacle USB
  4. In a Terminal, simply launch

    cat /proc/asound/cards

    Output will be something like :

    0 [M5455 ]: ICH - ALi M5455 ALi M5455 with ALC655 at irq 20

    1 [UART ]: MPU-401 UART - MPU-401 UART MPU-401 UART at 0x330, irq 5

    2 [PAL ]: USB-Audio - PCTV USB2 PAL Pinnacle Systems GmbH PCTV USB2 PAL at usb-0000:00:1c.3-5, high speed

    Note the number of the Pinnacle USB Device (In this case, it's 2, it might be different for your system)

  5. Create a new launcher for TVTime
  6. Create a new file , and paste the following command (which I found on a user friendly German Friendly, but forgot to bookmark Frown)

    #!/bin/sh

    #-q

    sox -r 48000 -w -c 2 -t ossdsp /dev/dspX -t ossdsp /dev/dsp & tvtime --mixer=/dev/mixer:pcm


    Notice the first /dev/dspX ? Substitute it with the number of your USB PCTV Audio Device (in this case , 2)

    Save the new file, and give it a meaningful name, i.e. start-tvtime.sh or something like this

    Now launch this file (you may want to do an chmod +x on it first), and voilà, now there's sound being played.

     

Buy cheap web hosting service where fatcow web hosting review will give you advices and please read bluehost review for more hosting information.
Copyright © 2012 Press Start to Stop. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.
Free Joomla Templates designed by Web Hosting Top