Problems with linux and VirtualBox
I am trying to run linux mint V.4.0 light, and after the installation is complete, and I refire up the VirtualBox all i get is the usual splash screen saying select boot device, then a black background and white cursor icon, and nothing else, I cannot interect with it or type or do anything on it in anyway,
Anyone got any ideas as to why this is? I thought VirtualBox was supposed to support linux.
First, grab some harddrive space you have left and form a new partition. Insert Debian net-inst cd. Reformat as ext3 and install Debian.
Select "server" from a drop-down menu you will be presented with during install, and aptitude will grab all the stuff you need. Don't forget to lock down everything, set up permissions correctly, make sure "su" is disabled and configure a proper working firewall.
Oh, before you do this, read up on Linux if you're a first time user. Or better yet, get a spare PC/Hard disk you can screw around with.
If something goes wrong, don't say I didn't warn you. You can come back here though, and ask some questions.
Orillian wrote: Ok had a problem with the full install, for some reason virtual box wont read the ISO, and the burned disk, just says it doesnt exist
EDIT: got it again, diffrent kernels for diffrent cpu's, trying to find one compatable with mine
Wait what? Your making it sound more difficult than it is. Perhaps the download was corrupted. Re Download it(prefferably on a faster internet connection than previously said) and burn it to a DVD disc. Put it in the drive and install….(well partion blah blah, but u get the point). Incomplete ISO may also be reason Virtualbox doesn't work, again, just redownload and checksum.
Orillian wrote: I dont think i am
Direct quote:This kernel requires an x86-64 CPU but only i1586 was detected, please use an appropriate kernel http://www.debian.org/CD/torrent-cd/ <–use torrent. Perhaps im misunderstanding something so are you trying to install 64bit on 32bit system? Make sure you download the i386 version. Again, maybe im misunderstanding something as ive only installed debian like once before..and your doing it from the internet install not direct download etc. Try just directly downloading it from HTTP/FTP or in torrent as i liked above.
Well, if I remember correctly, the Debian net-inst will ask you what sets of packages you want at the end of the install. It's been a few months since I ran the installer though.
If it doesn't prompt you with any choices for packages, I recommend reading some tutorials on how to set up PHP, MySQL and Apache for Debian-based/linux systems.
You're always welcome to ask questions here.
Since this is a server you are setting up, here are a few items you can in particular focus on fixing. This is not a complete list but can help many major security issues(better to be safe than sorry).
- Make sure /tmp is mounted with noexec and nosuid if you already installed you can loopback mount it like so: first run all of the following(google the commands you don't know and learn what they do)-
cd /dev
dd if=/dev/zero of=tmpmnt bs=1024 count=100000
mke2fs /dev/tmpmnt
cd /
cp -R /tmp /tmp_backup
mount -o loop,noexec,nosuid,rw /dev/tmpmnt /tmp
chmod 0777 /tmp
cp -R /tmp_backup/* /tmp/
rm -rf /tmp_backup
Then add the following to fstab(at the bottom) using vi or whatever editor you choose-
/dev/tmpmnt /tmp ext2 loop,noexec,nosuid,rw 0 0
- symlink /var/tmp to /tmp to do this you would run:
rm -fR /var/tmp
ln -s /tmp /var/tmp
-
Make sure you add local_infile = 0 to your my.conf file then restart mysql.
-
Add several functions such as exec, popen, and apache_child_terminate to prevent people from executing malicious function from a vulnerable script.
-
Change the default SSH port by editing sshd_config change "#port 22" to "port XXXXX" then restart SSH with "service sshd restart"
-
Ensure SSHv1 is disabled.
-
Compile PHP with the suhosin patch.
-
Set up SSH to use only a public key and not over the net passwords.
-
GOOGLE!
-
GOOGLE AGAIN!
Good luck!
Well its a local virtual server, so I am going to hack it then secure it that way, its experience for some work I am applying for, so I need some server/network security experience, so for now i will leave it unsecured and then secure it as i go along, secureing what i exploit
But seriously thanks for all the help guys, If i have any further questions I will let you guys know
Yeah, like (Awesome,PekWM,Metacity(the gnome default), etc.). I wouldn't use a full DE(Desktop Environment(includes window manager and panels etc) aside from maybe a *box DE like fluxbox,openbox etc which are all light weight but very easy to figure out and easy to work with. And if you ever wanna kill it, as spy said you can. If your just using it to test out you don't need hella performance out of it(The primary reason servers don't use GUI(Graphical User Interface)), but getting terminal prompt experience will be a plus for sure.
may i ask if you are using vmware or virtual box or something else and make sure the connection is bridged that may or may not cause a problem and if all else fails reset everything to default on the vm or reinstall the vm completely you may have missed something that messed it up the first time around