RE: Including git commands in preseed

2014-01-23 Thread Todd Maurice
d-i preseed/late_command string in-target sed -i 's,1:2345:respawn:/sbin/getty .*tty1 *$,1:2345:respawn:/sbin/getty -a user 38400 tty1,' /etc/inittab; Works like a charm on Wheezy! Thank you everybody and a special thanks to Bob for the working code!

Re: Including git commands in preseed

2014-01-22 Thread Andrei POPESCU
On Ma, 21 ian 14, 15:27:00, Bob Proulx wrote: The above may have had some mailer munging. I see two simple typos. The '' is special to sed and is lost in the resulting line. It needs to be escaped with \. Also not a problem but since '/' is avoided as the sed substitute character it means

Re: Including git commands in preseed

2014-01-21 Thread Andrei POPESCU
On Lu, 20 ian 14, 18:09:59, Todd Maurice wrote: I have been using Hello World script to reduce problems that might arise from using a complex script but later I would like to use this setup for autologin. Uhh, another case of XY problem

Re: Including git commands in preseed

2014-01-21 Thread Bob Proulx
Andrei POPESCU wrote: Todd Maurice wrote: I have been using Hello World script to reduce problems that might arise from using a complex script but later I would like to use this setup for autologin. Uhh, another case of XY problem

RE: Including git commands in preseed

2014-01-20 Thread Todd Maurice
What does that mean to you? Do you mean when you log into the system at the login prompt? That is confusingly written but that is how I translate it when I read it. If so then that is NOT what late_command does. It will NEVER do what you are asking because that is not what late_command

RE: Including git commands in preseed

2014-01-19 Thread Todd Maurice
Hm, it seems I haven't clearly clarified what I want to do. I'm using preseed file (through auto url= option) to install Debian Jessie in a VM. I would like to configure preseed in such way that it accomplishes two things. 1. It downloads a script from github (we figured out that part) 2.

Re: Including git commands in preseed

2014-01-19 Thread Bob Proulx
Todd Maurice wrote: Hm, it seems I haven't clearly clarified what I want to do. I'm using preseed file (through auto url= option) to install Debian Jessie in a VM. Sounds good. Many of us do this all of the time. Works. I would like to configure preseed in such way that it accomplishes

Re: Including git commands in preseed

2014-01-19 Thread Igor Cicimov
On Mon, Jan 20, 2014 at 9:23 AM, Bob Proulx b...@proulx.com wrote: Todd Maurice wrote: Hm, it seems I haven't clearly clarified what I want to do. I'm using preseed file (through auto url= option) to install Debian Jessie in a VM. Sounds good. Many of us do this all of the time.

Re: Including git commands in preseed

2014-01-18 Thread Bob Proulx
Todd Maurice wrote: #!/bin/bash echo Hello World That output show should up in vt 4. Use Alt-F4 at installation time to see the output there. I would make the output more visible. I would make it LOUD. #!/bin/bash echo

RE: Including git commands in preseed

2014-01-17 Thread Todd Maurice
Sorry for the confusion, http://file indicates the actual URL fo the file. My simple test script is located at https://raw.github.com/drgdel/a/master/1 Content: #!/bin/bash echo Hello World Preseed entry take 1: d-i preseed/late_command string in-target wget -O /var/tmp/hello

RE: Including git commands in preseed

2014-01-16 Thread Todd Maurice
Thanks for the detailed answer Bob. I tried different things gathered from the Internet, even copying your exact command, but to no avail. d-i preseed/late_command string wget -O/target/var/tmp/bootstrap http://file; in-target sh /var/tmp/bootstrap Error 127. I believe the problem is that wget

Re: Including git commands in preseed

2014-01-16 Thread Bob Proulx
Todd Maurice wrote: d-i preseed/late_command string wget -O/target/var/tmp/bootstrap http://file; in-target sh /var/tmp/bootstrap The example I gave was verbatim what I am using and is what works for me. The above uses a different URL and one that doesn't look valid to me. Is that a literal

RE: Including git commands in preseed

2014-01-10 Thread Todd Maurice
I have included git install in the preseed (d-i pkgsel/include string git). After I log on, running git offers a list of available git commands (bisect, branch,.tag) so the installation that way is successful. I was able to find the solution (for now). The problem was that the directory

Re: Including git commands in preseed

2014-01-10 Thread Bob Proulx
Todd Maurice wrote: I was able to find the solution (for now). The problem was that the directory was not set correctly. /usr/ won't work but /home/user will. However this solution is no explanation. I wouldn't want to clone into /usr anyway and so think /home/something is better. But

RE: Including git commands in preseed

2014-01-09 Thread Todd Maurice
Thank you Zenaan for the link. You are right, I am very inexperienced when it comes to git however the command used with the preseed was git clone https://github.com/project; (d-i preseed/late_command string in-target git clone https://github.com/project). I just forgot to type it in the

Re: Including git commands in preseed

2014-01-09 Thread Eero Volotinen
2014/1/8 Todd Maurice toddmaur...@outlook.com I'm working on i386, Debian testing net install, in VirtualBox, through auto url=. clone https://github.com/project git clone https://github.com/project -- Eero

RE: Including git commands in preseed

2014-01-09 Thread Todd Maurice
For whatever reason d-i preseed/late_command string in-target git clone https://github.com/adrelanos/Whonix;, like Eero suggested, doesn't work. No folder is created. I did find the solution though. You need to set the target directory and it works then. d-i preseed/late_command string

RE: Including git commands in preseed

2014-01-09 Thread Todd Maurice
OK, new problem. If choose to install in user (/usr/ or /user/ as opposed to /root/) no directory is created. Command used: d-i preseed/late_command string in-target git clone https://github.com/project /usr/project Any idea how to make the cloning work in /usr/?

Re: Including git commands in preseed

2014-01-09 Thread Bob Proulx
Todd Maurice wrote: OK, new problem. If choose to install in user (/usr/ or /user/ as opposed to /root/) no directory is created. Command used: d-i preseed/late_command string in-target git clone https://github.com/project /usr/project Any idea how to make the cloning work in /usr/?

Including git commands in preseed

2014-01-08 Thread Todd Maurice
I'm working on i386, Debian testing net install, in VirtualBox, through auto url=. I would like for the preseed to do the following. apt-get update apt-get dist-upgrade -y clone https://github.com/project cd /folder/ git checkout project I tried this scheme but when I logon there is no folder

RE: Including git commands in preseed

2014-01-08 Thread Todd Maurice
Some text was missing in the previous message, sorry about that. --- I'm working on i386, Debian testing net install, in VirtualBox, through auto url=. I would like for the preseed to

Re: Including git commands in preseed

2014-01-08 Thread Zenaan Harkness
On 1/9/14, Todd Maurice toddmaur...@outlook.com wrote: Some text was missing in the previous message, sorry about that. I'm working on i386, Debian testing net install, in VirtualBox, through auto url=. I would like for the preseed to do the following. ***apt-get update **apt-get