Thursday, May 14, 2009
Mysql - Change Root Password
/etc/init.d/mysql stop
run this command to start Mysql again:
mysqld_safe –skip-grant-tables
Go to mysql:
mysql -u root mysql
and run this command in Mysql:
mysql> UPDATE user SET Password=PASSWORD('newrootpassword') WHERE User='root';
then this command:
mysql> FLUSH PRIVILEGES;
exit Mysql:
mysql> exit ;
Stop the mysqld service:
killall mysqld
and start that normally:
/etc/init.d/mysql start
That's all.
Tuesday, May 12, 2009
Solaris Remote Console (XDMCP)
vi /etc/default/login
and comment this line with # symbole:
Console=/dev/console
Solaris Shell Profile
su -
stty erase ^H
TERM=vt100
export TERM
exec tcsh -l
eval `/usr/openwin/bin/resize -c`
Now, type in:
passwd -e
as the new shell, type in “/bin/tcsh”. Your default shell has now been changed to the Tenex C-shell; it can do everything bash can.
Don’t modify root’s SHELL.
type in “exit”
type in “exit” again, then log in.
Create and edit the following files with your preferred text editor:
Anyways, now your cursor keys and the [BACKSPACE] will always work properlyvi /.login
add this line:
stty erase ^H
vi /.cshrc
add these lines:
set Resize="/usr/openwin/bin/resize"
set autolist
set notify
set correct=cmd
set prompt="[%B%n@%m%b][%B%~%b]> "
set savehist=7000eval "$Resize" -c
setenv TERM vt100
setenv PAGER ´less -s´
Thursday, May 7, 2009
Debian Root-Mail Forwarding
For forwarding www-data emails to root, open the /etc/aliases and add this line:
www-data: root
Wednesday, March 25, 2009
Debian Lenny Fonts
I ran the following command:
dpkg-reconfigure fontconfig-config
and answer all question with yes.
Now everything is OK.
Monday, March 9, 2009
Remove Permission from User on Public Folder in Exchange Server 2007
Add-PublicFolderClientPermission -Identity \FOLDERNAME -AccessRights None -User USERNAME
Thursday, March 5, 2009
Let's the image flying
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0);
:)
Thursday, February 19, 2009
Mysql - Minimize Master-Slave Traffic during replication
Put to the my.cnf:
slave_compressed_protocol=ON
or you can change this value in the run time in mysql with:
SET global slave_compressed_protocol=OFF;
Wednesday, February 18, 2009
Installing Windows 2000 on eee-PC
If you don't have win2k sp4, the thing will crash. I think sp4 has some files that support booting/installing from usb external devices.
That's it! Please install win2k with sp4!!
Wednesday, February 11, 2009
Ramfs on Ubuntu
mkdir /mnt/ramdisk
then run this command:
mount -t ramfs RAMDISK /mnt/ramdisk -o maxsize=1024000
That's all!
Tuesday, February 10, 2009
How to reset gnome-panel to default in Ubuntu/GNOME2
Remove ~/.gconf/apps/panel or just move the folder elsewhere if you want to back it up.Log out of GNOME, then back in.
MYSQL - Too many connections
grant Super, Processlist on *.* to admin identified by 'PASSWORD' ;
Connect with that user to Mysql and change the Max_connection variable Online:
set Global max_connections=XXX ; (XXX is a new Value)
Or you can Kill the process(es) ;
show processlist ;
Kill PROC_NO ;
Thursday, February 5, 2009
Activate SSH on VMware Server ESX 3i
1. ALT-F1 to change to the main console.
2. Type 'unsupported' (you will not be able to see what you're typing).
3. When prompted, enter the root user's password.
4. Type: vi /etc/inetd.conf
5. Find the line that begins with #ssh
6. Cursor over the first 's' and press the 'i' key (for insert mode)
7. Press backspace
8. Press ESC
9. Type SHIFT+colon (:) and then 'wq!' to write and exit.
10. Type 'ps | grep inetd' to find the inetd process
11. Send the hangup signal to the process ID output from step 10 with:
kill -s HUP