Create a file called /etc/apt/sources.list.d/linux

More
08 Jul 2014 17:25 - 08 Jul 2014 17:28 #48524 by captain chaos
Hi
I have a spare old computer and decided to put it to use as a trial 12.04 precise with LinuxCNC 2.6.
:woohoo: I can't get around "Create a file called /etc/apt/sources.list.d/linuxcnc.list." I've tried the following
sudo vi /etc/apt/sources.list.d/linuxcnc.list
terminal just hangs
and
sudo echo "deb http://linuxcnc.org precise base" > /etc/apt/sources.list.d/linuxcnc.list
permission denied
:blush: I'm not reel good at this Linux thing and can't figure out how to get root permissions.

After a lot of 'DuckDuckGoing' all I could find was this stackoverflow.com/questions/10409235/cre...c-apt-sources-list-d

A little pointer in the right direction would be greatly appreciated :) All the update and upgrade have been done.
I have used 12.04 for a couple of years and run my gantry router on 10.4 so I thought I would get in on the ground floor with 12.04 and 2.6 with a bit of practice and testing.
Maybe help with a little trial and testing, though I may be more of a hindrance than help.
Last edit: 08 Jul 2014 17:28 by captain chaos. Reason: added space omitted

Please Log in or Create an account to join the conversation.

More
08 Jul 2014 17:49 - 08 Jul 2014 17:50 #48527 by ArcEye
Hi

Open a terminal, enter sudo gedit

What happens, are you asked for a password?

Enter your password and you should have gedit open with root privilages.

Type deb linuxcnc.org precise base, carraige return and then File>Save-As /etc/apt/sources.list.d/linuxcnc.list

Ubuntu does not enable the root account by default and gives users sudo access

If you don't have sudo access, something went wrong on the install and you are going to have to enable root access to get it, but that is another story.

regards
Last edit: 08 Jul 2014 17:50 by ArcEye.

Please Log in or Create an account to join the conversation.

More
09 Jul 2014 06:20 #48553 by captain chaos
Thanks ArcEye.

What happens, are you asked for a password?

Yes, on entering password I'm told I have no superuser privileges.

< sudo gedit> worked great all good :whistle:

Please Log in or Create an account to join the conversation.

More
09 Jul 2014 06:56 #48554 by captain chaos
Ok sorry next problem

Type deb linuxcnc.org precise base, carraige return and then File>Save-As /etc/apt/sources.list.d/linuxcnc.list


seems it needs the http://part in deb linuxcnc.org precise base

when I type http:// into that line ie:- deb linuxcnc.org precise base
the http:// part shows up in draft but not in the post which I suppose is what happened in your post.

Anyway minors, how do I go about editing the file /etc/apt/sources.list.d/linuxcnc.list

Thanks

Please Log in or Create an account to join the conversation.

More
09 Jul 2014 13:52 #48561 by ArcEye

Anyway minors, how do I go about editing the file /etc/apt/sources.list.d/linuxcnc.list


I think you have the required editor already

< sudo gedit> worked great all good

The following user(s) said Thank You: captain chaos

Please Log in or Create an account to join the conversation.

More
09 Jul 2014 14:08 - 10 Jul 2014 06:18 #48563 by captain chaos
you're so right gedit would'nt let me edit, but now on reboot it does, silly me for not thinking of rebooting :blush:
Thanks again.
Last edit: 10 Jul 2014 06:18 by captain chaos. Reason: change "it6" to "it"

Please Log in or Create an account to join the conversation.

Time to create page: 0.268 seconds
Powered by Kunena Forum