Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22
Thanks Ahmed, The following is the changed .bashrc file # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux User src2206's Avatar
    Join Date
    Aug 2006
    Location
    Kolkata, India
    Posts
    285

    Thanks Ahmed,

    The following is the changed .bashrc file

    # .bashrc

    # Source global definitions
    if [ -f /etc/bashrc ]; then
    . /etc/bashrc
    fi

    # User specific aliases and functions

    alias c="/sbin/ifup ppp0"
    alias s="/sbin/adsl-status"
    alias d="/sbin/ifdown ppp0"
    And it did not solve the problem .

    So any more suggestions please!

  2. #12
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    type keyword 'export' before variable assignment.

    Code:
    export c="/sbin/ifup ppp0"
    export d="/sbin/ifdown ppp0"
    export s="/sbin/adsl-status"
    save it in .kde/env/<file.sh>
    logout and login again.......



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #13
    Linux User src2206's Avatar
    Join Date
    Aug 2006
    Location
    Kolkata, India
    Posts
    285
    Hi casper,
    Well unfortunately the above method did not work .
    Though when I addedthe commands to .bashrc it worked !

    Thank you for your help

  4. $spacer_open
    $spacer_close
  5. #14
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    thats strange !
    its working for me. i placed all scripts, for bluetooth settings, environment variables and keyboard shorcuts in .kde/env folder. working perfectly.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #15
    Linux User src2206's Avatar
    Join Date
    Aug 2006
    Location
    Kolkata, India
    Posts
    285
    I'm using GNOME so isn't it supposed to be .gnome?
    And I made a mistake I placed it directly in .kde rather than in .kde/env folder.
    Sorry for that.
    Still the .bashrc worked !
    Would you like to give it a try too?

  7. #16
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    well ! i will look into this. as you know, i prefer KDE only.... i will check in GNOME.
    problem with .bashrc is, one has to open shell for setting variables listed in it.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #17
    Linux User src2206's Avatar
    Join Date
    Aug 2006
    Location
    Kolkata, India
    Posts
    285
    Thanky You
    I'll wait for your reply.

  9. #18
    Linux User src2206's Avatar
    Join Date
    Aug 2006
    Location
    Kolkata, India
    Posts
    285
    Hi casper,
    Just to let you know- bashrc editing has made the comands permanent .

    Oh BTW, cool new Avatar

  10. #19
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Just to let you know- bashrc editing has made the comands permanent
    gooood ! but you have to open shell/konsole first. right?
    i mean, .bashrc file get executed only when you open terminal/konsole.

    xmodmap -e 'keycode 115=Menu'

    this command assigns Windows key to Main Menu ( like windows START button key ).
    if i put this command in .bashrc file, windows key wont work on logging in coz .bashrc didn't execute yet.
    open terminal/konsole... and lo... .bashrc executed and winkey working.


    Avatar ... thanx .. its casper again.



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #20
    Just Joined!
    Join Date
    Nov 2006
    Posts
    4
    Quote Originally Posted by src2206
    Thanks my friend, I'll check out and post the result here soon.

    go to your profile folder and edit the file .bash_rc with what ever you want

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •