Ubuntu Servers :: Bash Script To Open 1 Screen Session With Multiple Windows?
Jul 28, 2010
I am trying to write a bash script to open 1 screen session with multiple windows... each one running a different service. Is this possible? I tried several things, and I can start up multiple sessions really easy.. but not 1 session with multiple windows...
I want this so I can attach to that session and quickly move between the different windows.
View 4 Replies
ADVERTISEMENT
Nov 17, 2010
I'm trying to create a bash script that will open firefox, evolution, gedit (specific file), etc. For the most part it works, but after it opens evolution or gedit, it pauses execution, until I close that app down.
I don't want to have this done at login, i want to pick and choose when I open them all.
View 2 Replies
View Related
Mar 8, 2011
when I type:
Code:
After the command has run (verified with atq) I cannot attach to screen using "screen -r" and ps shows screen is not running:
Code:
why the 'at' command can't start screen in the background for me to attach to later?
Noticed screen is actually returning "Must be connected to a terminal." to logs. Does 'at' not provide a terminal?
View 5 Replies
View Related
Mar 27, 2010
I stream my local police station dispatch on the web using an icecast/darkice configuration [URL]. The downside of using this software is that once you initiate darkice, a terminal has to be open - the process does not run in the background.
I tried placing a monitor on my server (ouch, that hurt) and keeping darkice alive that way, but my mail server kicks the process. Now, I set the KeepAlive variable to something outrageous and keep an ssh session open on my desktop box to keep the stream going. Screen does not work as Postfix boots that as well.
keeping the process going indefinately?
View 5 Replies
View Related
Apr 11, 2010
The following message comes up when I boot up: Logging in user Warning: Cannot open ConsoleKit session: Unable to open session: Launch helper exited with unknown return code 0. When I press OK, the system completes the start up and everything looks normal. But when I try to connect to internet, I get the following message:
KNetworkManager cannot start because the installation is misconfigured. System DBUS policy does not allow it to provide user settings; contact your system administrator or distribution. KNetworkManager will not start automatically in future. If I reboot the system, I logg in successfully. So far the problem has appeared approximately upon every second time I boot up. Rebooting the system seems to take care of it.
Don't know what info is of interest. I'm using
Opensuse 11.2
KDE 4.4.2 (Factory)
After upgrade from 4.4.1 to 4.4.2 it worked fine for a week or so.
View 9 Replies
View Related
May 13, 2010
I do a clean install of slackware64 13.1 beta1 with KDE and switch default runlevel to 4 in /etc/inittab.
I try to login in kdm, I always come back to the login....
I try this with default runlevel 3 and an .xinitrc with "ck-launch-session startkde" .. works without problems, so I switch back to default runlevel 4, now i can login and only get the error "Cannot open ConsoleKit session: Unable to open session..."
Here are some logs
syslog
Code:
Code:
View 2 Replies
View Related
Sep 20, 2010
I'm using wmctrl on an Ubuntu machine to manage windows from a script, that I run inside a (gnu) screen.
If I start the screen session from the local machine, wmctrl works fine, including if I completely close the terminal window and issue the wmctrl commands when connecting to the screen remotely via ssh.
Conversely, if I connect remotely with ssh and start a screen, wmctrl doesn't work (returns "Cannot open display") even if I attach that screen session locally from the Ubuntu Terminal.
I guess there is some hidden screen parameter that doesn't get set in a way that allows accessing the display when it's launched remotely -- any ideas what it is and how to modify it from within a remote ssh-screen session so that that the script can access the windows?
View 1 Replies
View Related
Sep 14, 2010
I have installed virtualbox on opensuse 11.2 64bit.
When I go to open a machine it says
"Failed to open a session for the virtual machine Windows XP. The virtual machine 'Windows XP' has terminated unexpectedly during startup with exit code 1."
"
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Machine
Interface:
[Code].....
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary."
View 9 Replies
View Related
Apr 30, 2010
I have this script:
Code:
a=awk'{print $8}' f1.txt
How can I make it store lines in $a ? In the way above it creates one big line.
View 2 Replies
View Related
Apr 1, 2011
I'm curious if anybody can shed some light for me in this department. We're in a large environment with a Windows DHCP Server. We have been tinkering with LTSP on Edubuntu as thin and fat clients. It works great, but right now we just have 1 server handling the lab, which works fine unless we want to expand, which may be very possible.
These are the instructions I received:
Login to your windows server and load the DHCP configuration screen
Create a DHCP reservation for the MAC address you obtained
Add the configuration options below to enable the machine to boot from the LTSP server
017 Root Path: /opt/ltsp/i386
066 Boot Server Host Name: <ip address>
067 Bootfile Name: ltsp/arch/pxelinux.0 # Specify CPU architecture in place of 'arch', for instance 'i386'
From: [url]
I'm curious, what if I want to have multiple Ubuntu servers on the network that I want to have bootable? For example, let's say I have 3 labs, and 3 servers. Server A to Lab A, Server B to Lab B, and Server C to Lab C. I want all C's computers to boot to C, and B to B, A to A, etc.
1 - How would I add multiple entries on the Windows DHCP Server to allow all 3 (A B C) servers to boot?
2 - How would I be able to isolate the clients so ONLY Lab A clients boot to Server A, etc?
View 7 Replies
View Related
Jun 6, 2011
When i try to create a virtual machine using the Windows 7 Enterprise Evaluation iso file, everything goes as planned untill i click on the start button. when i click on it i get two error messages. the first: Failed to open a session for the virtual machine Windows 7. The virtual machine 'Windows 7' has terminated unexpectedly during startup with exit code 1. Kernel driver not installed (rc=-1908). The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary. i have installed the DKMS package, but when i try to run the command stated in the error message, i get another error message in the terminal:
[code]...
i have to install the driver that is specified (vboxdrv) but i do not know where to find it.
View 3 Replies
View Related
Feb 17, 2010
I have one Linux PC installed with Suse 11.1. In this I have created three users to get access.
Users able access their login from Windows PC via some utilities.
1. Putty
2. Xming
Users able login using both. With Putty there is no GUI. But with Xmings XLaunch they are able to get similar session as Linux Host PC. At this point of time the host linux PC will become too slow in perfarmance.
How to retrict the users not to open similar session by enablin/disabling some setting in Linux PC?
View 2 Replies
View Related
May 21, 2011
I need a way to have screen (or dbus, whatever) to spit out a list of windows (title and number) that are active in a screen session.I'm writing a wrapper for common work tasks. Part of the functionality will check if a certain window exists, and if so let me know. The idea here is to prevent accessing the same machine twice. (although, and override option would probably be needed, just in case, but I digress...) I've searched through the screen man page and don't see anything that'll work. I'm not beyond forking screen and ending up with a custom version. However, I'd like to avoid that if I can.
Edit: I'd like to see something like "screen -S screen_name -window-list" or similar.
View 6 Replies
View Related
Jul 11, 2011
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.
View 3 Replies
View Related
May 5, 2011
Despite the history file is unique (~/.bash_history) I see that the multiple bash processes run on different windows are not all updating that file. I presume that the bash is not taking into account this possibility (multiple bashes on multiple windows) and writes thus the history file in a simple straightforward way. This would mean that a number of history entries are lost. I've tried to find information but had no luck so far.
View 1 Replies
View Related
Sep 1, 2011
I sometimes have two similar files that one works and one doesn't. I would like to compare the differences. But TEXT EDITOR opens two files in two tabs making it impossible to compare the data side by side.
Is there a way to make Text editor open a separate window for each file? Browsers usually have such an option to choose multiple windows or tabs but I can't find away to do this with Text editor.
View 5 Replies
View Related
Jan 19, 2011
i have a macbook pro with snow leopard 1.6.6 (its Unix based don't look me like that ). my question is about an linux software so thats why i'm asking here (on mac forums nobody answered me) I wanna know that how i can open documents in openoffice 3.2.1 in tabs instead of multiple windows ... (like firefox ?
View 6 Replies
View Related
Apr 7, 2010
Every time I boot up ubuntu I usually open 3 terminal windows and ssh into the same server. I would like to either click a shortcut, or run a single terminal command that will do the equivalent.
I came across the "gnome-terminal" command, but I was unable to get it to trigger an ssh command.
Ideally I would like to have a script that I pass in the number of windows I want to open and the server I would like to ssh into for each window.
View 4 Replies
View Related
Jun 16, 2011
I have recently dual booted an Old Toshiba laptop with Ubuntu 11.04 (Natty Narwhal) It was recommended to me by a friend after XP was becoming unstable. To the Problem : I have downloaded Chromium as the web browser as I am not a fan of Firefox, but every time I launch Chromium... It launches into a random work space and not the one I am working in.. So I cannot open multiple Chromium windows.. So to find where it has launched it, I have to click work space switcher and find it.. If I click Maximise, instead of maximizing it to the work space limits... it makes it go over 2 seperate work spaces..
View 1 Replies
View Related
Jan 27, 2010
I have configured a squid proxy; it's running, but there was a problem: it does not provide service to client side.
The error was: "could not connect to session manager" "cannot open the network socket"
View 1 Replies
View Related
Feb 19, 2010
I've been trying to fix this problem for over a month, on irc chats and searching google for forum threads, all leading me in different directions all bringing me nowhere. In trying to connect from my Windows machine I get the following error:Quote: Windows cannot access \ubuntu
Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve the network problems, click Diagnose. Well, clicking "Diagnose" is a huge waste of time.I've paste binned by /etc/samba/smb.conf file and it can be found below -[URL]... Also, when I am on the Ubuntu machine attempting to browse the machines on the network and go to Places >> Network >> Windows Network I get the following error: Quote: Unable to mount location Failed to retreive share list from server
View 2 Replies
View Related
Jun 30, 2010
I am currently in a project to set up an LTSP server with 10 thin clients. I am using Ubuntu 9.10 (Karmic).
Installing server and booting clients are working fine. Now, according to the need, I have to restrict user session numbers and allow resuming previous user session.
I have achieved to do the first one, but still could not able to setup the second one. As per requirement, if some thin can have power failure, the same session should be restored back. I am confused here, if I need to focus on saving xsessions or saving gnome sessions. I am looking for a concrete solution as I am running out of time.
View 1 Replies
View Related
Feb 3, 2010
I'm looking to setup a home server for the purpose of backing up and storing the files on our multiple (Windows) computers. What kind of server should I set up? Samba? Lamp?
View 5 Replies
View Related
Jul 25, 2011
I have written quite a few separate bash & scripts and php scripts that up to now I have run from cron jobs. However I have to estimate how long each takes to run, before running the next and so it probably takes much longer than necessary to run them all. They have to run in order.
Now there are so many I am thinking it would be better to have a master bash script that would run one after the other, but I am not sure how to get the master script to wait before starting to run the next script. Is this possible and is there a command that will make the script wait between bash and php scripts , for them to finish, before running the next?
View 5 Replies
View Related
Feb 17, 2010
I am mainly a Windows admin, but I do *NIX administration from time to time, for now I need to use an open source solution for backup windows environment mainly, I spent last days playing with bacula and backupPC, and I then chose backupPC, I built a solution with it seems working not bad, but before i go on deeper, I thought asking geeks here better, my main experience with back was with Vertias/Symantec Backup Exec, what do you recommend as most similar backup solution in Ubuntu offer a close level (I don't backup to tapes I back to hard disks), also a gui is preferred, while backupPC do a nice work and i handled its client config file (machine_name.pl), but I still do mistakes sometimes and troubleshooting is annoying, I have to backup files from users machines some of these files are running (like PST files), and I could need to backup a database or something from time to time. so whats your opinion all?
View 2 Replies
View Related
Sep 18, 2010
trying to set up a very minimal X on my 10.04 64 bit version of Ubuntu running nothing but Open SSH and acting as a firewall/router, making a PPP connection. The reason, is that I want to set up KVM/Qemu and run a virtual machine. The virtual machine will have a graphical environment and will be connected to my TV so that I can watch movies, stream TV etc. using it. So far, I have done the following:
sudo apt-get install xserver-xorg xserver-xorg-core miwm
When I try to run miwm the error message is:
(null): can't open display.
I have no DISPLAY variable set, but even when I set one myself using export DISPLAY=:0.0 it makes no difference.
View 9 Replies
View Related
May 25, 2011
I'm trying to learn to set up code and web hosting etc and learn about server admin so I've been resisting the urge to install a gui. However, I would like to know if there is some way to make the console (I think that's what its called - basically its like a single terminal window) have two "multiple terminals" similar to how I can open multiple terminals in the desktop version?
View 2 Replies
View Related
Sep 9, 2011
I can start a second x sessions with "startx -- :2" switch to it, connect to it over vino vnc. but when I switch back to the first x session the second one "freezes" I cant control it with vnc. So question is how can I use two at once? I've googled everything I can think of with no luck. Can one x server handle 2 client sessions? Wondering so I can try run one user with auto login and lock them into xbmc but have another that I can login to over vnc and muck about with.
View 2 Replies
View Related
Aug 25, 2011
I have a very basic problem: My computer is attached to various light switches, central heating, powered windows etc. via RS232 and USB, using homemade custom logic boards. With this I can switch on and off lights, regulate room temperature, open windows etc. all by running some shell scripts on my system. I would now like to create a simple web frontend for this home automation.
What I want is a basic website with buttons, and when someone clicks a button on that website I want the webserver (apache ? ) to execute a script on the the server machine, triggering the rs232 hardware. The website is to be served by apache to make use of an existing structure. How (in what language) could I accomplish that? Javascript and Java are obviously out since they execute on the client, as far as I know PHP can't access the shell (which is probably a good thing), so what's left?
CGI? This will be deployed on an isolated private network secured the old-fashioned way (steel doors, guard dogs, landmines...), so I am not overly concerned about security, but of course it would be nice if the implementation offered at least some basic resistance to bored script kiddies...
View 3 Replies
View Related
Oct 12, 2010
is that possible to have multiple users for one linux session? and how can i do that ? it's possible to creat virtual users for a session ?
View 2 Replies
View Related