|
I'm installing Bodhi Linux as a VM in virt-manager. Can't get the mouse to work. Am I stupid or something or is Bodhi Linux a special flower?
|
# ? Jul 1, 2016 17:42 |
|
|
# ? Apr 25, 2024 00:01 |
|
I don't know what distro you're using, but pretty much every package manager also "knows" what the perms should be. Check the documentation for rpm/dpkg/whatever and script it. rpm (for example) is: rpm --setperms foo
|
# ? Jul 1, 2016 18:10 |
|
So I've got ssh key based auth on my home net: Small Ubuntu server is always on, with sshd running. Main PC (the beast) is on some of the time with sshd running. Laptop is on most of the time with sshd running. I'd previously been using private ssh keys without password protection and then decided to add passwords to my private keys in case I got hacked or did something stupid like let someone got hold of one. Before I had a password on my key, sending a file to my server was as simple as doing 'rsync <filename> <servername:location>' or the equivalent using scp. The command would execute immediately, as soon as sshd had verified I had the requisite privkey in my .ssh directory. Now that I have password auth on the privkeys I can't tab to autocomplete when doing scp or rsync, which is annoying. Is there a way that I can get sshd to remember that I have unlocked my privkey for, say 30 minutes? I don't mind unlocking the key at the start of every session but it gets a bit tiresome entering the ssh privkey password all the time.
|
# ? Jul 1, 2016 19:30 |
|
Look into ssh-agent and ssh-add.
|
# ? Jul 1, 2016 19:39 |
|
Just tried ssh-add and it worked. It didn't preserve over reboot. Will look into ssh-agent now. Cheers.
|
# ? Jul 1, 2016 19:43 |
|
I just managed to create a second keypair for my server using seahorse and disabling the original key I was using by removing it from the ./ssh/config file. When logging in for the first time, seahorse popped up (fedora GNOME) and asked for the ssh passphrase. Once I was logged in I could enter and exit the server at will. Maybe using the GNOME keyring utility will work better for me in future.
|
# ? Jul 1, 2016 20:10 |
|
DeaconBlues posted:Just tried ssh-add and it worked. It didn't preserve over reboot. ssh-agent is the backend for ssh-add. If ssh-add worked, that's it.
|
# ? Jul 2, 2016 20:16 |
|
DeaconBlues posted:Just tried ssh-add and it worked. It didn't preserve over reboot. dpbjinc posted:ssh-agent is the backend for ssh-add. If ssh-add worked, that's it. Some distributions start ssh-agent for you as part of a default X11 login session, in one way or another. Looks like yours is one of them. There are also optional PAM modules that can automatically decrypt your SSH key and feed it to the SSH agent, if your SSH key passphrase is the same as your login password. Or, if (**and only if**) your SSH key is stored on a computer you consider plenty secure, you could store your SSH key without a passphrase, so that it can be used automatically.
|
# ? Jul 2, 2016 20:38 |
|
What is a good back up manager, i have a linux vps at a good spot before doing weird crap with rocket chat, and I want to make pre-rocket chat vps a backup point because i am terrible with npm/mongodb stuff.
|
# ? Jul 3, 2016 04:37 |
|
wargames posted:What is a good back up manager, i have a linux vps at a good spot before doing weird crap with rocket chat, and I want to make pre-rocket chat vps a backup point because i am terrible with npm/mongodb stuff. Save an image of the VPS on your vps's control panel. Take a lvm snapshot if the OS is installed on lvm, and doesn't use all the disk. Use btrfs snapshots if your root filesystem is btrfs (or any other filesystem with snapshot support) Learn docker and do everything you might want to revert in a container.
|
# ? Jul 3, 2016 08:19 |
|
I have a very old laptop whose CMOS battery has run dry, so now I'm contemplating if there's a way to ignore the BIOS date/time on startup and directly sync it from a server? Replacing is of course an option, but since there's always net access, why not ignore it and get it from the net instead.
|
# ? Jul 3, 2016 09:16 |
|
Dunno. Is there a possibility that it might confuse kernel messages and boot up sequence timings before the network is initiated and correct system time and date is retrieved?
|
# ? Jul 3, 2016 10:18 |
|
DeaconBlues posted:Dunno. Is there a possibility that it might confuse kernel messages and boot up sequence timings before the network is initiated and correct system time and date is retrieved? yeah that's what I'm wondering
|
# ? Jul 3, 2016 10:50 |
|
mike12345 posted:I have a very old laptop whose CMOS battery has run dry, so now I'm contemplating if there's a way to ignore the BIOS date/time on startup and directly sync it from a server? Replacing is of course an option, but since there's always net access, why not ignore it and get it from the net instead.
|
# ? Jul 3, 2016 12:34 |
|
As far as I'm aware the Raspberry Pi distro's must work the same way, with initial logs dated 1970 or something, until it gets a network time from ntp, since there's no retained information when you remove power from the Pi.
|
# ? Jul 3, 2016 14:49 |
|
mike12345 posted:I have a very old laptop whose CMOS battery has run dry, so now I'm contemplating if there's a way to ignore the BIOS date/time on startup and directly sync it from a server? Replacing is of course an option, but since there's always net access, why not ignore it and get it from the net instead.
|
# ? Jul 3, 2016 15:44 |
|
DeaconBlues posted:As far as I'm aware the Raspberry Pi distro's must work the same way, with initial logs dated 1970 or something, until it gets a network time from ntp, since there's no retained information when you remove power from the Pi. mystes fucked around with this message at 16:01 on Jul 3, 2016 |
# ? Jul 3, 2016 15:59 |
|
Today's dumb, uncharted-territory question: can I force access to efivars on a system that isn't currently booted through EFI? I've got a weirdo PXE use case.
|
# ? Jul 3, 2016 17:22 |
|
Vulture Culture posted:It's a $2 battery nah it's a bunch of outdated ones connected in parallel. but I've googled for a single battery with the same voltage/ma, so I'm gonna try that.
|
# ? Jul 3, 2016 18:10 |
|
mike12345 posted:nah it's a bunch of outdated ones connected in parallel. but I've googled for a single battery with the same voltage/ma, so I'm gonna try that.
|
# ? Jul 3, 2016 18:11 |
|
Horse Clocks posted:you could potentially: Sadly my vps provider doesn't have this as an option.
|
# ? Jul 3, 2016 18:40 |
|
Vulture Culture posted:Graaaaar, laptops are the worst I'm kind of glad there are official/unofficial standards now when it comes to hardware, but laptops are the worst. Friend bought an xps13 and he's been bitching about the adaptive/dynamic contrast/brightness. If he waited a few more months for the hardware refresh, the new model comes with that setting disabled by default. As is, he can't turn it off (no firmware/BIOS setting to turn off) and is probably going to return the laptop.
|
# ? Jul 3, 2016 21:11 |
|
Speaking of laptops, any idea how to get the Fn+F7 brightness controls working on my Clevo N170RD. Someone wrote a driver for the airplane mode key, and all the other keys work fine. Volume keys even trigger the KDE popup, but the brightness keys do nothing. Running evtest gives me nothing. I think that the brightness keys use WMI, but no idea how to get that working.
|
# ? Jul 4, 2016 00:28 |
|
Vulture Culture posted:Today's dumb, uncharted-territory question: can I force access to efivars on a system that isn't currently booted through EFI? I've got a weirdo PXE use case. Can you efipxe? It's not too complex (grub2 can get loaded), and makes this a lot easier. AFAIK, systems booted with int19h give the efi memory map back, and you can't get variables. You might be able to do some really hacky legacy int15 interrupt before the kernel takes the memory space (since legacy booting is an EFI extension which doesn't disable EFI, just hands the memory space back and invokes legacy boot vectors), but that's probably way more effort than just setting up an EFI PXE environment
|
# ? Jul 4, 2016 03:29 |
|
evol262 posted:Can you efipxe? It's not too complex (grub2 can get loaded), and makes this a lot easier.
|
# ? Jul 4, 2016 04:04 |
|
If you just want to pull info, it might be in DMI. Or there may be another way to do whatever you're thinking of
|
# ? Jul 4, 2016 06:31 |
|
Hi. I need some insight. xubuntu (apparently. Not sure when that happened) 16.04 x64. Nvidia somethingorother with proprietary driver. Not a fan of a recent behaviour. Unplugging a monitor causes the X session to collapse back to a single monitor. I'm using a two monitor setup. One landscape and one portrait. The one set up as portrait has two DVI connectors whereas the better landscape one only has one. I've been using the portrait one to toggle between the PC and a Raspberry Pi. Trouble is the Pi does some weird things graphically when it's set up to run with a rotated screen, so I decided to shift it over to the landscape screen via one of those 4 way HDMI switches and some adapters. The problem is that when I switch away from the PC using the HDMI switch now, the PC detects it and drops back to one monitor like I said. I have to re-enable it in the nVidia settings thing when I'm done. Any ideas on how I can tell the driver to sit down and shut up? Besides this lovely issue it works fine.
|
# ? Jul 4, 2016 08:00 |
|
General_Failure posted:The problem is that when I switch away from the PC using the HDMI switch now, the PC detects it and drops back to one monitor like I said. I have to re-enable it in the nVidia settings thing when I'm done. Any ideas on how I can tell the driver to sit down and shut up? Besides this lovely issue it works fine. The Appendix B of the Nvidia proprietary driver README describes all the options you can use with the driver. Nvidia driver README posted:Option "ConnectedMonitor" "string" Your HDMI switch is similar to a KVM, so it sounds like this should be the right thing for your situation. However, check the details from the README of *your* driver, as the specific details may have changed depending on driver version.
|
# ? Jul 4, 2016 11:34 |
|
I have a home server that's basically turned into a host for a couple of VMs I use (nothing critical that can't stand a bit of downtime). I use VirtualBox + phpvirtualbox on an Ubuntu Server 14.04 LTS machine I have which is not as reliable as I would like (occasionally dependencies break, VMs won't start on boot, etc.) Is there a more elegant/dependable solution? Even another Linux distribution is fine. Caveat, my Linux knowledge basically comes down to googling stuff, but I have enough sense to not randomly open ports, use SSH keys, not give everything 777 permissions, etc. dpkg chopra fucked around with this message at 18:01 on Jul 4, 2016 |
# ? Jul 4, 2016 17:58 |
|
Ur Getting Fatter posted:I have a home server that's basically turned into a host for a couple of VMs I use (nothing critical that can't stand a bit of downtime). Use KVM instead of vbox. It works WAY better for this kind of setup, and it isn't all that difficult to migrate your vbox disk images over. You will want to uninstall the vbox guest additions first tho.
|
# ? Jul 4, 2016 18:06 |
|
KVM remotely controlled with virt-manager will basically give you everything VBox does except 3D acceleration, but in my experience it's more stable.
|
# ? Jul 4, 2016 18:26 |
|
I've been really impressed with KVM and virt-manager. 6 or so months ago I set up a Windows XP 32 bit virtual machine on a headless server to run some old 16 bit windows 3.1 era software while this company was implementing a plan to transition off this stupid old as hell software. Well, the company hasn't even started a plan to transition off because of course they haven't, but this thing is just purring along with basically no maintenance on my part.
|
# ? Jul 4, 2016 20:28 |
|
Double post like I just don't care... What's the correct and bestest way of making a python script installable and usable as a service/daemon across common Linux distributions? If there is not a good cross-distribution way of doing this, I'll settle for Ubuntu for now. Maybe I should make deb's/rpm's? I don't know anything about that. The script requires pip-installable libraries as well as requiring phantomjs to be installed...
|
# ? Jul 4, 2016 20:39 |
|
Thanks for the suggestion! I'll take a look into KVM. I was going to clone the whole Ubuntu install to an SSD so I guess I'll just install KVM to the new disk instead and get everything running before transitioning over.Thermopyle posted:I've been really impressed with KVM and virt-manager. Do I still technically need a key for WinXP now that it's been EOLed? One of my VMs is basically a Lubuntu install + Wine to run some legacy Windows software. Works ok but still has some crashes that I'm pretty sure wouldn't happen in an actual Windows environment.
|
# ? Jul 4, 2016 20:41 |
|
Thermopyle posted:Double post like I just don't care... Yeah, you would want to package it. For ubuntu, you should be able to follow this: http://ubuntuforums.org/showthread.php?t=910717 And here is the full documentation, I think. http://packaging.ubuntu.com/html/
|
# ? Jul 4, 2016 20:58 |
|
Follow-up question to the KVM advice. I only now realize that KVM isn't some sort of Linux distribution but is an actual program/feature that gets installed within the OS itself. Is it fairly platform agnostic or should I go for some specific flavor of Linux?
|
# ? Jul 4, 2016 21:33 |
|
Ur Getting Fatter posted:Follow-up question to the KVM advice. I only now realize that KVM isn't some sort of Linux distribution but is an actual program/feature that gets installed within the OS itself. It's platform agnostic, I still recommend running it on CentOS tho, just because it is easier to find help in my experience.
|
# ? Jul 4, 2016 21:39 |
|
RFC2324 posted:It's platform agnostic, I still recommend running it on CentOS tho, just because it is easier to find help in my experience. I've been meaning to give CentOS a try, thanks!
|
# ? Jul 4, 2016 21:44 |
|
If you want an out-of-the-box Linux hypervisor, Proxmox is great. It runs like a regular headless box, but it's easy to install a desktop environment on it if you want to use it more as a workstation.
|
# ? Jul 4, 2016 21:52 |
|
|
# ? Apr 25, 2024 00:01 |
|
KVM (through libvirt) also runs perfectly fine headless. If you use centos, enable virt-preview if you can. Otherwise, KVM is mainline, so basically every distro should just have it. libvirt is pretty agnostic. Newer libvirt (and qemu) is nice for some things. If you want a web frontend on plain libvirt, kimchi is really reasonable. No need for Proxmox here. Re: packaging -- just use fpm unless you have a strong need not to. It makes using eggs and npm packages stupidly simple (probably including phantom, though that still requires native code, I think), and there's no good reason to go down the rabbit hole of "real" packaging for what it sounds like your use case is (especially if you need to distribute for multiple distros). Or just shove it in a container. It's better to use repo-provided packages rather than pip, but you can jam the whole thing into one package pretty easily if you want to. evol262 fucked around with this message at 22:50 on Jul 4, 2016 |
# ? Jul 4, 2016 22:46 |