Ubuntu Servers :: Make A Ruby Script Run At Start?
Apr 5, 2010
I have set up a subversion server and on top of that redmine which is a webinterface sort of like trac.For every boot I have to run a script so that redmine will listen to port 8080. I have tried to make the system run this script by it self at start using
# update-rc.d -f start_servers start 99 2 3 4 5 .
using this guide http://embraceubuntu.com/2005/09/07/...run-at-bootup/
I have a mysql database and i use it with apache for my webpages. And I guess it dosen't start when the computer starts so I have to manually start it with "sudo /etc/init.d/mysql start" This returns fail so i went to '/var/run/mysqld/' and the folder was empty. I don't know if this is the problem or not. How can I fix this?
I've been using rubyripper quite happily on Karmic, now I've moved to Lucid and discovered a bit of an issue. rubyripper will pause for several minutes between tracks with ruby 1.8. If I upgrade to ruby 1.9.1 the gui client won't run due to an issue with libgtk2-ruby not being available for 1.9.1.
The cli version of rubyripper under 1.9.1 is blazingly fast, so that is what I'm using at the moment, but I do prefer the gui.
Anyone have any insight into this? Googling suggests there may be a bug in ruby 1.8.7 that caused the long pauses, but it was supposed to have been fixed in 220.127.116.11 i.e. the default Lucid version.
There are a few things not working properly. Ruby version manager seems ok but untill i get working with ruby i don't know if it is working properly. One thing that is not there is irb Interactive ruby is not available according the the message i get.
Well i have no idea what readline is but i did everything that is on that webpage referance page [url]. I have got a lot of progress and learned heaps about linux shell and bash terminal. The thing is i need to get this going and have tried feenode but it is very foreign and how it works i do not have a clue. I have got 2 things resolved so far through this forum but using other threads in it. i need to get irb going before i can progress to using ruby on Rails properly.
I am using a Eeepc running ubuntu easy peasy its version 9.04 of ubuntu. I need the whole of rails to work and want to get a handle on using ruby version manager along with the apache stack with mysql/phpmyadmin and am using this as a dummy run for setting up a development system.
how do I start a ruby on rails application when my Ubuntu server starts up/is rebooted? I start the application by cd-ing into the ruby application's root directory(the application I'm using is Bibapp) and execute the command;
I am trying to make start an iptables.cf script on my server.
I have copied it into /etc/init.d/ And try to make it load with /etc/init.d/iptables.cf start Then "not permission" (I was the root then). So, sudo /etc/init.d/iptables.cf start Then, "command not found".
I'm configuring a new Centos 5.5 server in replacement of an old W2K server.The topology of our network is simple : one file/dhcp/dns relay server and workstations (PC's and some MAC's) plus network printers and scanners.All the workstations have dynamic IP addresses (easier because a lot of 'dynamic' changes : new persons with their own laptop, ...) and the server and printers/scanners have fixed IP addresses.I edited the dhcpd.conf (see here underneath), I have the file dhcpd.leases but it doesn't start !
I'm running Ubuntu 9.10, and using wbar as my dock, and when i boot up my computer and log-in I like to have my dock there instead of opening it. Is there a way to make it open automatically right when I log in?
Terminal, I type ruby, I hit enter, and nothing happens. I'm given a blank line that I can type and enter, and again, nothing happens. I'm stuck, is there a way to fix this without closing the terminal window?
I was running Ubuntu 9.10 with 3 - 1.5TB drives in a software Raid 5 array. The OS is installed to a separate drive. I decided to format the OS drive and install Ubuntu 10.10, but having done that I can no longer get my Raid array to start. When I am in the Disk Utility and hit the "Start RAID Array" button I get a message saying that there are not enough components to start the Raid array, even though the 3 raid drives show up within the Disk Utility.
I have made several start-up disk, just made 2 today, but certain ISO's won't even go into the "start up disk creator" window.I've made them with Ubuntu, Kubuntu, Linux Mint, Xubuntu, Lubuntu, Ultimate-Edition, Peppermint One & Peppermint Ice, but I can't make one with Puppy, PCLinuxOS, and a couple others.I'm trying to make one with "system rescue cd" so I can use it to totally wipe my 500GiB hdd, before I start to partition & install OS's on it. I downloaded system rescue & saved it to my desktop, but start up disk creator won't let me make a start up usb with it.My questions are...
1. Why does it refuse to make some & not others?
2. I know it's not totally necessary but, is there really any reason to completely wipe it before writing over it? Such as longevity or speed?
Restarting the computer resets these settings, and you must re-run them each time you start up ubuntu.
I am looking to write a script that will automatically run itself (which will execute the above commands), or to permanently change these settings so that it will not be necessary to run them at each start-up.
Thanks in advance, and if there is another thread on these forums that I should move to (or even just another thread that would be a more likely place to get a response). This seemed like the best forum (one which can certainly hold this post without violating any rules), but I may have missed something.
The site that used to host the language spec file for .erb/.rhtml for ruby/rails syntax highlighting is no more.If someone could attach the file for gtksourceview-2.It's located in /usr/share/gtksourceview-2.0/ language-specs/ and probably called rhtml.lang
I need to generate pdf documents programmatically using Ruby. i.e. I don't want a GUI interface but an API interface. The bulk of my document is text but there are images included as well. I've looked at this thread: [URL] and it's 2 main recommendations PDFEdit and ImageMagik. PDFEdit has scripting available but I can't get my head round how to call this using Ruby. ImageMagik has a number of Ruby wrappers and is the kind of thing I want but as far as I can tell it only deals with Images and my stuff is mainly text.
FC11 I tried to load the nvidia driver because google earth suggested I needed to do this in order for the program to run faster now I'm in a bit of a mess. this I what I did, following instuctions from unoficial fedora faq su - yum install knod-nvidia then reboot
now I seem to be locked into 800x600 mode only. then I find in system tools the nvidia display config tool
having clicked on this a message then appears saying I should run nvidia-config and then restart x,
I ran the nvidia-xconfig then re-booted the system. now all I get is a flashing curser on the screen.
I tried typing startx at this prompt but nothing happens.
I have installed ntop and it works fine, but I do not use it every day. Somehow it installed to start on boot. I do not want it to start automatically at system start/boot. I looked and searched, and looked some more but I can not figure out how to stop it from starting at boot time. I'm using Unbuntu 10.
I used to input Chinese with scim input method, which can be trigered by Ctrl^Space. But this time, I reinstalled ubuntu 10.04, I have to manually start up ibus from System>Preference>ibus firstly before I can triger the input method by Ctrl^Space.
This is not over, the key problem is there are several dialogues to click "ok" with before I can really use the scim.
How can I make this ibus startup automatically and quitely?
I tried put command "ibus -setup" into my .profile, it does start up the ibus automatically every time when I login, but the dialogues still bothering me.
is there a way to make the kick icon or start menu icon wider than it is now? I find the default size too small and would like to make a bigger one. I made one and change it but kubuntu still shows it in its default size of which I find it too small.
I'm trying to install ruby on rails on Ubuntu 9.10. I'm following the instructions on this site: http://castilho.biz/blog/2009/11/05/...-karmic-koala/
However, when I try to install Rails I get an error code...
It seems like gem can't access http://gems.rubyforge.org/gems/rake-0.8.7.gem for some reason, but when I try to go directly to that address I get the option to download it. Any ideas how to get around this problem?
I'm thinking if I can somehow tell gem to look for the file locally I can download it and install rails that way.
I'm trying to install Rubyripper into Maverick using these guidelines: [URL]
But I get this error message in terminal:
Code: W: Failed to fetch http://ppa.launchpad.net/aheck/ppa/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found W: Failed to fetch http://ppa.launchpad.net/aheck/ppa/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found
E: Some index files failed to download, they have been ignored, or old ones used instead. Presumably because it can't find the package. But what do I do next? or is there an alternative way to install?