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 - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 09-10-2014, 11:36 AM   #1
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Rep: Reputation: 0
How to edit a file?


Hey;

I was trying to install Netflix on my Manjaro and the first part was to add this to "/etc/pacman.conf" '[pipelight]

Server = http://repos.fds-team.de/stable/arch/$arch

I made an error by just adding; "pipelight' and not the other one. When I went back and tried to add "Server = http://repos.fds-team.de/stable/arch/$arch" I was unable to save it. What I'd like to do is to remove the 'pipelight from "/etc/pacman.conf" then Save and get out of there.

At the moment under File I have 'Save As' but 'Save' is grayed out. When I added 'pipelight' I used 'Save' Now it asks me where I want to Save the change. I am at a loss as to where to save the change or what to call it?


hearakles_14

Last edited by herakles_14; 09-10-2014 at 11:39 AM.
 
Old 09-10-2014, 12:43 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,160

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
Do you still have another edit window open? Did you edit as root before and regular user now?
 
Old 09-10-2014, 01:43 PM   #3
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
# nano /etc/pacman.conf

[pipelight]
SigLevel = Never
Server = http://repos.fds-team.de/stable/arch/$arch

ctl + x

y

enter

pacman -Syy

Pacman -S pipelight
 
Old 09-10-2014, 06:56 PM   #4
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
smallpond;

I do not have a second edit window open. I didn't use Root. I went as follows:

File > etc > pacman.conf. I opened it then right clicked, expecting an option to use 'thunar root', instead it gave me an option to 'edit'. I used it.

Germany_chris;

Here is what I received when I used:

'thunar /etc/pacman.conf'

Click image for larger version

Name:	Screenshot - 09102014 - 04:00:43 PM.png
Views:	90
Size:	162.5 KB
ID:	16374

Now exactly where do I place the following:

"[pipelight]
SigLevel = Never
Server = http://repos.fds-team.de/stable/arch/$arch

ctl + x

y

enter

pacman -Syy

Pacman -S pipelight"

I have my suspicions. When I had posted; 'thunar /etc/pacman.conf', and clicked 'Enter' It opened in Libre Office Writer'. Going straight to '/etc/pacman.conf' I opened it in 'mousepad' then right clicked in an empty space, no option to edit came up.


[miltiades@Mithradates ~]$ pacman -Syy
error: config file /etc/pacman.conf, line 1: All directives must belong to a section.
[miltiades@Mithradates ~]$

Last edited by herakles_14; 09-10-2014 at 07:09 PM.
 
Old 09-10-2014, 08:32 PM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,160

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
LibreOffice Writer is a word processor, not a text editor.
 
Old 09-11-2014, 12:22 AM   #6
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by herakles_14 View Post
smallpond;

I do not have a second edit window open. I didn't use Root. I went as follows:

File > etc > pacman.conf. I opened it then right clicked, expecting an option to use 'thunar root', instead it gave me an option to 'edit'. I used it.

Germany_chris;

Here is what I received when I used:

'thunar /etc/pacman.conf'

Attachment 16374

Now exactly where do I place the following:

"[pipelight]
SigLevel = Never
Server = http://repos.fds-team.de/stable/arch/$arch

ctl + x

y

enter

pacman -Syy

Pacman -S pipelight"

I have my suspicions. When I had posted; 'thunar /etc/pacman.conf', and clicked 'Enter' It opened in Libre Office Writer'. Going straight to '/etc/pacman.conf' I opened it in 'mousepad' then right clicked in an empty space, no option to edit came up.


[miltiades@Mithradates ~]$ pacman -Syy
error: config file /etc/pacman.conf, line 1: All directives must belong to a section.
[miltiades@Mithradates ~]$

Do exactly what I typed in a terminal..
 
Old 09-11-2014, 12:26 AM   #7
Vegan
Member
 
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Rep: Reputation: 10
pacman.conf has to be edited using root.

following Germany_Chris
In terminal as root type the following:
nano /etc/pacman.conf

This will bring up the command line text editor
Make sure the following is in the file (towards the bottom, you will see others with this same setup):

[pipelight]
SigLevel = Never
Server = http://repos.fds-team.de/stable/arch/$arch

Once it is all there press:
ctl + x

Then press:
y

Then Press:
enter

then run the 2 following commands as root to update pacman.
pacman -Syy

pacman -S pipelight
 
Old 09-11-2014, 12:28 AM   #8
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
yes
 
Old 09-11-2014, 08:53 AM   #9
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
I will have to run the command as: 'thunar etc/pacman.conf' and it opens with 'Libreffice Writer. I get this:

"Password:
[root@Mithradates miltiades]# thunar /etc/pacman.conf

(thunar:3254): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(thunar:3254): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
Thunar: Failed to initialize Xfconf: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


(thunar:3254): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(thunar:3254): GLib-GObject-CRITICAL **: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[root@Mithradates miltiades]#
(soffice:3280): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(soffice:3280): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
:1: parser error : Document is empty
�# Pipelight
^

** (soffice:3280): CRITICAL **: void g_lo_menu_insert_section(GLOMenu*, gint, const gchar*, GMenuModel*): assertion 'G_IS_LO_MENU (menu)' failed"

Before it opens as I said before with LibreOffice Writer, not exactly a text editor.
When I use; nano /etc/pacman.conf as root I end up with:

"# Pipelight
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
[ Read 92 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell

It does not go any further.
 
Old 09-11-2014, 08:56 AM   #10
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
don't use Thunar

That's why we typed what we typed.
 
Old 09-11-2014, 12:55 PM   #11
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
It got through to me, finally, and since I do not have 'nano' I used 'mousepad'in its place:

"[root@Mithradates miltiades]# mousepad /etc/pacman.conf

(mousepad:1750): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",

(mousepad:1750): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita","

Mousepad opened with a warning. I proceeded to place:

"[pipelight]
SigLevel = Never
Server = http://repos.fds-team.de/stable/arch/$arch"

In place towards the bottom, saved it, then closed mousepad.

Here is a screenshot of where I placed those three lines:


Screenshot - pipelight- 10:41:01 AM.png


Here is what I got when I entered as root to do an update:

"[miltiades@Mithradates ~]$ su
Password:
[root@Mithradates miltiades]# pacman -Syy
error: config file /etc/pacman.conf, line 1: All directives must belong to a section.
[root@Mithradates miltiades]#"

Also tried this:

"[miltiades@Mithradates ~]$ sudo pacman -Syy
[sudo] password for miltiades:
error: config file /etc/pacman.conf, line 1: All directives must belong to a section."


I have another issue that being not able to get "Add and Remove Software" Folder to open. Nor can I open "Software Update" Folder. I had hoped by fixing up 'pacman.conf' things would be back to a semblance of normalcy?
Attached Thumbnails
Click image for larger version

Name:	Screenshot - pipelight- 10:41:01 AM.png
Views:	30
Size:	155.0 KB
ID:	16395  
 
Old 09-11-2014, 01:31 PM   #12
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
nano is installed it's installed with base..

your screen shot shows that pipelight is hashed out therefore not working.

Last edited by Germany_chris; 09-11-2014 at 03:50 PM.
 
Old 09-11-2014, 01:37 PM   #13
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
..derp it did post after all
 
Old 09-11-2014, 03:33 PM   #14
Vegan
Member
 
Registered: Aug 2010
Location: Idaho
Distribution: Arch, Ubuntu, Fedora
Posts: 114
Blog Entries: 2

Rep: Reputation: 10
Can you post the first section of your pacman.conf?

The error states it is in line one. So something may have been modified up top.
 
Old 09-11-2014, 03:55 PM   #15
herakles_14
Member
 
Registered: Sep 2010
Location: I currently reside in Glendale, AZ
Distribution: Manjaro, LinuxMint 17.2 & Mageia 5
Posts: 368

Original Poster
Rep: Reputation: 0
Vegan;

Here is screenshot of top section of /etc/pacman.conf :

Screenshot - 09112014 - 01:49:32 PM.png
Attached Thumbnails
Click image for larger version

Name:	Screenshot - 09112014 - 01:49:32 PM.png
Views:	52
Size:	219.6 KB
ID:	16397  
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit .so file ? afsarie Linux - Software 2 03-15-2014 11:38 AM
allowed to create/edit a file but not to DELETE A FILE. micro_xii Linux - Newbie 9 05-10-2012 07:22 PM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 06:59 AM
Changing file permission, How to edit a file? rainchild Linux - Newbie 8 01-14-2007 10:18 PM
edit a file mjewell Linux - Newbie 3 01-19-2004 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 07:31 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