LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2005, 05:21 PM   #1
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Rep: Reputation: 30
adding files through command line


Hi there, I was hoping someone could help me ,first I need to know if its possible to add files like a yum repo without logging in to xwindows, the reason is I received a server cd of a redhat distro & believe it or not it doesnt have any xwindows like kde or xfce4 etc, I do get to login but I cant use "startx" to login no XWindows but it has yum ,so I was hoping that there might be a way to add some repositories to /etc/yum/sources.list & other files. it does already have 1 repo I can use by default but it doesnt have any of the packages im after. I also tried using wget to add some packages but I had problems getting the right url to add etc, AnyWay is it possible to add files through command line when a person doesnt have xwindows, I do have root priveledges though, Thanks AnyBody. -Browser
 
Old 05-21-2005, 06:05 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Yes lets say you want to add 1 to /proc/sys/net/ipv4/ip_forward;
echo 1 > /proc/sys/net/ipv4/ip_forward
 
Old 05-21-2005, 06:20 PM   #3
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
G'Day comprookie, Thanks for the reply. Just wondering if you could allaborate on the command you gave in your post in regards to what its for as I haven't had much experience in what you explained, my main objective is to add a repository like dag or dries etc to yum in sources.list or how to add a package from a web site ,but finding an explanation on how to add a file etc to a directory could also help to start somewhere,I have tried googling all over the place but cant get anywhere as I also cant think what search term to use that might lead me somewhere,if you know what I mean , sorry to be a pain?
 
Old 05-21-2005, 06:33 PM   #4
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
G'Day again I just found a post in ubuntu site that showed me how to actually get nano working using this command "sudo nano -w /etc/yum/sources.list" but its empty ,I am not sure if its meant to be but at least its something to start on any other help would be greatly appreciated
 
Old 05-21-2005, 06:33 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
No problem,now bear in mind I'm no expert but you should be able to check it out.Do this as a user not root,we are just going to play.Log in as a regular user and;
Code:
cd
touch test
echo test > test
cat test
what we did was create a file test in our home dir.(touch test)then we added test to the file(echo test > test)then to look at the file (cat test)
now to remove the file
Code:
ls (I do this to make sure where I am at)
rm test
 
Old 05-21-2005, 06:46 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
I like nano too, here is a great guide;
http://www.gentoo.org/doc/en/nano-basics-guide.xml
also install links and you can get on the www without x.
 
Old 05-21-2005, 06:53 PM   #7
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, OpenSuse
Posts: 269

Original Poster
Rep: Reputation: 30
Bewdy Mate, Got it that time, I have gained some good insight from your post & thanks for the lead with nano just what I needed as well, I was really stuck , & was running out of ideas, Thanks Again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding users via command Line AmdMhz Linux - Software 4 10-31-2004 01:29 PM
adding a gnome applet to the panel from the command line meonkeys Programming 1 04-23-2004 04:35 AM
adding a user in the command line Daredevil Linux - Newbie 5 02-27-2004 12:56 PM
adding shortcuts for command line hamish Linux - Newbie 6 02-05-2004 07:58 PM
adding command line to starting coltranefawz Linux - Software 1 07-02-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration