New answers tagged

2

To answer your specific question, you can use iproute2 to assign the IP address like this: sudo ip addr add 169.254.169.254/8 dev lo It will just add a new IP to the interface, no need for aliasing with :0, :1, etc. Note this is going to be lost after a reboot. And to quickly emulate the metadata service you can use netcat like this: while true; do sudo ...


2

As the accepted answer already says, you can use yum shell to run multiple commands at once, which is fine for interactive use. But if you want to invoke this command from a script, you can also run it against a file, eg yum shell translist.txt, where the file could contain, for example: remove squid install squid34 run Append the -y switch to assume yes ...


1

You tftp server setting can be viewed in /etc/xinetd.d/tftp. server_args = -s /tftproot # tftproot is where your tftp base directory. Say you tftp server is hostx From hosty, try this command tftp hostx > tftp get file # file is any file under this /tftproot directory. > tftp quit ls -l file


3

This is a bug in bash completion in dnf (not the first one and not the last one). Let's see what I can find out. Running the same with set -x will reveal the source of this: python3 -c 'import sys; from dnf.cli import completion_helper as ch; ch.main(sys.argv[1:])' _cmds sear -d 0 -q -C does not return the list of options, but basically some error. It ...


0

I had a similar issue when I switched from Windows 7 to Ubuntu and found Fixing the MBR quite helpful. Here's the link to it: http://www.tomshardware.com/news/win7-windows-7-mbr,10036.html Fixing the Master Boot Record (MBR) Step one: Turn your computer on, booting from either your Windows 7 Installation DVD or Windows 7 System Recovery Disc. Remember, ...


0

Pass the --numeric-owner option to tar either when making the archive or when extracting it (or both). This causes the files to be extracted with the same UIDs and GIDs that they were archived under, regardless of user names on the system where you extract. Since you're restoring the user database alongside the rest, the files will end up owned by the ...


0

With the switch from F23 to F24 there were some updates to smb it seems. Adding client use spnego = no to the global section of /etc/samba/smb.conf on the client fixed this issue.


0

If you don't care about editing the original system scripts, inside the script you can create a function like timeoutf(){ #If hangs 1 minute, dies.. sleep 1m kill $PPID } timeoutf&


4

You can use timeout command to run your command or script in a given timeout. Something similar to this: timeout 10m command Which waits for the command to finish withing 10 minutes otherwise kills it and exits with status 124. Then you can check exit status of timeout and print the appropriate message based on it. See here for more: timeout manpage. If ...


0

The Tiger's x0vncserver could help share the existing X server regardless of the desktop in use: NAME x0vncserver - TigerVNC Server for X displays SYNOPSIS x0vncserver [options] x0vncserver -version DESCRIPTION x0vncserver is a TigerVNC Server which makes any X display remotely accessible via VNC, TigerVNC or compatible ...


-1

If you would like a secure channel, then you can use ssh. You would need to enable X11 forwarding on both the client and server (/etc/ssh/ssh_config and /etc/ssh/sshd_config, X11Forwarding, TrustedX11Forwarding).


2

I think you use, Vino. Vino is the GNOME desktop sharing server. This (vino) is default package in most of the distribution along with gnome.


0

You can point to a kickstart file in a number of ways, including http url — Install from an installation tree on a remote server via FTP, HTTP, or HTTPS. For example: url --url http://<server>/<dir> or: url --url ftp://<username>:<password>@<server>/<dir> Source: RedHat Kickstart Configuation documentation


2

Subshells do have overhead. On my system, the minimal fork-exec cost (when you run a program from disk when the file ins't cold) is about 2ms and the minimal forking cost is about 1ms. With subshells, you're talking the forking cost alone, as no file needs to be execed. If the subshells are kept reasonable low, 1ms is quite negligible in human-facing ...


0

Configuration for reporting on the status of mail at login time is handled by pam_mail. Check the corresponding file (e.g. /etc/pam.d/ssh) and make sure that you have a line that looks something like this: session optional pam_mail.so standard noenv May be different depending on your distribution. Check your distro documentation to see how it ...


1

This is still happening in Fedora 23. My solution was to update both packages: sudo dnf update vim-common vim-minimal If I tried to update either package separately, I got the conflict. But I was able to successfully update both of them at the same time.


0

Okay, so for me worked upgrading/installing kernel and all kernel-X modules. After that a kernel (propriate version) directory appeared in /usr/src/kernels/


0

Here is an authoritative answer from Marek Marczykowski-Górecki (Invisible Things Lab), who is one of the core developers of the Qubes OS. The source is the qubes-users forum, where I originally asked the question. This is main problem - you're trying to boot legacy system (Qubes here) from UEFI grub (Fedora). You need to choose one of them - either ...


0

Unfortunately "nvidia.ko eats NULL on shutdown" is not very specific to work from. You can't ask kernel devs to debug it who don't have full debug information for ring 0 (see the backtrace). There's only one company who has that ;). You need to report the crash details to NVidia (I'm assuming they don't have any automated reporting). They may have a ...


1

Wayland needs to be supported by the video driver. At the moment only some open source drivers included in the kernel have support.


1

You can comment the bind-address in /etc/my.cnf: #skip-networking #bind-address = 127.0.0.1 also check that it is of the above format , var = value if you are connecting to the database remotely , check your interface ip by using ip addr show or ifconfig command , get the ip and bind it to mysql. bind-address = ...


0

OK, I still don't understand exactly what happened, or why, but I did find a cure for this. On a hunch, I ran kmenuedit, and navigated to the "Office" section, and edited each of the application icons for each of the individual AOO apps. In particular, I replaced things like "openoffice4 -calc %U" with "/usr/bin/openoffice4 -calc %U", and then saved each ...


0

I had the same issue in Fedora 21, I finally zeroed out the Listening Address,ListenAddress 0.0.0.0 and now when they system reboots I am able to SSH without logging into the system first.


0

You must start by enabling NetworkManager by following the instructions here. Once that is enabled, you will see a new icon for it but you can also open it this way: To launch the Network Configuration Tool in KDE, navigate to the KMenu > Applications > System > Network menu entry. When working as a regular user the application prompts for the root ...


0

Looks to me like a hardware error, CPU or memory. If you have the possibility to use another CPU or swap memories in your PC, or try the same on another machine/CPU, you could rule out what hw is failing. Also you should update the firmwares of the BIOS and other hardware, it might help. Sometimes CPU microcode is refreshed with a BIOS update, that can ...


1

This is a hardware error. Specifically, it's an ECC memory error which was detected but not corrected. How can you tell? Pipe the output above through mcelog --ascii, and you'll get: Hardware event. This is not a software error. CPU 4 0 data cache TSC 22cd709f356 ADDR 5989fdd80 TIME 1462430327 Thu May 5 02:38:47 2016 Data cache ECC error (syndrome a0) ...


0

I doubt this will help, but here's what I've done to dual-boot Qubes and Mint. This is a direct crib from Micah Lee's blog, so I take no credit for it. (https://micahflee.com/2014/04/dual-booting-qubes-and-ubuntu-with-encrypted-disks/) I booted from a Mint live DVD for the initial hdd partitioning. Create three partitions on the HDD: one for Qubes and ...


1

I had to copy the modules from Qubes and regenerate the initramfs using the sudo dracut -f command.


2

This is caused by a bug in the SELinux policy. See https://bugzilla.redhat.com/show_bug.cgi?id=1331668 — as of May 2, 2016, there is an update in testing which should resolve the issue. In the meantime, booting with enforcing=0 will work around the problem.


2

To set up networking for your chrooted session you need to copy the DNS configuration into the chroot environment : cp /etc/resolv.conf /mnt/etc/resolv.conf Or ln -s /etc/resolv.conf /mnt/etc/resolv.conf


1

For the sake of completeness, i will add that this is a problem with selinux-policy and selinux-policy-targeted version 3.13.1-183.fc24. Downgrading these to previous versions or using 3.13.1-184.fc24 fixes this issue. Also see bugzilla entries here and here.


0

A solution So it looks like I have found a working solution given my particular environment. I'll first describe my goals and environment, and then give step-by-step instructions. Goals Side-by-side installation Fedora 23 and Windows 10 in UEFI mode. Environment One hardware-based RAID0 volume, formatted using a GPT partition table. (Let's call ...


2

The solution I used was Change default.target to multi-user.target (Was graphical.) setenforce 0 systemctl isolate graphical


5

This worked for me. Add the following to your kernel parameter. selinux=1 enforcing=0 This sets the SELinux enforcement mode from strict to permissive. This is a temporary solution until I figure out what is going on, or until an update fixes the problem. Hope it helps.


3

This isn't via bash, but the GNOME Shell extension Auto Move Windows lets you define rules so that programs are automatically opened on predefined workspaces. If that doesn't do you what you need, you could consider extending the extension (source here; it's in Javascript) to better fit your specific need.



Top 50 recent answers are included