ssh -- from local/userA --> remote/userB
by bruce
Hi.
Sorry to even ask htis basic question.
I'm trying to do something like:
userA: ssh userB(a)1.2.3.4
so I'm on the local box as userA
trivially .. ssh userA(a)1.2.3.4 works as it should with the pub/private
keys established as required.
However, I'm "confused" (missing something) regarding how to ssh into
the remote box as a different user.
Do I have to have a separate /home/userB/.ssh on both the local and remote box?
Does the local "userA" /home/userA/.ssh/config need to be changed to
accomodate some items for the userB?
currently, running
userA -- ssh userB(a)1.2.3.4
gets
key_read: uudecode
AAAAB3NzaC1yc2EAAAABIwAAAQEArGwWyWyDoO2rlXVg6MjVlAXg8zbzwuNtRaNn9OILVY+YhzAQGmCG5XkQT6ZRICkMfgNo3dAHUtKZsq0nVCdcgCabP
failed
but I am in the remote box as userB.
Haven't found anything on the net to solve this.. which is odd!
thanks
5 years, 7 months
Configuring printer at the command line
by Louis Garcia
I am trying to configure a network printer using lpadmin so I can put the
command in a kickstart file. yes gnome print installs is correctly but I
would like to have configured at install time. I need to use the hpcups
driver not hpijs.
$lpinfo --make-and-model "HP Officejet 6700" -m
drv:///hp/hpijs.drv/hp-officejet_6700-hpijs.ppd HP Officejet 6700 hpijs,
3.18.6
drv:///hp/hpcups.drv/hp-officejet_6700.ppd HP Officejet 6700, hpcups 3.18.6
lsb/usr/HP/hp-officejet_6700.ppd.gz HP Officejet 6700, hpcups 3.18.6
This is wrong, how do I specify the hpcups driver?
$lpadmin -p Officejet-6700 -E -v hp:/net/Officejet_6700?ip=172.16.0.2 -P
/usr/share/ppd/HP/hp_officejet_6700.ppd.gz
I get errors in journald:
cupsd[1868]: [cups-driverd] Unable to open
"/usr/share/cups/model/hp/hpcups.drv/hp_officejet_6700.ppd" - No such file
or directory
cupsd[1868]: copy_model: empty PPD file
cupsd[1868]: [Client 63] Returning IPP server-error-internal-error for
CUPS-Add-Modify-Printer (ipp://localhost:631/printers/Officejet-6700) from
localhost
How do I specify the driver?
-Thanks
5 years, 7 months
Setting up an HTTP server on a KVM/QEMU guest
by Patrick O'Callaghan
I'm actually embarrassed to be asking this, because the answer must be
so obvious that I can't see it. Fresh eyes will no doubt see the
problem immediately.
I've set up a small Fedora server instance in a KVM/QEMU guest. There's
no DE because I want to use it to run qbittorrent-nox (i.e. headless)
in an isolated environment. I've enabled HTTP using firewall-cmd. Ssh
into the guest works. General net access out of the guest works (e.g.
dnf, ping, nfs client etc.). Qbittorrent-nox runs in daemon mode with
no complaints. However trying to access it from a browser on the host
returns "connection refused". I can't even telnet to port 8080 (the
default). I've turned off SElinux just in case, but it makes no
difference.
A gentle hint would be welcome.
poc
5 years, 7 months
moving drives between notebooks that use UEFI
by Robert Moskowitz
I am only now figuring out what UEFI means and what it has been doing to
me over the years...
Right now I have a system that is failing. The drive is fine. I want
to put the drive into an identical notebook. But of course it is really
not identical. It does not have the same UEFI information.
I would need a tool that would get me the information from the dying
system's UEFI store. Then boot the new system with, say a liveCD image
and set that system's UEFI store appropriately. Then move the drive to
the new system.
Are there tools for this in Fedora? What about Windows 7, if that is
what is on the new system (instead of booting with a liveCD image).
BTW, back in BIOS days, and with my armv7 SOC systems, my process was to
build a drive on a test system, then just drop it in the production
hardware in the rack. No wonder swapping drives on my notebook has not
worked...
thanks
5 years, 7 months
Related to the drive copy question -- what about USB drives?
by William Oliver
I've been reading the thread about backing up hard drives with
interest. I have a similar question.
I have a 4 TB external USB hard drive that I've been doing backups on.
Unfortunately, it's starting to get a little flaky -- not being
recognized by my laptop, etc. The problem got better when I changed
enclosures, but now I'm a little paranoid that it might continue to
degrade. So... I'd like to copy the data to a new USB external hard
drive.
The drive is about 96% full.
I have tried plugging the old drive into a USB port, plugging the new
drive into a USB port and simply doing a cp -Ruav from one to the
other. It goes gangbusters for awhile, but after about 5 or 10 gigs,
it slows down to almost nothing. At the end of 8 hours of copying,
it's plugging along, but I only have about 400 gigs copied.
I've searched the intertubes, and it seems that this is a problem
people have asked about across multiple distros. It is apparently
associated with some sort of cacheing issue in the kernel.
Is there some solution to this? I tried rsync, but it was even slower.
I haven't tried dd, which was mentioned in the other thread; I might
give it a shot this weekend. But if there's a known fix for this, I'd
love to hear it.
Thanks,
billo
5 years, 7 months
universal boot USB stick?
by Tom Horsley
All the recent threads about both BIOS and UEFI booting
got me interested in playing with making a USB stick
that can boot practically anywhere.
The instructions here kinda work:
https://wiki.archlinux.org/index.php/Multiboot_USB_drive
I can boot the USB stick on something like a windows
machine that has no existing grub installation.
But if I try booting it from a linux box, it apparently
searches for and finds the existing grub on the system
and goes there to boot instead of using the grub
config on the USB stick (which sort of defeats the
purpose :-).
Anyone know how to install grub and force it to search
for the UUID of the root partition on the USB stick
and not any other device that just looks like grub?
5 years, 7 months
vncserver with Xfce?
by Robert Moskowitz
Anyone have vncserver working on Fedora with Xfce?
Granted I am trying it on F29-arm-beta, but I followed the processes I
have for Centos7-arm with Gnome.
systemctl set-default multi-user.target
dnf install tigervnc-server
Went to my user id and ran vncpasswd
cp /lib/systemd/system/vncserver@.service
/etc/systemd/system/vncserver@:1.service
Then replaced all <USER> with my userid
systemctl enable vncserver@:1
firewall-cmd --add-port=5901/tcp --permanent
Then rebooted.
I am getting failure on the vncserver:
# systemctl status vncserver@:1
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled;
vendor pr>
Active: failed (Result: timeout) since Wed 2018-09-05 11:35:32 EDT;
6min ago
Process: 838 ExecStart=/usr/bin/vncserver -autokill :1 (code=exited,
status=0>
Process: 794 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill :1 >
/dev/null >
Jun 22 11:12:53 localhost com.redhat.imsettings[889]: [
1529680373.692927]: IMS>
Jun 22 11:12:53 localhost com.redhat.imsettings[889]: Exiting...
Jun 22 11:12:53 localhost org.gtk.vfs.Daemon[889]: A connection to the
bus can'>
Jun 22 11:12:53 localhost com.redhat.imsettings[889]: [
1529680373.721087]: GLi>
Jun 22 11:12:53 localhost com.redhat.imsettings[889]: [
1529680373.735105]: GLi>
Jun 22 11:12:53 localhost com.redhat.imsettings[889]: [
1529680373.741316]: IMS>
Jun 22 11:12:53 localhost com.redhat.imsettings[889]: [
1529680373.742310]: IMS>
Sep 05 11:35:32 localhost systemd[1]: vncserver@:1.service: Start
operation tim>
Sep 05 11:35:32 localhost systemd[1]: vncserver@:1.service: Failed with
result >
Sep 05 11:35:32 localhost systemd[1]: Failed to start Remote desktop
service (V>
and
# cat /home/rgm/.vnc/localhost\:1.log
Xvnc TigerVNC 1.9.0 - built Aug 1 2018 10:25:26
Copyright (C) 1999-2018 TigerVNC Team and many others (see README.rst)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12000000, The X.Org Foundation
Fri Jun 22 11:12:45 2018
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5901
vncext: created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported high keycode 372 for name <I372> ignored
> X11 cannot support keycodes above 255.
> This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
Failed to import environment: Process org.freedesktop.systemd1 exited
with status 1
Killing Xvnc process ID 859
Fri Jun 22 11:12:53 2018
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:nan ratio)
5 years, 7 months
Vncserver pid problems
by Robert Moskowitz
I am having pid permission problems with starting vncserver:
Sep 06 08:39:03 localhost vncserver[2046]: Log file is
/home/rgm/.vnc/localhost:1.log
Sep 06 08:39:03 localhost systemd[1]: vncserver@:1.service: Can't
convert PID files /home/rgm/.vnc/localhost:1.pid O_PATH file descriptor
to proper file descriptor: Permission denied
Sep 06 08:39:03 localhost systemd[1]: vncserver@:1.service: Can't
convert PID files /home/rgm/.vnc/localhost:1.pid O_PATH file descriptor
to proper file descriptor: Permission denied
Sep 06 08:40:30 localhost systemd[1]: vncserver@:1.service: Start
operation timed out. Terminating.
in /etc/systemd/system/vncserver@:1.service
is the line:
PIDFile=/home/rgm/.vnc/%H%i.pid
I tired changing chmod 777 /home/rgm/.vnc
But that did not help.
All suggestions gladly accepted.
5 years, 7 months
convert to EUFI boot?
by ToddAndMargo
Hi All,
Fedora 28, x64
Two questions:
1) Is there a way to convert a Fedora hard drive that
is set up to boot off the old BIOS into a EUFI boot?
2) Is there a way to convert a Fedora hard drive that
is set up to boot off the old BIOS into a dual
BIOS and EUFI boot drive?
Many thanks,
-T
5 years, 7 months