Re: [arch-general] Distribution license of package information on the website?

2018-05-30 Thread Jonathon Fernyhough
On 29/05/18 18:27, Giancarlo Razzolini via arch-general wrote: > Well, I never thought about licensing PKGBUILD's. Honestly, I don't > think we need a license. As a data point, Debian packaging files contain a debian/copyright [1] file which allows the package maintainer to specify a license for

Re: [arch-general] Distribution license of package information on the website?

2018-05-30 Thread Hong Xu
On 05/30/2018 02:55 PM, Guus Snijders via arch-general wrote: > Op di 29 mei 2018 21:18 schreef Hong Xu : > >> On 05/29/2018 10:27 AM, Giancarlo Razzolini via arch-general wrote: >>> Em maio 29, 2018 8:27 Eli Schwartz via arch-general escreveu: I'm of the opinion that there cannot be a

Re: [arch-general] Distribution license of package information on the website?

2018-05-30 Thread Guus Snijders via arch-general
Op di 29 mei 2018 21:18 schreef Hong Xu : > On 05/29/2018 10:27 AM, Giancarlo Razzolini via arch-general wrote: > > Em maio 29, 2018 8:27 Eli Schwartz via arch-general escreveu: > >> > >> I'm of the opinion that there cannot be a license requirement for reuse > >> at all, since it's not original

Re: [arch-general] Set ip lan address /etc/environment

2018-05-30 Thread Leonid Isaev via arch-general
On Wed, May 30, 2018 at 01:07:59PM +0200, Maykel Franco via arch-general wrote: > Hi, I put this text in /etc/environment: > > $ source /etc/environment > > ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d > ' ' -f 1)" > > $ echo $ip > > 192.168.0.33 > > Works fine, but

Re: [arch-general] Set ip lan address /etc/environment

2018-05-30 Thread Ralph Corderoy
Hi Maykel, > Put file /etc/profile.d/ip.sh with the content: > > ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f > 1)" To debug this kind of thing, e.g. to see if it even runs, intersperse tee(1)s to files that can be inspected afterwards. ip="$(ifconfig | tee

Re: [arch-general] Set ip lan address /etc/environment

2018-05-30 Thread Mark . via arch-general
Perhaps head over to #archlinux on Freenode irc to get some more interactive help…? On 30/05/2018 13:31, Maykel Franco via arch-general wrote: > 2018-05-30 13:20 GMT+02:00 Ralph Corderoy : >> Hi Maykel, >> >>> $ source /etc/environment >>> ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':'

Re: [arch-general] Set ip lan address /etc/environment

2018-05-30 Thread Maykel Franco via arch-general
2018-05-30 13:20 GMT+02:00 Ralph Corderoy : > Hi Maykel, > >> $ source /etc/environment >> ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' >> -f 1)" > > https://wiki.archlinux.org/index.php/Environment_variables#Globally says > /etc/environment doesn't take code, just

Re: [arch-general] Set ip lan address /etc/environment

2018-05-30 Thread Ralph Corderoy
Hi Maykel, > $ source /etc/environment > ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f > 1)" https://wiki.archlinux.org/index.php/Environment_variables#Globally says /etc/environment doesn't take code, just simple assignments. Also see pam_env(8) and the rest of

Re: [arch-general] Set ip lan address /etc/environment

2018-05-30 Thread Mark . via arch-general
Why not put it in ~/.profile? Or if it needs to be system wide, in /etc/profile.d/ip.sh? On 30/05/2018 13:07, Maykel Franco via arch-general wrote: > Hi, I put this text in /etc/environment: > > $ source /etc/environment > > ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d

[arch-general] Set ip lan address /etc/environment

2018-05-30 Thread Maykel Franco via arch-general
Hi, I put this text in /etc/environment: $ source /etc/environment ip="$(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut -d ' ' -f 1)" $ echo $ip 192.168.0.33 Works fine, but when I reboot my archlinux: $ echo $ip $(ifconfig | grep -A 1 'eth0' | tail -1 | cut -d ':' -f 2 | cut