Ubuntu :: Get Mouse Position In Terminal Output?
Jun 19, 2010I want to know how to get the current coordinates of the mouse outputted to terminal, for use in a bash script.
View 1 RepliesI want to know how to get the current coordinates of the mouse outputted to terminal, for use in a bash script.
View 1 RepliesIs it possible to control the mouse position from the command line? I want to centre the pointer in the middle of the screen
View 8 Replies View RelatedIs there a way to arrange icons from terminal? Was thinking to make a bash scripts as sometimes(quite seldom) my icons just rearrange on their own and it's damn annoying having to drag them to the place they were.
View 1 Replies View RelatedI have a dual-screen set-up with Ubuntu 10.10. I have an ATI Mobility Radeon HD 5650 video card. I use my lower-resolution laptop screen on the left and a larger monitor on the right. The monitor is also physically higher than the monitor. See attachment for a screenshot.I have correctly set up my displays so that if the mouse is in the middle of the screen it can move from one screen to the other without jumping. The jumping happens when moving off of one screen in an area where the other screen is not directly next to it (some people call this 'the void').
Example: (See the attachment for a visual example of this.) My mouse is in the external monitor (right monitor). As I move the mouse to the top-left of the monitor (position 1), I by mistake go a little too far and instead of hitting the Ubuntu applications menu, I ended up at the top-right of the laptop monitor (left monitor; position 2). I quickly realize my mistake and move the mouse back to the right monitor, but now the mouse is at the middle-left position (position 3).This same error occurs by moving the mouse on the laptop monitor (left monitor) passed the bottom-right position. This is a big problem when scrolling vertical scroll bars on the laptop monitor (left monitor).I am looking for a fix that if the mouse is at position 1 in the attachment and I move the mouse left, it stays at position 1 and does not go to position 2.
I'd like to make Gnome Terminal always start using this command line: gnome-terminal --geometry=92x49+0+0 However, when I right-click the icon either in Start Menu Favorites or in Application Browser, there is no 'Properties' option where I can configure this. Nor does there appear to be any option in Gnome Terminal Profile Preferences (other than to run something other than the shell when starting Terminal). Anyone know how make this modification so Gnome Terminal will always start in the same size and position?
View 2 Replies View Relatedhello
I tried to find a good subject but it was the best of mine, anyway I'll explain it here.
some time I do some thing like installing a new application in Linux terminal of my office PC but it take a long time and I have to go home during its installation or configuration process that it is not good to cancel it.My current solution is abandoning the process until next day. I wanted to know is there any way to redirect an input and out put of a terminal to another one, if it works I can continue my abandoned process by ssh to my Linux office PC and redirect that terminal to my new remote sshed terminal from my home.
Thank a lot for any help.
if you do the command conky in terminal, it starts conky ofcourse, but it also shows output to that terminal so you can't do any other commands to that terminal, Is their an option like you can do with the '&' sign in other cases? If you do the '&' sign with conky it still gives output, also the conky -d command gives output...
View 9 Replies View RelatedIs it possible to copy the output into the clipboard without using the mouse?
For example, I would like to do something like this:
$ pwd >> clipboard
I would like to capture all output spewed to a terminal session including processes that are terminated that were invoked from a script running in a terminal window. this is beyond capturing just stderr and stdout . for example
{
./script
} 2> stderr.cap 1>stdout.cap
if script is terminated (including because of memory violations) I get spewed output to the terminal I would like to capture that spewing to a file automatically or to a bit bucket /dev/null Is there another filehandle which can be redirected to do this? If so how or is there another way???
In synaptic package manager when I expand "Details" tab (at the time when some software is installed or removed), I can see a terminal. I want to capture the output of terminal into a file. I tried to highlight and right click. But there is no context menu(copy, cut)
View 4 Replies View RelatedI'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 RelatedI sometimes stick my neck out and provide somewhat detailed, and often risky, "Mr-fix-it" remedies for boot problems. Now, I know it's possible to amend each command with "whatever_command > whatever.txt" in which case it'll place the command output in a file in /home.
But if you're directing someone to run a lot of commands as I did here is it possible to save the output of all commands to a .txt file without amending each command?
Or is it already saved somewhere that I'm not yet aware of? I wouldn't be surprised if the latter were true, I just haven't yet found it
I have been doing alot of work in the terminal lately (mostly just for fun) and I was womdering is there a way to use the mouse cursor in the terminal? So I could select and copy/paste text? I know it can be done because I have seen it in slackware before.
View 4 Replies View RelatedI have searched a lot for solutions of this problem, but there seems to be no solution that works for me. It was time to update my installation... AS I have NEVER updated it. So I ran the update manager and launched updates. Many packages completed, but linux-image-2.6.32-25-generic (2.6.32-25.44) gave me a lot of errors. I don't ave the terminal output from the update manager, but I have info from apt-get install -f. I am using root account.
Code:
root@ubuntu:~# apt-get upgrade vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
[Code]...
I've done some searching on googlubuntu for and answer to this but haven't found anything.
As a Linux newbie I was wondering if there are certain types of output from the terminal I should beware of posting for everyone to see? Also are there any codes; that, if I were to be asked to run and report the output on, should raise a red flag?
There is text based game in the Ubuntu repos called gomoku (just 5 in a row) it comes with the package bsdgames. The manual page [URL] lists an option (-b) to run it in the background. I want to try that and if I know how it works create a simple graphical front-end. When I start the program with:
Code:
gomoku -b
it starts and remains active, the terminal does not return to prompt which is OK as the command is not finished. The manual says the program reads from stdin, and this might sound stupid but how to get anything there?
I've tried to pipe an echo command to gomoku which works but ends the program after is receives input.
Code:
echo "black" | gomoku -b
just finishes. After that when you type another command like:
Code:
echo "justsometext" | gomoku -b
gomoku tells it expects either black or white as input. So it forgot the previous "black" because it is a new instance.
How do I pass text to an already running gomoku?
I'm writing a couple of programs in C and need to do something to formatting the output. I'm after producing something like a old mainframe screen or early micro where you could PRINT (x,y) to put something on the terminal where you want it. Learning GTK or such is not an option due to time constraints, and some fields need updating frequently during processing, so letting the terminal scroll is going to drive the operator up the wall pretty quickly.
View 2 Replies View RelatedWhat is the output of "date -u +%jXfce|sha256sum|sed 's/W//g'" if you run it in a terminal emulator?
View 3 Replies View RelatedWhen I type (in new 10.10) soem cmdline comands like "ls -l" then some of the directories have a different fore-and background color (e.g. black on green) while the remaining other directoreis are blue on white.
Where can I find out the meaning of the diferent colors and how can I change them?
If I go to menu
Terminal->Edit->Profile Preferences->Color
then I can set only the full overall background and foreground color. But here only certain parts have a different color. the main color (black on white) is suitable. I do not use system theme.
How can i get the RAM Memory on system in terminal when i have 3 GB with an output like this:
3072
or
3145728
[code]....
if we type a command such as "locate somefilename" in the terminal we will get all the paths to the file name as output. If i want to copy only one line from that output how do i do that without using mouse?i need terminal short cut to copy one line
View 8 Replies View Relatedif i will sound stupid but i can't find a command that would echo output of some command. Let's say that i want to echo the third line of ls -a. I know of the tail command but this command starts from behind.
View 4 Replies View RelatedI have a server client prog in which server is my 'agent' and client is 'manager'. Following is the code for both agent and manager. I want my agent to send what manager is requesting. But it is not working the way I want. The parameters which manager is requesting, agent has to send to manager but in this program result for those parameters is shown on agent's own terminal window. Where as I want them on manager's window. Secondly, there result is not correct, means it is giving ' 0 K ram and 0 no of process....
Code:
//code for MANAGER
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h> .....
I am trying to display a text using crontab. My settings :
*/2 * * * * /bin/echo "hello"
This setting sends a mail to the user, instead of displaying on the screen. Now tried changing the setting to:
*/2 * * * * /bin/echo "hello" > /dev/tty1
Now I can see the text on the screen, but this setting comes with a catch. What would happen if the user changes the terminal. for instance if he gets into tty2, he wont have write access on tty1. So the user gets a mail saying "permission denied". Is there any way that I can force the user to use a particular terminal or can a cron job be set in a way such that the user would get the text irrespective of the terminal he logs in.
running current with 2.6.33.1-smp kernel i cant seem to get the slib slackbuild to run. it just quits without ever building the tgz. i hope i can attach the terminal output of the compile.
View 8 Replies View RelatedI'm installing and configuring my first server using RackSpace CloudServers running Ubuntu Karmic Koala (9.10) and I'm now installing iRedMail. The installation runs successfully until I recieve this error:
Code:
The following packages have unmet dependencies: mysql-server-5.0: Depends: mysql-server-core-5.0 (>= 5.1.30really5.0.83-0ubuntu3) but it is not going to be installed
E: Broken packages < ERROR > Installation failed, please check the terminal output. I understand this is telling me there is some software that iRedMail (or something iRedMail is dependant upon) that needs installed. Is this correct? And if so, what is i needing installed and how do I do that (aptitude install example-package?)?
I'm trying to create an iso file in a terminal with the following command:
$cat /dev/sr0 > nameofdisk.iso
I get the following error
cat: /dev/sr0: Input/output error
I already checked and my optical drive is indeed /dev/sr0. I've hunted google a few hours trying to figure it out. Does anyone know why I'd be getting this error?
I'm new to Fedora and the Red Hat way of doing things, having been a Ubuntu/Mint user for the last 5-6 years. I've been using Fedora for my daily computer now for the last 3-4 months - a change that has definitely been for the better! However, earlier this morning I went to install a .rpm, and yum output via terminal the following error:
Code:
[leeky@darkstar ~]$ sudo yum install opera
[sudo] password for leeky:
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Adding en_US to language list
Loading mirror speeds from cached hostfile
* fedora: mirror.netrino.co.uk
* rpmfusion-free: mirror01.th.ifl.net
* rpmfusion-free-updates: mirror01.th.ifl.net
* rpmfusion-nonfree: mirror01.th.ifl.net
* rpmfusion-nonfree-updates: mirror01.th.ifl.net
* updates: mirror.netrino.co.uk
Error: database disk image is malformed
[leeky@darkstar ~]$
This is the first time I have received this error. I've now tried the following methods of resolving this problem with no luck:
1. Code:
yum clean all
2. Code:
yum clean metadata
yum clean dbcache
yum makecache
3. Physically removing the /var/libs/yum folder, and creating a new "yum" folder, and then step two above to rebuild it. Either way the problem then still returns in terminal.
Is there a way to get colored output when using tab completion in a terminal? My colors are fine everywhere else so I know that I've enabled a color terminal successfully. Using bash in Ubuntu (10.10).
View 1 Replies View RelatedI want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and an sftp for each command output seemed a little.. Next, I tried to Applescript Terminal, but it only gives access to the currently visible text in a tab (i.e. if half the output has already scrolled out of sight, it doesn't get returned - useless).
Last, I tried piping ssh to tee (e.g. ssh user@host | tee output.txt). This almost worked. I have the output in a local file, but there are a lot of unwanted characters mixed in. For example, every time I hit backspace, there's a ^H in the file. There's also text like "[0m[K" which is harder to get rid of.