Nothing to see...
A simple blog about all things in the world that is ridikulouse.
Technological steps, are man kinds greatest achievements
Not a Fighter, but a lover of Tech.
Love of the internet
The Internet is the final frontier for open connected networks, it promotes speech and advances knowledge for any mere person. The internet is fast becoming a need rather a want, and it is recognised by the UN as a necessity for the modern person.
Photography
Photography is more than just Art and expression, it is the manipulation of the light and provokes emotion and memories.
Have a look around
The articles on this blog represent my thoughts and views at the time of writing, I can always change my views through further education...please don't hold me against my views. Some of the articles have been written to assist anyone else with similar issues - it also helps me to remember. Hope you get something out of this.
Friday, October 19, 2012
Checking freespace from a terminal
Using Screen in Ubuntu
When I first tried the command screen in Ubuntu I found that it didn't work, I was notified by bash that I should sudo apt-get install screen. So, after I installed it as bash suggested, I re-executed the command screen and a GNU lic agreement was displayed. Then I was placed back on to a command prompt, almost exactly the same command prompt as what I was on before... so what next ?
I decided to do a bit of research into screen, from what I was advised that it is a essential tool that should be used my most people but in reality it is overlooked. So if it is so important why is there a lack of understanding of screen?
Well here is what I found out: When you are using a terminal window or if you are using telnet, you are assigned a session. Within the session you can execute all the commands that you need as long as the session is still active. If the session is terminated then your commands exit. So how does your session terminate ? well if you close down your terminal (accidently or not) or if you close your telnet session (accidently, forced, or via another method).
So, if you are working on a complex build and it is taking a long time you are forced to keep the session open until the build completes. A complex build is problematic with a temperamental telnet session. Here is where screen comes in to the rescue.
Screen detaches your session, and hence allowing your program to continue to execute even when the terminal has been closed or your telnet has been closed. You can regain the session easily by re-establishing a terminal window or telnet session and re-executing screen.
Sounds handy huh?
Starting Screen
To start screen you can:
- Enter the command screen
- Enter the command screen -S <sessionname> where the <session name> is any name to describe the session. For example screen -S 1 and screen -S mySession are valid ways of describing the sessions. This comes in handy if you want to open multiple sessions, having a meaningful name means you can open the right session when you want it.
- Enter the command screen -r if you started screen without a session name then just use this command.
- Enter the command with a session name screen -r <session name> where <session name> is the name of the session that you started previously. For example screen -r 1 or screen -s mySession.
- Next window : CTRL + A and then CTRL + N
- Previous window : CTRL + A and then CTRL + P
- Selecting from a list of windows : CTRL + A and then CTRL + "
- The last session that was viewed : CTRL + A and then CTRL + A
Wednesday, October 17, 2012
Partitioning and Formatting a 3TB Harddrive as NTFS within Ubuntu
The first and important step is the consideration of partition and file system. Since this is a large harddrive, and since I have a number of computers with all different flavors of OSs - most importantly the Windows machines. I've decided to apply a single ntfs partition.
first steps first, I need partition tool such as gparted and some ntfs tools. To get these apt-get them and get them installed:
sudo apt-get install gparted
sudo apt-get install ntfsprogs
Now that these are installed, open up Gparted from the application launcher.
Since this is an empty new harddrive the entire block is in the shade of grey and it states that it is unallocated. Before you get stuck into creating partitions, you first need a partition table. To create a partition table click on Device > Create Partition Table.
You will be prompted to select a partition table type, it states that the default is MS-DOS partition, however, this has a limitation of 2TB partitions - since a 32bit field length is being used and with 512 byte sectors this equates to 2TB. In order to get to the something higher than 2TB we need to select GPT as our partition table type, to do this click on the arrow next to Advanced this will reveal a drop down, from there select GPT. To learn more about GPT click here. Click Apply to continue.
Now you would need to create one or more partitions, to do this right click on the grey block (where it sez unallocated) and click on New within the context menu.
You'll be presented with a box where you can select :
- Free space preceeding (MiB): This is the start, since I'm creating it from scratch the lowest I can go is 1
- New size (MiB): The size of the partition, since I'm creating one big partition this will be the maximum for my 3TB which is 2861587
- Free space following (MiB): This is the end of the partition, since I'm taking up all the space it will be 0 for me
- Align to: You can slect MiB which is easier to comprehend, or Cylinder, or none
- Create as: You can create the partition as a Primary Partition, Logical Partition or an Extended Partition
- File system: Here is where you can set it to NTFS, there are a number of options and since this post is about NTFS I'll only cover that option
- Label: Here you can enter a label for your new partition like "myNewPart" or what ever will describe the partition for you.
Once you have entered everything the way you want click on Add to continue. The following options are what I had selected:
Once you have clicked on Add, you'll be dropped back on to the main screen of Gparted.
At this stage it's not too late to back out, if you want to back out click on the orangy-red back button just under the Parition menu. Otherwise if you are comfortable to continue click on the green tick that's under the Help menu.
Since this is a risky operation, make sure that you have any data backed up when you are playing around with partitions and formatting. Once you have completed all the tasks its very difficult to back out. You'll be presented with a final confirmation asking whether to proceed or not.
If you are uncomfortable to proceed click on cancel and back out now! Otherwise, click on Apply to continue.
This will then cycle through for a little while:
Once it is done you'll be given a success message, click on Close to continue:
All done.
Now since I'm a skeptic at times I normally test it to make sure that it works. So mount up the drive via Nautilus and create a text file to see if it works.
Now it's done.
Tuesday, October 16, 2012
New Layout - Experiment
So in the mean time you will see changes on the site, sometimes it might work and sometimes it wont. But for most part I hope it works.
Movie-Renamer Installation
- It downloaded the movie information
- Downloaded Posters
- Downloaded Fan Art
- Created the required .nfo files for XBMC
Installing Java 7 on Ubuntu
However, since my install of Java did not exist I had to hunt around on how to install Java, the following steps are what I used:
1. Add a PPA to your repository list
sudo apt-get-repository ppa:webupd8team/java
2. Check that your system is updated
sudo apt-get update
3. Execute the installation
sudo apt-get install oracle-java7-installer
When the installation starts you will be prompted, within the terminal, to accept the license agreement. Once you have accepted the license agreement, the installation will continue and it will take less than a minute to download everything and install Java on your machine.
Saturday, October 13, 2012
Cloud Storage for the Consumers
- store my information safely for a long time (maybe not for 150 years) but long enough based on the information
- Be able to search for the information easily and efficiently
- Be able to be accessed anywhere and any time
- Check out how long they have been around - assess the risk of them shutting up shop and taking all the information with them.
- Check out whether they will breaking any laws - there were many people who used MegaUpload as method of cloud storage. However, MegaUpload and MegaVideo were also participating in infringements which at the end brought down the company. All the users to date haven't been able to obtain their files.
- Consider using multiple hosts - have one as your backup to minimise the risk of #1 and #2.
- Make sure you understand the companies interest in providing you with free storage - Remember nothing is free in life.
































