LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 07-01-2010, 09:27 PM   #1
paco_espinola
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Rep: Reputation: 0
Linux inside the windows without root password


Hi I am trying to use linux inside windows at my work

I install succesfull qemu and run knoopix without problem.
But I need some way to comunicate with windows machine.


I do not have the root windows password because is a big company.

I want to work with my files using the linux tools (awk etc)
and after write in my hard disk and read in windows

Is there some way to do this?

Thank you in advance
 
Old 07-02-2010, 12:20 AM   #2
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
Hmm, how about a little more focus on work?

But, seriously, all the essential GNU tools are also available as windows builds, just use them. One nice source is MSYS (google it). You can then use them directly from CMD, or, if you really need a more powerful unix shell, install bash and use that.
 
Old 07-03-2010, 05:57 PM   #3
paco_espinola
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thank Zirias

Yes I try the ms dos solution but it is no so good like linux.

And yes Normally for this work I use unix. But because cost reduction I have a windows machine now.

But I cannot run all my scripts that save a lot of time. So I test linux and is really good solution the linux inside the windows but because I am no root I cannot communicate with windows.
 
Old 07-04-2010, 12:24 AM   #4
zirias
Member
 
Registered: Jun 2010
Posts: 361

Rep: Reputation: 59
I wasn't talking about DOS commands. Take a look here: http://www.mingw.org/wiki/MSYS

What I tried to say in my first post is you don't need another OS in a virtual machine to run all your scripts -- all needed tools are available for windows, too.
 
Old 07-05-2010, 02:57 PM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
Hi paco_espinola,

I have not tried to run Knoppix as a virtual machine - usually just run it from a CD - but since you have it running OK the next step is to move files from and to the physical Windows PC. Here are a couple of possibilities.

If you have a USB flash drive (pen drive, memory stick or what ever you call it) - Insert the drive while Knoppix is running. Knoppix should detect the drive and mount it. Copy your files to the USB drive. You can then unmount or eject it from Knoppix. When you return to Windows, unplug and plug in the drive. Windows should detect it and you can copy your files to the Windows hard drive. I have done this between virtual machines and it seems to work.

A second approach would be to use Samba to connect to a share on the Windows machine. The Samba client program "smbclient" should be installed in Knoppix. It can be run from a shell. I use the Samba server on Linux to allow Windows machines to connect but I have little experience with the Samba client on the Linux side. I cannot tell you the correct syntax. It might be worth some research.

I would NOT recommend allowing Knoppix to mount the hard drive in the Windows machine while Windows is running. I fear that would do bad things.

Good luck.

Ken
 
Old 07-13-2010, 03:29 PM   #6
paco_espinola
LQ Newbie
 
Registered: Jul 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Yes I believe the best way is making the comunication with samba.
But I no sucess yet.
I no have to much experience with samba.

Using usb to interchange files is too slow.
 
Old 07-14-2010, 09:41 AM   #7
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6 on my desktop, Ubuntu 12.04 LTS on my server, Ubuntu 12.04 on my netbook and the wife's PC
Posts: 1,192

Rep: Reputation: 96
Hello again paco_espinola,

Your question has made me curious so I decided to give the Samba client a try on my system. For reference, here is a good summary of the smbclient syntax: http://tldp.org/HOWTO/SMB-HOWTO-8.html

First of all you need to be able to connect to a share on your Windows machine. Can you test from another Windows machine? If not, here are a couple of things to check (at least no Win XP)

1 - Open explorer, and select Tools; Folder Options; View. At the very bottom of the list uncheck [ ] Use simple file sharing and Apply. I often forget this one.

2 - Create a shared folder on your Windows machine.

3 - If you still cannot connect to the shared folder from another machine see http://support.microsoft.com/kb/304040

Once you can connect to the shared folder from a Windows machine you can connect with smbclient. Open a command window in your Linux virtual machine and type "smbclient -L machinename" where machine name is the name of your Windows machine. You will be prompted for your Windows password. Here is an example where my Windows machine is named taylor11
Quote:
ken@taylor12:~$ smbclient -L taylor11
Enter ken's password:
Domain=[TAYLOR11] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
work Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
Domain=[TAYLOR11] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------
The key thing I am looking for here is the line
Quote:
work Disk
which tells me there is a share called "work". Here is how I connect to the share
Quote:
ken@taylor12:~$ smbclient \\\\taylor11\\work
Enter ken's password:
Domain=[TAYLOR11] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \>
and get a directory listing
Quote:
smb: \> ls
. D 0 Wed Jul 14 14:35:11 2010
.. D 0 Wed Jul 14 14:35:11 2010
01.of.14.avi A 780533760 Fri Oct 30 02:11:50 2009
02.of.14.avi A 31619072 Sat Oct 24 11:41:25 2009
03.of.14.avi A 366974976 Sun Oct 25 00:49:43 2009
04.of.14.avi A 366974976 Fri Oct 30 17:05:39 2009
05.of.14.avi A 112912384 Sat Oct 24 15:26:31 2009
06.of.14.avi A 101185536 Sat Oct 24 15:46:22 2009
07.of.14.avi A 266782720 Sun Oct 25 11:50:31 2009
08.of.14.avi A 284108800 Sun Oct 25 12:13:43 2009
09.of.14.avi A 96980992 Sun Oct 25 15:36:42 2009
10.of.14.avi A 183681024 Sun Oct 25 16:02:32 2009
11.of.14.avi A 91017216 Mon Oct 26 00:36:08 2009
12.of.14.avi A 36800512 Mon Oct 26 00:48:24 2009
13.of.14.avi A 8585216 Mon Oct 26 01:17:34 2009
14.of.14.avi A 211234816 Mon Oct 26 01:52:57 2009
drivekey D 0 Thu Mar 4 08:41:41 2010

34063 blocks of size 2097152. 12044 blocks available
You can now use standard ftp syntax to put and get files to/from your Windows share.

Regards,

Ken
 
  


Reply

Tags
inside, linux, password, root, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Change my root password in Debian Linux if I have the current password? panseluta Linux - Newbie 2 12-28-2008 02:02 AM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Can yu run linux inside windows? tlewis Linux - Newbie 3 03-01-2004 11:25 PM


All times are GMT -5. The time now is 01:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration