This guide is for Debian Stretch amd64. For i386 see notes at the end.
Warning: This is an unsafe procedure since it does not verify the package signatures. A safer way to proceed would be to add jessie to your /etc/apt/sources.list, install the packages, then remove jessie from sources.list.
Proceed at your own risk.
When making the move from Jessie do Stretch, I noticed RStudio does not start after installation. In fact, on close inspection, I realized the installation failed to meet dependencies. The debian package for RStudio available as of March 28 2016 (version 0.99.893) requires dependencies not available on Stretch (which will use a newer version).
Someone pointed out to me that these dependencies are available on Ubuntu 16, alongside the newer ones, which means they can be installed side-by-side.
I tried to download and install them manually, and it seems to solve the problem.
The following commands download and installs the dependencies as well as Rstudio 0.99.893 for amd64.
wget http://ftp.us.debian.org/debian/pool/main/g/gst-plugins-base0.10/libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gstreamer0.10/libgstreamer0.10-0_0.10.36-1.5_amd64.deb
wget https://download1.rstudio.org/rstudio-0.99.893-amd64.deb
sudo dpkg -i libgstreamer0.10-0_0.10.36-1.5_amd64.deb
sudo dpkg -i libgstreamer-plugins-base0.10-0_0.10.36-2_amd64.deb
sudo dpkg -i rstudio-0.99.893-amd64.deb
For i386 architectures, you should adjust the URLs and package names.
Find your Rstudio package here:
https://www.rstudio.com/products/rstudio/download/
And grab the appropriate dependencies from:
https://packages.debian.org/jessie/libgstreamer0.10-0
https://packages.debian.org/jessie/libgstreamer-plugins-base0.10-0
Monday, March 28, 2016
Tuesday, July 29, 2014
Setting up software raid with mdadm
Summary
Creating and managing software raid (fake raid) is made quite simple with mdadm. This guide intends to cover the very basics necessary creating and managing raid1 (redundancy) arrays.
For the purpose of this guide, I will consider two disks, /dev/sdb and /dev/sdc, each with four partitions numbered 1-4, and I will refer to them in the short form sdb1, sdc2, and so on.
To install mdadm:
apt-get install mdadm
To observe:
sudo cat /proc/mdstat
sudo mdadm --detail /dev/md0
Create a new array from scratch:
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
This will create an array in /dev/md0 using two partitions.
Grow existing array:
Say you have the above array running and you want to add another partition in a brand new disk you just got. You can --add a partition to the running array, but you also have to --grow the array, or the disk will be treated as a spare.
You can also --grow an array without providing the partitions (use --force), but until you --add them, the array will be degraded.
sudo mdadm --grow /dev/md0 --raid-devices=3
The array becomes degraded.
sudo mdadm --add /dev/md0 /dev/sdd1
The array goes into rebuild/sync mode, and when done it becomes clean.
Start a raid member in virtual device
Creating and managing software raid (fake raid) is made quite simple with mdadm. This guide intends to cover the very basics necessary creating and managing raid1 (redundancy) arrays.
For the purpose of this guide, I will consider two disks, /dev/sdb and /dev/sdc, each with four partitions numbered 1-4, and I will refer to them in the short form sdb1, sdc2, and so on.
To install mdadm:
apt-get install mdadm
To observe:
sudo cat /proc/mdstat
sudo mdadm --detail /dev/md0
Create a new array from scratch:
sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
This will create an array in /dev/md0 using two partitions.
Grow existing array:
Say you have the above array running and you want to add another partition in a brand new disk you just got. You can --add a partition to the running array, but you also have to --grow the array, or the disk will be treated as a spare.
You can also --grow an array without providing the partitions (use --force), but until you --add them, the array will be degraded.
sudo mdadm --grow /dev/md0 --raid-devices=3
The array becomes degraded.
sudo mdadm --add /dev/md0 /dev/sdd1
The array goes into rebuild/sync mode, and when done it becomes clean.
sudo mdadm -A -R /dev/md0/dev/sdb1
Subscribe to:
Posts (Atom)