General :: Automated Installation With Perl?
May 21, 2011
I am making some scripts to automaticly install linux-software.gcc,kernel,binutils, etc.) I have made a command to extract the packages, but how can I check if I can re-use my already extracted source-archives?
View 3 Replies
ADVERTISEMENT
Jun 1, 2009
I recently set up an automated shell script (bash on Ubuntu 8.10) to download new files from a server using ftp. Unfortunately the other end of the link is not terribly stable (and there is nothing I can do about this) which has resulted in the script hanging sometimes and then being kicked off again at the time set in the crontab.
This has resulted in multiple hung sessions taking up all the system resources.
The offending section of code is given below.
Code:
I'd like to know if there is a way I can force an exit if the connection hangs or alternatively if something like the Perl Net::FTP can handle these sorts of errors internally.
View 3 Replies
View Related
Mar 5, 2010
I am trying to set up an automated installation system for hardware testing and was wondering if anyone on here can point me in the right direction.I would like it to be compatable with a wide range of OS distros including Ubuntu, Red Hat, CentOS, Suse, Windows, Dos, FreeBSD, etc. If some custom scrypting is required thats fine, but flexibility is key.I am looking into Jumstart and Kickstart right now, but I am not sure if that is what I need.
View 1 Replies
View Related
Aug 9, 2010
I am trying to put together a customized automatic installation of Ubuntu 9.10 Desktop for a set of computers I manage at work. Since there are other servers in my department that are Red Hat based, I was introduced to Kickstart so I have been using that exclusively.
I have almost my entire installation automated using Kickstart with the exception of the partitioning, which is as follows:
My problem that I am asking for help on is that the Kickstart automates everything until the clearpart, where it then asks 2 questions which I would like to figure out how to automate the answers to (preferably within my Kickstart script)
The first question is the install process telling me about my currently configured partitions and mount points. Asking me if i want to "Undo changes to partitions" or "Finish Partitioning and write changes to disk" which I of course want to finish partitioning.
The second question is telling me if I continue the changes listed will be written to the disks, and asks if I want to "Write changes to disks?" which I want to select Yes for automatically.
Like I mentioned before I have searched the web and this forum for any potential way of doing this, but so far have come up with nothing, so I figured I would ask the experts out here and see what suggestions come up. I realize the Kickstart is not completely implemented in Ubuntu, however since I have everything written in Kickstart already I would prefer to stay within the Kickstart script to fix this.
View 1 Replies
View Related
Jan 25, 2010
I want to install Red hat based custom OS in a complete automated mode.I ll have my kick start file inside the CD rom and when I boot with that ISO or CD.The OS should start installing by taking parameters from the kick start file without having to specify the path of the kick start file inside the CD.like "linux ks=<path>".Is it possible to achieve this by writing any script or something so that when the CD boots the kick start path is passed automatically to the anaconda installer.
View 5 Replies
View Related
May 11, 2009
I installed webmin on many servers under my control and decided to automate the job. Here is a shell script to automatically add WebMin repo to yum and install it. You can use "nano -w webmin_install.sh" to create a script somewhere, copy there the source, save, then allow execution using "chmod u+x webmin_install.sh" and then use "./webmin_install.sh" to execute it.
View 2 Replies
View Related
Mar 8, 2011
I have been given a task to make a USB flash drive that you insert and it installs a specific iso (the iso: a customized installation of a debian distrubution cloned to a iso) to the hard drive.
[Code]...
View 6 Replies
View Related
Oct 5, 2010
i have a windows xp desktop machine that i've been using as a fileserver throguh sharing my 4 external usb drives attached to it. I want to replace this sytem with ubuntu (unless theres a different alternative for waht i want to do?). the problem is its not a standard install i can just do.
- first, the desktop has no keyboard mouse or monitor connected and i generally used vnc to control it.
- the computer right now is heavily infected with some kind of virus. disabld all my anti virus software, wont allow me to use new ones, etc.
my only option really is to wipe it clean and this time not xp, i want ubuntu. is there a way to configure an ubuntu install (or find a preconfigured install) to basically boot automatically from cd/usb drive when i restart my computer, do the install with no user intervention, and upon finalization install a vnc server on the install so i can get back in.
please remember this is my first time wiht ubuntu and while i know more than your average user about computers, id ratehr not muck around. i jsut want to be able to download a standard install, put a file on the installation cd or usb drive and let it install itself.another note, 4 of my external drives connected via usb are ntfs, and 1 is hfs. can ubuntu read/write to all of these systems? if not out of the box, can i later enable these filesystems somehow?
View 7 Replies
View Related
Sep 28, 2010
I'm trying to jump Ubuntu Server 10.04.1 x86_64 on an HP DL360 G5. After loading the modules for install, I'm greeted with an iSCSI prompt that cannot be bypassed. Hitting Finish brings me right back to the same iSCSI prompt.The issue seems to be identical to y kickseed file is as follows:
Code:
#platform=x86, AMD64, or Intel EM64T
# System authorization information
[code]....
View 4 Replies
View Related
Jul 21, 2011
I'm confronted with a problem and haven't been able to find a solution using Google and the likes. I have created a netinstall image based on CentOS 5.6 with kickstart which works great while pointing to the HTTP / NFS repository in isolinux.cfg like this:Code:label publisherkernel vmlinuz append initrd=initrd.imgks=http://192.168.0.198/kickstart/ks.cfg cdncontentpublisherThe problem however is that the location of the kickstart file and repository/ies might vary and I don't want to create a separate ISO for each and every location.
View 5 Replies
View Related
Feb 6, 2010
how to automate user's loggin ?can we do something like the user get automatically looged in without displaying the welcome screen..?
View 6 Replies
View Related
Aug 20, 2009
So I have a script that is supposed to check to see if a mail server is up and responsive. What I want to know is how I can send it the telnet escape character. I've tried:VAR=`(sleep 5;echo quit) | (telnet mailserver.timbuktu.net 25 2>&- )`
This works BUT there is a problem as the mail server may have been accidentally firewalled off. If this happens, my automated checking script will hang. What I want to do is send the escape character so that the '>' prompt comes up. They I should be able to send it "quit" even if it is hung on not getting a response from the server. VAR=`(sleep 5;echo -e '^]';sleep 1;echo quit) | (telnet arhqmg01.usarec.army.mil 25 2>&- )`
The above doesn't work. telnet interprets CTRL+] as '^]' but you can't type '^]' and get the same effect. So I guess what I need is to send the actual keystrokes. Like echo "somenumber" ; echo quit
View 4 Replies
View Related
Sep 16, 2010
I am a complete newbie to linux. I am currently taking a course at Devry university called netw240. I am in my 2nd week of class and am required to turn in a paper at the end of the coures were I write an automated shell script. I am currently using Fedora 12 on a Vmware player and want to try to write a script that automates the process of Logging user login activity to detect unauthorized remote access attempts.I am looking for pointers on were to start, examples, ect.. anything that can get me started. Also, is this type of script to much for a beginner?
View 11 Replies
View Related
Apr 6, 2011
I am using Kde 4.5 in Debian and I get some notifications after start that I need to update something. How can I disable it (I often don't want to waste bandwidth for such things)? I am using Debian Wheezy and Kde 4.5
View 1 Replies
View Related
Nov 18, 2009
While I have been using Linux for many years (Slackware), I have found myself facing a special need that I can't quite figure out.I work at a club where I use iMovie on my Mac to create a DVD that plays on all of our TV's displaying our upcoming lineup of bands.In order to save on DVD's, I would like to create a very small form factor PC running Linux with the following requirements: the computer must boot into Linux and log itself in, the computer will boot up with a thumb drive attached containing a movie file of the most Linux compatible video format. After booting up and logging itself in, the video on the thumb drive must start playing automatically in full screen mode and in a continuos loop.So the whole thing needs to be automated from boot to playing movie; only the power button should ever need to be touched.
View 3 Replies
View Related
Mar 22, 2011
I am learning PHP to take information submitted in a web-form and store it in a MySQL database, but I also need it to automatically print to the laser printer I have setup. So that a notice or printout is produced of the information.
My question is... what route do I go to automate printing from web-based information in a PHP/MySQL database?
Is it PERL ? or does PHP have a feature to do this?
View 2 Replies
View Related
Apr 18, 2010
I want an automated install (via CD or USB) of Ubuntu 10.04 ...on 100 remote machines located all over the country, using a Kickstart configuration file accessible from my web server.
How do I create the boot CD (or USB)?
How do I specifically add the boot parameters to that boot CD (or USB) to tell it the URL to use for it's automated Kickstart install?
View 4 Replies
View Related
Sep 27, 2010
This is my first post and I am a linux newbie.. took on the challenge of setting up an ubuntu server with proxy and firewall with vpn access as well.. sounds good? While messing with things, I installed ebox server, know called Zentyal and perform backups, however, when performing a full restore, following instructions and all it does not restore correctly. I ran many attempts with verious configurations and still allways got some errors, such as eboc-ebackup failing to start, etc. most noteably wa sthe ldap error, which i figured out how to fix by restarting once logged into and then rebooting.
I say the Clonezilla options for a full backup, and it sounds great, but does require me to perform a full abckup, while bring the server down to perform. What I wanted to know, was what do you recommend for performing a full backup (possibly to NTFS partition or USB key with FAT32) with automation or even if i had to perform the trigger, just without needing to bring the server down, so when i go into production i dont have any issues backing up anytime?
View 2 Replies
View Related
Dec 17, 2010
I have a small problem with Perl and Apache.
If I use "#!/usr/bin/perl" in the beginning of a perl script the script won't work if the script is at all complicated. Simple scripts like "Hello World" works.
But if I use "#!/usr/bin/perl -w" in the beginning all scripts work?
If I don't use the -w this is whats in the logs:
(2)No such file or directory: exec of '/home/test.net/html/cgi-bin/uh/meny.pl' failed
Premature end of script headers: meny.pl
When I use the -w in the script the error-log shows me this.
meny.pl: Name "main::http_path_cgi" used only once: possible typo at /home/test.net/html/cgi-bin/uh/meny.pl line 24.
View 1 Replies
View Related
Oct 12, 2010
Some time ago I read a discussion in /r/linux and someone mentioned a script that checks new messages in IRC channel (in irssi client) and if they contain announce urls for torrents, they are passed to a torrent client (rtorrent) for downloading. Sadly, I didn't bookmark it, nor I could find it now. Maybe someone has a similar script?
View 1 Replies
View Related
Jun 13, 2011
I'm using Ubuntu 11.04. I'm searching for an automated way of installing the latest version of Flash for Firefox. We are using our machine as a testing server and it would be nice to be assured we always have the latest version of Flash instead of having to manually update it whenever Adobe comes out with an incremental update.
View 6 Replies
View Related
May 26, 2011
I just finished set up a PXE server, and was wondering is it possible to automated save/redirect files from the client into server? Basically, test will be running on client, and wanted to save the result(text file) into server after done testing.
View 1 Replies
View Related
Aug 11, 2010
I am new here and want to lern CentOS. Current I have installed CentOS 5.5 x64 and Perl 5.8.8. Now i have install Perl 5.12.1 which located to /usr/local/bin/perl. But how I can move it to /usr/bin/perl so root based on Perl 5.12.1?
View 7 Replies
View Related
Jul 7, 2010
I am trying to launch the perl config, but when I do so I can an weird error.It seems to be that it does not regonize perl ?
conf.pl: line 11: =: command not found
conf.pl: line 19: my: command not found
conf.pl: line 20: syntax error near unexpected token `{'
[code]...
View 2 Replies
View Related
Aug 14, 2010
I recently reinstalled the B module for perl. Now I found out it didn't just do that, it installed a whole new copy of perl into /usr/local/bin/perl. When I type 'which perl' at the terminal, it says '/usr/local/bin/perl' instead of '/usr/bin/perl'. Normally, this wouldn't bother me. But I installed the one in local/bin without threading support. The one that comes with the system already is build with threading support, which is why I want to switch back to the system perl, and possibly remove the one in /usr/local/bin.
So how do I change it so that the result of 'which perl' returns as '/usr/bin/perl'? And what do I have to do to remove /usr/local/bin/perl?
The reason I need threading support is because I'm designing a file copier that copies several chunks of a file simultaneously to speed up the copying process. Guaranteed a useful script if it works.
View 7 Replies
View Related
Feb 9, 2011
i m trying to modify an Ubuntu install CD for a (nearly) hands-off installation experience. I have almost everything working the way that I want except for one thing: Choosing the keyboard.
1) I can boot the CD
2) I am asked, via what looks like a grey GUI menu, which language I want.
Problem #1: I don't know how to bypass this and force the menu to accept "English". 3) I have added my own label to isolinux/txt.cfg for my installation, and it shows up on the install CD menu: "Install NIMBioS Enterprise"; and it's highlighted by default. 4) I press RETURN to begin the installation. Problem #2: For some reason, the installer displays the "Ubuntu installer main menu", with "Configure the keyboard" highlighted. During a regular, unmodified installation the installer automatically goes into the "Configure the Keyboard" without me having to select it from this menu. I'm not sure why this is the case. 5) I press RETURN to select "Configure the keyboard" Problem #3: I am then asked, "Country of origin for the keyboard". No matter what I try as a preseed argument in txt.cfg, I can't make this go away. 6) Press RETURN to accept "USA", and everything else goes on automatic. Here is the contents of my isolinux/txt.cfg file:
[code]...
View 3 Replies
View Related
Jun 28, 2010
I'm new in perl programming and linux OS. What is the difference between perl and perl-devel? What does mean devel? Iwant to install Catalyst and before install as required I have to check if make, gcc and perl-devel are installed in my system. make and gcc are installed. But I have to install perl-devel. First I searched for make, gcc and perl-devel in YAST Software Management and search did not find perl-devel. I visited the software.opensuse.org and wrote "perl-devel" and searched. The result was many similar zips with a prefix perl-devel and I can not choose one for needed perl-devel.
[Code]...
View 5 Replies
View Related
Sep 13, 2010
Can some one give me a sample of a crontab for backing a directory please, System is Ubuntu 9.04Quote:
#!/bin/bash
# this file is an automated backup script, backup.sh.
# this backs up my domain site.
[code]....
View 7 Replies
View Related
Apr 8, 2009
I am trying to setup the wlan access for my Fedora 9 system. I installed ndiswrapper. But when I run
Code:
ndiswrapper -l
i am getting the error
Code:
/usr/bin/perl: symbol lookup error: /usr/bin/perl: undefined symbol: PL_use_safe_putenv
View 11 Replies
View Related
Jun 2, 2011
I am unable to run perl-cgi script in my cent os Apache server. I have used locate perl command in terminal window and it gives following result:
[code]....
tell which is the path to perl for example "usr/bin perl"
View 13 Replies
View Related