[00:12] Hi... when creating an upstart job to launch a program at boot, how can I specify that it should run in a specific tty ? [00:21] (not the job, the program ^^) [00:25] Allo anyone ? [00:26] hello obarthelemy [00:27] hi [00:29] obarthelemy: is it a GUI program? [00:29] no [00:32] it's mc, minidlna -f and transmission-daemon --foreground. the last two are normally daemons, but i want to force them to live on he console, at least while i'm making sure my server is workind fine [00:33] i know how to force them to stay on the console... I just don't know how to tell them on *which* one they should go... they have no runtim paremeters for that, so I guess it must be handled by their upstart .conf job ? [00:35] very interesting. I thought I knew but can not seem to get it [00:37] it is a good idea to run transmission-daemon in a different tty [00:48] yep, it's very chatty [00:48] minidlna too ^^ [00:48] and MC is just 'coz i'm lazy [00:57] obarthelemy: have you looked at /etc/init/tty2.conf [00:58] i've played with it to make it autologin, as well as the other ttyXconf [01:16] obarthelemy: start apache TTY=tty1 ? [01:17] was the only thing close to what you are wanting to do that I could find [01:20] what is start ? upstart scripts take either exec or cript ? [01:20] script [01:24] would it not be something with [01:24] env KEY[=VALUE] [01:24] Defines a default environment variable, the value of which may [01:24] be overriden by the event or command that starts the job. If no [01:24] value is given, then the value is taken from the init(8) [01:24] daemon?s own environment. [01:24] and set TTY to tty6 ? [01:25] or [01:25] console output|owner [01:25] By default the standard input, output and error file descriptors [01:25] of jobs are connected to /dev/null [01:25] If this stanza is specified, they are connected to /dev/console [01:25] instead. [01:25] console owner is special, it not only connects the job to the [01:25] system console but sets the job to be the owner of the system [01:25] console, which means it will receive certain signals from the [01:25] kernel when special key combinations such as Control-C are [01:25] pressed. [01:26] CONSOLE OWNER seems good, but I still got to set the conseol to tty6 ! [01:43] obarthelemy: Jobs may be started and stopped manually by using the start and stop commands [01:45] pleia2: ping [01:49] mmm.. ut that's not automatic then :-p [01:50] or do you mean I should do my conf file with no stat clause, then do start myjob.conf as a login script in tty6 ? [01:50] no staRt clause [02:06] obarthelemy: seems a little hackish, but i do not know if their is another way or not [02:06] :) [02:08] ok lol, i'll try [02:10] thanks for your help ! [03:20] cprofitt: pong [03:21] hey pleia2 [03:22] hey [03:22] hi [03:37] hello again ! [03:37] got another question ! [03:37] attention, long description incoming ! [03:38] why does [03:38] source /home/olivier/Config/bashstartupscript.sh [03:38] added at the end of /etc/profile, with bashstartupscript.sh being [03:38] #!/bin/bash [03:38] if [ $USER = 'root' ]; then [03:38] export PS1='\[\033[31m\]\l \w # \[033[37m\] [03:38] fi [03:38] if [ $USER = 'olivier' ]; then [03:38] export PS1='\[\033[32m\]\l \w # \[033[37m\] [03:38] fi [03:38] work for olivier, but not for root ? The prompt in my root TTY (tty4, autologin like the other ones) stays white instead of going red. echo $USER returns root... [03:38] source bashstartupscript.sh [03:38] from the prompt right after boot works fine... it just doesn't work from etc/profile ? [03:40] !pastebin | obarthelemy [03:40] obarthelemy: For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imagebin.org/?page=add | !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. [03:40] ok, sorry... http://paste.ubuntu.com/716598/ [03:40] hmmm [03:41] the thing is that should be in /etc/bash.bashrc [03:41] as your root account reads /root/ or /etc/bash.bashrc [03:41] /root/.bashrc or something [03:41] and that sources from your home dir and yadda yadda yadda [03:42] my .zshrc works flawlessly as I have put it /root/.zshrc and ~/.zshrc for my user [03:42] but /etc/profile is read by all users, including root ? [03:44] should be read, I think ;) [03:44] ... [03:44] "/home" has no directory at all for root ? [03:45] no [03:45] it's /root [03:46] http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlbash.html says bash read /etc/profile, then ~/.bash_profile, then ~/.bash_login, then ~/.profile, only one of those last 3, and in that order.... [03:47] I think it reads /etc/bash.bashrc ;) [03:48] that looks old site [03:48] when I was young, internet sites used to look like that [03:48] you could add your script thingies into your /etc/bash.bashrc [03:49] honestly, I've not used bash for ages [03:50] i'm trying /root/.bash_profile [03:50] WORKS ! [03:51] thanks a lot... everything is pointing to the same script still, so I still have a single point to make all my changes, which is what I wanted [03:51] and... to general acclaim, I got another question ! [03:52] how can I launch a program, and make it run on a specific tty ? [03:52] I have it like this: http://pastebin.com/TWXurTV8 [03:52] so if you share your configuration, it's not tied up to your username, it can be any username [03:54] Nice thanks, I'll try to port it to my script... why $(whoami) instead of $USER ? [03:54] becouse that's a command [03:55] but you can do it your way [03:56] cool, you if.. else way works fine, and it's more elegant indeed ^^ [03:56] now, how do I launch a program, ay mc, on tty4 from tty 1 ? [03:57] I think that's a rather hard thing to do [03:58] I've tried doing it in a .conf Upstart file instead, I can't manage it either, but if you prfer that ... [03:59] I've got a few programs I want to launch at boot in their own TTYs so I can keep an eye on them... .conf don't seem to work (or rather, I can' find how to do it there), so I fell back on bash, full of hope ? [04:00] are you running a server? [04:00] or just a desktop computer? [04:02] server, only cli usually [04:03] runlevel 3 ^^ [04:03] I usually talk to my servers with ssh, and I dont access tty's at all ;) [04:04] good point, that's what I'll be doing in the end. It's on my desk right now for setup, but will be headless and far away as soon as things run satisfactorily [04:05] i was assuming than once things were running in their respective ttys, i'd ssh to each tty ? [04:05] it doesnt work like that [04:05] sh*t [04:05] you can use shell multiplexer [04:06] screen FTW! [04:06] common names are screen and tmux [04:06] I've configured screen to use fuction buttons to change different screen windows [04:06] so I dont need to do all this ctrl-a-number -thingie [04:07] bioterror: is that on a config file? [04:07] holstein, ya [04:07] cool :) [04:07] bindkey -k k1 select 0 [04:07] bindkey -k k2 select 1 [04:07] and you ge the rest ;) [04:08] get [04:09] obarthelemy, but when you ssh in, you can have many windows inside screen ;) [04:09] and that's like having many tty's [04:10] but now I'm hungry, I'll go and make some coffee [04:10] laters [04:10] ok, so you're saying instead of booting to several ttys, I should boot into just one with screen running, and launch all my stuff in its own "screen" ? [04:10] arf... laters [05:04] bioterror: have you tried tmux yet? [05:04] i am pretty happy with byobu, but I would definitely like to try it [05:39] duanedesign, I've been using screen so long, that I dont need tmux's features. like splitting [10:50] Hi all, hope someone can help me with this noob problem: i've downloaded the Linux version of Jtvlc here http://apiwiki.justin.tv/mediawiki/index.php/VLC_Broadcasting_API and extracted it. It doesn't need to be installed, you should just be able to cd into the dir and execute "jtvlc". But when I do that (or type "./jtvlc") it prompts: "No such file or directory" [10:50] anyone any ideas? [10:51] trying to run a 32-bit binary on a 64-bit system? [10:51] could that be the problem? [10:51] is that a known thing/issue? [10:52] ''file ./jtvlc'' [10:52] You can install 32-bit libraries to make it run [10:53] thanks, i guess that's it [10:54] any links to more info on installing those libs to make it run? [10:54] or is it better to just use a 32bit version of ubuntu? [10:55] You'll need ia32-libs at least. See what that gets you. [10:55] Sure there's no 64 bit binary of that jtvlc thing? [10:56] don't think so [10:56] installed ia32-libs and it seems to be executing now! [10:56] thanks geirha!! [10:58] The "No such file or directory" message is really confusing. I scratched my head real hard first time I encountered it. :) [10:59] The kernel tries to execute the 32-bit library loader, but it doesn't exist, so it generates that error. [11:07] hey Daniel0108 === Boffy is now known as gregor3000 [12:18] Hi... anyone knows gdisk ? [12:48] How to install the Sims-3 in Ubuntu 10.04 ? [12:50] Its not in the list from PlayOnLinux & I don't know how to install it with wine. Who can help ? === yofel_ is now known as yofel [13:08] Solved :-) [13:18] obarthelemy: what's gdisk? something like gparted? [13:32] any one tried to install libosmesa for webgl support? [13:36] gdisk is supposed to be abe to convert MBR dsks to GPT, but the explanations are ... vague [13:38] http://en.wikipedia.org/wiki/GUID_Partition_Table [13:39] i think that's it, but idk why u would want it [18:20] greetings [18:20] holstein, yo [18:20] how would you copy everything on a partition? [18:21] cp -r /mnt/mypartition /mnt/mypartition2 ? [18:21] depends [18:21] on? [18:21] if that's just random stuff, with cp [18:21] if that's a operating system and other things, I would use some tools [18:22] it's not, it's media [18:22] then cp -rv [18:22] ;) [18:23] yeah [20:06] can someone help me? [21:28] what is this xserver security update all about? * SECURITY UPDATE: denial of service and possible code execution via [21:28] incorrect input sanitization http://cve.mitre.org/cgi-bin/cvename.cgi?name=2010-4818 [21:28] "When the candidate has been publicized, the details for this candidate will be provided." [21:36] Do most people just automatically install all updates? [22:01] earthling_, I would say most do [22:09] ok [22:36] Does anyone know about how many gig's a full ubuntu offline repo would take? [22:42] i'll ask in #ubuntu [23:18] kristian-aalborg: o/ [23:20] hey holstein [23:20] philipballew: hey! [23:21] * philipballew gives holstein a big awkward hug [23:21] hehe [23:21] thats the best kind philipballew :) [23:23] Its the only kid I give :)