1. Click Start, Run and enter GPEDIT.MSC
2. Go to Computer Configuration, Administrative Templates, System.
3. Locate the entry for Turn autoplay off and modify it as you desire.
Thursday, March 27, 2008
To Disable CD Autoplay, completely, in Windows XP Pro
Posted by basmpf at 21:28 0 comments
To make multiple login in Yahoo Messenger with Yahoo ID's at the same time
Using this trick you will be able to login with many yahoo id's at same time:
1. Click Start, Run and Type Regedit, then enter.
2. Navigate to HKEY_CURRENT_ USER/Software/yahoo/pager/Test
3. On the right page , right-click and choose new DWORD value .
4. Rename it as Plural.
5. Double click and assign a decimal value of 1.
Posted by basmpf at 21:26 0 comments
How to share files and folder in ubuntu
How to install Samba Server for files/folders sharing service
sudo apt-get install samba smbfs
How to add/edit/delete network users
sudo smbpasswd -a system_username
gksudo gedit /etc/samba/smbusers
- Insert the following line into the new file
system_username = "network username"
- To add network user
sudo smbpasswd -a system_username
- To delete network user
sudo smbpasswd -x system_username
- To enable network user
sudo smbpasswd -e system_username
- To disable network user
sudo smbpasswd -d system_username
- By Default network users are disabled after adding them, make sure you run the enable network user command above.
How to share home folders with read only or read/write permission (Authentication=Yes)
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
gksudo gedit /etc/samba/smb.conf
- Find this line
...
; security = user
...
- Replace with the following lines
security = user
username map = /etc/samba/smbusers
- Remove the ; in front of the following lines (there will text in between explaining what they do):
;[homes]
;comment = Home Directories
;browseable = no
;valid users = %S
;writable = yes
- If you want other network users to be able to edit to the folder then change
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
; writable = no
- Replace with the following lines
writable = yes
- Save the edited file
sudo testparm
sudo /etc/init.d/samba restart
Posted by basmpf at 21:05 0 comments
Tuesday, March 25, 2008
Multimedia codecs and players
- Add the extra repositories.
- (optional) Install DVD playback capability and Windows Media and RealPlayer codecs (see the Restricted Formats page):
wget -c -P /tmp/ http://www.debian-multimedia.org/pool/main/w/w32codecs/w32codecs_20071007-0.0_i386.deb
wget -c -P /tmp/ http://www.debian-multimedia.org/pool/main/libd/libdvdcss/libdvdcss2_1.2.9-0.0_i386.deb
sudo dpkg -i /tmp/w32codecs_20071007-0.0_i386.deb /tmp/libdvdcss2_1.2.9-0.0_i386.deb - (recommended) Install Totem with the Xine back-end:
sudo apt-get install totem-xine libxine1-plugins
- (recommended) Make Totem the preferred multimedia player:
gconftool --type string --set /desktop/gnome/applications/media/exec "totem"
- (recommended) Add right-click options in Nautilus for enqueuing and replacing multiple files in Totem.
- (optional) Install MPlayer (rubbish interface, but good to have around for the rare cases when Xine can't play something):
sudo apt-get install mplayer
sudo sed -i.backup -e's@gmplayer@mplayer@g' /usr/share/applications/mplayer.desktop
sudo sed -i.backup -e's@vo=x11,@vo=xv,@g' /etc/mplayer/mplayer.conf - (optional) Install the MPlayer plugin for Firefox:
sudo apt-get install mozilla-mplayer
Posted by basmpf at 00:31 0 comments
Mozilla Firefox - on Ubuntu
Firefox comes pre-installed on Ubuntu. Here are some useful customizations.
- (optional) Some useful extensions:
- Google Browser Sync - access your bookmarks from anywhere.
- Forecastfox l10n - show the weather forecast in the status bar.
- SearchWP - quickly search for words in the search box within the current page.
- SearchBox Sync - synchronize Firefox's search box with those of search pages.
- Searchbar Autosizer - grow the search box to fit the search query as you type.
- Context Search - search for the currently selected text.
- DownloadThemAll! - download all files of a given type on a page.
- lget - download from a specified URL.
- Linkification - intelligently recognize plain-text URLs as links.
- CustomizeGoogle - customize some features of Google's search pages.
- Image Zoom - self-explanatory.
- Web Developer - useful for creating and testing web pages.
- (optional) Enter about:config in the URL bar and then make the following changes:
general.autoScroll=true
network.http.pipelining=true
network.prefetch-next=false
browser.backspace_action=0
browser.link.open_newwindow=3 (3: new tab; 2: new indow; 1: current tab)
browser.link.open_newwindow.restriction=2 (0: use open_newwindow setting; 1: new window; 2: use open_newwindow setting unless javascript specifies window size)
browser.search.openintab=true
browser.tabs.autoHide=false
browser.tabs.closeButtons=2
browser.tabs.loadFolderAndReplace=false
browser.tabs.loadGroup=0
browser.tabs.warnOnClose=false
browser.search.minwidth=300
linkification.settings.Linkify_OpenInTab=true
linkification.settings.Linkify_OpenTabinBG=true
linkification.settings.Linkify_Toggle=false - (optional) Open URLs entered in address bar in a new tab by default. (Useful if you hate having to press ALT+ENTER to achieve this.) Note that the following needs to be done each time a new version of Firefox is installed (e.g., as an Ubuntu update).
sudo apt-get install fastjar
pushd /tmp; fastjar -xf /usr/share/firefox/chrome/browser.jar content/browser/browser.js; popd
sed -i -e"s/if (aTriggeringEvent \&\& aTriggeringEvent.altKey)/if (!(aTriggeringEvent \&\& aTriggeringEvent.altKey))/" /tmp/content/browser/browser.js
sudo fastjar -uf0 /usr/share/firefox/chrome/browser.jar -C/tmp content/browser/browser.js
Posted by basmpf at 00:28 0 comments
Fonts
- Here are some beautiful alternatives to Windows fonts:
- Serif fonts (alternatives to Times New Roman, Georgia, Garamond, etc.): Norasi, Nimbus Roman No 9 L, FreeSerif, DejaVu Serif.
- Sans-serif fonts (alternatives to Verdana, Tahoma, etc.): DejaVu Sans, FreeSans.
- Fixed-width fonts (alternatives to Courier New, Lucida Console, etc.): DejaVu Sans Mono, FreeMono.
- If, after trying the fonts above, you still want to get Windows fonts, here's how:
sudo apt-get install msttcorefonts
Posted by basmpf at 00:06 0 comments
Relocating the /home directory
Important: This only applies if you want to move the /home directory to another drive/partition, or if you want to activate an existing home directory on another drive/partition.
- Carefully write down these instructions since they require you to close the browser.
- Save and close all open programs, and then log out (as opposed to restart or shutdown).
- Press CTRL+ALT+F2; you will be taken to the TTY2 command line.
- Stop the Gnome Desktop Manager:
sudo /etc/init.d/gdm stop
- (Note: Skip this step if you already have the contents of your /home directory in the desired partition.) Copy your /home directory to the desired partition, say /media/new_home_partition:
sudo cp -pR /home/$USER /media/new_home_partition
sudo chown $USER:$USER /media/new_home_partition/$USER - Make the desired partition mount as /home:
sudo cp /etc/fstab /etc/fstab.backup
If the mount point for any entry is currently listed as /home, change it from
sudo nano /etc/fstab# /dev/old_home_partition
to
UUID=... /home ...# /dev/old_home_partition
Then set mount point for the desired partition's entry to /home by changing
UUID=... /media/old_home_partition ...# /dev/new_home_partition
to
UUID=... /media/new_home_partition ...# /dev/new_home_partition
Save the file (i.e., press CTRL+O) and exit Nano (i.e., press CTRL+X).
UUID=... /home ... - Press CTRL+ALT+DEL to reboot; after rebooting, your /home directory will be located in the new partition.
Posted by basmpf at 00:05 0 comments
Enable 5-button mouse
- If you have a 5-button mouse, you can enable the forward and back buttons as follows:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.mouse
Change:
sudo gedit /etc/X11/xorg.confSection "InputDevice"
to:
...
Driver "mouse"
...
Option "Emulate3Buttons" ...
Option "ZAxisMapping" ...
...
EndSectionSection "InputDevice"
...
Driver "mouse"
...
Option "Emulate3Buttons" "false"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 8 9 10 11"
Option "ZAxisMapping" "4 5"
...
EndSection - (optional) Restart Gnome Desktop Manager for these settings to take effect.
Posted by basmpf at 00:03 0 comments
Monday, March 24, 2008
Install nVidia graphics driver
Note that installing the nVidia driver will fix some screen resolution problems.
1. If you plan to connect multiple monitors, start out by connecting only the main monitor in order to keep things simple. (Once you have the driver working fine for just that monitor, you can then connect the other monitors and use the nvidia-settings utility to configure them.)
2. Now reset the X server configuration to very basic settings:
sudo dpkg-reconfigure xserver-xorg
You will be presented with a series of questions. Choose the default answers for all the questions except for the following:
1. Choose "vesa" for the X server driver.
2. Choose "No" for monitor autodection.
3. Choose "medium" for the method for selecting the monitor characteristics.
4. Choose "1024x768 @ 60Hz" for the monitor's best video mode. (Don't worry, we'll get better screen resolutions once we install and enable the nVidia driver.)
5. Choose "Yes" for writing the monitor sync ranges to the config file.
You can now optionally restart the Gnome Desktop Manager (GDM) for these settings to take effect before continuing. Alternatively, you can just continue the driver installation without restarting the GDM.
3. Install and enable the nVidia driver:
sudo apt-get install nvidia-glx-new
sudo nvidia-glx-config enable
Note: If you have a GeForce4 video card, you may need to use nvidia-glx instead of nvidia-glx-new. And if you have a very old card, like a TNT, you may need to use nvidia-glx-legacy instead.
4. Reboot the computer for these settings to take effect. (In theory, you could just restart the Gnome Desktop Manager, but I ran into a situation where, after an error, the nVidia driver didn't seem to load upon restart the GDM.)
5. Set up screen resolution, dual monitors, Xinerama, etc.:
sudo nvidia-settings
You can change the settings in the "X Server Display Configuration" section and then click the "Save to X Configuration" button and save the file as /etc/X11/xorg.conf.
6. (optional) Disable the nVidia splash screen:
sudo gedit /etc/X11/xorg.conf
Change:
Section "Device"
...
Driver "nvidia"
...
EndSection
to:
Section "Device"
...
Driver "nvidia"
...
Option "NoLogo" "true"
EndSection
7. (optional) Restart Gnome Desktop Manager for these settings to take effect.
Posted by basmpf at 23:56 0 comments
Printer sharing
- On the server:
- Set up your printer, and make sure it's turned on and working.
- Click on the "System" / "Administration" / "Printing" menu.
- Select "Server Settings" on the left, and turn on "Share published printers connected to this system". This will allow printer sharing over your private network. If you want to access the printer over the Internet, also turn on "Allow printing from the Internet".
- Select your printer under "Local Printers" on the left, select the "Policies" tab, and turn on "Enabled", "Accepting jobs", and "Shared".
- Use Firestarter to open port 631 (the default IPP port) for the IP addresses to which you want to give printer access. If you want to restrict printer access to your private network, set the policy to open your IPP port for only 192.168.0.0/16 (i.e., IPs of the form 192.168.xxx.xxx).
- If you are behind a router on a private network, give your server a static private IP (e.g., 192.168.1.30) by clicking on the "System" / "Administration" / "Network" menu item and setting up a static IP. Note that the "gateway address" should be the router's address (e.g., 192.168.0.1, 192.168.1.1, or whatever).
- If you want to access your server over the Internet and are behind a router, configure the router to allow access to your server's IPP port (port 631).
- If you want to access your server over the Internet and your Internet Service Provider doesn't give you a static IP address, you need to set up a publicly accessible hostname.
- On the client:
- Click on the "System" / "Administration" / "Printing" menu.
- Click on the "New Printer" button.
- Select "Other", and enter the following URI:
http://$SERVER:631/printers/$PRINTER
where $SERVER is the server URL or IP address and $PRINTER is the printer name on the server, and then click "Forward" and follow the remaining steps as you would for local printer setup. You can find the names of the shared printer on a server by visiting the following URL in your web browser:http://$SERVER:631/printers
where $SERVER is the server URL or IP address.
Posted by basmpf at 23:43 0 comments
Update and upgrade packages
sudo apt-get update
sudo apt-get upgrade
Add extra repositories
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.list
Add :
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
-----save then back to terminal-----
sudo apt-get update
Posted by basmpf at 23:31 0 comments
Install Ubuntu
See here for some other good installation guides: APC's Linux/Vista/XP dual-booting guide and Psychocats' installation guide.
- Download the Ubuntu installation CD/DVD image, and then burn the image to CD/DVD.
- If you have multiple monitors, disconnect all but the main one.
- Boot off the CD/DVD. This usually involves simply rebooting the computer with the CD/DVD in the appropriate drive. For some computers you may need to hit F12 (or F2, or DEL, or something like that) at the appropriate time during boot and select from a menu to boot off the CD.
- Choose the "Start Ubuntu in safe graphics mode" option.
- After the computer boots into the Live CD version of Ubuntu, double-click the Install icon on the Desktop.
- At this point, your screen resolution might be too low to be able see or click the "Forward" button at the bottom of the Install window. If this is the case, you can fix the problem as follows:
- Close the over-sized Install window.
- Open a terminal by clicking on the Applications menu and then on the Accessories submenu and then on the Terminal menu item.
- In the terminal, type:
sudo dpkg-reconfigure xserver-xorg
and then press ENTER on your keyboard. - You will be presented with a series of questions. Choose the default answers to all questions, except for the following:
- Choose "Medium" for the method for selecting monitor characteristics.
- Choose "1028x768 @ 60Hz" for the monitor's best video mode.
- After you answer all the questions and are back in the regular terminal, restart the Gnome Desktop Manager by pressing CTRL+ALT+BACKSPACE on your keyboard.
- Wait for a few seconds without pressing any keys until Ubuntu automatically logs back in and you can see the desktop again.
- You should now have a better resolution.
- Double-click the Install icon on the Desktop and you should be able to see the full install window.
- Select your language, location and time-zone, and keyboard layout.
- When you reach the "Prepare disk space" section, choose to "Manually edit partition table". Note that you can decide to keep any existing Windows partition(s) (in which case Ubuntu will install itself with dual boot options). However, if the Windows partitions take up the whole hard drive, then you must first shrink these partition(s) in order to free up space for your Ubuntu partitions. I recommend setting up three new partitions (in addition to the shrunk Windows partition) for Ubuntu as follows:
Purpose Size Filesystem swap space 1-2GB linux-swap root directory (/) 6-10GB ReiserFS (or ext3) home directory (/home) remaining free space ReiserFS (or ext3) - Migrate Documents and Settings if applicable and/or desired.
- Select your user name, password and computer name.
- Review your choices, and then click "Install".
- Browse the web or read a magazine while Ubuntu installs.
- Eventually, you will be informed that the installation is complete, at which point click the "Restart now" button.
- Just before Ubuntu finishes restarting, you will be prompted to remove the install CD/DVD. Make sure to do so in order to avoid booting back into the install CD.
- If Ubuntu detected Windows on another partition, it will present you with dual boot options using GRUB. The top option is Ubuntu. Choose it, or else just let the timer count down to zero.
- After the computer boots into the newly installed Ubuntu, log in using the user name and password that you selected earlier during installation.
- Congratulations! You are now running Ubuntu! :)
Posted by basmpf at 23:27 0 comments
Saturday, March 22, 2008
Dared to try, Dared to fail
A person bussinesman must have the brave attitude tried and tried continually.Bravely tried, in a manner indirectly businessman was demanded to learn from the mistake and the failure that were experienced by him.
In the internet business/online that was increasingly bright today, courage tried a person businessman online also held the important role.
Tried the online business that so many were offered indeed was not unfortunate him, all of them very free, his capital of only time and the normal internet connection was also spent by us.
It was better to try the internet business than only wasted time and money when surfing in the world maya.
Many success stories businessman online that started from just was mischievous and attempted.
The fad that the implementation evidently caused the production that increasingly for a long time was increasingly pleasing.
Finally not few people who made the online business the main source of his production.
Nevertheless, the brave attitude tried to have to be followed with the brave attitude failed.
Almost did not have the person who just the first time tried the business immediately reaped the success and the success.
A person businessman the certain success had experienced the failure.
Usually businessman that ditempa the failure repeatedly precisely more will be successful in the future.
The failure will for the sake of the failure that struck him become means study and the exercise in facing the business challenge in the future that increasingly did not find it easy, so as the success seem like only was waiting for time.
Courage tried to be important but courage accepted the failure became more important in the business anything.
Courage accepted the significant failure realised that there is no business that was easy and instant.
The brave attitude failed to cultivate the attitude was not easy to surrender and lose hope, because in the business was needed by efforts and the hard work.
The online business that was regarded as very easy in fact not semudah that was imagined by many people.
Many people were interested entering to the online business with the wish to become rich in a short time easily.
They were wrong, in the online business then was needed by efforts and the hard work.
The success story that was experienced pebisnis online also was built from many failures that had been experienced by them.
They who were successful in the online business had not stopped trying and studying.
Don't had dreamt of becoming the millionaire from the online business only with ongkang-ongkang foot.
All of them needed time and efforts.
In fact the person not failed, but only stopped trying.
Someone who wanted to gain the success, then the person must have courage tried and courage accepted the failure.
Good luck for all.
The two capitals so that will determine the success of his business.
Posted by basmpf at 07:59 0 comments