Ubuntu :: Make A Custom Debian Package Prompt For A Restart After Installation
Jun 29, 2011
I am wondering how to add a need to restart notification in a Debian package, so upon installation, it'd pop up something to tell the user to restart the computer for changes to take effect. Perhaps something like what happens with some packages through the update-manager when it prompts the user to restart for the changes to take effect.
Is there any way to do that? Perhaps adding something at the end of a "postinst" file?
Thinking about it, I could just add something like this at the end of the "postinst" file:
notify-send -t 86400000 -i /usr/share/icons/gnome/32x32/status/info.png "Please restart the computer for all changes to take effect."
It'd work, but not as well. For instance, if the person isn't by their computer at the time.
Another option could be using a Zenity dialog box. That might work. Though, if done, wouldn't a yes/no question box keep the actual package from technically finishing until the user would select yes/no to restart?
I have installed Ubuntu 11.04 on my desktop. When prompted to restart after installation, I select Ubuntu (not recovery mode) at the prompt and Ubuntu will not start. All I get is a big bright purple screen which does nothing. I have read some forums that suggested that setting the partition space was wrong and to try to reinstall it. I have tried to reinstall it but I do not get the option to adjust the partition at all. I did the first time I installed it but never saw it again. It just goes right through the installation process and asks me to restart. I again, select Ubuntu and I get another very brightly colored screen. I am trying to use it as a dual boot. I have Windows 7 right now and it works just fine. I have no idea what to do now. I also do not get any error messages. If there are any, they pass way to fast for me to see them.
I just installed Ubuntu 9.10 on hd1 - /dev/sdb1 at the end of the installation I chose to install grub at hd0 - /dev/sda1. The file system I chose was ext4 for ubuntu "/" - 50 GB, ext3 for "/home" - 5 GB, and 1.5 more for swap. When the installation was complete I got the following prompt:
GRUB loading error: no such disk grub rescue> >
There was nothing I could do, pressing TAB did not show me all the commands like grub is expected to. Typing 'help' did not show any commands as well, instead it showed me - "NO SUCH COMMAND" or something like that (I did not took note of what the output was). I believe the problem is in the grub loader - which was not really installed properly in hd0 - /dev/sda1 (which is FAT32 - windows)
I want to build my own binary package that replaces several from the repositories.But then whenever I install something that depends on libffado2, aptitude wants to uninstall mypkg and install libffado2. Why doesn't Provides work here?
for a project I am working on, I need the same install configuration on every machine, and I'd like to have all the packages I need on one disc, with none of the ones I don't. I also need to use a non-standard file systems(jffs2,nilfs) as the hardware end of my project works on flash memory, and would like these two FSs to replace the typical magnetic disk based choices.
I am using ubuntu 8.04 and i am trying to make iso image cd with running kernel. i know that there is documentation in ubuntu website in"how to make live cd" but the thing is this is my custom kernel. i have my own configuration. so i want this kernel to be work in live cd.
What are the best ways to make the kernel using git, and localmodinfo. and optimizing the kernel the best way on a laptop I have, which is a desktop laptop, so it is never really unplugged. Has a core 2 duo 2.53Ghz, 4GB DDR3 RAM, and an ATI HD 3870 GPU.so what things other than the obvious core 2 cpu type when making the kernel. It's on Ubuntu 11.04 64 bit. I also want to create it with the local mod info. and Also create this into a .deb package so it may be saved.
I installed Fedora 11 on a server with 2 equal sized disks. I used the gui installer and didn't make custom setting changes to the partitions. One of the steps asked for me to choose the disks i wanted to use for this installation. I selected both disks and after the installation Fedora only sees one volume the size of both disks combined.Do I now have software raid0 or do I have something else?
I have made a few programs, and I want to make them debian packages so I can distribute them, but the problem is that most tutorials on how to make a Debian package assume that you are not the person who started the source code, and that there are already things set up in the source code that will help you.
I have to work with a NFS user id between two hosts: A running Ksh 93 and B running pdksh 88. Both host run RedHat. My problem has to do with the custom prompt I created on A: it works like a charm and display colors:
I tried to install Ubuntu as a dual-boot on my Windows XP machine, using the USB stick trial OS and automatic installation. My screw-up came when I left my external USB hard drive plugged in during the install, and as far as I can tell, Ubuntu was installed on that as opposed to my internal HD. Now when I try to boot, I get knocked straight to the grub rescue prompt with an error message that basically shows my "no such device (my external's ID)" -- assuming that the MBR (which I know nothing about editing) is trying to boot off the external that isn't actually enabled until an OS starts it up, and dumping me at the rescue prompt when it can't find it.
I can still load up the trial Ubuntu off the original USB stick (though can't get online with it without wireless drivers), but that's as functional as the computer gets right now. And I don't have a Windows Setup CD anywhere (using a rooommate's Mac at the moment with a terrible European keyboard on it). So is there any way to edit the MBR or something to tell it to boot my regular XP off my internal HD, at which point I can re-partrition and try this whole thing again, or otherwise remove the failed install of Ubuntu through the trial-stick or... well, I'll leave the suggestions up to you all. I've been working on this since about 4am last night and my brain is kind of fried.
I am pretty new to GNU/Linux. I use Mint but want to use Debian. The problem is, Debian has worse font smoothing. Ubuntu's smoothing is great! Is there any possibility to simply install any package on Debian stable to make Debian's font smoothing exactly as it is in Ubuntu?
Debian Lenny worked just great. That was my first experience of Debian. The installer recognised all my hardware and the system was soon up and running brilliantly with a few tweaks. Confident of Debian's reliability, I decided to move to Debian 6 and did a fresh install, with downloads of the new operating system rather than a distribution upgrade. The installation routines have not worked for the same computer system. I don't know if its hardware not being recognised by Debian 6 that were recognised without a problem by Debian 5??
At first, the boot-up flipped at "Waiting for /dev to be fully populated," there was a kernal panic then Debian disappeared. No signal was sent to the monitor and I had to switch off the computer manually I was able to look into the Debian 6 OS from Arch Linux, installed on different partitions of the same hard-drive. I am able to overwrite the Debian files as root from Arch. My i686 machine has PATA IDE drives.
Why are 2) dbus and the 3) avahi-demon failing? I need to get them started first so that I can get an internet connection and try and correct the problem with X and the wrong Nvidia driver. Is there some configuration I can do either from Arch, where I am now, or the bash prompt on Debian? Thanks in advance.
I'm trying to build the package zaptel on debian, but I'm encountering two errors: 1- When I try to run the "make menuselect" command, I get an error stating that I need ncurses which is missing. I tried to get it installed but didn't get to do it yet. 2- After that, there's the command "make" I think it's to build the package. Yet again this fails, and the error I get is "you do not appear to have the sources for the 2.6.26-2-686 kernel installed".
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?
After my NVIDIA card died I decided it was time to buy an AMD card again (R9 270X), but I didn't think AMD drivers were such a pain in Linux as people said. Of course, in some distros anyway. On Arch, for example, there's no official release because Arch's developers would have to hold Xorg in order to make a closed-source driver available, because AMD's pace isn't in pair with Linux. So in order to install AMD's drivers on Arch I must rely on some guy's unnoficial repositories, but that isn't the whole problem. Even though I'm cool with adding repos and downgrading Xorg, I'm not cool with it not working for a lot of apps, so that's where I decided to try a few distros. Manjaro is a no-go because it installs Flash as default. openSUSE although is a very good distro, is a complete mess when it comes to repositories, specially multimedia ones. Ubuntu/Mint are also a no-go, Ubuntu because after 12.04 they have a spyware by default, and Mint because it contains non-free stuff by default.
So here I come! I ran Debian in the past for a long time (aside from a breaf period last year) and it was lovely, I could easily set up a custom encrypted install, but now I don't remember how to, and it's killing me. I don't like how the installer doesn't show the partitions size as they actually are, and I don't like how the automated encrypted LVM setup doesn't let me chose the encryption algorithm or the timeframe between each passphrase attempt. That's why I must create my install, and here's what I used to do on Arch (the part that really matters), converted to what I use on Debian:
Code: Select all# modprobe dm-mod
(create one 1GB partition for /boot, unencrypted ; create another big 930 GB formatted as "8e" - LVM - on dev/sda2) Code: Select all# fdisk /dev/sda (chose my ciphers and iter time) Code: Select all# cryptsetup -c twofish-xts-plain64 -y-s 512 --iter-time 5000 luksFormat /dev/sda2 (open the luks container on "sda2_crypt")
After this is done, I go to the "partition disks" page where I select each partition/volume to it's correct destination. I then proceed to installing the base system, configuring apt, and all that. Now, before I install Grub I used to execute the following commands on shell:
Code: Select all # nano /etc/crypttab
I used to put something there, but I don't remember what exactly. It's been a long time since I used Debian for long! But here's what I put there:
I recently attempted to install Debian 8 on my iMac (late 2011). I partitioned my drive using disk utility to create FAT partitions (100GB for Debian and 2GB for SWAP) and installed rEFInd to boot into Debian.During the installation process I selected the drives I partitioned and set the mount points for each as / and swap.
Everything was fine and installation was successful and was prompted to restart to set up Debian. However when I did Grub did not recognise the Bluetooth keyboard. Unable to do anything it started the "Debian GNU/LINUX option" and loaded into what seems to be the grub prompt/terminal with the following displayed in bold:
[ 3.538535] i8042: No controller found Loading, please wait... Fsck from util-linux 2.25.2 /dev/sda5: clean, 112838/6119424 files, 1276387/24455424 blocks [ 9.123670] [drm:radeon_pci_probe] *ERROR* Radeon kernel modsetting for R600 or later requires firmware-Linux-nonfree. [ 10.715321] systemd-fsck : fsck.fat 3.0.27 (2014-11-12) [ 10.715690]systemd-fsck : /dev/sda1: 248 files, 35995/403218 clusters
Debian GNU/Linux 8 iMac tty1/I was able to get my hands on a USB keyboard which works. Obviously I can't boot into Mac now because grub has taken over.
I have made several attempts to install Testing. Down-loaded Apr 11 iso and verified the DVD. Everything went ok with install. It was when I booted up after removing install disk. I have Debian dual booted. Both Linux 10 and Debian Testing show up on the Grub screen. When I select Debian everything loads but when I get to the Debian screen I am asked for my password. However, the screen is lock up and no choice can be made. Three of my previous attempts (different install disks) have left me at the same place....locked password prompt. (4 year old HP Paviiion DV5000 laptop, 2 GB memory, 120 GB HD) I have successfully installed Debian 6 Squeeze with no issues.
I was using a custom layout for my keyboard as I've a UK laptop but still use french accents sometimes. After the update from Wheezy to Jessie my configs disappeared so I have put them back:
- Defining my layout here: /usr/share/X11/xkb/symbols/gb - Adding here: /usr/share/X11/xkb/rules/base.xml and here /usr/share/X11/xkb/rules/evdev.xml in the gb configItem
Code: Select all <variant> <configItem> <name>accentsFR</name> <description>English (UK with french accents)</description> </configItem> </variant>
- Adding the declaration of the layout here /usr/share/X11/xkb/rules/base.lst and here /usr/share/X11/xkb/rules/evdev.lst
Code: Select all accentsFR gb: English (UK with french accents)
So everything looks alright, if I go to System Tools -> Preferences -> Settings -> Keyboard -> Input Source my layout is well selected and I can even see the correct layout by clicking on the keyboard icon (cf my snapshot)
Here is the snapshot of the keyboard input source settings: [URL]....
I have just finished the upgrade of the latest version and I'm at the point of my system restating.
My system automatically tried to restart but on the restart I got the 'terminal' view. It stopped when asking for my username (it never normally asks for this before the grub menu) and then password. I didn't get any further than that.
I now have on my screen (still in the terminal view before the grub menu)
I'm on my phone now so I don't actually have the symbol for before the dollar sign but your know what it is. The raised S on a 90 degree angle.
however,, there are no kmod-wl packages for that kernel, so i have no wireless at the moment. how do i build / obtain kmod-wl package for my kernel? rebuilding the kmow-wl src packages does occure in build for an older kernel:
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.
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.
I'm trying to install Wheezy on a Thinkpad T23. want to use Fluxbox, so during installation I uncheck the graphics options because I can install X and fluxbox later. After the install, the first time it boots up it can connect to the wired network and it will download things. But, if I reboot then it somehow loses its ability to connect to any wired network (and the T23 doesn't have built in wireless, so it obviously can't connect to wifi). there something that I can do to get ethernet back? Or, is there a way to, while I'm still on the first reboot, permanently install the ethernet drivers?I'm finally trying tmove away from Windows because a friend happened to show me his laptop which was running the free and open alternative to OneNote (Xournal) that I've been needing.
I had Ubuntu installed, i installed Debian and there was no dual boot. So i formated all the hard disk to install only Debian. It installed but at boot i get error: no such device and the grub rescue> prompt. i googled for a solution and nothing worked:
- i tryed reinstalling grub, not worked - i did the windows cd fixmbr trick, not worked - reinstalled debian with fixmbr the first step and nothing - tryed deleting with dd the mbr, not worked - reinstalled grub from debian rescue, not worked
what should i do? i can't access my computer? please tell me how should i fix it? the google guys will kill me because i put their servers on fire
Whenever I choose "Restart" from the GDM screen, GDM appears to shutdown, and the first TTY is displayed with a login prompt at the bottom (assuming I haven't used that TTY). I am by no estimation a patient individual, but I waited a solid minute or two for something to happen, but nothing ever did. I end up logging in as root on that TTY and running "shutdown -r now" to get the job done. This is a shared computer, and ideally any user should be able to perform shutdown options graphically from GDM.The only mentioned workaround doesn't apply to me as I am using the nvidia driver, not intel.
In red hat linux server 6. I start up virtual manager and I get below error prompt: Package required for KVM usage. The following packages are not installed qemu-kvm These are required to create KVM guests locally. Would you like to install them now. I press yes but the package cannot located ... So, I have install the qemu-kvn-0.12.1.2.113.el6_0.8.src.rpm already. I use command rpm -ivh XXX.rpm to install.