The Blog

Author: admin

Remote restart into safe mode

Posted on

If you have admin rights on the remote machine then it’s possible.

You need to edit the boot.ini file (usually found on the root of the C: drive)

Open a command prompt on your local machine

add this to the boot.ini of that machine.

/safeboot:network

example:

multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional"   
/noexecute=optin /fastdetect /safeboot:network 

or try this link

http://support.microsoft.com/kb/239780

you won't be able to remote unless you can remotly execute VNC

Posted in Uncategorized Leave a comment

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
« Previous PageNext Page »