You are not logged in.

#1 2012-03-12 16:40:40

simke
Member
From: croatia
Registered: 2009-04-01
Posts: 30

archcfg - arch linux configuration script

if you liked this, I did http://opendesktop.org/content/show.php?content=137743,
this script is to call easy the important Arch Linux configuration files for editing. but this does not work any more.

so I put it to work again, and add new things in.
https://aur.archlinux.org/packages.php?ID=57416

tZDJkeQ

as regular, user run it with 'su -c archcfg' not 'sudo archcfg'.
if not set, editor is nano.

cheers!

Last edited by simke (2012-03-18 14:22:15)


I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.

Offline

#2 2012-03-12 16:49:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: archcfg - arch linux configuration script

Is there a reason it can't use $EDITOR variable?

The part of /usr/bin/archcfg that set the editor:

#set editor
_conf_file='/etc/archcfg/archcfg.conf'
if [ -e $_conf_file ]; then
    EDIT=`cat $_conf_file`
else
    EDIT='nano'
fi

Offline

#3 2012-03-12 16:55:10

simke
Member
From: croatia
Registered: 2009-04-01
Posts: 30

Re: archcfg - arch linux configuration script

karol wrote:

Is there a reason it can't use $EDITOR variable?

The part of /usr/bin/archcfg that set the editor:

#set editor
_conf_file='/etc/archcfg/archcfg.conf'
if [ -e $_conf_file ]; then
    EDIT=`cat $_conf_file`
else
    EDIT='nano'
fi

actually no!!!!

fix in i min!


I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.

Offline

#4 2012-03-12 17:18:05

simke
Member
From: croatia
Registered: 2009-04-01
Posts: 30

Re: archcfg - arch linux configuration script

done.


I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.

Offline

#5 2012-03-18 14:46:18

simke
Member
From: croatia
Registered: 2009-04-01
Posts: 30

Re: archcfg - arch linux configuration script

add read log's and edit .xinitrc, so as regular user now you have tu run it with 'su -c', 'sudo archcfg'  does not work properly.

Last edited by simke (2012-03-18 14:48:08)


I'm a Paladin with 18 charisma and 97 hit points. I can use my helm of disintegration and do one D4 damage as my half-elf mage wields his plus-five holy avenger.

Offline

Board footer

Powered by FluxBB