General :: 10.10 - Running Command On Startup (Remap Keys)
Jan 23, 2011I want to run this command on startup.
xmodmap /etc/xmodmap
I am running Ubuntu 10.10 and need to remap keys. It only seems to work when I run it in terminal after I login.
I want to run this command on startup.
xmodmap /etc/xmodmap
I am running Ubuntu 10.10 and need to remap keys. It only seems to work when I run it in terminal after I login.
I don't know if this is a configuration issue or a hardware issue, but I have a Kinesis Advantage USB keyboard and for some reason the F3-F5 keys aren't responding as they used to. They don't respond to anything and, when I tried using F5 on Emacs, it said <XF86AudioNext> is undefined, so I guess it's a weird mapping problem.
Any idea how I could remap them to the original meaning?
How can I set keys to be remapped for one specific program in Linux? (More specifically Caps Lock -> Escape for gVim. I hit it accidentally too much to remap it in everything).
View 2 Replies View RelatedJust installed the Ubuntu for the first time and I have a problem. My keyboard's "a" key is faulty, it's acting like it's stuck, that is it is constantly typing aaaas so I had to disable it and reassign the letter "a" to another key. I did this quite easily in Windows with a program called KeyTweak...
Now that I started working in Ubuntu, the damn thing started acting just as it did under windows and it's constantly typing a all over the place, so I can't get any work done. How do I disable the key "a" and reassign "a" to another key(like q for instance)? Are there any programs for key remapping in Ubuntu or I'll have to do it manually? If so, how?
I was wondering if there was any native software like Autohotkey, GlovePIE, etc for Ubuntu that allows you to remap keys / make macros?
Windows has a ton of stuff like this. My first few searches though for Ubuntu software like that has turned up nothing.
How can I remap arrow keys to windows key + ijkl? I can do this easily in Autohotkey on windows, but I'm struggling on Ubuntu.
I'd really like the solution to work independently of whether I'm using a window manager or not, and to involve modifying as few files as possible; I work on a lots of different machines and am always building new ones, so would like to minimise reconfig effort.
I've tried to understand .Xmodmap, but couldn't make it work (was hard to find detailed docs on modifier keys). Am also considering win+hjkl!
In Fedora 10 they decided to change to "evdev", so if you used xmodmap in F9, these mapping have changed in F10 and F11 for that matter. In order to find the new key values start
Code:
xev and press a button you would like to know the keycode for. Write this value down. When done, make a file ".xmodmap" and put in the values. "man xmodmap" explains the format. Not easy to understand! So here is how mine looks like.
Code:
clear Lock
keycode 112 = Caps_Lock
keycode 118 = Delete
keycode 119 = Home
[Code]...
This layout is MUCH more logical than the original. Now Delete is the key just to the right of the Backspace key. Back spaces deletes to the left, and Delete deletes to the right, so these keys shoudl of course be next to each other Page Up, Page Down, Home, and End now have the same structure as the arrow keys below. This layout makes it much easier to navigate without looking at the keys, because now the layout makes sense And why shouldn't 0 be to the left of 1? of course it should. 0 is lower than 1.
I'm trying to get synergy+ to work on Fedora 12 on start up. I'd like to be able to log into Fedora using my keyboard and mouse through synergy+. I've tried adding the line
Code:synergyc <localipaddress> at the end of the /etc/rc.local file but I still can't use my keyboard and mouse to log in. I've also tried adding the lineCode:su <username> -c "synergyc <localipaddress>" to /etc/rc.local but it still doesn't work. Just to clarify, I do have synergy+ working on Fedora but I need to start it after logging in on each reboot by switching my keyboard over to the other computer.
I'm trying to start an Oracle Integration server as user "oracle" at system startup and my approach was to place a couple of lines in /etc/rc.localsu oracle/home/oracle/startallSomething is not quite right about this as it seems to leave some processes owned by root.
View 2 Replies View Relatedthis may not be the right place to ask this, but my sister has a macbook and the keyboard does not want to work. i have looked online and i see that the main cause of this problem is in Leopard (correct me if im wrong). So i was wondering if perhaps using linux would solve this problem or if the problem is more hardware related than os related.
Also, how would i go about booting into a linux cd? since u need to enter some keyboard keys at startup and assuming that won't work, is there another way?
I have a program I have made, and I would like it to run as soon as the system is finished booting. I am using Ubuntu Mini Remix to recreate a LiveCD/USB stick. After booting, it drops me to a command line where I can enter "sudo qct" and it will run my program (which is called qct, and it has to be run as root).I want this to be automated.Instead of going to a command line, I want it to run the program itself at that point. How would I go about doing this? I have read many tutorials about scripting but I cannot seem to get it to work.
View 11 Replies View RelatedIs there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?
What does the script do? The script mounts a partition, looks for a file in that partition and finally on the basis of that file a decision of copying a partition to another partition is made. That copying is done via
[Code]...
I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.
View 10 Replies View RelatedI'm running Debian (Squeeze) and I have a toshiba portege m700. It has five buttons on the front just under the screen, which are the only ones accessible when you flip the screen over into tablet mode. One of them is for rotating the screen, and another is for switching to external display. I want to remap the remaining three to control, alt and super so that I can use shortcuts with the stylusThe problem is, when I used showkey to find out the key codes, I found out that each button generates more than one key code:Button 1:
key 126 press >> super_r, although this is distinct from the actual super key (125)
key 7 press >> 6
key 7 release
key 126 release
I wanted to remap my Caps Lock key to ESC, both because I don't need the Caps Lock key and because it will make it easier to use vi. I know how to do this in X, but is there a solution that will work in command line mode too?
View 6 Replies View RelatedAs I tried to explain on the title, what i need is to run this command "NetworkManager --no-daemon" as root every time I start my arch+gnome so that the nm-applet would show on the panel.I need to know a way to do this automaticaly each time I start my pc
View 6 Replies View RelatedI want to remap a single key on my keyboard. This is the key which will delete or in numpad mode will put a '.' or a ',' in my case.I want the ',' to be a '.' .So I found out that xev gives me some information about the keys.So I tried something likexmodmap -e 'keycode 91 = period'Which is not what I want. Because than the delete command gets overwritten instead of the comma. So I triedxmodmap -e 'keysym 0x0 = period'Which looked like a endless loop to me. 0x0 is also quite strange, isn't it? But this is what xev gave me for numlock activated and the comma-key.The difference between the delete and the comma is the "state".Xev returns for delete:
Code:
KeyRelease event, serial 34, synthetic NO, window 0x4800001,
root 0x10c, subw 0x0, time 1934052, (412,580), root:(416,605),
[code]....
I'm currently using Fedora 12 as seen in the subject, and I'm fairly new to it, but recently I've had a problem with my HDD. The problem is bad sectors and I've read up on how they occur but not many placessearched actually explains how to deal with this. When I start up my laptop (Acer 5610z) I get a SMART error saying "predicted disk failure, please back up data and replace drive." Along those lines, so I got curious and used Disk Analyzer this roughly what it says:
Reallocated Sector Count: Failing Normalized:129
Worst:129
Threshold:140
[code]...
Every time I need to start or stop Tomcat, I am navigating to:
/Tomcat_Dir/bin
and once I am in the folder I enter:
./Startup.sh
And to stop the server, I navigate to the same directory and enter:
./Shutdown.sh
I was wondering if there was a way in Linux to alias the above described process, so that from any location in the filesystem, I can simply type in something like
StartTomcat or StopTomcat to perform the Startup and Shutdown of the web-server?
I was wondering how to run a bash command automatically on startup. on start-up have "alsamixer" or "start-network" executed from terminal.
View 3 Replies View Relatedi'm running fluxbox on my xubuntu 10.10. I'm just trying to set up the key file and the keys i enter will randomly not bind. Like for example:
# open a terminal
Mod1 F1 :Exec x-terminal-emulator
# open a dialog to run programs
Mod1 F2 :Exec fbrun
# filhanterare
Mod1 F3 :Exec thunar
# textredigerare
Mod1 F4 :Exec notepad
terminal, fbrun and notepad works fine but not thunar. i've tried a million different combos of keys and modifiers and it seems totally random weather it works or not. sometimes what works one minute don't after next reconfigure.
When i run the original keys-file i get this log output:
Keys: Invalid key/modifier on line 66):
I get similar outputs when i change the keys-file for other numbers too but it doesn't seem to happen for every key that doesn't work.
I have an Apple Aluminium keyboard. To the left of 1 key I have the less/greater (< >) key, not grave/tilde (` ~). xmodmap does not work for me: layout switching (done with setxkbmap) resets my xmodmap changes. .Xmodmap file does not help either. How do I remap the tilde key?
View 1 Replies View Relatedi have a shell script which some of the lines should be running as root and some other not.the problem is that su is not practically work,it means it take root password from me but it does not run the commands in script.the other problem is thatthere are some commands which should be run as normal user so how it exits from root mode and run that particular command. i tried exit in script file but it dos not work.
View 1 Replies View RelatedI am trying to use the at command to run a script file. The test was quite simple, wanted to run today and every 2 days.Here is the at command:at 15:20 today + 2 days -f every2daysDo.shHere is the script:echo "every2daysDo.sh ran on $(date)" >> /home/stacy/attest.logI see the 'output' of the echo command in my log file on today+2 days, but not on the day that I start it.
View 3 Replies View RelatedI'm running this command, and seems not to work, following the command:Quote:for nic in `ls /sys/class/net | grep -v lo`; do echo ${nic}; udevinfo -a -p /class/net/{nic} | grep -i address; doneThe output is the following:Quote:eth0eth1But the output should show something like this: (showing the MAC address)uote:
I am trying to run an scp command on my linux server, this is working fine, however I changed the output folder to one which has spaces and now when run, it's coming up saying SCP ambiguous target
Here's my string:
expect -c 'spawn scp -r /var/lib/asterisk/backups/Everyday/ administrator@192.1.1.1:
/Volumes/Data1/My Backup Folder/ ; expect assword ; send "MYPASSWORD " ; interact;'
If I start a script that is going to take a long time, I inevitably realize it after I've started the script, and wish I had a way of doing some kind of alert once it finishes.
So, for example, if I run:
really_long_script.sh
and press enter...how can I run another command once it finishes?
i know that there is already a command for it but it comes out with a lot of letters that makes it hard to find the services that are runningi'm talking about services like DNS, APACHE, DHCP, SAMBA, SSH etcis there a command that will list these services and related services that are running instead of showing a bunch of jumbled and lettered mess thats hard to comprehend
View 6 Replies View RelatedI want to launch a gnome-terminal with a korn shell, and I want to specify in advance a command to execute, and then hand control back over to ksh. ex.
Code:
gnome-terminal --execute ksh -ic ls
I expect that to run ksh, do an 'ls' for example, and then give a prompt. I thought the -i switch (for interactive) meant that the shell would resume control, but this doesn't happen. The window just closes quicker than I can see what was output.
I want to remote login as a non root user and then run a command under the root account.I have set up the ssh/scp for the non root user and this configuration works fine. What I dont know is how to run a command under root once remotly logged in as the non-root account.I have to run this command under root, it cannot be changed.
View 5 Replies View Related