Some Useful Ubuntu/Linux commands

Delete all files and folders in that directory

rm -rf FolerName


  • 644:file readable by anyone and writable by the owner only.
  • 755:readable/executable by everyone and writable by the owner only.
  • 777: Full access by anyone
  • -R option is to apply to files and folders within it.
    chmod -R 755 directory-name

Ethernet Cable Speed

Cat 3: Max 10 Mb/s, 16 MHz bandwidth
Cat 5: 10/100 Mbps
Cat 5e: 10/100/1000 Mbps, 100 MHz
Cat 6: 10/100/1000 Mbps, 250 MHz, better in environment that has electromagnetic interference.
Cat 6a: 10,000 Mbps, 500 MHz
Cat 7: 10,000 Mbps, 600 MHz

Using Webmin to Manage Partition and Drives in Ubuntu Server

  1. Create and mount the volume
    • Create volume:
      • Hardware -> Logical Volume Management -> Logical Volumes -> Create a logical volume in Media-server-vg (your server name)
      • Volume name: ServerData, Click “Create
      • Click on that newly created volume, make sure the drop down selected Linux Native (ext3) and click the Create filesystem of type, Click Create again to create a new empty partition.
    • Mount volume
      • System -> Disk and Network Filesystems
      • Select Linux Native Filesystem (ext3)/New Linux Native Filesystem (ext4) from drop down, and click on “Add mount
      • Select /media or/mnt for Mounted as and then type to finish it as “/media/ServerData” , then click OK
      • Check “LVM logical volume” and select your newly created Logical Volume for Linux Native Filesystem
      • Click “Create“. Your drive is ready to use.
    • Format the volume
  2. Add additional drives
    • Hardware -> Partitions on Local Disks -> select the new “Disk name” – > click on Add primary partition -> Create. You have just created the partition
    • To format, click on your newly created partition -> click on Create Filesystem with the option Linux Native selected -> click Create Filesystem -> Create Create Filesystem.
    • To mount, you did the same as above except this time, you select “Partition with ID” instead of “LVM logical volume“.

How to Install Ubuntu Home Media Server

The following are what I did to install my home media server.

  1. Install Ubuntu Server:
    • Download Ubuntu Server 14.04.1 LTS (LTS version is supported for 5 years)
    • Burn the downloaded Ubuntu Server ISO into a bootable CD.
    • Keyboard, screen, and Ethernet cable plugged into the server are needed.
    • Run the CD and follow the screen instruction to install the server
      • When asked if you want to “configure your home directory for encryption”, select “No
      • When asked “Unmount partitions that are in use?”, select “Yes
      • For Drive Partitions, select “Guided – use entire disk and set up LVM“, then give 30GB for the OS installation
      • For Managing Update, select “No automatic updates
      • For software to install, Select OpenSSH Server & Samba File Server, to select press Spacebar
  2. Upgrade your Ubuntu Server
    sudo apt-get update
    sudo aptitude safe-upgrade

    If you get the error from the above command, use the following command

    sudo apt-get install aptitude

    To check the Ubuntu Server version:

    lsb_release -a

    To reboot the Ubuntu Server:

    sudo reboot -h now
  3. Recommended Software:
    • vim for text editor
      sudo apt-get install vim
  4. To manage Ubuntu Server:
    • Use Putty
    • Use Webmin – The Debian package suitable for Debian, Ubuntu or other derived Linux
      • InstallWebmin
        sudo apt-get update
        sudo dpkg -i webmin_1.730_all.deb

        If there is errors preventing it from installing, then run the following command line to re-install it automatically:

        sudo apt-get install -f
      • ChangeWebmin root password:
        sudo /usr/share/webmin/ /etc/webmin root YourNewPassword
      • DeleteWebmin installation files:
        rm webmin_1.730_all.deb
      • OpenWebmin:
  5. Using Webmin to Manage Partition and Drives in Ubuntu Server
  6. Share Drives and Folders in Ubuntu Server across the Network
Page 5 of 7 1 3 4 5 6 7