Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Thursday, 25 July 2013

VirtualBox on Kali Linux, How To?

It's been ages since I write anything, but it was constantly in my mind that I was reminding myself "c'mon Ozgur you should write something on your blog, you have a blog. Write!"

Now is the time, it'll be a very quick step-by-step.

Recently my new hobby is testing pentest distros. Of course along the way I know now some of my neighbours Wi-Fi passwords. After testing and trying out versions and configurations and drivers and CUDA and some other stuff, I think I am gonna settle on either Kali or WeakNetLabs. I can make Ubuntu an OK degree pentest distro as best of my abilities also, but I claimed it impossible to enable CUDA with my hardware. It will simply not be happening. I tried everything I know and can be found on forums and stuff. It will not work. So I continued...

WNL comes with CUDA 5.0 and pretty recent and decent Nvidia drivers out of box but I have some little other issues I first need to fix so it will take another post to go that way.

On the other hand, Kali is playing well with my hardware if I use Cuda 4.x and old Nvidia drivers. Which, frankly, I am ok with. Normally I update everything to the latest but in this case I will make an exception since it is really too hard to get it done everything correctly for me (which I mean WPA cracking via CUDA =P ).

Back to the guide; I will try to give you little heads up before you use Kali as a host for VirtualBox images. I will assume you login as root and since it is a pentest distro you should be familiar with most of the stuff already.

apt-get update
if you have still 2 or 3 lines of  sources.list after this, it is a good time to find an appropriate sources.list for your distro which Kali I hope not BackTrack.

apt-get install linux-headers-`uname -r`
this should update 20 to 60 mbs if not it is probably because of the sources.list is not rich enough. You may get some errors like cannot locate 37-trunk-amd64 or such with header update, but it is a matter of fixing the sources.list really.

after that we should head to the https://www.virtualbox.org and press downloads. You should see the version and platforms. Find and click
VirtualBox 4.x.yz for Linux hosts on. You will not see anything close to our distro. But you can very easily locate the last one;
All distributions choose your platform, either 32 or 64 bits. Download the file, I am assuming you download it to the ~/Downloads/. Following finishing download make the file executable with chmod and then run it.

chmod +x VirtualBox-4.2.16-86992-Linux_amd64.run
./VirtualBox-4.2.16-86992-Linux_amd64.run
what you should see if everything goes right is;

 Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation............
VirtualBox Version 4.2.16 r86992 (2013-07-04T14:33:09Z) installer
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
Building the VirtualBox kernel modules

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.


after that type and go the default installation directory;

cd /opt/VirtualBox/
get a list there. You will see a VirtualBox executable righted file. Run it directly from the console.

VirtualBox
Voilà!

There you have your VirtualBox on Kali.


I tried also XP on it and it worked just as fine without any hassle. It's a good setting now. CUDA to crack and i3 CPU - 8GB ram to play with.

Enjoy. Next time I will write about qbittorrent application and its nicest settings I figured out for Kali or maybe on WeakNetLabs.

Sunday, 21 March 2010

Free Wiki-Server Setup With Ubuntu, Easy!

Let's assume you have any machine that can run Ubuntu. 64 bits or 32 (i386), doesn't matter. You can easily turn this machine a wiki server. With this mini guide and without any-cost; you'll have a very efficient web-server with PHP5 support / a Wiki / an SSH-Server. First things first, here's my configuration and my end-results before you lose time on reading this post.

** 3GB Memory (my experience tells me if you have only a single machine for everything you are going to do, memory is more important than CPU, well most of the cases)
** AMD Athlon X2 64 bit @ 2.0 GHz (my mainboard is the cheapest mainboard I could find with everything on-board (ECS))
** 16 GB SSD Disk (well in such systems IO is actually more important than CPU, again most of the cases, but this wiki-thing I am setting up is going to be used only by 5 or less people so IO for this will be no importance. If yours is going to be serve as a more serious manner, then please choose accordingly. I chose this way cause this machine will be in my study-room and I don't like that much computer sound (I even disabled the fans, it works ok))
** 64 bits Ubuntu with broadband Internet connection set and ready to go (yes, this part I am assuming you can do without this tiny-miny guide)

Guess we are ready to install the software; one last thing, a reminder: you have your root password or never set root user of Ubuntu right? Ok then, let's start.

1. From the Administration / Synaptic Package Manager choose the "repositories" from the main menu. Find the Preferred Server and make it to "Main Server" if it is not already set. (This will help the download process and finding the necessary software for our installation process)

2. Open up the Terminal and then type

sudo apt-get install apache2

This will install the Apache 2.2 Web Server

3. After that type this to install PHP 5 automatically to your Apache Web Server.

sudo apt-get install php5

4. Again type this in Terminal Window

sudo apt-get install libapache2-mod-php5

This was already done when I did it but every other detailed guide I found says "do this just to be safe" so I am saying too.

5. Well installation process for the infrastructure part is done, I restarted my computer, and typed localhost in my browser and Apache's "It works" was there. But if you don't want to restart just type this to restart only you Apache. It'll take only a moment to do so...

sudo /etc/init.d/apache2 restart

6. Go to this address: http://pmwiki.org/wiki/PmWiki/Download and download the latest version of PmWiki

7. Extract the compressed files to the location of /var/www/ of your Ubuntu... This directory is your home www of Apache.

8. As soon as you type the url of the wiki page you are going to see your HomeWikiServer. It's going to ask you a final creation of a directory and giving 777 to it, but this part I'll leave it to the Wiki Page Instructions. It is only 2 commands you are going to copy paste anyway.

9. There you have your Wiki now for SSH-Server to connect your server and access the logs and etc and control/administer it remotely.

sudo apt-get install openssh-server

There you have your SSH-server too, but let me remind you now you may want to reconsider your password strength and stuff, this is a nice little guide you can take a look.

sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh start


Restart your Ubuntu just to be safe and you're done...

I assumed you have a very very basic understanding of Linux at least. I don't know if this will help anyone, but I tried anyway. Enjoy... Thanks for reading.

Sunday, 12 July 2009

Windows 7 Performs Better Than I Expected

Hello all, today I want to write about my Windows 7 experience. I have been using it for 7 days now, and collecting data in order to write about it.

I was a Ubuntu user as I said it earlier cause I am in war with piracy personally. I do not pirate anything under any circumstances. Since I am not so rich. I am trying to avoid licensed stuff and stick with share and free ware whenever I can.

Back to business, when my Ubuntu last died, I was trying to install OpenLDAP so I can get some idea first and then decide to use it at work in development environment. Yeah, Yeah I had free time to try it out at home, that wa my mistake. Anyways Ubuntu died and I had no OS CD or DVD at that time except that MS sent Windows 7 RC 7100.

Since Ubuntu died completely at that time I had no internet connection to download anything to recover it or fix it or etc... I hopelessly put the 7100 dvd in. And my trip began.

It was a wonderfully fast installation. Under 20 minutes, and at that point I'll give my computers specifications. But under 20 minutes? wait a minute! Here goes specifications;

  • Pentium 4 2.8 GHz Prescott [800 MHz bus]
  • 1 GB ram [DDR 400 mhz]
  • 160 GB SATA HDD
  • ATI x1650

Installation ended in under 20 minutes, I was not impressed but shocked! Because last time I installed a windows on this computer it was an XP SP2 and it took twice that!

Yeah Installation ended anyway, It was a disaster from a point of finding the appropriate drivers. I had no internet connection cause it missed my NIC. I found the drivers that took my 3 minutes or so [yes I am going to count this time as setup time, at the end it was Windows' fault]. I showed the drivers. and excatly like another 3 minutes. It installed all my other drivers, including on board sound card, ATI, some other drivers that belongs to mainboard. Cause as soon as it gets the internet connection there wa appropriate drivers installed and Windowsgot updated too. So yeah it was a clear 26 minutes update. And under 30 minutes I installed the DivX codecs and start to watch movies on my LCD TV.

Along the whole week I noticed Windows is abruptly responsive on my old very old system. I am clicking on something and BAM! It is there, so fast so responsive. You know what it is even shocky that it does whole this with no HDD noise. After this week; I decided to give it a longer term chance, I found my original MS Office 2007 Home and Student Ed. installed it, give this old timer 2 GB more ram [It is now a 3GB machine with practically wings]. It is working like a magic. Looks everything right for the moment we'll see, who knows maybe this RC expired I buy a Windows 7? not go back to free Ubuntu or buy a Mac Mini? Who knows?

PS: Death To Software Piracy! I am living a true developer dream! Everything I am using is licensed or free of charge! YAY!

Thursday, 9 July 2009

Chrome OS


It's been rather an exciting week so far. Google officially announced Chrome OS, which got me excited because I never pirate. For instance, I am using Windows only when MS sends an RC copy or something. Other times Ubuntu works for me.

You know at home, I am only using my computer for surfing and watching TV Series such as sitcoms etc. So Ubuntu is pretty much whatever I ask at the moment, but as I always say, if I ever become non-cheap, I'll buy a Mac. This is also because the actual Total-Cost-Of-Ownership wise, Mac is the cheapest system out there. You don't give much time to troubleshoot. Like you do with Ubuntu. You don't pay an overprice check for the Macos. Like you do with MS-Windows.

These are the reasons why I am excited for a new OS announced by Google. It'll be definetely free, and It'll be hopefully doing whatever I need at home. I think this is what I have to say about Chrome OS for now, you can check some details on this good blog here.

So, wassup on the MS side? I am hearing there is a very very majorly big major announcement coming over on Monday. I am anxious to know what it is. My tiny guess is something to do with Silverlight, which I adore nowadays. But we'll see on Monday. I need to be patient.

Till then I'll probably write somethings from the gaming world, there are some major announcements there too this week also.

Peace!