Skip to content
Advertisement

Tag: ubuntu

cpio is not working properly in repacking initrd.lz for live

If I unpack initrd.lz and then repack it without making any changes, then replace it with my new initrd.lz in Casper directory for live CD. It is structed. While packing of initrd I got a warning message as below: cpio: ./usr/share/plymouth/themes/text.plymouth: Cannot stat: No such file or directory. Finally my question is, what is the utility to pack and unpack

“mkdir || echo && exit” exiting even when mkdir succeeds

mkdir $2 || echo “I can’t create directory $2” && exit 8 Hi everyone, this is my first post here, so be kind. I am making a script right now and this line troubles me. The exit 8 should happen only if the directory $2 cannot be created. After running the script and successfully creating that directory, it still exits

Bash poweroff script hangs system

My intention is to cycle through my list of ips and poweroff if my ping succeeds first. However the systems seems to hang. After running this script I can’t ping the systems anymore and they aren’t powered off. If I run ssh 192.168.1.ip “sudo poweroff” through terminal I dont encounter this issue. Any advice? After running a single ssh 192.168.1.40

dh: unable to load addon autoreconf in Ubuntu 14.04

I am working with Openvswitch to create mpls vpn network on mininet platform. I am using Ubuntu 14.04 server with kernel version: 4.4.0-97-generic. I am trying to upgrade my openvswitch from 2.0.0 version to version 2.5.2 which is supported by kernel version 4.4.0 . I am following the steps for openvswitch upgrade guide given on Openvswitch upgrade guide When I

Unable to ssh to remote server

I’m trying to log in to a particular user on my lightsail account via ssh but I get a permission denied (public key) error Here are the steps I followed(I am on git bash on windows 8) ssh into my lightsail account via the .pem key provided via aws ssh -i <key.pem> ubuntu@<public_ip_address> (I am now logged in to my

Bash – if statement not automatically operating

I’m having a very odd problem with a bash script, written on Ubuntu 17.04 machine. I have a txt file that contains information about people in this fashion: number name surname city state With these infos I have to create an organization system that works by state. For example, with a list like this 123 alan smith new_york NEW_YORK 123

Remove PHP errors from CLI and PHPMyAdmin

I’m currently getting the following errors when using PHP via command line and on PHPMyAdmin. Command line error PHPMyAdmin error What’s the easiest way to disable these errors? The command line errors don’t make sense because all them work correctly. When I navigate to the directory where it’s saying it doesn’t exist, it’s .so version of them not .dll. Tried

Advertisement