nano /etc/X11/xorg.conf
-------------------------------------------------------------------------
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
EndSection
Section "Module"
Load "glx"
EndSection
Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "RandRRotation" "on"
EndSection
-------------------------------------------------------------------------
tambah kan :
Option "RandRRotation" "on"
ke dalam bhagian Section "Device"
lepas tu , reboot comp, bukak terminal dan masukkan command ni :
xrandr -o right (utk pusing kanan)
xrandr -o left (utk pusing kiri)
xrandr -o normal (utk normal)
ni utk driver nvidia, driver lain aku tak tahu...
Thursday, December 10, 2009
Friday, December 4, 2009
Ubuntu - Get rid of the Ubuntu Splash screen permanently
# nano /boot/grub/menu.lst
edit from this :
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
to be like this:
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro
initrd /boot/initrd.img-2.6.22-14-generic
save and exit.
done.
edit from this :
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
to be like this:
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=xxxx ro
initrd /boot/initrd.img-2.6.22-14-generic
save and exit.
done.
Wednesday, November 11, 2009
FreeBSD - keep update with CVSUP
#cd /usr/ports/net/cvsup-without-gui
#make
#make install clean
#cp /usr/share/examples/cvsup/ports-supfile /root/ports-supfile
#nano /root/ports-supfile
content of ports-supfile
---------------------------------------------------
*default tag=.
*default host=cvsup3.tw.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_7
*default delete use-rel-suffix
*default compress
src-all
ports-all tag=.
---------------------------------------------------
save and exit.
#reboot
#cvsup -g -L 2 /root/ports-supfile
done.
If you add any of the ports or doc collections to this file, be sure to specify them with a "tag" value set to ".", like this:
ports-all tag=.
doc-all tag=.
If you leave out the "tag=." portion, CVSup will delete all of the files in your ports or doc tree. That is because the ports and doc collections do not use the same tags as the main part of the FreeBSD source tree.
For more explanation, please refer to /usr/share/examples/cvsup/stable-supfile file.
#make
#make install clean
#cp /usr/share/examples/cvsup/ports-supfile /root/ports-supfile
#nano /root/ports-supfile
content of ports-supfile
---------------------------------------------------
*default tag=.
*default host=cvsup3.tw.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_7
*default delete use-rel-suffix
*default compress
src-all
ports-all tag=.
---------------------------------------------------
save and exit.
#reboot
#cvsup -g -L 2 /root/ports-supfile
done.
If you add any of the ports or doc collections to this file, be sure to specify them with a "tag" value set to ".", like this:
ports-all tag=.
doc-all tag=.
If you leave out the "tag=." portion, CVSup will delete all of the files in your ports or doc tree. That is because the ports and doc collections do not use the same tags as the main part of the FreeBSD source tree.
For more explanation, please refer to /usr/share/examples/cvsup/stable-supfile file.
Tuesday, November 10, 2009
Rsync using ssh with different port number
rsync -avz -e "ssh -p 2222" user@hostname.com:/remote-path /local-path
Thursday, November 5, 2009
Put a process in background from SSH
to put a process/command in background , and still running although ssh connection terminated, give this command:
#nohup command &
#nohup command &
Friday, August 14, 2009
GPG error
problem:
------------------------------------------------------------------------------------------
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: You may want to run apt-get update to correct these problems
solution:
------------------------------------------------------------------------------------------
flufyz$ gpg --keyserver dl.google.com --recv A040830F7FAC5991
flufyz$ gpg --export --armor A040830F7FAC5991 | sudo apt-key add -
------------------------------------------------------------------------------------------
W: GPG error: http://dl.google.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A040830F7FAC5991
W: You may want to run apt-get update to correct these problems
solution:
------------------------------------------------------------------------------------------
flufyz$ gpg --keyserver dl.google.com --recv A040830F7FAC5991
flufyz$ gpg --export --armor A040830F7FAC5991 | sudo apt-key add -
Friday, July 31, 2009
update or edit SVN repository path
to update SVN repository path, let say from http://aaaaa.com to http://bbbb.com:
1-go to directory which hold the svn repo and go into .svn directory
2-look for file named "entries"
3-edit using any text editor, such as vi or nano
4-look for line http://aaaaa.com , and change it to http://bbbb.com
5-save and exit
6-give command svn update to test
7-finish.
1-go to directory which hold the svn repo and go into .svn directory
2-look for file named "entries"
3-edit using any text editor, such as vi or nano
4-look for line http://aaaaa.com , and change it to http://bbbb.com
5-save and exit
6-give command svn update to test
7-finish.
Wednesday, June 24, 2009
Ubuntu - install JRE plugin for firefox
#apt-get install sun-java6-plugin
then open firefox, key in about:plugins in URL bar..
JAVA plugin should listed and enabled
then open firefox, key in about:plugins in URL bar..
JAVA plugin should listed and enabled
Pidgin version < 2.5.7 cannot login yahoo
problem:
--------------------
pidgin cannot login to yahoo messenger..
solution:
-----------------
go to modify account > yahoo account > advanced tab
set pager server as "cn.scs.msg.yahoo.com" instead of "scs.msg.yahoo.com"
exit,save , logout and login again...
--------------------
pidgin cannot login to yahoo messenger..
solution:
-----------------
go to modify account > yahoo account > advanced tab
set pager server as "cn.scs.msg.yahoo.com" instead of "scs.msg.yahoo.com"
exit,save , logout and login again...
Wednesday, June 17, 2009
Add or remove a script on startup in Debian or Ubuntu
Add a script:
1. put the script under /etc/init.d/
2. #chmod 755 myscript
3. #update-rc.d myscript defaults
4. #reboot
-------------------------------------------------------
Remove :
1. #cd /etc/init.d/
2. #update-rc.d -f myscript remove
3. #reboot
more over , please use "man update-rc.d" command
1. put the script under /etc/init.d/
2. #chmod 755 myscript
3. #update-rc.d myscript defaults
4. #reboot
-------------------------------------------------------
Remove :
1. #cd /etc/init.d/
2. #update-rc.d -f myscript remove
3. #reboot
more over , please use "man update-rc.d" command
Friday, June 12, 2009
Apache - Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
problem :
Apache - Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
solution:
open httpd.conf
add this line:
Servername myservername
Apache - Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
solution:
open httpd.conf
add this line:
Servername myservername
Wednesday, April 22, 2009
SSH without password
sometimes it become bored when you need to key in the password each time you want to login to the server by using ssh..so how to login through ssh without a password?
this step need to be once only and it done from client side only:
#ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
c1:7b:fe:cc:32:9f:51:6b:0d:be:5c:6d:b0:94:b9:fc root@bordersmart
#scp /root/.ssh/id_rsa.pub user@targetserver.com:/root/.ssh/authorized_keys
Now try login to targetserver.com
#ssh targetserver.com
It will not prompt a password. Done. Anyway, try google about DSA vs RSA. There are differents, but it depend how the usage.
this step need to be once only and it done from client side only:
#ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
c1:7b:fe:cc:32:9f:51:6b:0d:be:5c:6d:b0:94:b9:fc root@bordersmart
#scp /root/.ssh/id_rsa.pub user@targetserver.com:/root/.ssh/authorized_keys
Now try login to targetserver.com
#ssh targetserver.com
It will not prompt a password. Done. Anyway, try google about DSA vs RSA. There are differents, but it depend how the usage.
Friday, April 10, 2009
How to install / add font in Ubuntu
Actually I'm quite new using GIMP, because before this I'm more familiar with Photoshop. Today one of my problem make me learn how to install font in Ubuntu. Like Windows, we just can copy and paste the font into C:\Windows\Font directory. But in Ubuntu , it take several steps to make it done. Anyway, it's much better to know both ways , I mean in Windows and Ubuntu, or Linux generally. So, here you go:
To install common Microsoft Truetype font, you can use either APT or Synaptic Package Manager..it's just depend on your choice..but for me I prefer to use APT because I always open my shell..hehe..this font already embedded in repositories..that's why we just can fetch it easily..
$sudo apt-get install msttcorefonts texlive-fonts-extra
For single user ( only user A will have the font instead of all user in the system)
---------------------------------------------------------------------------------------------------------------------------------
$cd /home/username
1.make directory name ".font" if it does not exist. Else just change current directory to this one.
$mkdir .fonts
2. copy the font into this directory:
$cp fontname.ttf .fonts/
3. tell the system about new font:
$fc-cache -f -v
fc-cache : Build font information cache files
-f : Force re-generation of apparently up-to-date cache files, over‐
riding the timestamp checking.
-v : Display status information while busy
*refer to man
For all user in the system
-------------------------------------------
1. copy the font into
2. give fc-cache -f -v command
3. done
And now open your text editor , go to font side, and check your installed font. Walla! It should appear.. ;)
reference : http://geekybits.blogspot.com/2007/11/installing-fonts-in-ubuntu-710.html
To install common Microsoft Truetype font, you can use either APT or Synaptic Package Manager..it's just depend on your choice..but for me I prefer to use APT because I always open my shell..hehe..this font already embedded in repositories..that's why we just can fetch it easily..
$sudo apt-get install msttcorefonts texlive-fonts-extra
For single user ( only user A will have the font instead of all user in the system)
---------------------------------------------------------------------------------------------------------------------------------
$cd /home/username
1.make directory name ".font" if it does not exist. Else just change current directory to this one.
$mkdir .fonts
2. copy the font into this directory:
$cp fontname.ttf .fonts/
3. tell the system about new font:
$fc-cache -f -v
fc-cache : Build font information cache files
-f : Force re-generation of apparently up-to-date cache files, over‐
riding the timestamp checking.
-v : Display status information while busy
*refer to man
For all user in the system
-------------------------------------------
1. copy the font into
/usr/local/share/fonts/
directory2. give fc-cache -f -v command
3. done
And now open your text editor , go to font side, and check your installed font. Walla! It should appear.. ;)
reference : http://geekybits.blogspot.com/2007/11/installing-fonts-in-ubuntu-710.html
Friday, February 6, 2009
FreeBSD - ERROR 1153 (08S01) at line 706: Got a packet bigger than 'max_allowed_packet' bytes???
1. create new file name my.cnf under /usr/local/etc
2. put this content, save and exit :
[mysqld]
max_allowed_packet=64M
3. restart mysql server (/usr/local/etc/rc.d/mysql-server restart)
4. finish and try load again that packet.
2. put this content, save and exit :
[mysqld]
max_allowed_packet=64M
3. restart mysql server (/usr/local/etc/rc.d/mysql-server restart)
4. finish and try load again that packet.
Subscribe to:
Posts (Atom)