General :: Ubuntu - Create Several Screen Sessions On Startup?
Oct 10, 2010
Firstly, what's the best way to execute commands on startup, cron? Can I use su in a shell script to switch between different users, if so how?
How do I create several detached screen sessions on startup? screen -A -m -d -S test ./script.sh seems like it should work but using it in a script started by cron doesn't show any screen sessions running after booting.
It looks like the screen session is closed after the command finishes executing, can I keep it open so I can see the output?
I've written a script (that doesn't work) that looks something like this:
#!/bin/sh screen -dmS "somename" somecommand for i in {0..5}; do screen -dmS "name$i" anothercommand $i done
For some reason, if I copy and paste this into a terminal, it creates 7 detached screen sessions as I expect. If I run it from within a script, however, I get only the first session, "somename," when I run screen -ls.
Edit: If the same can be accomplished another way (e.g. with multiple screen windows instead of sessions), I would be open those solutions as well.
At the Get Slackware page at the Slackware website it gives a list of addresses which when I click one of the addresses it redirects to another page with a list of mirror images. Which address and which mirror image do I need to work with Kubuntu 11.04 on my netbook so I can create a USB startup disk? With my connection speed these mirror image downloads take about an hour and a half and I cannot just be guessing which mirror image to download.
and I've had Ubuntu Linux (10.10) for maybe a month and a half now. Im very satisfied with the whole system, no problems up until an update about maybe 2 weeks ago from today (rough estimate). Anyways, when I start my computer and choose to start Ubuntu, about half of the time it will load with some weird new login screen (because of update), and their are other times where the screen will go blank. I dont think its very safe to cut the power from the computer through the power button :/ I realize there are other posts regarding this, and I apologize if this is against the rules, I just thought maybe it would be appropriate to start a thread with this problem for 10.10 users
I currently have a NAS (Ubuntu 10.04) on my network without an access to a monitor due to a lack of a graphics card. I noticed that every time I restart the NAS, it's been taking longer to fully restart. I suspect that something might be wrong, and the warning or error messages are being displayed during startup.
Is there a log file that Ubuntu prints to for everything that is displayed from the moment the system starts up until the login screen? I have email set up on the system via .mailrc and .mstmprc where I could email out with the mail command. I would like to email myself the log file every time the system starts up so I can monitor the system's health.
I am just new in Linux. Last week I install Linux Fedora12 into my notebook. The problem is sometime it come black screen when we want to start after booting. It also blank screen when want to tab to other properties in system. It is due to graphic card or else which the system used ATI Radeon.
i am having dell inspiron 1540 laptop installed with ubuntu 10.04 (updated). i wanted to install LAMP(Linux,Apache,MySQL,PHP) for software development purpose.
but after restarting the system, following things occured:-Message box appears saying "Ubuntu is running in low-graphics mode" Your screen, graphics card and input device setting could not be detected... OK
Then i get prompt saying what would you like to do ?Run ubuntu in low-graphics mode for just one session. i get a message starting display in one minute.....nothing happens ... i switch to text mode by pressing escape. There is a brown color star before: Speech dispacher configured for user sessions.on battery state there is a infinte loop i.e. no response and system just hangs there...startx at text mode makes the screen blank...
Please tell which part of '/var/log/Xorg.0.log' sholud be scanned to find required information.
i am a new to ubuntu How to solve this problem i donot have internet connection and its important that i get it repaired as soon as possible....essential to get it running else i will be forced to goto Windows...
have a problem with an Acer Aspire one running linpus linux. I get a black screen with a white mouse pointer at startup. I don't know how this happened. I can interrupt the startup process with ^c and then see the following amongst other text :Loading x11 FronEnd module...Failed to laod x11 FrontEnd moduleFailed to launch SCIM
Been trying to setup my xorg.conf file to have a 1920x1200 screen.Strange behavior: when my X starts up, I see my mouse cursor, can move it around. It's small enough to suggest the 1920x1200 resolution took, is working.However, the rest of the screen remains black. No login prompt.I've looked at /var/log/xorg.conf, no errors.Is there something else I can look at?
I installed ActiveMQ, set up an init.d script and was able to start | stop | restart ActiveMQ from the init.d script. However, when I tried to use:
>sudo chkconfig --add activemq
upstart seemed not to like it. Having NO documentation on how to create a daemon that works with Upstart on the Ubuntu forums, I'm wondering if anyone has any idea why my init.d script doesn't convert.I'm using Ubuntu 10.x.x but this happens on 9.x.x also.
Here is my script..
Code:
#!/bin/bash # ### BEGIN INIT INFO # Provides: activemq
I am use to microsoft products. In microsoft windows, I can make a batch file that says to delete a file on the desktop during startup. would like to create a "batch file" or command that runs at logon in Ubuntu. An example:f I wanted to delete a certain file on the desktop called "new.pdf" everytime I logon,Could I make some kind of file the has the commands "rm new.pdf" in it and run it as a file during login?
What I want to do is create a custom live USB startup of ubuntu.
I know how to create a usb startup from the iso (any ubuntu iso), with the usb startup disk tool.
Is it possible to add some software to it, for example suppose I want it to have exaile and wireshark (or any software) already installed. How can I do that ?
i want to start /usr/bin/brscan-key at startup. since i find it handy to push on the scan button , and the scanner is saving the scanned image to my pc.
can i add /usr/bin/brscan-key at /etc/rc.local on a safe way?
I am currently in place where I get high speed internet connection. I am using F15 64 bit version. I've installed a lot of softwares and updated theOS completely. My question is is there any way that I can create a startup disk of my system so that I can install it in other system of same configuration.
I'm looking to run a program automatically on boot (but before login). I was think to add this to rc.local but it would appear that this file doesn't exist in Angstrom. Where should I put my script?
I just upgraded to the 10.04 and everything works just fine as before (except for skype but that really doesn't matters as it has already been 3 years I'm using ubuntu and I managed to get it to work only once, for miracle I believe ^^). The only real issue I have is this: when I start up my laptop, after the log-in, no sound will be heared as the "speaker" volume level in alsamixer is set to 0; if I raise it from the terminal running alsamixer (as I don't know any other alternative) everything plays just fine, but the next time I boot I do have to do it all over again... So, how can I change the default startup level of the "speaker" in alsamixer?
PS: by the way I do have the very same issue with the screen luminosity but the other way round as is always starts at maximum brightness and I can't manage to get it to start at the minimum, as it did before. At least reducing the backlight if far more quick but a couple of times I forget it and the battery lasted something like half an hour
An uncaught exception was raised: [Errno 13] Permission denied: '/media/e6f6ac46-4bfc-487b-9c81-aab706ead9e3/boot'
The above is the error message I get when I try to create an usb-flash boot drive. I downloaded the iso for Mint10 and use the "create startup disk" program to create the boot drive. I can see both the iso and the flash drive within the program, but when I click on "create disk" I get the above error message?
I have some heavy, long processes running on remote Linux machines. I use my laptop to SSH to these machine and run the processes from my couch.
BUT, when I want to shutdown my laptop, I am in trouble since the remote processes are killed.
I did my research and found out that "screen" is a great solution for me, it is! (As long as I don't SHUTDOWN my laptop). Isn't there a way to "persist" the "screen" sessions so I can shut it down and then re-attach to a session?
Usually we require vnc to take remote sessions. There was one another i think it was called xdrp or xrdp. I am asking this out of curiosity, is there any way to take remote sessions using http. Like in web conferencing, we invite users to join the conference and then we are able to share desktop. Is there any way to do this on one-to-one basis ? is such a technology exists for linux (for any disto) ?
I am no longer working on the Linux-machine directly, but I'm using Windows puTTY to get a terminal-session. Within that puTTY window I want to switch (or maybe create first) several sessions between which I can switch arbitrarily. I have read about using Ctrl-Alt-Fn, which doesn't work, most likely due to the puTTY interface. I have tried chvt n, which doesn't do anything either (or that it seems). I have tried "bash &" and got bash in the background, which I could call forth using fg, but then had to stay with that and couldn't switch anywhere. Only option was "exit". So, what's the correct way to get several sessions in that puTTY window and switch between them?
If I ssh to a remote machine and then lose internet connectivity, the session freezes. I can't control-c or otherwise abort and go back to my local xterm or terminal prompt but if I wait several minutes it will do so. There must be some way to force it to abort the remote ssh session when connectivity is lost. I'm on a Mac but I believe this happens on cygwin or linux as well.
I'm running Slackware 13 - xfce4 and I got a new session in background. How could I see that session and use it? In backtrack I'm doing it via sessions in terminal but im Slackware 13 session command doesn't exist.