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