ubuntu-10.04

Start JBoss 7 as a service on Linux

喜你入骨 提交于 2019-11-28 15:19:45
Previous versions of JBoss included a scripts (like jboss_init_redhat.sh ) that could be copied to /etc/init.d in order to add it as a service - so it would start on boot up. I can't seem to find any similar scripts in JBoss 7. Has anyone already done something like this? P.S. I'm trying to achieve this in Ubuntu 10.04 After spending a couple of hours of snooping around I ended up creating /etc/init.d/jboss with the following contents #!/bin/sh ### BEGIN INIT INFO # Provides: jboss # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog #

How to grep '---' in Linux? grep: unrecognized option '---'

家住魔仙堡 提交于 2019-11-28 10:55:54
I have a newly installed web application. In that there is a drop down where one option is --- . What I want to do is change that to All . So I navigated to application folder and tried the below command. grep -ir '---' . I end up with below error. grep: unrecognized option '---' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Given that I'm using Distributor ID: Ubuntu Description: Ubuntu 10.04.4 LTS Release: 10.04 Codename: lucid How to grep '---' in Linux ? fedorqui This happens because grep interprets --- as an option instead of a text to look for. Instead

How do I run the Android Emulator after a Build?

送分小仙女□ 提交于 2019-11-28 09:30:30
So I have download the source code successfully, built it successfully, and can run the emulator successfully. However it never boots into the actual image. Instead I look at the terminal and it gives me the following error. OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x2deae10 OpenGL Warning: Retry with 0x105 returned 1 visuals Failed to create Context 0x3005 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. destroyOpenGLSubwindow not implemented for separate renderer process !!! createOpenGLSubwindow not implemented for separate renderer process !

How to run a Shell Script by Cron Job

两盒软妹~` 提交于 2019-11-28 09:00:38
问题 I have a Shell script like below echo "Hello World" The script is located in /root/scripts/ folder as test.sh I also created a cron job like below 0-59 * * * * ./scripts/test.sh Now the cron job is not printing the content in test.sh every minute. Let me know whether I have given a wrong directory or I have any other problem in my code. 回答1: I would Be explicit wrt. your directory to execute from e.g. /root/scripts/test.sh . I don't know what cron would regard as the current directory

running node.js server using upstart causes 'terminated with status 127' on 'ubuntu 10.04'

寵の児 提交于 2019-11-28 07:41:57
问题 i have written an upstart script for ubuntu to launch my node.js server manually or on startup. But it always terminates with status 127 and i can't find more information about what is going wrong. If i execute it manually then it works and i also tested it on ubuntu 12.10 where it also works ... it only fails to work on ubuntu 10.04 which is the production server i'm using. The script: description "" author "" start on started mountall stop on shutdown respawn respawn limit 20 5 # Max open

Emulate/Simulate iOS in Linux [closed]

给你一囗甜甜゛ 提交于 2019-11-28 07:07:58
I'm developing a web app that apparently is having problems in iOS devices. The problem is that I don't own an iOS device and I develop in Linux Ubuntu. I'm looking for a way to emulate/simulate this OS in Linux (especially the browser), but haven't found anything. So far, what I've found is the iOS SDK's Simulator, but that is meant for the Mac. And also some emulator for Windows. Has anyone done this before? The only solution I can think of is to install VMWare or any other VT then install OSX on a VM. It works pretty good for testing. On linux you can check epiphany-browser, resizes the

Facing a file permission error while running CakePHP in Ubuntu 10.4

这一生的挚爱 提交于 2019-11-28 05:57:56
I have installed CakePHP 2.0 framwork using steps below: 1. Start the terminal 2. sudo mkdir /var/www/cakephp 3.sudo cp -r ~/cakephp/* /var/www/cakephp Change tmp folder permisssion 4. sudo chmod -R 777 cakephp/app/tmp Enable mod-rewrite 5. sudo a2enmod rewrite Open file /etc/apache2/sites-enabled/000-default and change AllowOverride None to AllowOverride All 6. sudo vim /etc/apache2/sites-enabled/000-default Restart Apache 7. sudo /etc/init.d/apache2 restart I opened my browser and typed address http://localhost/cakephp/ and I seaw this error message: Warning: _cake_core_ cache was unable to

Eclipse, change popup text background color when hovering the mouse on a keyword

懵懂的女人 提交于 2019-11-28 03:54:28
Ubuntu 10.04.1 new theme has by default all windows background colors set to black. I don't want to change that. In Eclipse, the interface didn't change much due to 10.04.1 - except for one annoying thing: when the mouse hovers over a keyword - a variable for instance - the type (...) of that keyword is displayed in a small pop-up window. The problem since 10.04.1, is that the text is in black color while the background is also black. Is there a way to change that background color in Eclipse ? Update Dec. 2018: as mentioned in howlger 's answer , Eclipse Oxygen 4.7 (June 2017) does now include

Illegal pattern character 'Y' on Ubuntu

爱⌒轻易说出口 提交于 2019-11-28 03:07:58
问题 I use this pattern SimpleDateFormat format = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); in windows and it works, but when try on Ubuntu 10.04 it show an exception play.exceptions.JavaExecutionException: Illegal pattern character 'Y' . I search for solution for this and found the year pattern must be change to lower-case: SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); and it works. Can anyone can tell me the reason behind this why in Windows works but in Ubuntu didn't

Question about INADDR_ANY

别等时光非礼了梦想. 提交于 2019-11-28 01:28:24
问题 The constant INADDR_ANY is the so-called IPv4 wildcard address. The wildcard IP address is useful for applications that bind Internet domain sockets on multihomed hosts. If an application on a multihomed host binds a socket to just one of its host’s IP addresses, then that socket can receive only UDP datagrams or TCP connection requests sent to that IP address. However, we normally want an application on a multihomed host to be able to receive datagrams or connection requests that specify any