Find the answer to your Linux question:
Results 1 to 4 of 4
I have a questions about linux in general, but specifically im using BackTrack5. But im unsure on how to edit a script and save it via the Konsole. Here is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2012
    Posts
    12

    Question A little assistance - General Linux question (Im using BackTrack5)


    I have a questions about linux in general, but specifically im using BackTrack5. But im unsure on how to edit a script and save it via the Konsole.

    Here is what im trying to do QUOTE "just add this line : su -c root startx
    in /etc/rc.local
    save and reboot your system" UN~QUOTE.

    How do i navigate to /etc/rc/local?

    And how and where do i add the said lines above? do i press a key to save it?

    I appreciate any help, Thanks alot

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello and welcome to LF.o!

    You can check the following website for some quick and easy lessons on using the Linux command line and working with scripts:

    LinuxCommand.org: Learn the Linux command line. Write shell scripts.
    oz

  3. #3
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,113
    sudo vi /etc/rc.local
    If I recall, Backtrack is Ubuntu based so you use sudo. The above command will open the file in the 'vi' text editor. If you don't know how to use 'vi', just replace 'vi' with the name of whatever text editor you use. You need root privileges to write to system files. As to where the lines should go, ?? don't know.

  4. #4
    Just Joined!
    Join Date
    Dec 2012
    Posts
    8
    Backtrack eh? Hehe, trying to become a 1337 hax0r r we?

    yancek has it

    sudo vi /etc/rc.local

    When you see the contents, scroll to the bottom, press O (new line)
    add:

    su -c root startx

    press ESC then :wq

    colon, w, q (write, quit)

    Sry to steal your thunder yancek,

    good luck.

Posting Permissions

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