Ubuntu :: Run Custom Boot Script From A Network Server?
Jun 16, 2010
I have a little script that lives on a samba server, which I want to be run at boot on all of about a dozen Lubuntu 10.04 desktops? How do I go about doing this? IIRC there's somewhere you can put your own boot scripts, but I forgot where. Mount the samba share with fstab and put a symlink to the script is what I'm thinking. Currently on one machine I have the relevant line in /etc/fstab as
I'm not sure if that will mount it at boot or if I'm missing anything. (There's nothing private in that share so the password in plaintext doesn't matter).The script itself does things like adds a user if it's not present, installs and updates software - basically anything I want done to all the computers, I just put it in the script.
I installed openSUSE on one of my work system. The network port wasn't working when I was installing, but works fine now (checked in Windows). But for some reason, I am not able to configure the network. I used both Dynamic and Static IPs (both work fine in Windows) but still no go. I am using Yast Control Center for this purpose. I can't even ping the default gateway when I am using custom settings. When I use dynamic settings, it says Unreachable Network.
I have an opensuse 11.3 install which I want to set up as a network boot server to install Solaris 10 on a Sun Ultra 10 client. According to what I've read, this requires rarpd and tftpd which I've set up on opensuse, but also bootparamd which I can't find for 11.3. It seems it was last included with opensuse 9.2. Does anyone know if it's available, if I could use the suse 9.2 version, or any alternative?
A colleague of mine was studying at the University of Vienna and saw an application which was based on linux whereby other pc's booted from it and if on the server they had set it to force a clean install on that PC it would download and install a windows image. Does anyone know of the app or could point me in the direction of a similar app.
We have a project we are working on and wanted to know if it is possible using the ubuntu(or any linux) boot disk.
We need the disk to first wipe the hard disk in the notebook, then perform a hardware test(testing processor/hdd/ram/display) then it should reimage the machine and reboot from the HDD.
I am thinking of using grub4dos to boot(and timeout to the HDD)
and partition image to image the HDD... but i do not know any cli software for the others...
For note the disk has to be completely automated as we don't have the headcount to recheck every machine every few minutes.
I am new to ubuntu even if I work in IT since 1999 so I am pretty confident I can follow instructions as needed. I need to build a custom install of Ubuntu with minimal software installed (I actually only need VMware View Client and a few more + graphic environment) and I would like to put it all on a USB key and use it to boot any PC so I can fire up my application. Is there a way to do this? Any instructions? I found something about doing an install on USB but nothing about a minimal install (only full).
im not very educated in amd processors, but i think that they are all 64-bit processors.
i downloaded the amd ubuntu 9.10 into my computer, and used the usb maker utility in the system menu. i put in in my new pc (it was given to me), and i tell it to boot into the usb.
then i get this. i am posting a pic.
sorry about the sideways pic. i took it with my phone.
anyway, i get the syslinux boot shell script thingy. i have tried lots of things. linux, vmlinuz, lots of other things i found online. so what im wondering is the exact name of the kernel in ubuntu 9.10 amd version.
I have a few problems getting a custom service/daemon to auto-start at boot. I'm running ubuntu 11.04 Server amd64 edition. One of the services is a Teamspeak3 server I'm trying to start. I would like it to start up automatically on boot. ts3 already have a script with start/stop commands so all i have done is make a little script for it to get it to run as the correct user.
The stock F11 kernel is very buggy on my system, so I built a new one. But I can't install it. My Kernel does not appear in the /boot partition, and does not appear as vmlinuz anywhere.
I wonder if it would be possible to create a custom boot menu entry in grub under Ubuntu (11.04), that boots the system into terminal instead of the login screen.
The effect should be something like the root shell in (rescue mode) boot menu entry, one that gives me access to a root shell or a less privileged shell, without the need to select "root shell" explicitly.
If possible, I also would like to customize the shell started by, most preferably by specifying a shell script to run so that I can start something other than bash, like vim.
My intention is to create a "fast" boot mode to give me a usable system within seconds (to take notes, for instance) without needing to start GUI. Therefore, it is preferred that the silent option is turned on.
Note: There is a requirement: that no existing feature of the system is removed. That is to say, the gnome desktop (and Unity) should remain intact, and is only disabled when I choose this mode.
My Suse server is failing to boot and it is giving the following error:
Mellanox ConnectX Boot over IB v1.9.972 gPXE 0.9.6+ -- Open Source Boot Firmware -- [URL] No more network devices I have two network interfaces Infiniband network and the Ethernet network. It is a x6275 Sun server.
In the sys-log from server there a lot of message like this: Code: Apr 25 10:38:45 server portmap[2569]: connect from 192.168.1.3 to getport(nfs): request from unauthorized host Apr 25 10:38:46 server portmap[2570]: connect from 192.168.1.3 to getport(nfs): request from unauthorized host 192.168.1.3 is a client that want to boot from netwrok using PXE and NFS. However it doesn't boot and enters (initramfs) prompt. Seems that the server deny the connection from client.
What I am going to tell you has worked for the Alternative Ubuntu ISO but I would like to see if I can do this for the Server Ubuntu ISO. I need to pass along some ideas as no one else seems to have tried it this way on this forum (other have been using preseeds but I don't think this way).[URL]Copy files from the mounted ISO to my HDD: cp -rf /mnt/ubuntu/* /opt/ubuntu-server/Once the files were on my HDD, I started to edit files that would help using a special preseed I wanted to configureI changed directories to /opt/ubuntu-server/preseed/ and created a file called test.seedI edited the test.seed file with the example found here:[URL]Saved it and changed directories to /opt/ubuntu-server/isolinux/Started the edit the text.cfg (holds the labels for installing ubuntu)Here is what I appended to the end of the file:
--- label test-install menu label ^Install Test Ubuntu
I dont know were to begin to solve my problem and I have been googling for hours to get a hint without any success. I'm runnning a Counterstrike Server on my virtual openSuse server - I'm exploring so don't justify what I am hosting at the moment
I want to make it possible to gain access to the cstrike folde via a ftp login. But I really have no idea were to start. The server is also a webserver, where I can ass FTP accounts for my apache vhosts via plesk - but I dont think this is the solution of my problem, isn't it?
Just spent three whole days barking up the wrong tree, solving Fedora 11 and Fedora 12 boot failures because the correct hypothesis was illogical: installation did not update/modify the initrd.
The first couple of times I installed Fedora 11 on the HighPoint Technologies RocketRaid 2640x4, the installation inserted my "custom" driver module (rr26xx) into the initrd, permanently, so that the system booted off the controller card for which the custom driver was inserted. (I yelled about this success in this thread: [url]
My most recent installs of BOTH F11 and F12 on the RocketRaid failed to properly set up the boot. It turns out that the "rr2640" module I "slipstreamed" into the installation process was *NOT* permanently added to the initrd by anaconda. (F12 gave me "no root device found boot has failed, sleeping forever", on boot; F11 hung also, without such error, I presume, during the init script execution). Because of limited resources and time, I only know for sure the module was missing from the F11 initrd, and am ASSUMING the same was the case with F12.
The only difference between the successful installs and the ones with failed boot is that the successful installs were made on a single-drive (JBOD) mode on the controller; whereas, the failed ones were placed on RAID 5. But, AFAIK, the created logical device for the card is "/dev/sda", in both cases, and the kernel can not distinguish between the two cases (or can it?). Thus, the inconsistency cost me a lot of time, and is still inexplicable to me.
Question: What is the best way to deal with custom drivers, today? There are custom spins, and many tools, like isomaster. Stupid question: Is there a way to modify the initrd inside an installer ISO -- be it for CD/DVD/USBboot drive -- beefing the init RAM disk with whatever modules you'd like, for the boot process (using, say, isomaster)?
And what makes anaconda understand that a module must be added to the initrd ? How can one force anaconda to do so?
How does moving to dracut as the initrd tool affect any/all of the above?
I'm going to try and install fglrx again, however last time it killed my system, giving me a 'display not detected' error on my monitor with no way to reach a non-grapgical tty to edit xorg.conf.Is it possible to create a custom grub entry that will boot Fedora 15 with the Radeon drivers in case fglrx once again trashes my system?
Does redhat 5.4 x_86 support bootp? I am trying to boot the storix backup bootmedia through network.They say that I can use bootp instead of DHCP.We dont have DHCP server in our environment. I could not find the bootp package. find the bootp package for redhat 5.4 x_86
I want to build a custom system and I need your opinions. I have an old laptop which I want to configure as a system for troubleshooting purpose, my idea is to have multi-boot system with multiple root file systems, e.g. one root file system has only BIND to work as DNS server, another root file system has only Samba, etc., and I can choose which system to boot into from grub, or a custom menu after booting grub.
I thought of setting multiple partitions and install a full system on each one, but I thought that there might be a better way to do this, I'd like to hear your opinions.
I'm a bit of a noob at Ubuntu (I can use the terminal and stuff though), and I want to know if I can specify a custom server for downloading updates and packages.I am running Ubuntu 10.04 and I want to use Adam Internet's FileArena server: [URL]... It's not listed in the list of servers and I want to know how I can add it or use it(because downloads from there don't count towards my download allowance).
I'm currently running 10.10 64-bit version, with the current Nvidia driver installed for my 9600GT graphics card (2x DVI-out). With the card, I am running one VGA monitor and one HDMI TV (both using adaptors). I am running the screens in TwinView, using X Server Settings. My problem is, with the resolution available for my HDTV. In both Windows (XP and 7) and Ubuntu, the current Nvidia drivers all report the native resolution as 1920x1080, this however, is incorrect; the reported native resolution of the TV (according to the manufacturer) is 1280x720; but even set to that, there are still a few pixels missing outside of the screen.
In Windows, the Nvidia Control Panel lets me manually resize the desktop area on the HDTV, to a slightly smaller resolution than 1280x720, so that all pixels are within the viewing area. Is there anyway to do this with Ubuntu, using the current Nvidia driver? I cannot seem to find a way, using Nvidia X Server Settings.
I didn't change anything; it just stopped working on boot. I've changed permissions according to messages from log files. No good.I now get messages saying "unable to open display ' '." If I set the display (I've done this several ways, the messages say "unable to open display ':0'."
Systemd is taking control of everything basic, with almost no documentation and no configuration tools at all: rationalization by lunatics.You can make a script to run commands on boot using systemd on Jessie by creating two files: the script, in any location a file in /etc/systemd/system that runs that script..My script is called james-boot.service, placed in my /home/james/.bin directory.
#! /bin/sh # this is run by /etc/systemd/system/james-boot.service # Enable with sudo systemctl enable james-boot.service # Check with sudo systemctl status james-boot.service # If it says the service is loaded, it's OK -- inactive only means it's done running.
[code]....
This file must have ownership root.root, with (apparently) permissions 664 (rw-rw-r--).After creating, enable with sudo systemctl enable james-boot. service.Check with sudo systemctl status james-boot.service. If it says the service is loaded, it's OK -- "inactive" only means it's done running.
After the bunch of updates with current, my custom kernel (2.6.33) can't boot.
The error is: /sbin/e2fsck: No such file or directory while trying to open /dev/sda6
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
The /dev/sda6 is ext4 and is ok since it can boot with official huge smp kernel 2.6.33.
My custom kernel can boot before this bunch of updates in current. What i missing in kernel?