summaryrefslogtreecommitdiffstats
path: root/vnc.py
Commit message (Collapse)AuthorAgeFilesLines
* Use gettext.ldngettext when necessary (#467603)David Cantrell2009-06-031-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The i18n people have suggested using ngettext when we need to have singular and plural forms of strings, where the count will vary as to what we are reporting to the user. I've made the changes they have suggested. I created a new lambda function called P_() to use for the plural cases. P_() takes in three parameters: 1) The singular form of the string. 2) The plural form of the string. 3) A count. Here's an example: ....some loop runs doing stuff bytesWritten = 47 msg = P_("Wrote %d byte.", "Wrote %d bytes.", bytesWritten) % (bytesWritten,) print msg The % substitution is correct at the end because P_() returns a single string, so we only need the format string to account for that. Some strings have been changed slightly to make it easier for translations to other languages, particularly when choosing plural forms.
* Offer VNC by default, not text mode.Chris Lumens2009-02-091-2/+2
|
* Do not import unused modules.David Cantrell2008-12-231-1/+0
|
* Make sure we look up the IP address for the correct device (#469439)David Cantrell2008-11-031-40/+25
| | | | | | | | | | | | | | | | | | | The VNC launch code in vnc.py needed an update to work better with NetworkManager. When collecting the hostname and IP address, it was assuming the first device in the netdevices list is our active NIC, which may or may not be true. Added getActiveNetDevs() in network.py to ask NetworkManager for a list of all currently configured interfaces. Return a list of device names. A list seems a bit pointless, but I'd like to have this in place now for future improvements where we might need to handle more than one active NIC during installation. After all, NM can do that. The message reported by anaconda once VNC is ready will contain the FQDN:DISPLAY_NUMBER (IP ADDRESS), if it can. If it can't find your IP address, it leaves that out. If it can't find your hostname, it also leaves that out.
* Correctly display the IP address a vnc viewer should connect to (#465353).Chris Lumens2008-10-031-3/+3
|
* If there's an error running Xvnc, also print it to the console.Chris Lumens2008-10-011-1/+2
| | | | | This is only "helpful" in the weird case where you try to run anaconda in vnc mode on the livecd or similar environment, where there is no Xvnc.
* Get rid of firstnetdevice in NetworkDavid Cantrell2008-09-241-1/+4
| | | | | | At least for now, I see no need for firstnetdevice in the same way before we started using NetworkManager. Might have to come back for specific cases, but I don't think it's necessary.
* Correct the message telling you to use a VNC password.Chris Lumens2008-09-101-1/+1
|
* Remove references to /tmp/netinfoDavid Cantrell2008-08-271-1/+1
|
* Ask the user if he wants to use VNC instead of text mode (#453551)Martin Sivak2008-07-151-9/+13
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-5/+5
| | | | * po/sk.po: Typo fix.
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-1/+1
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-6/+12
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Fix traceback when starting up vnc mode due to undefined attribute.Chris Lumens2007-11-281-1/+1
|
* Fix the vncconnectport var in vnc.py.jgranado2007-10-301-4/+4
|
* Fix various typos that were causing exceptions.Chris Lumens2007-10-301-2/+1
|
* Use classes with the vnc stuff. Fix vnc behavior (#264841).jgranado2007-10-301-230/+303
|
* Lots of minor pychecker error fixes. Some of these are even real problems.Chris Lumens2007-09-191-2/+1
|
* If the vnc server fails to start, log it and quit instead of silentlyChris Lumens2007-09-071-2/+19
| | | | continuing.
* Pass -br to the X server so there's no more hatch (#195919).Chris Lumens2007-06-051-1/+1
|
* * vnc.py (askVncWindow): Check for an executable Xvnc.David Cantrell2007-05-171-1/+1
|
* Fix vncconnect mode (#238827).Chris Lumens2007-05-031-8/+10
|
* Invert logic (#237194).Chris Lumens2007-04-201-1/+1
|
* Must import socket.David Cantrell2007-04-181-0/+1
|
* * vnc.py (startVNCServer): Better fix (#234747)David Cantrell2007-04-021-23/+22
|
* * vnc.py (startVNCServer): Display the IP address of the VNC serverDavid Cantrell2007-04-021-2/+14
| | | | | when telling the user what to connect to. During DHCP install scenarios, users might not know the address they are assigned (#234747)
* If we've got an IP address, display it (#231934).Chris Lumens2007-03-231-33/+35
|
* * vnc.py (askVncWindow): Only ask the user to run VNC if Xvnc isDavid Cantrell2007-01-091-0/+3
| | | | present.
* Look for the right string to indicate failure.Chris Lumens2006-08-111-1/+2
|
* Use subprocess instead of our own code. Fix all calls to execWith* soChris Lumens2006-07-121-2/+2
| | | | | the command is no longer the first argument, since subprocess doesn't work that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
* On behalf of all of us here at anaconda, we wish Chris the best of luckDavid Cantrell2006-07-061-18/+16
| | | | getting his workstation back online.
* If we don't have a valid hostname, tell the user to connect to the IP addressChris Lumens2006-06-021-8/+18
| | | | | | | instead (#191561). Try really hard to display a valid thing the user can connect to. Also make the logic a little clearer (to me, at least). Now if only VNC installs worked...
* Import iutil (#191548).Chris Lumens2006-05-151-0/+1
|
* Refactor into functions. Hmm, I wonder what the next step is.Chris Lumens2006-05-011-0/+23
|
* Move startVNCServer to vnc.py.Chris Lumens2006-05-011-0/+167
|
* Move hasActiveNetDev frmo vnc to network.Chris Lumens2006-02-141-17/+1
|
* Use new logging system.Chris Lumens2005-08-121-2/+5
|
* only ask about doing vnc if we have an active network device (#132833)Jeremy Katz2004-09-211-2/+20
|
* * move vnc initialization a little bit laterJeremy Katz2004-05-281-0/+118
* if we can't figure out how to start X and text mode hasn't been explicitly asked for, prompt for if the user would prefer to do a VNC installation