Tag Info

New answers tagged

1

I have been able to run a virtual machine in VMware using the original installed partitions, but only with Linux as the client (Windows host) and not the other way around. The problem is that the virtual machine is significantly different from the real machine, and Windows is much less capable of coping with that than Linux is (Android is probably more like ...


2

You can put your command in file /etc/rc.local: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. java -jar ...


1

If you using DHCP, you can trigger the ip address change using dhclient-script: NAME dhclient-script - DHCP client network configuration script DESCRIPTION The DHCP client network configuration script is invoked from time to time by dhclient(8). This script is used by the dhcp client to set each interface's initial ...


1

This can be done in a single pipeline - just use xargs to run useradd for every line in its input: sed '/^[[:space:]]*$/d; s/[[:space:]]//g' users.dat | xargs -I{} echo {} Replace echo with useradd when you are sure it is doing the right thing. Note also that if you are writing this for a Debian based system (eg Ubuntu, Linux Mint), you should consider ...


0

You need to store the output of the echo in the var variable by appending $ before executing the command. By that way, var will now have the previous command output. Try the below script. It should work fine. #!/bin/bash while read p; do var=$(echo $p | sed '/^$/d;s/[[:blank:]]//g') echo $var #sudo useradd $var done < users.dat


0

Hav u disabled secure boot from windows 8? While booting ubuntu from live usb, try doing a sudo os-prober to list installed operating systems. If it shows windows 8, you are safe, else there is problem in UEFI bios, follow http://askubuntu.com/questions/435160/cant-boot-windows-7-after-installing-ubuntu/435364#435364 Install the bootloader in /dev/sda and ...



Top 50 recent answers are included