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.
- 12-12-2012 #1Just Joined!
- Join Date
- Dec 2012
- Posts
- 12
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
- 12-12-2012 #2forum.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
- 12-12-2012 #3Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 2,563
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.sudo vi /etc/rc.local
- 12-13-2012 #4Just 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.


Reply With Quote
