Read before running Storage Spaces in Windows Server

Read THIS before running Storage Spaces in Windows Server.

When creating a virtual disk set the WriteCacheSize to 10GB or more, after a virtual disk is created, its WriteCacheSize can’t be modified.

Read THIS!

Aditional reading:
Storage Spaces – Designing for Performance

Understanding Storage Space Internal Storage

Posted in Windows Server | Tagged , , , , | Leave a comment

Install Webmin (ver.2)

open the sources.list file

sudo nano /etc/apt/sources.list

…add the following lines to the end of the file:

deb sarge contrib
deb sarge contrib

…add the Webmin GPG key to apt, so the source repository you added will be trusted.

wget -q -O- | sudo apt-key add -

…update apt-get’s package lists.

sudo apt-get update

…install Webmin.

sudo apt-get install webmin

Open this URL in your web browser (substitute the IP address): https://server_IP_address:10000

Posted in Linux, Ubuntu 14.04 lts | Leave a comment

SuperPutty not starting up

 Go to - C:\Users\<your username>
 and delete : SuperPutty.settings file

Posted in Windows | Tagged , , , , , | Leave a comment

Update Freenas CLI

 freenas-update check
 freenas-update update
 shutdown -r now

Posted in Uncategorized | Leave a comment

How to Speedtest your Linux Server

wget -O speedtest-cli
chmod +x speedtest-cli

Posted in Linux, Ubuntu 12.04 lts, Ubuntu 14.04 lts, Ubuntu Server | Tagged , , , | Leave a comment

CyanogenMod – delete log files ( space problem )

You can delete the log files using the Terminal Emulator app that comes with CyanogenMod:
1. Get superuser access:

su -

(and allow access when prompted).
2. Change current directory:

cd /data/log

3. (optional) You can see how much space (in KB) is being used by log files with this command:

du -k

4. (optional) If you want to see the names of the log files:


5. Delete log files with

rm *.log

6. End superuser session:


7. End terminal session:

Posted in Android, Linux | Tagged , , , , | Leave a comment

Windows Super Control Panel

Create a new folder anywhere.
Rename the folder by pasting this name exactly as it appears (copy it first):

Posted in Windows | Tagged , , | Leave a comment

Install ffmpeg – Ubuntu Server

sudo apt-add-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg
Posted in Linux, RTorrent, Ubuntu Server | Tagged , , | Leave a comment

Full Access to a folder in Ubuntu Server

sudo chmod 7777 /...path to folder
Posted in Linux, Ubuntu Server | Tagged , , | Leave a comment

rtorrent – Wrong Disk Space

sudo nano /var/www/rutorrent/conf/config.php

edit : $topDirectory = ‘/home/rtorrent/’; // Upper available directory. Absolute path with trail slash.

Posted in Linux, RTorrent, Ubuntu Server, Uncategorized | Tagged , , | Leave a comment

Formatting a Partition in Ubuntu Server

sudo mkfs…



sudo mkswap /dev/sda5


sudo mkfs.ext4 /dev/sda5
Posted in Linux, Ubuntu Server | Tagged , , | Leave a comment

Automount Partitions at startup in Ubuntu Server

1. sudo gedit /etc/fstab

2. now the fstab file is open in nano. you need to add an entry for the partition to automount it at startup.

the format of a new entry is like this:

file_system mount_point type options dump pass

you will see this in the file and you need to add your new entry under this line.

brief explanation of the above format:

  • file_system = your device id.

use this:

/dev/sdax ( you should check it with sudo fdisk -l)

it may be /dev/sdbx or /dev/sdcx if you have more than one disks connected.

  • mount_point =where you want to mount your partition.

use this:


here user is your user name, label is “software”, “movies” or whatever label your partiton have.

  • type=fat32,ntfs, ntfs-3g,ext2,ext4 or whatever your partition type is.
  • options =mount options for the partition(explained later).
  • dump=Enable or disable backing up of the device/partition .usually set to 0, which disables it.
  • pass =Controls the order in which fsck checks the device/partition for errors at boot time. The root device should be 1. Other partitions should be 2, or 0 to disable checking.

so for auto mounting case the above format reduces to:

/dev/sdax /media/user/label type options 0 0

(you can check the type with sudo fdisk -l)

the options field:

sync/async – All I/O to the file system should be done synchronously/asynchronously.
auto/noauto – The filesystem will be mounted automatically at startup/The filesystem will NOT be automatically mounted at startup.
dev/nodev – Interpret/Do not interpret character or block special devices on the file system.
exec/noexec – Permit/Prevent the execution of binaries from the filesystem.
suid/nosuid – Permit/Block the operation of suid, and sgid bits.
ro/rw – Mount read-only/Mount read-write.
user/nouser – Permit any user to mount the filesystem. (This automatically implies noexec, nosuid,nodev unless overridden) / Only permit root to mount the filesystem. This is also a default setting.
defaults – Use default settings. Equivalent to rw, suid, dev, exec, auto, nouser, async.
_netdev – this is a network device, mount it after bringing up the network. Only valid with fstype nfs.

now the final format reduces to (for auto mount):

/dev/sdax /media/user/label type defaults 0 0

for ntfs

/dev/sdax /media/user/label ntfs defaults 0 0

for ext4

/dev/sdax /media/user/label ext4 defaults 0 0


you can change defaults by your own configuration, like

/dev/sdax /media/user/label ext4 rw,suid,dev,noexec,auto,user,async 0 0


you need to add entry for each partiton you want to auto mount.

3. save and exit the file then restart

Posted in Linux, Ubuntu Server | Tagged , , , | Leave a comment

Install VMware tools on Ubuntu Server

apt-get install open-vm-tools
Posted in Linux, Ubuntu Server, VMware | Tagged , , | Leave a comment

Install Transmission on Ubuntu Server

add the apt-repository for Transmission:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:transmissionbt/ppa
sudo apt-get update

command to install Transmission:

sudo apt-get install transmission-cli transmission-common transmission-daemon

create some folders in our home folder for Transmission to use:

mkdir ~/Downloads
mkdir ~/Downloads/Completed
mkdir ~/Downloads/Incomplete
mkdir ~/Downloads/Torrents

set the correct permissions on the Downloads folders:

sudo usermod -a -G debian-transmission username
sudo chgrp -R debian-transmission /home/username/Downloads
sudo chmod -R 775 /home/username/Downloads

editing Transmission settings:

sudo /etc/init.d/transmission-daemon stop


service transmission-daemon stop

edit our configuration file:

sudo nano /etc/transmission-daemon/settings.json

and than edit:

"download-dir": "/home/username/Downloads/Complete",
"incomplete-dir": "/home/username/Downloads/Incomplete",
"incomplete-dir-enabled": true,
"rpc-authentication-required": false,
"rpc-whitelist-enabled": false,

save the file.

start transmission again:

sudo /etc/init.d/transmission-daemon start


service transmission-daemon start

Now navigate to: ( being the ip of your server).

Don’t forget to say THANX!!!

Posted in Linux, Ubuntu Server | Tagged , , | Leave a comment

Ubuntu Server – Add a new User as Sudoer


sudo useradd -d /home/testuser -m testuser
sudo passwd testuser

replace testuser with the required username.

sudo nano /etc/sudoers

add the user after the:

root ALL=(ALL) ALL


testuser ALL=(ALL) ALL

Save the file.

Don’t forget to say THANX!!!

Posted in Linux, Ubuntu Server | Tagged , , , , , | Leave a comment