General :: How To Initiate/trigger A Key Stroke
Feb 12, 2010to initiate/trigger a key stroke in Linux, as if the user has pressed those keys?
View 4 Repliesto initiate/trigger a key stroke in Linux, as if the user has pressed those keys?
View 4 RepliesWhat i want to do is to have a stroke around my desktop font ( a black one ) since my screen wallpaper is kind of gray and the texts on it get really invisible.
I would like to know if i can do this only on the desktop fonts, since everything else looks fine.
I know it's really a hell of a lot easier to just change my wallpaper ( or edit it in GIMP ) but my moto on Linux has always been "If it can be done, why don't do it" ( I hope is sounds good in English too )
I am arthritic and I have considerable difficulty with a double click. I also have difficulty when using a mouse of moving the mouse as I select something (click the button) from whatever window I am working with and thereby selecting the wrong thing. To compensate for this difficulty, I use a Logitech trackball and program the center button to perform a double click with one stroke. I am currently struggling with Linux Mint 9 in my search for a Windows alternative. Is there any way to program my center button (scroll wheel) to perform a double click in this or any other Linux version? Alternatively, is there any way to program a keyboard key to perform a double mouse click with a single stroke? I do not want any multiple key combinations for this operation, I want something that works with a single click of one button.
View 4 Replies View RelatedIn Windows Word there are combination key strokes to get language accents inserted in the text. How do you get the same thing in Office? I am trying to use foreign phrases in an English document.
View 2 Replies View RelatedI'd like to know if it's possible to automatically mount, and fire up rsync to sync a USB drive with a directory? Specifically, I'd like to copy as much data as the drive can hold and only delete the oldest files if space is needed. I would assume I'd do something like this with a script, but my problem, is where to start.
View 2 Replies View RelatedIs there any way to automatically trigger a cron job each time I log in on my linux account.
View 9 Replies View RelatedI would like to have [CTRL][ALT][BKSP], [CTRL][ALT][+] and [CTRL][ALT][-] activated but don't know how to do this in the new X11.
View 1 Replies View RelatedI wonder if this is the right sub-forum I quite often play around with beta releases. Sometime the Screen freezes. (so what) However is there a key-stroke ctrl-?-? to get to a login prompt ????(rather then press the reboot button) ???
View 3 Replies View RelatedHere's a challenge I've been struggling for months with:
I have a bash script that reads URL addresses of our internal server and then executes some test commands on them. Something like this:
Code:
read -p "Enter URL: " url
sh execute-what-ever-to $url
After copy-pasting the URL the user taps the enter key and the script proceeds, but here comes the tricky part: I want this to work without the need to press the enter key after copy-pasting the URL.
"read -n" does not work in this case, as the URLs vary greatly in length. However, the URLs always end to the same string. They could be like "http://url1/END", "http://url2/END" and so on. So this ending string "END" could be theoretically used to recognize that the whole URL has been pasted.
Ubuntu 10.10 32 bit and Mint 10 Julia 64-bit initiate start by itself! When I shutdown computer and the power is off and the Internet cable is connected, it stops working, but after about 30 seconds system initiate start by itself, I mean the power is on. It doesn't happen when the Internet cable is off. Linux 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:45:36 UTC 2010 x86_64 GNU/Linux Motherboard Gigabyte 945P-DS3
View 2 Replies View RelatedIs there an easy way to log the names of the actual processes that initiate, let's say, outbound connections from the Linux machine, for instance track what process initiates an outbound connection to MySQL port to remote machine and stuff like that?
View 3 Replies View RelatedI have a mdadm RAID5 configuration on my Ubuntu Server (64-bit). In the first week after I configured the RAID, mdadm itself initiated a consistency check automatically. But after that, it won't check the RAID anymore. (the server isn't on 24/7, normally a few hours a day)I've read a post for manually initiating consistency check with these commands
Code:
sudo su -
echo check >> /sys/block/md0/sync_action
[code].....
I am working on ubuntu (Xubuntos) using VMware virtual machine. when I enter apt-get update it gives following error;
Code:
xubuntos@xubuntos-tinyos:~$ sudo apt-get update
Code:
Err http://tinyos.stanford.edu edgy Release.gpg
Cannot initiate the connection to 3127:80 (0.0.12.55). - connect (22 Invalid argument)
Err http://tinyos.stanford.edu edgy/main Translation-en_US
[Code]...
I usually use wget to download stuff from websites when scripting.I have a new requirement that requires me to authenticate then select some options to execute the download. How would I go about this? First thing that comes to mind is using keyboard macros in the Windoz world but I need to do this in bash or perl.
View 1 Replies View Relatedwhat the command is for the System Tray, so thought I'd ask here. Note I am not asking how to put a system tray on the panel - I know I can add a notification area, but when I reboot there will be 2 of them, so this is not what I want.
I just need to be able to initialise it when it fails to load. Since my upgrade to Lucid, this has happened a couple of times, so expect it will happen again soon enough.
I have an Acer one with this peculiar operating system which I don't understand. I have had it a couple of years and it has hardly been used. It has always worked well and connected up to my WiFi until today when after it has booted I get 'internal fault. Hal has failed to initiate' and the Wifi connection does not work. I am perfectly familiar with Windows but I haven't a clue with this one. Have found a post on this forum relating to this fault but I am afraid it was double Dutch to me. I don't even know how to access it's inner system let along enter any commands.
View 4 Replies View RelatedI've got a wireless problem on my laptop (dell inspiron 6400).I don't know when exactly and why, but every time I watch a video on ..... or allostreaming, after a while (a few minutes), my wireless disconnect and it's impossible to get back any connexion. The only solution I have is to reboot my computer.
the command : iwconfig shows :
Code:
lo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11abg ESSID:"Callalc"
code....
Dec 18 18:33:18 yannick-laptop wpa_supplicant[1390]: Failed to initiate AP scan.
This has been happening for a while and I can't figure out how to fix it. If I'm surfing the web listening to music, when I type something -- the song will start changing. Has anyone else run into this problem? Does anyone know how to fix it
View 1 Replies View RelatedI have this basic program that is supposed to scan a string for a delimiter and output which segment of the string the user wants, like awk '{print $2}'. The problem is, I always get a segmentation fault when I run the code and I can't figure out what triggered it.
Here is my code:
Code:
int main(void) {
char *string = "my name is joe";
char dlimit = ' ', *good;
int index = 2, round = 0;
int i, place = 0, t;
[code]....
It keeps track of how many times the delimiter was found with round, and the position of the last found delimiter with place. index is to specify which segment of the string the user wants. One more thing, is it necessary to manually allocate memory with malloc() or calloc() when you can just initialize a variable and it be fine? Like:
Code:
int z = malloc(sizeof(int));
when you can:
int z;
I have a keyboard&monitor damaged laptop which I've converted into a media server/HTPC with a large external monitor. I've installed Ubuntu 9.10, and attached an external 1TB HDD with my video collection. As a media player it works perfectly fine. I can connect to it through my home network, both with VNC and with SSH. I can use VNC on my current laptop to access the player's desktop and play video files. However, this is awkward as the screen resolution of the playback monitor is 1920x1080 - much bigger than the laptop's screen - which means I either end up scrolling the viewpoint around, or scaling the virtual screen down to make reading text very difficult.
What I'd like to be able to do is to trigger Gnome applications - specifically the Totem video player - via a SSH session, on the current Gnome desktop. The idea is that I'd like to be able to browse the directories which house my video collection in SSH, launch the player in the session, and have it appear on the monitor. Ultimately, I'd like to be able to invoke this from a PHP script - thus allowing me to create a (simple) web application on a LAMP installation which would allow me to browse & play my video collection. Currently, when I try and invoke totem, it seems to want to connect the invocation of the software to the SSH session, which - of course - it can't do. Where I might start in trying to set this up?
I use network-manager-pptp to connect to my VPN server. However, occasionally my VPN drops out (although my Internet stays up). I was just wondering how I could make the VPN drop-out trigger a bash script, for example playing a sound to alert me that the VPN has dropped?
View 1 Replies View RelatedI have what I hope someone finds to be a simple problem. I am running a data acquisition computer for a research project, where multiple people use the same non-privileged user account to take data and save it to /incoming. Once the file has been closed, I would like to somehow copy the data into a more permanent location owned by root. Obviously giving the shared user account sudo permission would be a huge security hole.
I know that this should be possible using some sort of client/server connection, but writing my own server just for this little task seems a bit cumbersome, and is something I have no experience with. Nor have I ever written a daemon/init script before.
Does anyone have any ideas on a simple procedure I could use? Very few things are fixed in stone, but the copy operation is necessary - the final location is a RAID5 array, and the write speeds are too slow to keep up with the data stream.
If a client/server type of thing really is the best way to go, anyone have any links to good tutorials to make a simple server and daemonize it?
I have a server here and want to set up transfer jobs to run overnight.
I log in via SSH to it from my laptop and would like to start the job, disconnect yet still have it run.
Is this possible, if so, how?
I wanted to know command to triggered "Safely Remove Drive".So I could implement it on Hardy 8.04
http://ubuntuforums.org/showthread.p...88#post8674988
I wanted to make a simple script that would trigger on certain environment events. For instance, I want the script to trigger whenever a new file gets copied or placed on the Desktop, and cut that file and place it somewhere else. Sort of cleaning the Desktop process. Here's the thing: I want to trigger on it's own, not requiring me to open shell and invoke it from there
View 7 Replies View RelatedScheduled Tasks is giving me a hard time. I have a command set for 23:00 daily as "gthumb -f ~/Pictures/ScheduledPic.jpg", but when the time rolls around, nothing happens. The strange thing is, it does work when I press "Run scheduled task." I get the same results if I select a different time or change it to "google-chrome ~/Pictures/ScheduledPic.jpg". My other scheduled task, a Perl script, works fine.
View 2 Replies View RelatedI have CentOS 5.4 running my file server. I finally got proftpd to work. I configured logwatch to send me email on a daily basis however I would like to be sent an email immediately when the proftpd log file changes. Is this possible?
View 5 Replies View Relatedi think IM-settings is dead. i cannot get ibus or scim work.IM-Settings-Daemon[6769]: CRITICAL **: Giving up to bring the process up because Main Input Method process for ibus rapidly died many times. See .imsettings.log for more details.i have re-installed butProblem has been solved...re-install or update gtk2/glib2 and remove imsettings scim ibus im-chooser etc, everything.re-install imsettings ibus and im-chooser...thats it! i found sometimes the binary is not as good as source....
View 4 Replies View RelatedI really like that in Ubuntu when you type in a command that's not on the system you get a message saying the package that provides that command. Unfortunately it also slows down my system, so I would like a way to trigger this manually. Something like search-command command-I-dont-have
Is there any way to do this? I'm using Ubuntu 9.04 under andLinux but would also like to use this on a regular Ubuntu 9.04 install.
when I update the ubuntu, I set it shutdown after 60 minutes uisng "sudo shutdown 60",because I think the update will complete in 40 minute. However today when I start the computer, it can not startup the ubuntu. I got a screen which sown the message in the title,after I search it using google, some people have encounted this proble, their solve way is to use a live cd to chroot to the old root and complete the update.
However I can not. The following is my suitation:
http://imagebin.org/87841 my command
http://imagebin.org/87840 my partition