Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 (edited) You bet it works !. . . LOL . . . You had me worried, I had to check The Tips to see if I maybe forgot something . . . but it says clearly to do the chmod command before moving the file to the "/usr/share/gnome/autostart/" location . . . Anyway, I hope your Kubuntu comes in soon so you can give that one a test-run and convince yourself that an external ( serial ) modem is indeed the way to go in Linux BrunoOK, you got me on that one, Bruno. My bad. If I had followed your directions explicitly, it would have worked. Problem is, I tried to do it bysudo gedit /usr/share/gnome/autostart/nocapslock Then I tried to make it executable by sudo chmod 755 nocapslock Uh huh. So you see, I am perhaps a good student because I remembered something you taught me before (create bash script for zip100 drive mounting), then tried (inappropriately) to apply it. OK, so perhaps I'm not a great student of le Professeur Pingouin. I'll try to follow directions better next time. D'oh! Think about it, though- for a moment, I was verging on actual independent thinking. Heck, I almost figured it out for myself last night, but I was a bit too tired and depressed. It's been a hard work week. I'm so happy the weekend is here. :wacko:Last thought: ...you can give that one a test-run and convince yourself that an external ( serial ) modem is indeed the way to go in Linux I decided I would only use external modems with Linux. That's what I'm always using. I have 3 of them now, and with some sharing, I can have an external modem connected to any of my many towers in this room. I never have tried to get a Winmodem to work under Linux. Maybe later... Edited June 23, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 (edited) Hi, Bruno-Well, guess what? That's right, the nocapslock script does not work. D'oh! After a reboot, the Caps key still works, D'oh... you're running "Feisty" now... "Glipper" should be in repos... so, if gClip won't behave... Hi, Urmas-I redid the 'mantra' most carefully indeed. At two points, I was prompted whether I wanted to overwrite an existing file. Since I knew what I was doing, I typed Y (enter) and allowed the overwrite. So it's quite obvious I had the files for gclip correctly installed, but I still get error messages, "no such command" or whatever. I dunno. I guess I'll try glipper now, eh? What is wrong with this forum software? It insists in combining my replies to different people. I want them posted separately. It is rejecting all my attempts to override and correct and edit what it is doing. Edited June 23, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 Glipper was about a 1 minute install. Easy. I'll play with it and see how it does. Gclip was fine, however. I like it in Dapper. Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 Well, guess what? That's right, the nocapslock script does not work. D'oh! After a reboot, the Caps key still works, Clutter . . if you give this command ( as user ) what does it spit out as reply ? And is the capslock gone after it ? xmodmap -e "remove Lock = Caps_Lock" What is wrong with this forum software? It insists in combining my replies to different people. I want them posted separately. It is rejecting all my attempts to override and correct and edit what it is doing. If you wait 5 minutes between replies it will make a new post . . . . every post before the 5 minutes is automatically joint with your previous post if no other member has posted after you.Yes it is the *#$@!! forum software . . . and there is nothing I can do to fix it ;) Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 Clutter . . if you give this command ( as user ) what does it spit out as reply ? And is the capslock gone after it ? xmodmap -e "remove Lock = Caps_Lock" Hi, Bruno-Thanks for being so ever-patient with me. Yes, I tried that command last night, and it does work and kill the Caps key. So I must have some minor problem, perhaps a syntax error? Terminal did not note any errors when I made the script active- so as far as I know, that did get done. Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 hmmmm . . . can you show me the result of 2 commands ? $ ls -al /usr/share/gnome/autostart/nocapslock$ cat /usr/share/gnome/autostart/nocapslock Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 (edited) hmmmm . . . can you show me the result of 2 commands ?$ ls -al /usr/share/gnome/autostart/nocapslock$ cat /usr/share/gnome/autostart/nocapslock Bruno Sorry, Bruno-Last night I must have used sudo to activate nocapslock. Just now, I tried it as user and all I get is a right arrow and the cursor. Edit: No, the command actually does work. Sorry, I can't seem to type today...Then I fired up Terminal again and triedls -al /usr/share/gnome/autostart/nocapslock and I get -rwxr-xr-x 1 root root 61 2007-06-22 0:418 /usr/share/gnome/autostart/nocapslockThen I triedcat /usr/share/gnome/autostart/nocapslock and it returns my bash script, letter perfect: #!/bin/bashxmodmap -e "remove Lock = Caps_Lock"#End script Edit: Aw, gee- I can't even type today. Still waking up. I typed the command again as user and the command did work! Edited June 23, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 This is confusing Clutter . . .You mean that when you give the command as user it does not work ?? the capslock is not deactivated ?But when you use "sudo" it does work ??Or is it the other way around ?? Anyway . . . can you reboot and see after the reboot what the capslock does ? Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 (edited) This is confusing Clutter . . .You mean that when you give the command as user it does not work ?? the capslock is not deactivated ?But when you use "sudo" it does work ??Or is it the other way around ?? Anyway . . . can you reboot and see after the reboot what the capslock does ? BrunoSorry, Bruno. I can't type correctly today. The user command does work. I'm rebooting right now......I rebooted and the Caps key is still active. Edited June 23, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 Clutter . . usually during login you should get a pop-up asking if you want the nocapslock script to be executed at login of Gnome . . . . did you get such a pop-up ?? Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 (edited) Clutter . . usually during login you should get a pop-up asking if you want the nocapslock script to be executed at login of Gnome . . . . did you get such a pop-up ?? BrunoI remember reading that somewhere- but no, I never saw the popup. Is it possible, however, that the popup shows only one time, and I happened not to be looking at my monitor when the popup came? Yes, I read that, but it was in a different context- something to do with making gclip start with Ubuntu that that should cause a permission popup. Sorry...So far as I remember, I have never seen any such popup of any kind, when using Ubuntu.BTW Bruno- please remember to always scroll back up in a thread that I am in. I'm not the world's greatest typist. I do a lot of re-editing on my forum posts, my web page, etc. I do this re-editing in near- real time. Almost every forum post I make gets re-edited. When I try to type context-sensitive stuff real fast, like today, I do sometimes make mistakes. Then I go back and edit. But if such commands are the 'real thing', I go slow and I read and reread until I'm sure everything is letter perfect. Edited June 23, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 :scratching_head: Clutter . . somewhere in the gnome-control-center there is an "autorun" section . . . can you have a look if you can find it ? Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 (edited) :scratching_head: Clutter . . somewhere in the gnome-control-center there is an "autorun" section . . . can you have a look if you can find it ? BrunoOK, I found the Control Center. I had to option Ubuntu to display it. It was 'hidden'. But I see nothing directly referencing 'autostart/autorun'. "Services", maybe? Can you think of any other words they would use to describe that section of the OS?I have to go work a few hours now. I'll be back later in the evening (US-EDT)... Edited June 23, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 Okay Clutter . . I booted Ubuntu . . . . and here is what you do:To start the gnome-control-center you simply open a terminal and type "gnome-control-center" ( NO sudo ! )Next you look for "Sessions" ( in the "personal" section near the top ) and click on it . . . on the first tab there is "startup programs" . . . that is the section we want . . . click on "New" and fill in the box that says "command" the path to the nocapslock executable . . so "/usr/share/gnome/autostart/nocapslock" . . for the "name" just type something fancy ;)Now when that is done . . . reboot and see if it works this time :DB) Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 Okay Clutter . . I booted Ubuntu . . . . and here is what you do:To start the gnome-control-center you simply open a terminal and type "gnome-control-center" ( NO sudo ! )Next you look for "Sessions" ( in the "personal" section near the top ) and click on it . . . on the first tab there is "startup programs" . . . that is the section we want . . . click on "New" and fill in the box that says "command" the path to the nocapslock executable . . so "/usr/share/gnome/autostart/nocapslock" . . for the "name" just type something fancy ;)Now when that is done . . . reboot and see if it works this time :DB) BrunoOK. Rebooting... Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 Crossing fingers and holding my breath . . . Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 23, 2007 Author Share Posted June 23, 2007 OK, results were not good. Assuming I entered the command correctly, it is not autostarting. After reboot, still Caps Lock key is working. Then Ubuntu Feisty decided it would change my networking again, unasked. So no dialup modem. I rebooted into 98SE to type this. Late for work, must go now. I will carefully recheck the session item I created when I get back later. Thanks for all the help. We'll get it worked out eventually. Boy, and nocapslock is a setting I really need. I hit that key with my little finger all the time. I'm not a touch typer. I have to watch my fingers on the keyboars. So when I make a mistake, I usually don't catch it for at least a line or more. Aargh! BBL... Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 23, 2007 Share Posted June 23, 2007 :'( Clutter, for later this evening or tomorrow: . . after you checked everything . . . . the last straw is to make the script again and place in in /home/clutter ( so you are the owner and not root ) . . . make it executable again with chmod and in the gnome-control-center change the command to "/home/clutter/nocapslock"I bet that it will work okay that way. Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 25, 2007 Author Share Posted June 25, 2007 Hi, Bruno-I created a bash script as you suggested: sudo mkdir /home/clutter/scripts Well, almost as you suggested. Then: sudo gedit /home/clutter/scripts/nocapslock Then I typed in and saved the script exactly, as discussed before, then sudo chmod 755 /home/clutter/scripts/nocapslock Everything appears to have gone well.For now, I have manually entered the nocaps command via a Terminal window. It works, of course. In a few minutes, I will reboot to test this. Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 25, 2007 Author Share Posted June 25, 2007 (edited) Clutter, for later this evening or tomorrow: . . after you checked everything . . . . the last straw is to make the script again and place in in /home/clutter ( so you are the owner and not root ) . . . make it executable again with chmod and in the gnome-control-center change the command to "/home/clutter/nocapslock"I bet that it will work okay that way. BrunoI found that the 3rd tab in Sessions is about "Save Session". After I changed the address of my 'nocapslock' function to "/home/clutter/scripts/nocapslock", I went over to that 3rd tab and saved the session. Hope this is OK. Maybe this is why I had trouble before with the old address?BTW I did those two commandsls -al /home/clutter/scripts/nocapslockcat /home/clutter/scripts/nocapslock The first command returned -rwxr-xr-x root root 61 2007-06-25 01:33 /home/clutter/scripts/nocapslockThe second returned my bash script, letter perfect.So anyway, now I'm done typing in the forums and I'm going to reboot and see what happens... Edited June 25, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 25, 2007 Author Share Posted June 25, 2007 (edited) D'oh! Caps key still working, script failed. :hysterical:Do I not own this command if I put it in a sub-directory of /clutter, rather than directly in /clutter?Root still owns this thing? Edited June 25, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 25, 2007 Share Posted June 25, 2007 Hi Clutter -rwxr-xr-x root root 61 2007-06-25 01:33 /home/clutter/scripts/nocapslockI don't know how you did it but the file is indeed owned by root at the moment . . . . . . . . but we can change that:# chown clutter:clutter /home/clutter/scripts/nocapslock# chmod 755 /home/clutter/scripts/nocapslock# ls -l /home/clutter/scripts/nocapslock ( last command will show now that you own the file )After that a reboot should do the trick . . . Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 25, 2007 Author Share Posted June 25, 2007 Indeed! The "...root root..." in that line is replaced by "...clutter clutter..."I'll reboot and see what happens, brb... Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 25, 2007 Share Posted June 25, 2007 If after the reboot the capslock still does not behave . . .give the next command ( as user clutter ) $ /home/clutter/scripts/nocapslock and see if that did do the trick. Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 25, 2007 Author Share Posted June 25, 2007 (edited) If after the reboot the capslock still does not behave . . .give the next command ( as user clutter ) $ /home/clutter/scripts/nocapslock and see if that did do the trick. Bruno Hmmm, very interesting...After reboot, the Caps key was still working. But after I gave that user command, the script has worked. No more caps lock function. (What does this mean so far as getting it to autostart with Ubuntu?) Edited June 25, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 25, 2007 Share Posted June 25, 2007 So something is not working in that Gnome autostart . . . . :(We will have to find another way to start that script: probably linking to the /etc/rcS.d directory . . . . Just let me do some tests and I will get back to you on this. Bruno Quote Link to comment Share on other sites More sharing options...
Cluttermagnet Posted June 25, 2007 Author Share Posted June 25, 2007 (edited) Thanks very much, Bruno-BTW just to remind you (this could make a difference)- lately (for about the past week) I am working in Ubuntu Feisty 7.04. In the past, all our discussions have concerned my two copies of Dapper 6.06.For some reason, Dapper feels more 'polished', more 'finished' to me. I really like the overall look and feel factors of Dapper. Feisty feels like it has more 'rough edges' somehow. Certainly, from my perspective, dialup was working much better and more predictably in Dapper, but is a real pain in Feisty. :wacko:Based on our experiences getting zip drives to mount in Dapper, using scripts, rcS.d makes a lot of sense somehow. Edited June 25, 2007 by Cluttermagnet Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 25, 2007 Share Posted June 25, 2007 Well the /etc/rcS.d trick did not work . . . . I am looking at other options right now.About Feisty and Dapper . . . . . . With dapper having Long Time Support, and it running better on your hardware ( modem friendly ) it would maybe in your case be an idea to switch back to dapper and feed Feisty to the birds . . . . BrunoPS: I just tested adding the xmodmap line to the /usr/bin/startgnome script . . . ( because it starts the windowmanager as user ) . . . but even that did not work Quote Link to comment Share on other sites More sharing options...
Bruno Posted June 25, 2007 Share Posted June 25, 2007 EUREKA:Please add the line xmodmap -e "remove Lock = Caps_Lock" ( as user not as root ) at the bottom of this file:/home/clutter/.profilerebootsmile :DB) Bruno Quote Link to comment Share on other sites More sharing options...
ross549 Posted June 25, 2007 Share Posted June 25, 2007 *adam files away a bit of new ubuntu knowledge...*:DAdam Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.