Using Windows Server 2008 as a SUPER workstation OS

Posted: Mon, 11 Feb 2008 22:40:00 GMT

Windows Server 2008 is the best OS to be released till date from Microsoft’s stable. And the moment I got hold of the RTM build I could not resist installing it on my workstation. Due to the nature of my work I always prefer running a Server OS on my main workstation… I have been running Windows 2003 disguised as XP (with all the themes and stuff) all these days. So here is my tale of how I went about setting up Windows Server 2008 to look and fell like its desktop counterpart Windows Vista.

1. Enable Hardware Virtualization

My workstation is a x64 machine with hardware virtualization capabilities. This means I can run Hyper-V on my machine. Even if your machine’s hardware supports virtualization it is most likely not going to be enabled by default. You have to enable it via your BIOS setup.

2. Install the latest Graphics and Audio drivers

Being a server OS Windows 2008 carries with it basic graphics and audio drivers. To utilize the full strength of your hardware ensure you install the latest drivers for both graphics and audio hardware. Only with the proper graphics drivers will you be able to enable the “Aero” experience on Windows 2008.

3. Desktop Experience Feature

The Desktop Experience Feature enables a bunch of stuff that is by default present on a desktop OS. Most importantly it includes Themes, Windows Media player and the Aero related features. You will have to enable it form the Server Manager. The “Turn Windows features on or off” / “Add remove windows components” has all been rolled into the Server Manager now.

Server Manager > Features > Desktop Experience

Installing the Desktop Experience feature does not enable them. You have to manually set them up.

4. Themes

To enable Themes you will basically have to enable the Themes Service. Again being a server OS it is not enabled by default.

Services.MSC > Themes

Set the start up type to Automatic

Enabling the Aero Theme.

For this go to Control Panel > Personalization >Theme and select Windows Aero

5. Search

Search is also disabled by default on Windows 2008. Searching is important for me as I use it a lot to find my emails. To enable search you will have to add the File Services Role via Server Manager.

Server Manager > Roles > File Services > Windows Search

Outlook relies on this search service.

6. Disable Shutdown Event Tracker

Since I am using it as a workstation I do not want to keep a track of all the Shutdowns. The Shutdown Event Tracker is the pop up that you get asking you for a shutdown reason. To disable it

Open mmc.msc

Add the Group Policy snap-in

Under Administrative Templates expand System

Set Display Shutdown Event Tracer to Disabled

7. Audio

For audio you need to enable the Windows Audio service. You do this by setting the startup type to Automatic.

Services.msc > Windows Audio

Ensure you have proper drivers for your audio hardware… for me the default driver was not enabling the headphones … it started working fine after I got the proper driver.

8. SuperFetch

As a workstation, enabling SupertFetch will give you that additional bit of responsiveness. The SuperFetch services is disabled by default and when you try to enable it you will most likely get an error message “The operating system is not presently configured to run this application

You will have to make two registry changes to enable this service. I basically copied them over from my Vista machine.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters

EnablePrefetcher DWORD 3

EnableSuperfetch DWORD 3

9. Get a codec pack.

For media hungry buffs download a codec pack. This will ensure you can play all media files.

10. Enable Hyper-V

With Hyper-V you can run virtual machines on your workstation. This is useful if you want to run your tests on older OS versions. Enabling  Hyper-V is easy

Server Manager > Roles > Hyper-V

Remember you need a Hyper-V enabled Windows 2008 licence and also your hardware has to support virtualization.

Also If you are using an existing VHD it may ask you to re-Activate Windows as it detected hardware changes.

One good thing about Windows Server 2008 is that it no longer asks for the i386 folder like Windows 2003 while you enable features.

11. Processor Scheduling

As pointed out in a comment on my previous post; On Windows Server 2008 background services are given preference over interactive programs. You can change this behavior by

Control Panel > System and Maintenance > System > Advanced System Settings > Advanced > Performance > Settings > Advanced > Processor Scheduling

Setting this to Programs will make foreground programs more responsive.

12. Visual Effects

One thing you will notice on Windows Server 2008 is that by default you will not see Preview Thumbnails in your Documents / Music / Video folders. This has to be enabled explicitly.

Control Panel > System and Maintenance > System > Advanced System Settings > Advanced > Performance > Settings > Visual Effects

Based on your preference you can tweak these settings.

13. Power Options

Do your bit for a Green World! The Balanced (default) power plan on Windows Server 2008  does not turn off hard disks by default. On Vista hard disks are turned off after 20 mins. You can change this by

Control Panel > Hardware and Sound > Power Options > Change plan settings

It does take a bit to kick start the hard disks when you resume work but that’s a sacrifice worth making for a greener world :).

14. IE Enhanced Security

IE Enhanced Security Configuration has been moved from Add Remove Windows Components (on Windows 2003) to the Server Manager on Windows Server 2008.

Server Manager > Security Information > Configure IE ESC

You now have a choice to disable it only for Administrators.

And to end with a couple of clarifications

* Why am I recommending Windows Server 2008 over Windows Vista ?

I am not!

* How to get Sidebar / Media center on Windows Server 2008?

My honest opinion would be to look for alternatives.

* Will hardware problems go away moving to Windows Server 2008?

Not likely. One of the biggest complaints against Vista was hardware issues. Without proper  drivers from your hardware vendors your ride on Windows Server 2008 is again going to be bumpy. For me all Vista compatible drivers worked fine with Server 2008 and I believe they should work for you as well.

* Will all software work on Windows Server 2008?

Most will but some setups detect Windows Server 2008 as a server OS and may not install. The compatibility mode does not have a Vista option only XP / Windows 2003 and other legacy OS.

=======================

+++

I -Info about sidebar:

I found in recent builds of Windows Server 2008 folder named “Windows Sidebar” in Program Files and I was able to run it smoothly 🙂

II- – If – I – Not avaible

I have succesfully installed Sidebar on W2k8.

1) Just copy “c:\Program Files\Windows Sidebar” folder from a Windows Vista machine.

2) Run from console: “sidebar.exe /RegServer”

(these are the all options you have: sidebar.exe /autoRun /AX /CPL /detectMem /showgadgets /uninstallgadgets /RegServer /UnregServer)

======================

LINKS

http://blogs.msdn.com/vijaysk/archive/2008/02/11/using-windows-server-2008-as-a-super-desktop-os.asp

http://www.petri.co.il/bypass-windows-server-2008-activation.htm

http://www.winbeta.org/comments.php?shownews=14708&catid=1

http://exo-blog.blogspot.com/

http://www.win2008workstation.com/wordpress/

http://weblog.infoworld.com/enterprisedesktop/archives/2008/03/windows_worksta.html?source=rss

In the case that the monthly reset did not run, an admin can run:

echo "action=cleanreset&value=all" >> /usr/local/directadmin/data/task.queue

in order to only remove the previous months data.

This will do a standard reset of bandwidth.tally files and user.usage files, but will not follow with a tally.

You’d need to run the “action=tally&value=all” command afterwards to recount the correct stats for Reseller Level and Admin Level counting.

echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue


PHP5 + Mysql 5 Türkçe Karakter Problemi
2005-12-22 11:15:43
PHP5 + MYSQL 5 ikilisinin kurulu olduğu bir sunucuda şu şekilde bir sorun ile karşılaşmıştım. Bu problemi linux listelerindeki arkadaşlara da sordum ve saolsunlar yardımcı oldular. Bende şimdi sizlerle paylaşmak istedim.
Site üzerinden mysql 'den veri çeken php dosyasını çağırdığımda Türkçe karakterler ? şeklinde gözüküyordu. Bunun bir çok nedeni olabilirdi başlangıçta. Mysql 'i latin5 charset ile başlatmak sorunu çözebilirdi ama yetmedi. Daha sonra bu problemin mysql in bir bug 'ı olduğunu ve mysql i çalıştırırken verilen bir parametre ile bunun düzeltilebildiğini öğrendim. Doğruymuş:)

/etc/my.cnf dosyamı şu şekilde düzenledim:

[root@~~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
#socket=/var/lib/mysql/mysql.sock
default-character-set=latin5
#character-sets-dir=/usr/share/mysql/charsets
#default-collation=latin5_turkish_ci
max_connections = 400

[mysql.server]
user=mysql
default-character-set=latin5

[safe_mysqld]
err-log=/var/log/mysqld.log

[mysql]
default-character-set=latin5

ve bu conf. dosyasına ek olarak mysql sürecini başlatan betiğe aşağıdaki parametre yi de ekliyorsunuz.

--skip-character-set-client-handshake

Bu parametre, varsayılan server karakter setini kullanan ve clientlar tarafından gönderilen karakter set bilgisini yok sayar.

Doubtlessly you will be familiar with tools such as ISO Buster for Windows which allow you to open an ISO file without having to burn it to CD to have a little lookie at its contents….However, in Linux we have this tech built in. And ISO image can be mounted just like any device or file system, and here is how…

Create a mount point for the ISO:

BASH# mkdir /mnt/iso

Now mount the ISO in the mount point with the following command:

BASH# mount myiso.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0

Where myiso.iso is your ISO file.

What I haven’t tried yet is omitting the ro (read only) option, so that it might be possible to make changes to the ISO before finally burning, not sure if this works (will check) but the command would probably look like this:

BASH# mount myiso.iso /mnt/iso/ -t iso9660 -o loop=/dev/loop0

linux konsolda Birden cok dosya icinde bul ve degistir islemleri yapmak.

Bu kod yeni sunuculardan bir tanesine aktarilan domainlerin dnslerinde yapilmasi gereken degisikler icin gerekti.

Basariyla uygulandi.

ingilizce metin su sekilde:


You could also use find and sed, but I find that this little line of perl works nicely.
perl -pi -w -e 's/search/replace/g;' *.php
-e means execute the following line of code.
-i means edit in-place
-w write warnings
-p loop

Example I had the following style sheet in a section:
and I wanted the following instead:
As each expression is a regular expression you’ve got to escape the special characters such as forward slash and .
\.\.\/includes\/style\.css

So the final line of code ends up as
perl -pi -w -e ‘s/\.\.\/includes\/style\.css/admin\.css/g;’ *.php

Benim uguladigim sekilde ise :

/var/named/*.db dosyalarinda
ns1.eskidomain.net.
adresinin

ns1.yenidomain.org.
ile degistirilmesi gerek


[root@pbserver named]# perl -pi -w -e 's/ns1\.eskidomain\.net\./ns1\.yenidomain\.org\./g;' *.db
[root@pbserver named]# perl -pi -w -e 's/ns2\.eskidomain\.net\./ns2\.yenidomain\.org\./g;' *.db

 

000000000000000000000000000000000

EK 1 KASIM 2017

=================================

find and replace etmenin yolu daha degisik sekilde

for E in `cat aaa.txt`; do perl -pi -w -e 's/content type/content_type/g;' $E; done

 


cd /usr/local/directadmin/scripts
mv roundcube.sh roundcube.old.sh
wget http://files4.directadmin.com/services/all/roundcube.sh
chmod +x roundcube.sh
./roundcube.sh

sonra

1- /config/main.inc.php dosyasini calisandan kopyala
2- /skins/default/images altina logolari at
3- /templates/login.html dosyasini calisandan kopyala
4- /etc/httpd/conf/httpd.conf dosyasini editle.

Alias /webmaileski /var/www/html/webmail/
Alias /squirrelmail /var/www/html/squirrelmail/
Alias /webmail /var/www/html/roundcube/

Bitti.


[17:40:21] OrHaNsS`Hastane`Amayok )) ANLAR
[17:40:22] OrHaNsS`Hastane`Amayok )) Eğer, yeniden başlayabilseydim yaşamaya,
[17:40:22] OrHaNsS`Hastane`Amayok )) ikincisinde daha çok hata yapardım.
[17:40:22] OrHaNsS`Hastane`Amayok )) Kusursuz olmaya çalışmaz, sırtüstü yatardım.
[17:40:22] OrHaNsS`Hastane`Amayok )) Neşeli olurdum, ilkinde olmadığım kadar.
[17:40:22] OrHaNsS`Hastane`Amayok )) Çok az şeyi ciddiyetle yapardım.
[17:40:22] OrHaNsS`Hastane`Amayok )) Temizlik sorun bile olmazdı asla.
[17:40:22] OrHaNsS`Hastane`Amayok )) Daha çok riske girerdim,
[17:40:22] OrHaNsS`Hastane`Amayok )) seyahat ederdim daha fazla.
[17:40:22] OrHaNsS`Hastane`Amayok )) Daha çok güneş doğuşu izler,
[17:40:22] OrHaNsS`Hastane`Amayok )) daha çok dağa tırmanır,
[17:40:23] OrHaNsS`Hastane`Amayok )) daha çok nehirde yüzerdim.
[17:40:24] OrHaNsS`Hastane`Amayok )) Görmediğim bir çok yere giderdim.
[17:40:25] OrHaNsS`Hastane`Amayok )) Dondurma yerdim doyasıya,
[17:40:25] OrHaNsS`Hastane`Amayok )) Daha az bezelye.
[17:40:27] OrHaNsS`Hastane`Amayok )) Gerçek sorunlarım olurdu
[17:40:28] OrHaNsS`Hastane`Amayok )) hayali olanların yerine.
[17:40:29] OrHaNsS`Hastane`Amayok )) Yaşamın her anını gerçek ve
[17:40:30] OrHaNsS`Hastane`Amayok )) verimli kılan insanlardan olurdum.
[17:40:31] OrHaNsS`Hastane`Amayok )) Farkında mısınız bilmem, yaşam budur zaten.
[17:40:32] OrHaNsS`Hastane`Amayok )) Anlar, sadece anlar, siz de "an"ı yaşayın.
[17:40:33] OrHaNsS`Hastane`Amayok )) Hiçbir yere, yanına; termometre, su, şemsiye ve
[17:40:34] OrHaNsS`Hastane`Amayok )) paraşüt almadan gitmeyen insanlardanım ben.
[17:40:35] OrHaNsS`Hastane`Amayok )) Yeniden başlayabilseydim,
[17:40:36] OrHaNsS`Hastane`Amayok )) ilkbaharda, papuçlarımı atardım.
[17:40:37] OrHaNsS`Hastane`Amayok )) Ve sonbahar bitene kadar yürürdüm çıplak ayakla.
[17:40:38] OrHaNsS`Hastane`Amayok )) Bilinmeyen yollar keşfeder, güneşin tadına varır,
[17:40:39] OrHaNsS`Hastane`Amayok )) çocuklarla oynardım, bir şansım olsaydı eğer...
[17:40:40] OrHaNsS`Hastane`Amayok )) Ama işte, 85'imdeyim ve biliyorum...
[17:40:41] OrHaNsS`Hastane`Amayok )) Ölüyorum...
[17:40:42] OrHaNsS`Hastane`Amayok )) Jorge Luis Borges
[17:43:13] &HevaL )) eha insanın bunu gözlügüne yapıştırması gerek
[17:43:20] &HevaL )) sürekli durmalı gözünün önünde unutmamalı
[17:46:09] OrHaNsS`Hastane`Amayok )) cok guzel ama

/sbin/iptables -A INPUT -m recent --rcheck --seconds 60 \
-m limit --limit 10/second -j LOG --log-prefix "BG "
/sbin/iptables -A INPUT -m recent --update --seconds 60 -j DROP