Professional Documents
Culture Documents
How To Install Mysql Server 5.6 On Debian 7 and 8
How To Install Mysql Server 5.6 On Debian 7 and 8
You will be asked to select product and version that you want to install. In the first
step, select Serverand next select mysql-5.6. Then click Apply.
3. Update APT
apt-get update
Thats all!
How to add a new hard disk or partition using UUID and ext4 filesystem
Adding a additional hard disk to your workstation or server is easy and often
required. Heres well step through the process of identifing the newly attached drive,
prepare and mount it.
If you have just added a virtual disk to a virtual machine, make sure you restart the
virtual machine before mounting the new disk.
1. Figure out the device name for the new device
fdisk -l
2. Next well partion the new disk using the following command:
cfdisk /dev/sdb
You can name the folder whatever your want and place it in a subfolder of another
mounting point, for example /var/disk2
5. Add the new drive to fstab so that it will automatically mount when we reboot the
machine. Add the following line to your fstab file (pico /etc/fstab)
/dev/sdb1 /disk2 ext3 defaults,errors=remount-ro 0 1
Installing ionCube
ionCube protects software written using the PHP programming language from being
viewed, changed, and run on unlicensed computers.
1. Download ionCube loaders
wget
http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.
gz
2. Extract
tar zxvf ioncube_loaders_lin_x86.tar.gz
There are a few versions of the loader in the tar archive and you can choose the one
that suites your needs
5. Restart apache
/etc/init.d/apache2 restart
You can also skip the -a parameter (which makes ipmitool prompt for a password
everytime) and add -P {password} to avoid the password prompt.
Here are some examples of useful commands
Get hardware status (including hardware failures and power status)
ipmitool -H {ip_address} -U {username} -a chassis status
List all sensor values (including temperature, fan speed, voltage and more)
ipmitool -H {ip_address} -U {username} -a sensor list
2. Next well partion the new disk using the following command:
cfdisk /dev/sdb
4. You need to create a new directory where the disk will be mounted in the
filesystem
mkdir /disk2
You can name the folder whatever your want and place it in a subfolder of another
mounting point, for example /var/disk2
5. Its preferred to use the device UUID (Universally Unique Identifier) instead of
directly linking to the device path because while UUID always stays the same, the
device path may change. This is how we find the UUID:
blkid
Which shows a list of all partitions and the assigned UUID. The list should look
similar to this:
/dev/sda5: UUID="180cab2a-300a-4e3d-8c8e-0e1df46b9bf7" TYPE="swap"
/dev/sda1: UUID="cd0c7b2c-bf50-4557-bc01-0048764a41d2" TYPE="ext4"
/dev/sdb1: UUID="359d90df-f17a-42f6-ab13-df13bf356de7" TYPE="ext4"
Replace the UDID value to the UDID displayed in step 5 for the new disk and replace
/disk2 with the path where you want to mount the disk in the filesystem as specified
in step 4
7. Manually mount the disk (you can also reboot the machine and it will be
automatically mounted)
mount /disk2
The ffmpeg package provided by Debian repositories doesnt support H.264 due to
patent restrictions. Luckily deb-multimedia.org provides a ffmpeg package compiled
with H.264 support and its very easy to install.
1. Add the deb-multimedia.org to apt sources
echo "deb http://www.deb-multimedia.org squeeze main non-free" >>
/etc/apt/sources.list
The output should be similar to this. If you can see enable-libx264, you have
H.264 support.
ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 13 2012 14:14:09 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g '
--cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl -enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid -enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora -enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 -enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter -enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enablelibschroedinger --disable-encoder=libschroedinger --enable-version3 -enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt
--disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
squeeze
Heres how to install open-vm-tools on squeeze:
1. Add the contrib area to the apt sources (pico /etc/apt/sources.list)
For example, change:
to
deb http://ftp.uk.debian.org/debian/ squeeze main contrib
3. Install open-vm-tools
apt-get install open-vm-tools