Donnerstag, 9. Juni 2011
Autostart Windows 2008 Server [All Users]
Mittwoch, 8. Juni 2011
Add a new Partition on opensuse 11.4
1. Plan the new filesystem. Where would you like to use the new space? Do
df
to print a summary of free/used space on each of the existing mounted partitions. Do
du
on selected directories to find their size.
For example, I would consider using new hard drive space in one of the following mount points:
/usr/local
/home
/home/share/downloads
/usr/local/mp3s
/usr/local/dos_data
Here is Details.
/usr/local is suposed to survive any upgrade of Linux. It is nice to have it on a separate partition because I can even reformat other partitions without affecting my local contents stored in /usr/local. I surely want it of the type "ext2" or perhaps "reiserfs".
/home contains user data. Surely, it is the data that deserves the most care. It is obviously supposed to survive any upgrade of Linux. Wow, obviously I want it on a separate partition. The type is normally "ext2" or "raiserfs".
/usr/local/mp3s is a non-standard Linux directory. I may keep my MP3 (music) files there. Those tend to be large.
/usr/local/dos_data. Another non-standard directory. If I dual boot, I would consider making an extra partion of the type "DOS FAT32" or similar so as to share files between MS Windows and Linux transparently (both ways). I would configure all the Windows-based programs to use this "drive" as the default location for all user-generated files. I could even have "mp3s", "cds" and other such directories in this location. The serious drawback of this approach--MS Windows may insist on messing up with this partion on re-install.
2. Partition the new hard drive. For example, if my new harddrive is the slave on the second IDE interface (perhaps the "fourth" IDE drive), I could use:
cfdisk /dev/hdd
or the more old-fashioned (and standard) tool:
fdisk /dev/hdd
If your drive is not "hdd" adjust the above command as needed.
hda -- first ide master (whole disk)
hdb -- first ide slave
hdc -- second ide master
hdd -- second ide slave
sda -- first scsi (whole disk)
sdb -- second scsi (whole disk)
...
sdp -- sixteenth scsi (whole disk)
For other disks, consult /usr/src/Linux/Documentation/devices.txt.
Most of the time, Linux partitions to be of the type ext2 ("Linux").
Partitioning can be tricky--if you never have done it, read man fdisk and man cfdisk. It is very easy to delete a partition with all your data. Make sure you know which disk you are working with!
fdisk or cfdisk does not make any changes to the hard drive until I write the new partition layout. So if I make a bad mistake, I can always quit without writing. I write the layout to the drive only when I am completely done.
3. Format each partition. For example, to format the first partition, while checking for bad blocks (-c), I would do:
mkfs -c -t ext2 /dev/hdd1
4. Test the new partitions around. Mount the new partitions manually (the mount directory must exist and be empty). Copy a bunch of files to each partition. View/edit a couple of random files. Delete them all.
5. Copy data. Optional--only if you would like to move data from an old partition to a new partition. Go to the single-user mode (init 1). Mount the new partition manually. Copy the data from the old partition to the new partition. Careful with the old data, you probably don't want to lose it if you made a mistake, so I wouldn't delete it yet--I rename the top level directory appropriately. E.g.,
cp -R /usr/local/ /mnt/hdd1/
mv /usr/local/ /usr/local.old.backup_of_2005-04-21
6. Edit the file /etc/fstab. Modify it to reflect your new filesystem layout. Perhaps, insert the mountpoint for the new partition(s) or modify any old mountpoints as needed. For example, if moving /usr/local to its own partition, I would need to add to add a line like this:
/dev/hdd1 /usr/local ext2 defaults 1 2
7. Reboot and test. The alternative to reboot is to unmount old and mount new mount points. For example:
umount /usr/local
mount -a
but hard reboot may be a more rigorous test of the new layout.
8. Remove old data. After a few days, when I have the confidence everything is really working fine
Montag, 6. Juni 2011
Sonntag, 5. Juni 2011
Häßliches Win7 - winsxs
DISM.exe /Online /Cleanup-Image /spsuperseded
Danach sollte das Problem behoben sein.
Montag, 16. Mai 2011
Installation der XenDesktop Applikation
I must preface this to say that I have not done rigorous testing to determine if there are detrimental side-effects to the following process. I've used it a number of times and have not experienced abnormalities. But, as always, this is not endorsed by Citrix and your mileage may vary.
Use at your own risk!
- Close Desktop Studio.
- Stop Services
- Citrix AD Identity Service
- Citrix Broker Service
- Citrix Configuration Service
- Citrix Diagnostic Facility COM server
- Citrix Host Service
- Citrix Machine Creation Service
- Citrix Machine Identity Service
- Click the Start menu, type "cmd
"
Note: Different versions of SQLExpress store the sqlcmd command in different directories. It's easiest to use Windows Explorer to search C:\Program Files\Microsoft SQL Server for the correct location.
- Change to the binary directory where sqlcmd resides:
cd \Program Files\Microsoft SQL Server\100\Tools\Binn - Connect to the local SQLExpress database instance:
sqlcmd -S localhost\SQLEXPRESS - List the databases to determine the name of the database to drop:
sp_databases
go - Drop the database
drop database CitrixXenDesktopDB
go - List the databases again to validate it is no longer there:
sp_databases
go - Exit sqlcmd:
exit
- Start Services
- Citrix AD Identity Service
- Citrix Broker Service
- Citrix Configuration Service
- Citrix Diagnostic Facility COM server
- Citrix Host Service
- Citrix Machine Creation Service
- Citrix Machine Identity Service
When the services spin up the have a rude awakening because the database that existed when they shut down no longer exists. We now have to tell XD5 to start over.
- Open Desktop Studio
- On the "Specify the address of a Controller in the site you wish to administer" window select "This machine" and click OK
- Click Yes when prompted with, "The services are no longer permitted to access the configured database. Would you like to reset the services and retry?"
- Click "Desktop deployment" on the main Desktop Studio screen
- Complete the wizard as usual, with the exception of selecting "Use existing database" for the "Database configuration" element and leaving the default values.
- Click OK to automatically create the database
Sonntag, 8. Mai 2011
Xen Server 5.6
xe-mount-iso-sr //192.168.2.203/software/ms -t cifs -o usersername=***,workgroup=**,password=******
NFS
xe-mount-iso-sr
host:/volume
Freitag, 29. April 2011
Citrix WMI errors
rundll32 wbemupgd, RepairWMISetup
Re-registering the WMI components (Ref WMI FAQ)
The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLs and .EXE files in %windir%\sysWOW64\wbem.
To re-register the WMI components, run the following commands at the command prompt:
- cd /d %windir%\system32\wbem
- for %i in (*.dll) do RegSvr32 -s %i
- for %i in (*.exe) do %i /RegServer