When I Press Enter, It Is Taken Twice

I have written a script to start a virtual machine through pass through mode and port number.

I start the guest linux through Run command from windows
telnet <baseIP> <portNUm>

Then after connecting to that guest machine,

each enter taking twice.

Any help will be greatful


Similar Content



VitrualBox - How To Show OS Window From Headless ?

Hi All

I'm trying to bring virtual guest from headless mode to gui mode in VirtualBox. But I don't know how to do it. I really appreciate if someone help me on this.

I usually run linux virtual machines in headless mode and connect to it through ssh. I have setup tigervnc-server on linux virtual machine, so that i can connect through vncviewer whenever i want to work on gui.

But recently, one of my friend said, I can also start virtual machine in headless mode in VirtualBox window by holding <SHIFT> key and press Start. Sure it did, it started in headless mode. But, now I don't know how to bring back window again.

Thanks you.

Get The Filename Where The Variable Is Set

Hello,
Host machine: Windows seven 64 bit
Guest machine on Virtual box: Oracle linux 6.5(64 bit)

If there are multiple files sourced, each containing many variables,and each in a location not known to the person using a user,
is there a way to know the file name where the variable is set?

Many thanks

Can't Resize Ubuntu Screen In Virtual Box

Hi there everybody,

I am getting really frustrated on a far to trivial problem. I am running ubuntu in virtual box on a windows 7 64bit machine. By default the screen has a resolution of 640x480 and thus only shows the upper left corner of the actual screen, meaning I can't see the entire screen. I was able to figure out, that I have to install guest additions but as soon as I go to devices -> install guest additions I get an error, that the medium couldn't be placed into the drive. It further asks me whether I want to force it to be mounted but if I say "yes" nothing else happens.

Any chance there is a simple way to solve this problem or is this really such a complicated issue?

Furthermore I would prevent linux from going into standby. Actually the settings say, that it will never go to suspend but it does so after it wasn't used for approx=. 5minutes or so.

Thank you guys very much for helping me getting rid of my newbeness :P

What Could Be Blocking Incoming Connections To My Program?

Hi all,
I am brand new to Linux, playing around a bit with different things to see how I can use it in the future. Here is my problem:

I have written a simple program in Ada that works well on windows. It opens a TCP port (20000) and listens for incoming connections. I tried it on my internal network and it works well. I can connect from other windows machines and even from my Linux machine.

Now I moved the program to Linux and compiled it there. It starts ok and then listens for the connections. I can connect to it from that same Linux machine but not from any other machine on my network.

I checked the firewall status on Linux with ufw status and it is disabled. I also tried to add a rule to the iptables with
iptables -A INPUT -p tcp --dport 20000 -j ACCEPT

but still nothing. I can not connect from another machine on my network. I also tried to open a simple telnet connection from a windows machine and that too is blocked. I thought without the firewall all incoming connections would be allowed but obviously something is not working as I thought.

Any help would be greatly appreciated

Create Windows VirtualBox Guest On Centos

I have VirtualBox up and running on my headless Centos 6 machine, am using http://sourceforge.net/projects/phpvirtualbox/ as a GUI, and created a virtual machine and installed Windows 7 on it.

I can access it using the VirtualBox console (via phpvirtualbox interface), however, only can see part of the screen and the mouse doesn't work properly. I can also access it using Windows Remote Desktop Connection using IP 192.168.1.200:9000 (why port 9000?), but again the mouse doesn't work.

I have the following ext packs installed on the server.
Code:
login as: Michael
Michael@192.168.1.201's password:
Last login: Sat May 23 10:06:04 2015 from 192.168.1.10
[Michael@devserver ~]$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      4.3.10
Revision:     93012
Edition:
Description:  USB 2.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM with                                                                                                                                                              E1000 support.
VRDE Module:  VBoxVRDP
Usable:       true
Why unusable:
[Michael@devserver ~]$

Do I need additional extensions to better interact with the guest? How are they installed? Thank you

Need Help Configuring My Samba Server

Hi guys,

Need help configuring my samba file server, i have 3 folders

[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
map to guest = Bad User

hosts allow = 127. 192.

log file = /var/log/samba/log.%m
max log size = 50

security = share

load printers = no
cups options = raw
printing = bsd
printcap name = /dev/null
disable spoolss = yes

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
; valid users = MYDOMAIN\%S

;[printers]
; comment = All Printers
; path = /var/spool/samba
; browseable = no
; guest ok = no
; writable = no
; printable = yes

[BIP]
path = /home/BIP
writable = yes
browseable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes

[Surya Kapuas Perkasa]
path = /home/suryakapuasperkasa
writable = yes
browseable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes

[Misc]
path = /home/Miscelaneous
writable = yes
browseable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777
share modes = yes
read only = no

The BIP and Surya Kapuas Perkasa can be accessed by windows users, but the Misc, cannot, can somebody help me with solution pls, thanks

Mail Using Telnet SMTP

Hi All,

I am trying to send email using telnet to smtp as mailx and other functionality is restricted by administrator.

I am not able to figure out as how to attach any text or any file using the below.

I am following all instructions and steps as shown at http://exchange.mvps.org/smtp_frames.htm

1. telnet <servername> 25
2. helo <your domain name><enter>
3. mail from: <your Email Address><enter>
response should be as follows
250 OK - mail from <your Email address>

rcpt to: <recipient address><enter>
response should be as follows
250 OK - Recipient <recipient address>

data<enter>
response should be as follows
354 Send data. End with CRLF.CRLF

To: <recipient's display name><enter>
From: <your display name><enter>
Subject: <Subject field of Email message><enter>
<Enter you body text><enter><enter> . <enter>
response should be as follows
250 OK

quit<enter>

Python FTP Send Command

hello Experts!
need some help here with python FTP. so what i'm trying to do is, from a linux machine, ill be sending over a python script to a windows machine via python ftp. that works fine with no problem. now, i want to execute that python script i sent remotely. im having trouble with that. here's my code to just execute the script:

p.s : please dont suggest other options such as python paramiko due to many network security reasons

Code:
ftp = ftplib.FTP("windows machine name")
ftp.login("username", "password")
ftp.cwd("where\\python\\script\\is kept\\")

ftp.sendcmd("python myscript.py")

but looks like it doesn't recognize that command. how do i accomplish this please?

Format A Hard Drive To Work On Machine (dell 32-bit). Have Installed New 1 TB Drive

Want to format a 1 TB Western Digital drive in an old dell 32 bit machine. Machine has Lubuntu installed and a Virtual machine on which which is loaded Windows 7 (32 bit).

Machine does not "see" the new 1 TB (SATA) drive after I physically install it in the machine.

I have other windows and Linux machines. I have some drive cradles in which I can connect to (windows) USB ports.

Is it possible to use the old Dell machine to format the new drive?

(It appears that this question has been answered before. So I will check those materials as well.)

Thanks for any assistance.

Geoffrey Wolfe

Watching / Capturing An Applications Threads

There is a home grown application that initiates either a telnet or ssh session based on the number of threads set.

I want to watch the process happen from start to finish, that is from the moment the first thread starts until the last thread finishes.

I was thinking netstat, but it wont show the process in its entirety. As connections are established and terminated the status / output of the command would be different..not to mention Id have to keep hitting the command and the enter key.

As usual, I have cracked my Linux in a nutshell book and will be doing web searches to find a solution.