The Blog

Author: admin

Passive FTP Plesk

Posted on

To enable passive mode for FTP connections on your server:
1 Log in as “root” to the server shell over SSH.
2 Edit your ProFTPD configuration file.
a Issue the command vi /etc/proftpd.conf
b Add the following lines anywhere within the <Global> section:
PassivePorts 49152 65534
c Save the file
3 Log in to Parallels Plesk Panel as “admin”, go to Modules > Firewall, and
click Edit Firewall Configuration.
4 Click Add Custom Rule.
5 Specify the following:
a Rule name
b Direction: select Incoming.
c Action: select Allow.
d Ports: in the Add port input box, enter the value 49152-65534. Leave the TCP
option selected, and click Add.

PassivePorts 60000 65535

Posted in PLESK Leave a comment

MySQL tricks

Posted on

The LENGTH() function in MySQL returns the length of a string in bytes. Multi-byte characters will count as multiple bytes. The examples in this post will use the LENGTH() function but you can substitute them with the CHAR_LENGTH() function instead if you want to count the number of characters rather than bytes. Note that CHAR_LENGTH will treat a character that uses two bytes a one single character and would return 1.Read More

Posted in Uncategorized Leave a comment

Restoring Linux System from Backup

Posted on

Terminal Commands

Mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD) and find out. It is usually a EXT4 Partition. Replace the XY with the drive letter, and partition number, for example: sudo mount /dev/sda1 /mnt.

sudo mount /dev/sdXY /mnt

Now bind the directories that grub needs access to to detect other operating systems, like so.

Now we jump into that using chroot.

Now install, check, and update grub.

This time you only need to add the drive letter (usually a) to replace X, for example: grub-install /dev/sda, grub-install –recheck /dev/sda.

grub-install /dev/sdX
grub-install --recheck /dev/sdX

Now grub is back, all that is left is to exit the chrooted system and unmount everything.

Shut down and turn your computer back on, and you will be met with the default Grub2 screen.

You may want to update grub or re-install burg however you like it.

Congratulations, you have just Repaired/Restored/Reinstalled Grub 2 with a Ubuntu Live CD!

Type at the command prompt

tar xvzf file-1.0.tar.gz – for a gzip compress tar file (.tgz or .tar.gz)
tar xvjf file-1.0.tar.bz2 – for a bzip2 compressed tar file (.tbz or .tar.bz2)
tar xvf file-1.0.tar – for uncompressed tar file (.tar)Read More
Posted in Uncategorized Leave a comment

Linux XBMC Atom 330 Nvidia ION

Posted on

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:nvidia-vdpau/ppa
sudo add-apt-repository ppa:team-xbmc

The Xorg build in Karmic seems to have the composite extension turned on by default which caused horrible tearing on my build. This can be disabled by adding the following to your xorg.conf file:

Code:
Section "Extensions"
          Option "Composite" "Disable"
EndSection

This fixed the problem with xbmc but caused some ugly problems with gdm which caused the display to not refresh properly when the xsplash animations played. 

 How to:
http://www.springydevelopment.co.uk/2009/11/08/minimal-install-of-xbmc-on-ubuntu-karmic-koala/
http://www.webupd8.org/2009/08/how-to-install-nvidia-190xx-drivers-in.html <– Nvidia drivers

Posted in Uncategorized Leave a comment
« Previous PageNext Page »