Thursday, 17 June 2010
Disable ipv6 in slackware
open file /etc/modprobe.d/blacklist and add the following line: blacklist ipv6. Then reboot.
How to reset mysql root password on slackware 13.1
Step # 1: Stop the MySQL server process.
/etc/rc.d/rc.mysqld stop
Step # 2: Start the MySQL (mysqld) server/daemon process with the --skip-grant-tables option so that it will not prompt for password.
mysqld_safe --skip-grant tables &
Step # 3: Connect to mysql server as the root user.
mysql --user=root mysql
Step # 4: Setup new mysql root account password.
UPDATE user SET password=PASSWORD("newpwd") WHERE user="root";
FLUSH PRIVILEGES;
QUIT;
Step # 5: Restart the MySQL server.
/etc/rc.d/rc.mysqld restart
Step # 6: Log on mysql with the new password
mysql --user=root --password=newpwd
/etc/rc.d/rc.mysqld stop
Step # 2: Start the MySQL (mysqld) server/daemon process with the --skip-grant-tables option so that it will not prompt for password.
mysqld_safe --skip-grant tables &
Step # 3: Connect to mysql server as the root user.
mysql --user=root mysql
Step # 4: Setup new mysql root account password.
UPDATE user SET password=PASSWORD("newpwd") WHERE user="root";
FLUSH PRIVILEGES;
QUIT;
Step # 5: Restart the MySQL server.
/etc/rc.d/rc.mysqld restart
Step # 6: Log on mysql with the new password
mysql --user=root --password=newpwd
There's not enough disk space
If u see this error message when changing the owner of files and folders, check Quota. (Windows 2003)
Wednesday, 16 June 2010
vmware tools in slackware 13.1 guests
-install linux pam package or create the folder /etc/pam.d to "satisfy" vmware :)
It seems that 2.6.33 places certain files to a different location than the previous kernel versions. A new directory called include/generated contains some header files (utsrelease.h, autoconf.h among others) which vmware tries to locate from a different location (include/linux).
So for a quick fix I created a couple of symlinks to include/generated to satisfy vmware.
> Cd / usr / src / linux / include / linux /
> #ln -sf ../generated/autoconf.h
> #ln-sf .. /generated/utsrelease.h
It seems that 2.6.33 places certain files to a different location than the previous kernel versions. A new directory called include/generated contains some header files (utsrelease.h, autoconf.h among others) which vmware tries to locate from a different location (include/linux).
So for a quick fix I created a couple of symlinks to include/generated to satisfy vmware.
> Cd / usr / src / linux / include / linux /
> #ln -sf ../generated/autoconf.h
> #ln-sf .. /generated/utsrelease.h
Tuesday, 15 June 2010
vmware server 2.0.2 and slackware 13.1 (kernel 2.6.33.4)
vmware server + linux 2.6.33.x: here is the "poor man" solution:
First, You should use the 2.6.32.xx instructions at http://risesecurity.org/2010/04/02/vmware-server-2-0-2-update-patch-2/
Then instead of patching all the linux/autoconf.h, you should simply create some missing symbolic links on you src. tree:
For example, if you have the src put in /usr/src/Linux/Kernel/linux-2.6.33.2, cd in subdir include/linux
cd /usr/src/Linux/Kernel/linux-2.6.33.2/include/linux;
Make the necessary sybolic links
ln -s ../generated/utsrelease.h; ln -s ../generated/autoconf.h
That's all: reinstall as the usual the vmware server
sudo vmware-config.pl
If you have some problems with the console firefox plugin, there are 2 solutions:
solution1: you should add the entry
export GDK_NATIVE_WINDOWS=1
to the script http://codebin.cotescu.com/vmware/start-VMware-console.sh, like the sample patch
{noformat} #diff -Naur start-VMware-console.sh start-VMware-console.sh.new
--- start-VMware-console.sh 2009-12-22 17:17:25.000000000 +0100
+ start-VMware-console.sh.new 2010-03-31 15:34:00.082889804 +0200
@@ -6,8 +6,8 @@
################################################################################
# Clean GTK setup for VMWare
-export VMWARE_USE_SHIPPED_GTK=yes
-
+#export VMWARE_USE_SHIPPED_GTK=yes
+export GDK_NATIVE_WINDOWS=1
# Find console executable in Firefox plugins.
vmrc="{color:#007800}$(find "$HOME/.mozilla/firefox" -name vmware-vmrc -type f -perm -111 | tail -1)"
{color:#7a0874} -x "{color:#007800}$vmrc" {color:#7a0874} || exit 1{noformat}{noformat}
solution2: add {noformat}{noformat} export GDK_NATIVE_WINDOWS=1
{noformat}{noformat}in the second line of the file $HOME/.mozilla/firefox/yourprofile/.extensions/VMwareVMRC@vmware.com/plugins/lib/wrapper-gtk24.sh
{noformat}
First, You should use the 2.6.32.xx instructions at http://risesecurity.org/2010/04/02/vmware-server-2-0-2-update-patch-2/
Then instead of patching all the linux/autoconf.h, you should simply create some missing symbolic links on you src. tree:
For example, if you have the src put in /usr/src/Linux/Kernel/linux-2.6.33.2, cd in subdir include/linux
cd /usr/src/Linux/Kernel/linux-2.6.33.2/include/linux;
Make the necessary sybolic links
ln -s ../generated/utsrelease.h; ln -s ../generated/autoconf.h
That's all: reinstall as the usual the vmware server
sudo vmware-config.pl
If you have some problems with the console firefox plugin, there are 2 solutions:
solution1: you should add the entry
export GDK_NATIVE_WINDOWS=1
to the script http://codebin.cotescu.com/vmware/start-VMware-console.sh, like the sample patch
{noformat} #diff -Naur start-VMware-console.sh start-VMware-console.sh.new
--- start-VMware-console.sh 2009-12-22 17:17:25.000000000 +0100
+ start-VMware-console.sh.new 2010-03-31 15:34:00.082889804 +0200
@@ -6,8 +6,8 @@
################################################################################
# Clean GTK setup for VMWare
-export VMWARE_USE_SHIPPED_GTK=yes
-
+#export VMWARE_USE_SHIPPED_GTK=yes
+export GDK_NATIVE_WINDOWS=1
# Find console executable in Firefox plugins.
vmrc="{color:#007800}$(find "$HOME/.mozilla/firefox" -name vmware-vmrc -type f -perm -111 | tail -1)"
{color:#7a0874} -x "{color:#007800}$vmrc" {color:#7a0874} || exit 1{noformat}{noformat}
solution2: add {noformat}{noformat} export GDK_NATIVE_WINDOWS=1
{noformat}{noformat}in the second line of the file $HOME/.mozilla/firefox/yourprofile/.extensions/VMwareVMRC@vmware.com/plugins/lib/wrapper-gtk24.sh
{noformat}
Thursday, 10 June 2010
Cannot install sql server 2003 sp3
Please go through this link
http://support.microsoft.com/kb/925976
------
As mentioned in the above link..
1) Download the Pstools from the below link
http://technet.microsoft.com/en-us/sysinternals/bb897417.aspx
2) Copy it to the server and from command prompt( go to the path where u saved the Pstools)
type -- psgetsid \\servername
SID value will be displayed.
Ex: SID for \\servername:
S-1-x-xx-xxxxxxxxxxxx-xxxxxxxxxx
Copy the above SID value..
3) go to command prompt.. type regedit
go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup
replace SID value for below groups with the above SID value by right clicking the particular group -> click modify -> paste the new SID value -> click OK
SQLGroup
AGTGroup
FTSGroup
modify the existing SID value with the above SID value
--->
To modify SID value of ASGroup
go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.X\Setup
Where MSSQL.X may be MSSQL.2 / MSSQL.3
modify the existing SID value with the above SID value
and start the installation.. it will work
http://support.microsoft.com/kb/925976
------
As mentioned in the above link..
1) Download the Pstools from the below link
http://technet.microsoft.com/en-us/sysinternals/bb897417.aspx
2) Copy it to the server and from command prompt( go to the path where u saved the Pstools)
type -- psgetsid \\servername
SID value will be displayed.
Ex: SID for \\servername:
S-1-x-xx-xxxxxxxxxxxx-xxxxxxxxxx
Copy the above SID value..
3) go to command prompt.. type regedit
go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\Setup
replace SID value for below groups with the above SID value by right clicking the particular group -> click modify -> paste the new SID value -> click OK
SQLGroup
AGTGroup
FTSGroup
modify the existing SID value with the above SID value
--->
To modify SID value of ASGroup
go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.X\Setup
Where MSSQL.X may be MSSQL.2 / MSSQL.3
modify the existing SID value with the above SID value
and start the installation.. it will work
Subscribe to:
Posts (Atom)