[solved] connect to a virtual terminal

I want to start a console-based app (vim, ncmpc, irssi, etc.) in a new terminal (urxvt), how can I do this?
Here are some examples of things I'd like to be able to do:
- launch ncmpc in a new terminal at a given time every morning as an alarm clock
- launch irssi in a terminal every time I start X
If I summon an urxvt, is there a way of knowing which tty it's connected to (programmaticaly), and then is there a way of sending commands to that tty?
Last edited by peets (2007-11-25 15:44:53)

Moved to here.
urxvt -e <command> - it's in the man page.

Similar Messages

  • [SOLVED] Cannot start a virtual terminal in KDE

    Hi people,
    I'm having an annoying issue with konsole : when started, the app starts, but it doesn't give me the prompt... All I have is a white cursor in the top left corner, and I can't type anything.
    Switching to vc/1 using ctrl+alt+F1 works fine, and is fully usable.
    I installed yakuake : same issue. I then installed gtkterm : same issue, but this time I get an error message :
    Can not open /dev/ttyS0 : Permission not granted
    Ain't ttyS0 the serial port ? Is there any chance that might be the problem ?
    As suggested on the chakra forum, I checked permissions on :
    * /bin/bash : root root 755
    * /dev/tty1 : root root 777
    On a maybe related note, I'm also having issues with kdesu : launching "kdesu kate" in krunner asks for root passwd, but then fails telling me "su" is not a recognized command. Similarly, I can only launch arxin, kuser, etc... as a regular user, giving the root passwd when required fails with that same error. I can use "su" when using vc/1, it works fine.
    It looks like I've broken something bad, but I don't know what...Any idea, anyone ? I could go the easy way and reinstall, but I like to understand things...
    Last edited by willy9 (2009-04-14 18:47:27)

    Thanks for helping !
    @jelly : yes, but I had the issue before. Can it be xorg related ?
    @Chrysalis : yes but it is commented. Should I uncomment it ?
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    #none /dev/pts devpts defaults 0 0
    #none /dev/shm tmpfs defaults 0 0
    UUID=89336a04-983f-44ba-ba37-a869648b687f / ext3 defaults 0 0
    UUID=6e5aca93-8b3f-4964-a7f2-47460e74d667 swap swap defaults 0 0
    UUID=55daef78-db61-11dd-b2a0-2b699ceb5d02 /home ext3 defaults 0 0
    /dev/sda1 /mnt/win ntfs users,umask=0,utf8 0 0

  • Xorg 6.8 + virtual terminal no go [solved]

    upgrading to xorg 6.8 and can switch to virtual terminal (ctl-alt+f not working) when xsession is open .
    solution :
    the problem related to srvrkeys:none for some reason in the xorg 6.8 the effect of this option is changed in few aspects.

    upgrading to xorg 6.8 and can switch to virtual terminal (ctl-alt+f not working) when xsession is open .
    solution :
    the problem related to srvrkeys:none for some reason in the xorg 6.8 the effect of this option is changed in few aspects.

  • [SOLVED?]Virtual terminal weirdness

    Hello
         After re-installing Arch I was rather surprised to find that I was unable to change virtual terminal while running X.
    What I am meaning is that once X starts, I am unable to change virtual terminal with Ctrl + Alt F1 etc. I can go from VT-1 to VT-7 (which is running X) normally but once in VT-7, Ctrl + Alt F1 does not work.
    I googled around and found a workaround - running the command "chvt 1" as root changes me to VT-1 just fine.
    However, I would rather not have to run this command every time I want to change virtual terminal - Ctrl + Alt F1 much less fuss.
    Does anyone know why this is happening and/or how to fix it?
    I would be happy to post config files if needed - just tell me what you want
    [edit]
    It appears that the issue may have been something to do with the open source ATI graphics drivers - I set up Catalyst and was able to shift virtual terminals with Ctrl + Alt + F1. Wierd.
    Many thanks to everyone who posted
    Caillin
    Last edited by Darkwind (2008-06-19 22:59:27)

    randomguy wrote:Are you loading the right keyboardlayout for X ? Some keyboards have weird layouts so ctrl would actually be mapped on meta when used with default xkb settings.
    I think so - I mean when I use other keyboard shortcuts (eg Ctrl+space to play or pause in Rhythmbox) it works fine. I'm using the UK generic 105 key PC layout according to GNOME's 'keyboard' menu so I'd think that would be pretty normal.
    C

  • Virtual terminal problems (konsole, lxterminal)

    Hi,
    I did not find the solution for my particular problem, where the virtual terminal can't connect to the bash execution.
    I'm using arch linux including all repos [testing, community-testing], and after a update, I'm unable to run konsole or lxterminal. However, xterm does work. I'm using kde 4 enviorment.
    Whenever I run konsole from xterm I get:
    $ konsole
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
    konsole(3236)/kdecore (KPty/K3Process) KPty::open: Can't open a pseudo teletype
    konsole(3236) Konsole::Pty::flowControlEnabled: Unable to get flow control status, terminal not connected.
    An konsole window appears, but no prompt or anything. If I do an ps -A | grep bash it gives an bash execution not connected anywhere:
    3288 ? 00:00:00 bash
    if I kill it, then this message appears on the konsole terminal:
    Warning: Program '/bin/bash' crashed.
    I did search for it before, and found out the topic Terminal not running, but my devpts and shm are mounted correctly.
    mount
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    dev on /dev type devtmpfs (rw,nosuid,relatime,size=4082808k,nr_inodes=1020702,mode=755)
    run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
    /dev/sda2 on / type ext4 (rw,relatime,data=ordered)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
    devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
    tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
    tmpfs on /tmp type tmpfs (rw)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    configfs on /sys/kernel/config type configfs (rw,relatime)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
    none on /sys/kernel/debug type debugfs (rw,relatime)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
    /dev/sda1 on /Fedora type ext4 (rw,relatime,data=ordered)
    /dev/sdb1 on /windows type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
    /dev/sdb2 on /data type ext4 (rw,relatime,data=ordered)
    gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
    Any clues?
    Regards
    Diogo

    undeadb wrote:Mostly everything, was 4 months without a update. Got over 2GB of downloads. It did update kde.
    Then I think the problem is related to the merging of all applications into "/usr/bin". "/bin/bash" kind of doesn't exist anymore.
    Did you read the Arch Linux announcements before updating?
    If you do think that's the problem, then I don't know what you can do to fix it. I'm not smart enough. I'd probably just reinstall the OS.

  • GNOME | Desktop artifacts when switching from a virtual terminal

    When switching from a virtual terminal to the graphical environment I observe artifacts on the desktop. When then I change wallpapers, the artifacts disappear. If I set the display mode for the desktop wallpapers (in the GNOME tweak tool) as “None” the artifacts don't show up at all.
    How can I tackle the problem?
    GNOME 3.14.2; nvidia 304.125

    You answered my expectation en tu previous post.
    BBM Channels  PIN: C0007093A
    Do not forget to give LIKE    Those people who help you and advise you about your doubts.  if the review has been SOLVED** # 4LL  #ÉliteRoad  Make a backup of your BlackBerry
    BlackBerry Protect and  BlackBerry Link constantly.  #ichooseBlackBerry10 Gutijose14 Forums Veteran I

  • Problem to connect to VMware virtual machine in VMM

    I have a problem to connect to the VMware virtual machine console through the VMM Admin Console. I get the message "For a connection with this virtual VMware machine necessary ActiveX object is not installed. Would like you to install the VMware ActiveX element now?"
    If I click "yes", IE opens. To the installation of this ActiveX element I've added the web access side of the VMware-Host to the trustworthy sites in IE. I've also disabled the strengthened security configuration for IE. But it did not help.
    What can I still try?
    Thx

    The most common problem getting the activeX installed is that the VMware infrastructure web portal has not been setup completely. It is from that portal that the activeX is downloaded and installed. Ensure that the VMware infrastructure portal has been setup
    and configured for SSL. The Url we attempt to get theactiveX from is https://HostName/ui/plugin/msie/vmware-mks.cab
    Uhm, yea, that URL is invalid. Maybe it was for vCenter 3.x? or 4.0 only? Does not resolve on v4.1 :(
    If you are having trouble getting the activeX installed there are a couple of workarounds. One workaround is to install the VMWare Infrastructure Client onto your machine where you are running the VMM Admin Console. The Infrastructure Client installation
    installs VMWare's activeX along with its own client.
    Tried that... it doesn't use ActiveX anymore (still 4.1) so no go :(
    Another workaround is to login to the VMware Infrastructure Web Access portal and one time connect to a VM. This will also download and install the activeX and let it work.
    Tried that... it doesn't use ActiveX anymore (still 4.1) so no go :(
    So basically I need either the SCVMM guys to figure out to do this in the new version from vmware or I need some vmware experts to tell me where I can find this activex component...

  • Not able to connect Azure Linux Virtual Machine with Putty

    Hi,
    I am not bale to connect Azure Linux Virtual Machine with Putty... Error shows "Network error: connection timed out".
    Please help.
    Thanks,
    Techsol
    Thanks, Kk

    Hi TechSol01,
    Thanks for posting here.
    I suggest you to try the below steps
    On a computer running a Windows operating system, you might want to use an SSH client such as PuTTY. For more information, see the
    PuTTY Download Page.
    On a computer running a Linux operating system, you might want to use an SSH client such as OpenSSH. For more information, see
    OpenSSH.
    If it is the endpoint configuration, you can go to the portal and add port 22, (it should already be there by default). 
    Now if it is locked out of the VM because of the firewall on the VM, which is called iptables , You won't be able to connect to the VM,
    If you haven’t configured the port 22. You may have to follow the below steps :
    A = Original VM (Inaccessible VM)
    B = New VM (New Temp VM)
    1)  Stop VM  A via the Azure management portal
    2) Delete VM A BUT select “keep the attached disks”
    3) Once the lease is cleared, attach the Data Disk from A to VM B via the Azure Portal, Virtual Machines, Select “B”, Attach Disk
    4) On VM “B” eventually the disk will attach and you can then mount it.
    5) Locate the drive name to mount, on VM “B” look in relevant log file note each linux is slightly different.
    grep SCSI /var/log/kern.log (ubuntu)
    grep SCSI /var/log/messages (centos, suse, oracle)
    6) Mount the attached disk onto mountpoint /tempmount
    df -h
    mkdir /tempmount
    mount /dev/sdc1 /tempmount
    df –h
    7) Now you should be able to clear the rules set from the configuration file of the firewall, by accessing it
    through /tempmount
    Let me know if this works
    Girish Prajwal

  • VMM is unable to perform this operation without a connection to a Virtual Machine Manager management server.

    Hi,
    I'm running SCOM and VMM integration. For the most part everything is working. However I get lots of alerts generated in regards to my scvmm server.
    This is a the guide I used:
    https://technet.microsoft.com/en-ca/library/hh882396.aspx
    SCOM + VMM 2012r2 Ur4
    One of the Errors(which appears to be root issue):
    The PowerShell script failed with below
    exception
    System.Management.Automation.CmdletInvocationException: VMM is
    unable to perform this operation without a connection to a Virtual Machine
    Manager management server. (Error ID: 1615)
    Use the Get-VMMServer cmdlet
    or the -VMMServer parameter to connect to a Virtual Machine Manager management
    server. For more information, type at the command prompt: Get-Help Get-VMMServer
    -detailed.At line:109 char:12
    + $vmm = Get-SCVMMServer $VMMServer -Credential
    $cred;
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at
    System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object
    input, Hashtable errorResults, Boolean enumerate)
    at
    System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean
    ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[]
    pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext
    funcContext)
    at
    System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame
    frame)
    at
    System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
    frame)
    at
    System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
    frame)
    Script Name:
    GetStorageSubsystemPerfScript
    One or more workflows were affected by
    this.
    Workflow name:
    Microsoft.SystemCenter.Advisor.StorageSubsystem.Performance.PerfCollection
    Instance
    name: SCVMM01.Domain.com
    Instance ID:
    {B5175EAC-D64D-2553-D567-F19B5C864BBD}
    Management group: OMGRP82

    Can you connect from powershell? get-vmmserver <VMMServerComputerName>
    If this doesn't work it's likely that your VMM server doesn't work. Check Application log to see if there are errors related to VMM service.
    You can also collect traces as described
    here and attach them to this thread.
    Are you using a domain administrator account?  (this is the default allowed after SCVMM is installed - until other users are added).
    also try restarting VMM server or VMM services once.
    this occur if the SQL database owner is indicated as NULL.  Try adding the SQL SA account as db owner.
    refer this once -
    https://social.technet.microsoft.com/Forums/en-US/a4199cb2-ccbf-4bb0-96c1-7a640143f81b/error-id-1615-vmm-is-unable-to-perform-this-operation?forum=virtualmachingmgrhyperv
    Thanks, S K Agrawal

  • Since upgrading to Lion USB devices no longer connect to my virtual machine in parallels despite my parallels settings.

    Since upgrading to Lion USB devices no longer connect to my virtual machine in parallels despite my parallels settings. As a result all usb devices show as networked drives from the mac. Therefore cannor access encrypted part of drive. Any ideas???

    I actually have the same problem, since I upgraded to Mavericks my MacBook Pro can't seem to find the Bose sounddock 10. Has anyone found a solution to this.
    It still works with the iPhone 5
    Thank you

  • No connection to database, session terminated

    hi all,
    we are facing a oracle  db problem, when we start database, SAP on Solaris 5.10. after some time error comes from sap Gui
    No connection to database, session terminated
    when we checked db , database was shutdown.
    error in Alter_SID.log
    Errors in file /oracle/DEV/saptrace/background/dev_smon_16314.trc:
    ORA-00600: internal error code, arguments: [4137], [], [], [], [], [], [], []
    Wed May 19 18:45:12 2010
    ORACLE Instance DEV (pid = 9) - Error 600 encountered while recovering transaction (9, 27).
    Wed May 19 18:45:12 2010
    Errors in file /oracle/DEV/saptrace/background/dev_smon_16314.trc:
    ORA-00600: internal error code, arguments: [4137], [], [], [], [], [], [], []
    plz guide
    Imran

    Hi,
    What is your database release ?
    You can try first shutdown the database if it is in mount state. Then restart the complete system.
    If the problem remains same..
    Please check the below notes: (and the notes suggested in the below notes)
    [Note 658744 - Composite SAP Note: ORA-00600|https://service.sap.com/sap/support/notes/658744]
    Regards.
    Rajesh Narkhede

  • Why every virtual terminal always starts at root-dir, not ~

    when i log in on a normal terminal ( ctrl-alt-f1 ~ ctrl-alt-f6), i'm in my home directory
    but when i'm on a virtual terminal like gnome-terminal, i'm always in root directory, no matter it's a loggin shell or not
    even including Gvim
    thx
    Last edited by treblih (2010-06-05 13:03:18)

    You probably need to read http://www.catb.org/~esr/faqs/smart-questions.html
    You need to describe in details what is you problem, how you start a terminal? You question dont make sense (where in the world is gvim a virtual terminal???)
    Last edited by kazuo (2010-06-05 12:53:11)

  • Problems on measuring temperature using thermocouples connected to SCB-68 terminal block

    I have problems on measuring temperature using thermocouples connected to SCB-68 terminal block.The thermocouples were connected to the differential channel 1 and a return path for the instrumentation amplifier bias currents and a 4 Hz low pass filter were both developed. But the readings were floating and jumped randomly between 0 and 200 Deg Cel abnormally.The CJC on the terminal block was disabled and a new one was developed by myself. However, the readings for the CJC were accurate and quite stable. So what is the reason for the floating of thermocouple readings? Did I miss anything that I need to do? Thanks.

    Are your TCs floating or grounded? Basically, if your TCs are mounted to a metal test article and the object is grounded to earth, then, the TCs are grounded -- and very likely contaminated with ground loops. You will need to reference the TC inputs accordingly. These ground loops will cause the TC data readings to float - recall that TC readings are in the millivolt level. It does not take much of a ground loop to ruin a TC measurement.
    Also, try this... first, set the filter to 10KHz and sample for a few seconds at 20 KHz (take 32768 data points). Now subtract the mean value from the trace and perform an FFT on the data. Look for the dominant frequency. Is it 60 Hz or some multiple? If yes, the likely cause is a ground reference problem.

  • Connection to Office Virtual Machine through IE keep dropping

    Hello there,
    I hope I posting the question to correct topic/group, if not please suggest the correct topic.
    I am using windows 8.1 ( Not Pro) to connect to my office Virtual machine. The connection procedure as follows.
    Open a browser type an URL, which asks for credentials
    Enter your credentials including RSA key
    For first time connection,  a F5 plugin will be installed for browser [ IE only accepts the plugin if you make the website in compatibility enabled]
    successful connection to office Virtual machine
    Now the problem begins, the connection to VM keep dropping for every 50 seconds and automatically connects back after 50 seconds. It is bugging me for a while.
    I had no problem using this feature from other WINDOWS 7 laptop.
    PLEASE HELP and thanks in advance,

    Hi,
    This should be caused by compatible issue or security settings, since this plugin can only work in compatible mode.
    Regarding current situation, please first let me know what program you use to create office VM, VMware or Hyper-v or others?
    I suggest we try following steps to check the issue:                                                                                                                                                                                                                                             
    Step 1: Put this site in Trusted sites.
    Step 2: Uncheck the Protected mode.
    Step 3: If there is any third part security applications, please disable it or remove it for testing, since such program has IE protection which sometimes prevent you from connecting RDP console in IE.
    Step 4: Please disable other add-ons in Manage add-ons to see what’s going on.
    Step 5: Let’s use the lower document mode in F12 developer tool.
    Post back the results and event log for further research.
    Collect event log:
    http://windows.microsoft.com/en-us/windows7/what-information-appears-in-event-logs-event-viewer
    Kate Li
    TechNet Community Support

  • Connect Java to native terminal (Solaris specifically)

    How can I connect to the native terminal through my own Java application?
    Calling my processes using Runtime.exec does not always work because the processes usually know it is not a terminal.
    Is there a way in Java to call a child as if through the terminal, or is there a way in Solaris to call a middle man process that calls the next child as if through the terminal?

    gimbal2 wrote:
    generally that is done by actually invoking the shell through runtime.exec(). I don't know what the main shell is under solaris, but under windows you would invoke CMD and under Linux you could invoke BASH for example.
    Start your adventures by reading the four pages of this article carefully:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
    The fourth page shows an example of how to invoke the DIR command on windows.I started reading that document, I believe I already have all that under my belt. Perhaps I was too breif in my original question.
    If you run "ps -ef | more" in Solaris, it will show you one window-full of text at a time. If you resize your window, "|more" adjusts accordingly. That is because a terminal will tell the client height and width. That is one of the features of a terminal.
    If I went and ran "cp -i", it would ask if I wanted to replace any files I might be overwriting. But if I did it through System.exec() it would just overwrite because there is no terminal. (even if running through a shell like sh/bash)
    "prstat -a" (Solaris) will also detect if there is a terminal and provide underlined column headers.
    Java 6 has a Terminal object that is permitted to be null.
    What I really want is to make these processes think they are in a terminal. I am not too particular with window height/width and don't care much about underlines/bold/blink/strike/colors. (of course better to have these than to not :) )
    So how can I tell these processes they are in a terminal?

Maybe you are looking for

  • How to import pictures into excel sheet without using report generation

    Dear Friends I want to know how to import the picture or picture file into excel sheet without using report generation.. kindly come up with any suggestions or example code Regards Karthick Solved! Go to Solution.

  • I downloaded a song and i tried to listen to it but it will only play the first half of the song and then skip to the next song.

    I downloaded several songs successfully to my ipod nano (5) but this particular song when i tried to listen to it would play for the first half and then skip to the next song in the playlist like the ipod thought the song was over.

  • VI Not Loadable

    Hi all, I have recently inherited a LV application which was compiled using LabVIEW 7.0; the machines we use currently are running LabVIEW 2010. I get the standard "VI is not loadable" message when trying to load one of the subVIs and I suspect the f

  • XML Gallery not found

    I have no less than 8 hours in google search and currently 5 adobe forum tabs open to determine how to solve the "XML Gallery not found" error. Many of us use Lightroom to create a flash web gallery.  We save it. We import it into dreamweaver into an

  • Converting DVD's to VOB files

    Does anybody know of a program (preferably free) for Macs that will rip DVD's to VOB format, similiar to DVD Fab for Windows, so that I can either burn a copy of the DVD without having to convert it first or just store it on the hard drive? Any help