Cpanel – How to move a cpanel hosting account to another reseller account

Filed Under (Cpanel) by iwel on 28-01-2010

Tagged Under : , , ,

Sometimes you need to move one account from one reseller account to another reseller account in order to move the ownership of a hosting account in our WHM cpanel, to do :

1. Login to your WHM Panel (as root)
2. Go to Reseller Center (Under Reseller Category)
3. Choose menu “Change Ownership of an account” under the “Change Account Ownership/Email Resellers” category
4. Choose the domain / user you want to move in account selection,
5. Choose the reseller account then click the “OK” button

Now the account will be under the WHM reseller account :)

Linux find large file size

Filed Under (Personals) by iwel on 14-01-2010

Tagged Under : , ,

Sometimes after using your linux box, data consumes spaces in your hard drive, then you start to think how to find large file size in linux box, after searching a while then i found the solution for this,the following command will list all files in sorted order in human readable format :)

find /var -size +10000k -print0 | xargs -0 ls -lSh

the explanation for this is : look for files bigger than 10MB in the /var directory, sort it by biggest file first (descending), and show it in human readable format (MegaBytes)

That’s it.. now you can find large file size in your linux box, simple right :)

Update to Wordpress 2.9.1

Filed Under (Personals) by iwel on 14-01-2010

Tagged Under :

Gosh… the version movement are so fast…

Update again : Wordpress 2.8.6

Filed Under (Personals) by iwel on 11-12-2009

after blog walking to gadgetboi, apparently he came to visit my post, i must say its a fast respon bro :D if not approving your comment i might not open my blog again (due to work :-( ) and wut do u know.. wordpress already release a new version (although its minor), i think it would be a good thing to update juz for precaution :)

I don’t know bout  others, but i usually update my wordpress installation by download the whole package and replacing all the files, since this is minor update i think i would go for automatic update now :)

Hope it runs smoothly.

Upgrading to wordpress 2.8.4

Filed Under (Personals) by iwel on 26-09-2009

Well..after long time not updating my blog content n the wordpress CMS, finally upgrade my wordpress to version 2.8.4.

Lots of security hole announced. Even though i doubt that anyone wants to hack my blog coz its not famous enough :) ) :P , i think precautions is better than regretion right? hehehehehe…

I think im gonna continue watching Alexander the movie..

Check linux distro version

Filed Under (linux) by iwel on 17-06-2009

Tagged Under : , ,

having to manage a few server and install services,i need to know what distribution of linux for each box i handle. So, to check linux  distro version  of my box i would run this in my shell :

cat /proc/version

as for example, the result is like this for ubuntu :

Linux version 2.6.27-14-generic (buildd@palmer) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12) ) #1 SMP Wed Apr 15 18:59:16 UTC 2009

as for centos would like this :

Linux version 2.6.18-53.1.14.el5 (mockbuild@builder6.centos.org) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Wed Mar 5 11:36:49 EST 2008

easy right ? :)

Change Remote Desktop password from terminal

Filed Under (Ubuntu) by iwel on 30-05-2009

Tagged Under : , ,

Having installed Remote Desktop on my Ubuntu Intrepid box makes me easy to control my desktop from anywhere to work,  but today when i tried to connect to my desktop,i forgot the password for it

frustated

frustated

then i try to find some answers to change remote desktop password from terminal by googling, so i found this solution for 8.04 :

- gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled false
- gconf-editor
- paste encode password from: http://www.javazoom.net/services/base64/base64.jsp
- or use:
- gconftool-2 -s -t string /desktop/gnome/remote_access/vnc_password <encode_pwd>
- or use:
- System-> preferences-> Remote Desktop
- set pwd as desired…
- manual text edit of %gconf.xml does not seem to work!
- gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true
- verify .gconf/desktop/gnome/remote_access/%gconf.xml

Read the rest of this entry »

Ubuntu 9.04 jaunty display problem for ATI Radeon X300

Filed Under (Ubuntu) by iwel on 12-05-2009

Wanting to have the newest version of Ubuntu, i install Ubuntu 9.04 (Jaunty), but after installing it, my Gigabyte ATI Radeon X300 powered can get the best driver for it. Googling and crawling in the ubuntu forums seems to bring me no solution, trying to install the ATI driver from ATI website (ati-driver-installer-9-3-x86.x86_64.run) but still have no luck on it. So after 2 days giving my best effort, i gave up and install 8.10 (intrepid) on my box.

I also find out that ATI has stop supporting drivers for old VGA cards, so i think i will be more carefull on decision when buying hardwares.

After several things installed, every thing seems ok now. I have my compiz 3D desktop effect running and other effects run smoothly (at least for 3 days until today :P )

I think im going back to my old habit in software, not being too updated on softwares if theres not enough information on stability or full support on my hardwares :)

Permanent Aliases in bash shell

Filed Under (Ubuntu) by iwel on 30-04-2009

Tagged Under : , , ,

Aliases are a convenient feature of shells in Unix-like operating systems that make it possible to launch any command or group of commands (inclusive of any options, arguments and redirection) by merely entering a brief, pre-set string (i.e., sequence of characters).

Although aliases can easily be set up using the alias command, this command has the disadvantage that any alias created with it remains in effect only during the current login session (i.e., until the user logs out or the computer is shut down). This might not be much of a problem for systems that are rebooted (i.e., restarted) only infrequently (such as corporate database servers), but it can be a nuisance for systems that are frequently rebooted (e.g., home computers).

Fortunately, however, any alias can be made more enduring (i.e., until it is explicitly removed) by writing it to the appropriate configuration file with a text editor. The name and location of such file can vary according to the system and the shell. In the case of the bash shell (which is the default shell on

Linux) on Red Hat Linux, an alias for any user can be added to the .bashrc file in that user’s home directory.

Each alias is written in this file exactly the same as it would be written on the command line using the alias command (see The alias Command for examples). Because this configuration file is read at login, any changes to it will not take effect until the user has logged in again or opened a new terminal window (i.e., an all-text window in a GUI).

.bashrc is a hidden file, that is, a file whose name begins with a period and thus is not normally visible in a GUI (graphical user interface). However, it is easy to locate and open from the command line.

Because .bashrc is a plain_text file, it can easily be edited using any text editor, such as vi or gedit. For example, assuming that the user is currently in its home directory, the following could be used to open .bashrc with vi:

vi .bashrc

Likewise, the following could be used to open the same file with gedit:

gedit .bashrc

The alias should be typed in below the line that says # User specific aliases and functions. The pound sign at the start of this line indicates that the line is a comment, i.e., documentation for the convenience of humans rather than something on which the system acts.

Aliases for the root user (i.e., administrative account) can be made permanent by entering them in the .bashrc file in the root user’s home directory (which is /root), i.e., in /root/.bashrc. System-wide aliases can be put in the /etc/bashrc file. (Note that, at least on some systems, /etc/bashrc is not a hidden file.) The system needs to be restarted before system-wide aliases can take effect.

If the unalias command, which is used to remove or suppress aliases, is used on an alias which has been recorded in a .bashrc file, that alias is turned off for the duration of the current login session. However, the alias is not removed from the .bashrc file, and when the user logs in again, that alias is again in effect.

Created August 6, 2005.

Copyright © 2005 The Linux Information Project. All Rights Reserved.

http://www.linfo.org/make_alias_permanent.html

WinSCP alternatives in Linux

Filed Under (Ubuntu) by iwel on 29-04-2009

Tagged Under : ,

Since migrating to linux (Ubuntu to be precise), im trying to find equivalent tools i’v used in doing my work. Now, i’m currently need to do some file transfers from my server. In Windows i usually use WinSCP, a very nice (so people said it also) tool for managing files through SSH connection, but im quite in confuse when i try to find the similar one like WinSCP.

After googling a bit, i found some alternatives to do it :

  1. Wine – it !! Simply saying, if u can’t find the equivalent software in linux, then juz Wine it :) . Run WinSCP using Wine.
  2. use gFtp
    install gFTP: sudo apt-get install gftp,
    Load gFtp ( Applications – Internet – gFTP), insert ur server address / domain, port, username and password,set the protocol to SSH2,connect.
  3. use Nautillus, the default file manager for Ubuntu, how to do it ?
    open Nautillus, change the address to text instead button look (the button below the “Back”  button) then insert like this : sftp://username@server.com:portnumber
    Alternatively, go to menu : File – Connect to Server, then fill the fields with your own details.

That’s it.. alternative way to get the work done beside using WinSCP :)