Slackware :: Start A Terminal With Pre-typed Text?

Apr 17, 2011

Does anyone have tips for starting a virtual-terminal with pre-typed text?

This starts 'xterm' and keeps open at desired directory:

Code:
xterm -title installed software packages -e 'cd /var/log/packages && /bin/bash'

But I want to be even more lazier and have 'ls | grep -i ' already pre-typed so I can quickly search/ls packages by name.

Code:
david@slackware13:/var/log/packages$ ls | grep -i <READY FOR MY TEXT>

Code:
david@slackware13:/var/log/packages$ ls | grep -i CALC
xcalc-1.0.2-i486-2

View 2 Replies


ADVERTISEMENT

Ubuntu :: Create A Command That Can Be Typed In Any Old Terminal Window And Display Screen For Anyone Who Typed It

May 24, 2011

i want to create a command that can be typed in any old terminal window that would display a message on screen for anyone who typed it. is this possible? i just want to do this for the randomness of it.
and cuz i need to get used to messing with terminal windows.

for example i would like to have "rawr" setup as a command to display a message on screen in a popup window with an "Ok" button to close the popup. i googled it but all i came up with was creating commands to launch applications without having to type the full path/command. not what i'm looking for. thanks in advance!!!

View 4 Replies View Related

Programming :: Create Doc Comments In Vim Using Pre-typed Text?

Jul 5, 2011

I currently have a set up in vim so that when I type "<leader>ns" it takes any given word and turns it into a sub "sub word(){}". I also have it when I type "<leader>nc" it creates a doc comment section that is "blank". I was wondering if someone could help me out with combining the two so that when I typed <leader>ns it would create the doc comments with the word already in the Subroutine: line and create the new sub routine aswell. I'm trying to understand what I have (downloaded from the internet) and only doing so so.
Code:

" Put cursor over word and hit ,ns to create new Sub
nmap <leader>nc o
#------------------------------------------------------------------------------
# Subroutine:
# Function :

[code]....

View 3 Replies View Related

Fedora Security :: Accidentaly Typed Password In The Terminal?

Nov 30, 2010

It does happen occasionally that I type a password in the wrong place or at the wrong time when I'm working with multiple terminal windows. It's not a frequent occurrence but sometimes it does indeed occur (most recently as an argument to g++ instead of the password prompt to scp).Would you guys consider it adequate to clear the view with "clear" and the history with "history -c" or should I change my password after such a mishap? I realize that this should probably not be a problem with my computer at home as I'm the only user but when I log onto school (where we mostly use ubuntu, solaris) would the same precautions be enough?

View 4 Replies View Related

Slackware :: Getting Random Text In Terminal?

Jan 6, 2010

I installed slackware recently and noticed that when ever i open up a konsole i get some random messages ,i wont get these in other terminals like rxvt or xterm Where are these texts fetched from and can i modify those text messages to put something of my own ?

View 3 Replies View Related

Slackware :: Best Text / Terminal Based Browser?

Mar 26, 2010

Just wondering if anyone knew of a really good text based terminal browser to use when I am not running X. I can use Links and do not have too much trouble navigating, but I have not been able to set the screen to view the entire page (I have to move off screen to read the whole page.) So, if anyone knows an easier text browser that is a little easier to set the screen options with code...

View 7 Replies View Related

Ubuntu :: Creating A Text File To Start Up Sudo Bash Without Going To The Terminal?

Feb 26, 2011

I just set up apache on my PC and I cant change the permissions by right clicking because "I'm not the owner" and instead of using the chmod command on every file that I would like to edit I would just like to write a script on a text file, save it to my desktop so all I have to do is double click on it and boom I can edit all my files, etc.

View 2 Replies View Related

Ubuntu :: Text Terminal Unreadable - Can't Start Gdm Even After Memorizing The Process Of Logging In And Starting Gdm

Jul 9, 2010

My terminal text is unreadable. Where as the default output would usually fill half the screen it probably fills around 1/20th now. Basically it looks like the text is 1px in size. I was about to install a graphics driver (nvidia) but doh I can't see what I'm typing... I can't start gdm even after memorising the process of logging in and starting gdm (I think gdm is failing to start anyway) I'm using the default xorg.conf provided with the LiveCD;

[Code]....

View 2 Replies View Related

Debian Multimedia :: Type "xlock" In A Terminal And It Would Lock The Screen Until Came Back And Typed Password?

Feb 10, 2011

When I was using AntiX, I liked how I could just type "xlock" in a terminal and it would lock the screen until I came back and typed my password. I saw that there was no "xlock" package, so googling around, I saw it was replaced with xlockmore and xlockmore-gl, neither of which there seems to be a package for in the Squeeze repositories. I tried xscreensaver, but I prefer the simplicity of xlock (and I like that it doesn't leave a daemon runnig when not in use). Is there a way to safely install it, or should I just be looking for an alternative?

View 9 Replies View Related

Slackware :: User_foo In Text Console Has Not Same Environment As User_foo In GUI Terminal?

Jun 15, 2011

Kernel 2.6.21.5, slackware 12.0
Xfce 4.4.1

when I open a graphical terminal in the GUI, I appear as being the same user who ran X in order to enter the GUI, say user_foo, as said by whoami. But a program I usually use in a text console as user_foo, gets Command not found here. Furthermore, the name of the dir I am in does not appear in the prompt, whereas it does when in the text console.

I guess this has something to do with enheriting the environment, but don't know wht to do for this to happen. How do I open this GUI terminal? I do so by choosing among one of several ones in the DE main menu. When I click the menu entry, the terminal doesn't ask for a password.

View 15 Replies View Related

Fedora :: Terminal Doesn't Start \ Can Read 'starting Terminal' But After That It's Closed?

Nov 12, 2010

Recently I've updated from 13 to 14. However, after updated I've tried to work with my terminal and it seems doesn't works fine. I can read 'starting terminal' but after that it's closed.I've uninstalled and re-installed it through the graphical tools (gnome-terminal) but that doesn't works fine.

View 3 Replies View Related

Red Hat / Fedora :: Start SCRIPT Command At START Of TERMINAL?

Feb 15, 2009

I want to monitor my work on the terminal.I know we can use script command.But every time when I start the terminal, I have to type script to start it.I want to automate it. So where should I include this command so that it will start as soon as I start the terminal ?

MY WORK TILL NOW: I have put this "script" command in the .profile.The when I start the terminal, it became an INFINITE LOOP.I am able to "echo".Thats coming only once.....but if I write a "script" command then it is becoming an INFINITE LOOP.

View 1 Replies View Related

Ubuntu :: ODT To Plain Text Through Terminal

Jan 7, 2010

I've been using openoffice.org a lot recently and I was hoping that I'd be able to cat the contents of the file solely through the terminal.What's the best way to do this? My thought is to use a command in a terminal to convert to plain text and cat the file.

View 2 Replies View Related

Ubuntu :: Copy Text From Web In Terminal?

Aug 26, 2010

I'm attempting to write a bash script to retrieve information from a websitemy problem is I can't seem to figure out how to simply copy the text from the website (I have tried multiple text-only browsers but they all seem to require some input to be able to do this where I'm looking for it to be done silentlyThe purpose of this is I have created a google doc that is a bash script itself and I want the one I'm writing to download this bash script and execute it (the original will be hard coded on a cd and I'm doing it this way for easy updating) only thing is when I use wget it downloads the html file with the script embedded in it and not the script itself

View 3 Replies View Related

Ubuntu :: Text Overlapping In Terminal 10.10?

Oct 16, 2010

As i used Terminal, i noticed something odd: the text is overlapping itself. In other words space between letters is uneven and can be negative.

See screenshot if you wish.

What could cause that? Is it a Maverick bug? Or has it something local?

View 3 Replies View Related

General :: Getting Text In The Terminal Window?

Sep 15, 2010

I'm writting a BASH script for a solaris system and need to have text enter into a console window. I've got so far:

#!/bin/bash
xterm
echo "text goes here"

When I run it I get the terminal window but the text going into another window. Nothing that I've found on this site helps me so far. If this is the wrong board, I'm sorry but I figured I'm about as newbie as it gets.

View 2 Replies View Related

Red Hat :: Overlapping Text In Gnome Terminal?

Dec 21, 2010

On my RHEL6 Gnome Terminal, the text is overlapping. I tried with the "Use the system fixed width font" option or changing other fonts, but they did not change. Also, I tried creating .fonts.conf file that's posted as a solution for other but this did not help.

Thing is that the first time when I installed RHEL6, it looked ok, but 2nd installation on VirtualBox client and thereafter, this happens. I'm using the same installation source and options as the 1st time. Also, "Open Terminal" option is missing from pop-up window after 2nd installation (Terminal is still available from App->System Tools; just not from popup window).

View 1 Replies View Related

Fedora :: Background And Text Colors Of Terminal In F13?

Sep 28, 2010

I've just entered the world of linux and the first thing that I find is the terminal. Can anyone teach me how to change the background and text colors in terminal

View 2 Replies View Related

Fedora :: How To Run Pdf Files On Terminal Through Text-only Mode

Dec 30, 2010

I want to run pdf files on fedora 13 through text-only mode(i mean not gui but when i change it to init 3).At gui i know how to do it by converting pdf to html but if we are not at gui?

View 4 Replies View Related

Ubuntu :: Losing Terminal And Other Window Text?

Mar 21, 2010

I don't quite know how to put this problem - recently, my installation has started losing the text in terminal and other windows. I will open a terminal window, and there's nothing there - no cursor, no background. After this occurs, I try to restart the system - the 'Restart" window appears, and is also blank. Hitting enter at this point blanks the entire screen to black, after which the only recourse is to power-down and restart. Of course, then I need to run the recovery mode and fsck to get the system back up.

The first time this happened, I had to rebuild the kernel to recover. Luckily, i lost no data, but this is making the system unusable. I need a stable system to finish the project I am developing for an embedded Linux system.

I am running Ubuntu 9.10, with the latest updates.

View 9 Replies View Related

Ubuntu :: Virtual Terminal's Text Overlapping?

Aug 20, 2010

I cannot have any more than 47 characters on each line of my virtual terminal without everything on that line disappearing. The text is apparently still there, since commands that need more than 47 characters still work but the text stays hidden. After the text has been overlapped I can type as many characters as I like and it no longer overlaps, but my PS1 on that line and all previously overlapped text stays hidden.I'm almost certain that the problem is in my bash configuration since it happens in a terminal emulator as well as the virtual terminal.

View 2 Replies View Related

Ubuntu :: Slow Down Text Output In Terminal?

Feb 15, 2011

I'd like to write a script that invokes a gnome-terminal session which slowly reads out text like the phosphor screensaver (could be anything, a log file, ascii art, song lyrics, whatev) and then closes. I can invoke a terminal using [gnome-terminal -e 'cat /var/log/dmesg'] but the output flies pass by too quickly.any way to slow it down? I know it seems like an odd request but if anyone has a suggestion I'd love to hear it.

View 3 Replies View Related

Red Hat / Fedora :: Get Multi Colored Text In The Terminal?

Aug 11, 2010

how do you get color in the terminal like DSL in red-hat 9.

i have red-hat 9 running on a old 3dfx gaming pc I'd post a pic of the DSL terminal but the site would not let me

View 2 Replies View Related

General :: OpenSuse Terminal Text Editor

Mar 26, 2010

please let me know what are the commands I have to use & how to save a "OpenSuse Terminal text editor" once we have updated the file.

View 8 Replies View Related

CentOS 5 :: Gnome-terminal And Blinking Text

Jan 11, 2011

I have a text based application that I need to use inside X. So I created a gnome-terminal profile called counter3 which runs the command /counter/counter3. I then created added a startup application: gnome-terminal --full-screen --hide-menubar --window-with-profile=counter3

Everything works great. I turn the PC on, it auto logins to the user counter, X starts, and the counter application starts full screen. The only problem is the text doesn't blink when there is a problem. How can I get the text to blink? The text blinks if I boot into runlevel 3 and run counter3 manually. However I need to run counter3 in X as there is a second application that requires X. The text application runs in the foreground and is used constantly. The X based application is run in the background.

View 9 Replies View Related

Debian Multimedia :: Can't Switch To A Text Terminal Anymore

Jul 31, 2010

I recently upgraded my squeeze in my job's PC. It went fine, but after a reboot if I press ctrl+alt+fX nothing happens. Keyboard works fine, I tested it in Openoffice.

View 2 Replies View Related

Fedora :: How To Increase Text Size In Virtual Terminal

May 17, 2009

How do you increase the text size in the virtual terminal (the one you get to when you press ctrl+alt F1-6)? My monitor is pretty old and kind of small, so I need the bigger text size to really be able to use it at all. I tried to find the answer in google, but I couldn't find the answer. I found answers for suse and ubuntu and tried to use those. They said to edit part of the boot loader config file, but I couldn't find a similar line in the grub.conf file. And I don't want to play with it without knowing what I'm doing.

View 14 Replies View Related

Fedora :: How To Let Emacs Run In Text-mode In Gnome-terminal

Sep 11, 2010

I had Emacs installed in Fedora 11 and want to run it text-mode,but everytime when I type emacs command in gnome terminal,an emacs graphical window pop up. I want to emacs to back to text-mode by typing M-x text-mode, and it doesn't work.Can emacs run in text-mode in X11 environment?

View 2 Replies View Related

Ubuntu :: Changing Text Alignment In Gnome-terminal?

Jul 26, 2010

Rather than having my text aligned to the left side of the window, I was wondering if there's a way to align it to the center?

View 8 Replies View Related

Ubuntu :: Password Fields In Terminal Won't Accept Text?

Nov 24, 2010

It's a pretty weird issue I'm having, when I need to provide access for a command in terminal IE: something using sudo, it just doesn't accept text. I thought it might be my keyboard at first (g15) but I tried copying and pasting the password into there and it just wouldn't do anything except for remain blank

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved