1
Operating System / Re: Ubuntu 12.10
« on: December 22, 2012, 09:45:39 am »
So, RBA, here's my log files.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
As said before backtrack isn't meant to be your daily OS. There's a reason why there's no flash, networking interfaces not started, etc. As well as always running root. You need to take a more practical approach to Linux before you start skidding all over Backtrack randomly running tools that you don't even know the syntax, none the less understand how and why the program does what it does. I suggest getting familiar with Linux (since you want to use backtrack, go with Ubuntu or Debian as they are the base of Backtrack) and learn simple bash commands, as well as learn how to use google and the man pages available for commands and applications. Also its best to not install backtrack, unless you're installing it on a USB as persistent, otherwise keep it as a live disk/live USB.@ skidiot.h and Snayler
.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "7"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "512"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Ubuntu.vmdk"
ide0:0.present = "TRUE"
ide0:0.fileName = "autoinst.iso"
ide0:0.deviceType = "cdrom-image"
ide1:0.present = "TRUE"
ide1:0.fileName = "D:\Himanshu\ubuntu-12.10-desktop-i386.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.fileType = "file"
floppy0.fileName = "autoinst.flp"
floppy0.clientDevice = "FALSE"
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"
usb.present = "TRUE"
ehci.present = "TRUE"
sound.present = "TRUE"
sound.fileName = "-1"
sound.autodetect = "TRUE"
serial0.present = "TRUE"
serial0.fileType = "thinprint"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
roamingVM.exitBehavior = "go"
displayName = "Ubuntu"
guestOS = "ubuntu"
nvram = "Ubuntu.nvram"
virtualHW.productCompatibility = "hosted"
printers.enabled = "TRUE"
easyInstall.keepFloppy = "TRUE"
extendedConfigFile = "Ubuntu.vmxf"
ethernet0.generatedAddress = "00:0c:29:9e:e0:fd"
uuid.location = "56 4d 94 a2 b1 9f 1b bf-3d 2f f1 f1 a8 9e e0 fd"
uuid.bios = "56 4d 94 a2 b1 9f 1b bf-3d 2f f1 f1 a8 9e e0 fd"
cleanShutdown = "FALSE"
replay.supported = "TRUE"
replay.filename = ""
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
sound.pciSlotNumber = "34"
ehci.pciSlotNumber = "35"
vmci0.pciSlotNumber = "36"
vmotion.checkpointFBSize = "16777216"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "-1465982723"
tools.remindInstall = "TRUE"
Seems like you did everything correct. In the folder the vm was created is a file *.vmx and a file called *.log.I didn't find these files.
Hi,1.) I have installed .iso image on the vmware(Desktop edition).
first of all I would recommend using Ubuntu 12.04 which is the long-term support release. Next I need to know which image you have installed (Desktop or Server Edition)? VMware tools already installed? How do you try to access the VM? (via ssh or with the vmware remote console)? Which VMware Product do you use?
With these information I may be able to help you.
startx? Idk. Does it give you a terminal? Or just a blank screen?I tried that. It gives me a blank screen.
At last, my assignment 3.Well Mr. Perfect, this code looks perfect.You are a good learner. +1 for that spirit.Code: [Select]/**
* Assignment 3
* @author Mr. Perferct
*/
import java.util.Scanner;
public class Assignment_3 {
private static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
while (true) {
System.out.println("Your input?");
String userinput = userInput();
if (userinput.equalsIgnoreCase("quit")
|| userinput.equalsIgnoreCase("exit")) {
break;
}
System.out.println("Enter the amount you want to move the cipher?");
int move = amount();
System.out.print("The encrypted string is: ");
System.out.println(encrypt(userinput, move));
}
input.close();
}
public static String userInput() {
String userinput = input.nextLine();
return userinput;
}
private static int amount() {
String p = input.nextLine();
int places = Integer.parseInt(p);
return places;
}
private static String encrypt(String input, int places) {
char[] charArray = input.toCharArray();
for(int index = 0; index < charArray.length; index++)
{
if(places < 0)
{
charArray[index]=(char) (126 + places);
}else{
charArray[index] += places;
}
}
String s = new String(charArray);
return s;
}
}
Yes, many times. And since I don't have my main computer running right now, I just copied and pasted the code I posted into a new project on this computer. My code works perfectly. I have no idea what you're talking about. Care to elaborate on what error you're getting, or how it doesn't work?When I ran this program,Here is what I got
Enter the string you would like to cipher:
abc
Enter the amount you would like to shift the string by:
Exception in thread "main" java.util.NoSuchElementException: No line found
at java.util.Scanner.nextLine(Scanner.java:1516)
at Main.getInput(Main.java:34)
at Main.main(Main.java:25)
Java Result: 1
Because one can always look them in a book.
Here's my condensed code, using getInput() for the shiftAmount and also taking in the string to shift. Just had to parseInt to get getInput()'s value into int.Hey Lycos,your code doesn't work.Code: [Select]
/**
* @author: Lykos
* @version: 0.6
* @description: Simple shift cipher. Takes a string from the user, and the user enters the amount to shift it by.
*/
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
String userInput = "";
while(true)
{
System.out.println("Enter the string you would like to cipher: ");
userInput = getInput();
if(userInput.equalsIgnoreCase("exit") || userInput.equalsIgnoreCase("quit"))
{
break;
}
System.out.println("Enter the amount you would like to shift the string by: ");
int shiftAmount = Integer.parseInt(getInput());
System.out.println(encode(userInput, shiftAmount));
}
input.close();
}
private static String getInput()
{
Scanner input = new Scanner(System.in);
String userInput = input.nextLine();
input.close();
return userInput;
}
private static String encode(String input, int shiftAmount)
{
char[] charArray = input.toCharArray();
for(int index = 0; index < charArray.length; index++)
{
charArray[index] += shiftAmount;
}
String s = new String(charArray);
return s;
}
}