output
stringlengths 9
26.3k
| input
stringlengths 26
29.8k
| instruction
stringlengths 14
159
|
---|---|---|
The sesman.ini config file has entries for allowed users and groups.
look at man sesman.ini for the exact usage of theses keys.TerminalServerUsers
TerminalServerAdmins
AlwaysGroupCheck |
Installed and configured xrdp and I am able to connect from a Windows mstsc.exe but only as root. I found this forum post dealing with the situation where the only user who can log into a machine running xrdp is root: https://forums.kali.org/showthread.php?32062-Unable-to-login-using-xrdp-and-non-root-username
Butthere is no Xwrapper.config in the specified directory on my machine. The commands man Xwrapper.config and man XOrg.wrap do not work.
and when I create this file as he specified and reboot, there is no
change.OS: Fedora 19 (it will NOT be upgraded for the purposes of this question)
How can I allow other users to log in via RDP and disallow remote root logins?
| Only root can log into the machine running xrdp |
I was hit with the same issue.
You should be able to use: yum install xrdp --enablerepo=cr to get around this for now as the xorg-x11-server-Xorg(x86-64) = 1.20.1 packages should be available in the continuous release repo.
|
cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"Use these steps to install xrdp:
yum update -y
yum groupinstall "X Window System" "GNOME Desktop" -y
systemctl set-default graphical.targetyum install epel-release -y
yum install xrdp -yGot error:
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 7.0 kB 00:00
* epel: ftp.riken.jp
epel | 3.2 kB 00:00
(1/3): epel/x86_64/group_gz | 88 kB 00:00
(2/3): epel/x86_64/updateinfo | 928 kB 00:00
(3/3): epel/x86_64/primary | 3.6 MB 00:00
epel 12706/12706
Resolving Dependencies
--> Running transaction check
---> Package xrdp.x86_64 1:0.9.8-1.el7 will be installed
--> Processing Dependency: xorgxrdp for package: 1:xrdp-0.9.8-1.el7.x86_64
--> Running transaction check
---> Package xorgxrdp.x86_64 0:0.2.8-3.el7 will be installed
--> Processing Dependency: xorg-x11-server-Xorg(x86-64) = 1.20.1 for package: xorgxrdp-0.2.8-3.el7.x86_64
--> Finished Dependency Resolution
Error: Package: xorgxrdp-0.2.8-3.el7.x86_64 (epel)
Requires: xorg-x11-server-Xorg(x86-64) = 1.20.1
Installed: xorg-x11-server-Xorg-1.19.5-5.1.el7_5.0.1.x86_64 (@updates)
xorg-x11-server-Xorg(x86-64) = 1.19.5-5.1.el7_5.0.1
Available: xorg-x11-server-Xorg-1.19.5-5.el7.x86_64 (base)
xorg-x11-server-Xorg(x86-64) = 1.19.5-5.el7
Available: xorg-x11-server-Xorg-1.19.5-5.1.el7_5.x86_64 (updates)
xorg-x11-server-Xorg(x86-64) = 1.19.5-5.1.el7_5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigestDon't know how to install it.
| Cant' install xrdp on CentOS 7.5 |
Changing the colors depth of the remote session to High Color (16 bit) fixes it.
Link
In windows using the default RDP client was enough, in Kubuntu I had to use Remmina, with KRDC it didn't work, even changing to 16 bits color
|
If I use my CentOS 7 computer everything works fine but when I connect remotely (I have tried connecting from Ubuntu and Windows xrdp clients) everything works fine too except Matlab which shows a blank screen.It is a visual bug because I click on the blank screen and It does stuff. I can't understand why this only happens when connecting remotely. I have tried using gnome and xfce desktop environments and nothing changes.
Also I have other Ubuntu computers which I connect remotely and Matlab works fine there.
| Matlab showing blank screen when I connect remotely with xrdp in CentOS 7 |
There is an updated script and instruction blog post. Possibly you just need to run pulseaudio -k manually.
|
I followed the instruction posted in this tutorial to install pulseaudio-module-xrdp. If I go to the Settings Applet and select sound, then I see xrdp-sink object under sound card. And in the microsoft mstsc.exe client, I enabled sound redirection. I tried both options for client and for remote machine. Both has same result that I don't get any sound. What I want is to play the sound on the remote machine. Is it possible to change the audio driver to headphones on the remote computer?
$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0$ aplay -l
aplay: device_list:274: no soundcards found...$ lspci -v | grep -A7 -i "audio"
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
Subsystem: Gigabyte Technology Co., Ltd 7 Series/C216 Chipset Family High Definition Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 31
Memory at f7d10000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4) (prog-if 00 [Normal decode])$ pulseaudio --version
pulseaudio 13.99.1A test sound is working for sudo:
$ sudo aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, MonoFor user the sound test fails, also after adding my user to audio group:
$ sudo adduser user-name pulse-access
The user `user-name' is already a member of `pulse-access'.
$ sudo addgroup user-name audio
[sudo] password for user-name:
Adding user `user-name' to group `audio' ...
Adding user user-name to group audio
Done.
$ aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, MonoIf I run pavumeter and playback any YouTube video in Firefox. I see "Showing signal levels of xrdp sink" and volume meter moving.
$ pavumeter
Gtk-Message: 13:08:58.502: Failed to load module "overlay-scrollbar"
** Message: 13:08:58.744: Starting in playback mode.
** Message: 13:08:58.747: Using sample format: float32le 2ch 44100Hz
** Message: 13:08:58.747: Using channel map: front-left,front-right | xRDP sound redirection ubuntu 20.04 |
The solution here was to build xorgxrdp from source, as the one available from official repos (codeready/epel/appstream) do not have glamor support.
You can choose to install xrdp from the available repos - it is the same version as available on github. You will however need to download the source and compile xorgxrdp against it.
Assuming you have a typical X window system installation, you will still need to install a few packages. As this is specific to Enterprise Linux, I will post the package names for EL, though they are available on other version such as arch and debian.
Install the proper build tools:
nasm
libtool
pkgconf
automake
autoconfMake sure the following packages are installed:
xorg-x11-proto-devel
xorg-x11-server-devel
mesa-libGL-devel
mesa-libEGL*
mesa-libGLU*
mesa-libGLw*
mesa-libGLw-devel
mesa-libgbm*
mesa-libgbm-devel
mesa-libglapi*
libepoxy-devel*at the bare minimum you will need the devel packages.
save the following to a convenient location
git clone https://github.com/neutrinolabs/xrdp
git clone https://github.com/neutrinolabs/xorgxrdpnavigate to the xorgxrdp folder and perform the following commands
./bootstrap
./configure XRDP_CFLAGS=-I/path/to/xrdp/common --enable-glamor
make
sudo make installPay attention to the output generated by ./configure if it fails. It may require additional packages to be installed, though it will tell you the actual package name instead of saying 'dri' not found.
Once you have completed this step, uncomment the following lines in /etc/xrdp/xrdp.ini
[Xorg]
name=Xorg
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
code=20Restart the xrdp service.
Connect to the host with an RDP client. (you may need to reboot if the session closes immediately after connecting, or at least I ran into this issue.)
And enjoy a GPU accelerated RDP session.It is worth noting that this performance will not be the same as using RDP to connect to a Windows device, but it is much better than using software rendering.
I am not going to go in to details about security and reconnecting to the same session/connecting to a session that already exists, or enabling audio pass through as there are other topics on various forums that cover this quite well.
Final note: I am not sure if this works with NVidia cards. The arch wiki leads me to think that is the case, however the git repo says nothing about it.
|
I recently decided to switch to Linux at work, but I still require Windows and sometimes work remotely. When using Windows as a host this wasn't a big deal because I could RDP into my machine and launch VMWare and work out of Virtual Machines when needed.
Now I am using RHEL 8.5 as my Host with VMWare Workstation 16.2.1.
I have XRDP setup and can RDP into my RHEL box, but when I try to boot up a VM in VMWare over my RDP session, I get no graphical output from VMWare. (See picture)
Even though VMWare sits there 'Waiting for connection' the VM is actually running and booted up, just no output is being produced.I am using XRDP to create a new xfce session upon connecting. (Disregard the picture showing GNOME 3, I have changed the configuration but the problem still exists with xfce. Likely an issue with RDP/XVNC itself?)
Ideally I want to be able to RDP into my RHEL host instead of RDP directly into the VM, as I work with multiple VMs at any given time.
EDIT:
If I am interpreting this correctly, my RDP session is using software rendering, while my Plasma session (no RDP, physically at the device) is using hardware rendering. Is there a way to fix this? | VMware produces no output when using RDP to connect to the host |
In TCP/IP, there is no such thing as "an open port that is not used by anything". Any port that is not currently being used is going to be closed. In addition to that, iptables or any firewall can block certain ports from some or all traffic.
(I really hate the talk of "opening a port" in firewalls, because it feeds a misconception on how TCP and UDP ports work. A port can be unblocked in a firewall, but then you actually need some program or kernel-level service to actually use it, and it will open the port as part of the normal procedures of using the port.)
From the Xrdp(8) man page:-p, --port
Specify TCP port to listen to. This overrides port setting in xrdp.ini file.From the xrdp.ini(5) man page:port=port
Specify TCP port to listen on for incoming connections. The default for RDP is 3389.So Xrdp uses the port specified with the -p option if that option is used, or the port specified in the xrdp.ini configuration file if option -p is not used. If neither of them is specified, it uses port 3389, which is the same port Windows uses for the RDP protocol.
Most outgoing connections and any applications that don't specify a local port number for their TCP/UDP sockets will by default get a local port number in the range specified by the sysctl setting net.ipv4.ip_local_port_range. In RHEL/CentOS 7, this range defaults to port numbers 32768..60999.
(Each TCP or UDP connection will have both a local and a remote port number: outgoing connections usually only specify the remote port number and let the OS determine the local one, and ports opened for listening for incoming connections normally only specify the local port number.)
You can exclude specific ports and/or port ranges from this automatic allocation using the sysctl setting net.ipv4.ip_local_reserved_ports. For example, if you need to reserve ports 40000 and 40001 for some particular use, you can do it with:
sysctl -w net.ipv4.ip_local_reserved_ports=40000,40001This exclusion from automatic allocation will take effect immediately. To make it persistent, edit /etc/sysctl.conf and add this line to it:
net.ipv4.ip_local_reserved_ports=40000,40001Any program that explicitly specifies (= binds to) a port that has been reserved in this way will still get it as normal; this reservation will only override the automatic allocation of port numbers.
You cannot really do much else; if a regular user process requests a specific port number that is >1023 and is not currently in use by something else, the operating system will grant that request. (To use ports in the 0..1023 range, a process must run as root, or if a Linux distribution uses more fine-grained privileges, it needs to have the CAP_NET_BIND_SERVICE capability.)
However, you may be able to use iptables rules to make that port unusable to anything except the specific purpose, depending on what that purpose is. For example, you could restrict incoming/outgoing connections to that port to only those that fit the specific purpose, or use iptables -m owner --uid-owner <username> to restrict it to be useful for a specific user only, with a pair of rules like this:
iptables -A OUTPUT -m tcp -p tcp --sport 3389 -m owner --uid-owner specified-user -j ACCEPT
iptables -A OUTPUT -m tcp -p tcp --sport 3389 -j REJECT (The first rule will match the port and the intended user, and will ACCEPT the traffic and end rule processing for it; if that rule did not match, the second rule will match the port only, and will REJECT the outgoing traffic of anyone that is not the intended user of that port.)
This will not necessarily prevent other users from trying to use the port, but will make it so that the port will always fail to connect for them, so hopefully they will stop trying to use it.
|
I'm admin for some devs and they requested that a port on a machine be clear for a specific purpose. When one of the devs went to use that port, it was in use. An netstat -p showed that xrdp/Xnvc was using it. I tried to have the user jump off and back on to see if it would use another port, but it kept using that one.
From my reading, Xrdp chooses random, open port. I can figure out how to blacklist that port from the service.
The system: CentOS 7, using iptables instead of firewalld
| How to block a service (xrdp) from using a specific port? |
Since you're seeing a login prompt on tty1, the local X server has been stopped and the virtual console is in text mode, acting as a terminal emulator. (The xvnc is a separate, "virtual display" X server for incoming VNC/RDP connections. It does not deal with physical display, keyboard or mouse at all.)
To force disable it, you need the setterm command:
setterm --blank force But if you plan to run it remotely or from a script, you'll need to use it in a bit longer form:
setterm --blank force --term linux </dev/tty1In case you need to re-enable:
setterm --blank poke --term linux </dev/tty1Yes, the redirection is non-intuitive; it's the same special case as with the stty command.
With older versions of setterm, you may have to use >/dev/tty1 instead.
|
I have a laptop which I want to use only remotely via rdp (xvnc server). I have setup rdp successfully. As I only use the laptop remotely, I want to disable it's display. To do that, I have already disabled lightdm. However, now at boot it shows:
Antergos Linux 4.14.15-1-ARCH (tty1)simon login:I want to disable this display. However, I have no idea how to. I've tried:
xset dpms force offbut that only gives an error that the display cannot be found. Is x server even still running? If so, how do I disable it and blank the screen (and disable the laptop backlight)?
| How to disable tty1 and backlight using Arch Linux |
Using cat netstatout in place of sudo netstat -tlpn and cat psout in place of ps -ef for demonstration purposes:
$ cat tst.awk
BEGIN {
OFS = "\t"
print 0, 0, "user", "pid", "Xdisplay", "port", "geometry"
}
NR==FNR {
port = $4; sub(/.*:/,"",port)
pid = $NF; sub("/.*","",pid)
pid2port[pid] = port
next
}
/Xvnc[0-9]* :[[:digit:]]/ {
port = pid2port[$2]
match($0,/geometry [^ ]+/)
geometry = substr($0,RSTART+9,RLENGTH-9)
display = $9; sub(/:/,"",display)
print 1, display, $1, $2, $9, port, geometry
}.
$ awk -f tst.awk <(cat netstatout) <(cat psout) | sort -k1,1n -k2,2n | cut -f3- | column -t
user pid Xdisplay port geometry
bar 108415 :1 5901 1440x900
foo 17056 :2 5902 1920x1200
baz 127229 :11 5911 1920x1200
bar 27817 :12 5912 2560x1440
baz 48659 :13 5913 1920x1200 |
The following bash command (run on Ubuntu 18.04) displays the required XRDP information in a table, except for the resolution (geometry) of each XRDP session
{ echo "user pid Xdisplay port"; { ps -ef | awk '/Xvnc :[[:digit:]]+/ {print $1,$2,$9}' | while read tu tpid tvnc; do sudo netstat -tlpn | awk -v "tpid=${tpid}" '$0 ~ tpid {print $4;}' | sed -r -e 's/^.*://;' -e "s/^/${tu} ${tpid} ${tvnc} /;" ; done ; } | sort -k3 ; } | column -c4 -tgives the output, such as
user pid Xdisplay port
baz 127229 :11 5911
bar 27817 :12 5912
baz 48659 :13 5913How can we use to display the RDP session resolution (geometry) in addition to the existing details of the user name, pid, Xdisplay and port number?Desired output format
user pid Xdisplay port geometry
bar 108415 :1 5901 1440x900
foo 17056 :2 5902 1920x1200
baz 127229 :11 5911 1920x1200
bar 27817 :12 5912 2560x1440
baz 48659 :13 5913 1920x1200Example output of ps -ef | grep 'Xvnc'
foo 17056 1 0 Jun18 ? 07:00:08 Xvnc4 :2 -desktop myubuntupc:2 (foo) -auth /home/foo/.Xauthority -geometry 1920x1200 -depth 16 -rfbwait 30000 -rfbauth /home/foo/.vnc/passwd -rfbport 5902 -pn -fp /usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
bar 27817 27805 0 Aug06 ? 00:00:21 Xvnc :12 -geometry 2560x1440 -depth 24 -rfbauth /home/bar/.vnc/sesman_bar_passwd -bs -ac -nolisten tcp -localhost -dpi 96
baz 48659 48657 12 Sep02 ? 12:16:26 Xvnc :13 -auth .Xauthority -geometry 1920x1200 -depth 32 -rfbauth /home/baz/.vnc/sesman_passwd-baz@myubuntupc:13 -bs -nolisten tcp -localhost -dpi 96
bar 108415 1 0 Jul16 ? 02:09:36 Xvnc4 :1 -desktop myubuntupc:1 (bar) -auth /home/bar/.Xauthority -geometry 1440x900 -depth 16 -rfbwait 30000 -rfbauth /home/bar/.vnc/passwd -rfbport 5901 -pn -fp /usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/,/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
bar 115933 115125 0 15:17 pts/29 00:00:00 grep --color=auto Xvnc
baz 127229 127227 0 Sep01 ? 00:02:56 Xvnc :11 -auth .Xauthority -geometry 1920x1200 -depth 16 -rfbauth /home/baz/.vnc/sesman_passwd-baz@myubuntupc:11 -bs -nolisten tcp -localhost -dpi 96Output of sudo netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:41603 0.0.0.0:* LISTEN 88147/ssh
tcp 0 0 127.0.0.1:38609 0.0.0.0:* LISTEN 87886/ssh
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN 108415/Xvnc4
tcp 0 0 0.0.0.0:6002 0.0.0.0:* LISTEN 17056/Xvnc4
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 7966/dnsmasq
tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 106498/xrdp-sesman
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 43940/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 17827/cupsd
tcp 0 0 127.0.0.1:5911 0.0.0.0:* LISTEN 127229/Xvnc
tcp 0 0 127.0.0.1:5912 0.0.0.0:* LISTEN 27817/Xvnc
tcp 0 0 127.0.0.1:5913 0.0.0.0:* LISTEN 48659/Xvnc
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 105821/master
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 106523/xrdp
tcp6 0 0 ::1:41603 :::* LISTEN 88147/ssh
tcp6 0 0 :::5901 :::* LISTEN 108415/Xvnc4
tcp6 0 0 :::5902 :::* LISTEN 17056/Xvnc4
tcp6 0 0 ::1:38609 :::* LISTEN 87886/ssh
tcp6 0 0 :::22 :::* LISTEN 43940/sshd
tcp6 0 0 ::1:631 :::* LISTEN 17827/cupsd
tcp6 0 0 :::25 :::* LISTEN 105821/master | Bash Command to Parse `ps -ef` for XRDP Geometry/Resolutions |
Solution:
The command to perform the changes: xfconf-query.Listing Available Channels for Change
xfconf-query -lListing the Properties per Channel
xfconf-query -c $PROPERTY -l -v # For example, the property "xfce4-desktop":
xfconf-query -c xfce4-desktop -l -v-v: displays the value of the properties.
Each / is a subproperty.Monitoring Changes in Real Time
xfconf-query -c $PROPERTY -m # For example, the property "xfce4-desktop":
xfconf-query -c xfce4-desktop -mFor example, if the workspace0 wallpaper is changed, it will display the full path of the updated property: /backdrop/screen0/monitorrdp0/workspace0/last-image.
You can start monitoring and making changes via the GUI, where all the properties that have been changed will be displayed in the terminal for later use via the command line.Creating or Updating a Property
xfconf-query -c $CHANNEL -np $PROPERTY -t 'bool' -s 'true'; # For example, the channel "xfce4-panel" and the property "/panels/dark-mode":
xfconf-query -c xfce4-panel -np '/panels/dark-mode' -t 'bool' -s 'true';-n: ensures that if the property doesn't exist, it will be created.
You must enter the type of the property value:
[ 'string', 'int', 'bool', 'double' ]-s: sets the value of the property.
To insert an array with multiple elements, just insert the type and value in sequence:
-t int -s 0 -t int -s 1 -t int -s 2 #...To force a single item as an array:
-t int -s 0 -aRemoving a Property
xfconf-query -c $CHANNEL -p $PROPERTY -r -R; # For example, removing "Panel 2" completely:
xfconf-query -c xfce4-panel -p '/panels/panel-2' -r -R;-r: indicates the removal.
-R: ensures that all subproperties are deleted along with the property.Xfce TerminalYou can edit the Xfce Terminal preferences into ~/.config/xfce4/terminal/terminalrc.
You can edit via GUI and copy the file for later use.Just close and reopen terminal to see the changes.Whisker MenuIf you use the Whisker Menu, you can edit preferences into ~/.config/xfce4/panel/whiskermenu-**.rc.Replace ** with the order of plugin:Look for the plugin whistermenu in the xfce4-panel/plugins property to see the plugin number.
For example, if Whister Menu is plugin-19, then: ~/.config/xfce4/panel/whiskermenu-19.rc.You can edit via GUI and copy the file for later use.Considerations:Most changes that affect the front end require logging out and logging in again to view the changes, especially in the panels.
The xfconf-query command only works with the display active.Below is the script with the complete solution to the problem at hand:
#!/bin/sh # Check the display's availability
if [ -z $DISPLAY ]; then exit 1; fi; # Prevent suspend and lock the sreen
xfconf-query -c xfce4-screensaver -np '/lock/enabled' -t 'bool' -s 'false';
xfconf-query -c xfce4-screensaver -np '/lock/saver-activation/enabled' -t 'bool' -s 'false';
xfconf-query -c xfce4-screensaver -np '/saver/enabled' -t 'bool' -s 'false';
xfconf-query -c xfce4-power-manager -np '/xfce4-power-manager/inactivity-on-ac' -t int -s 0;
xfconf-query -c xfce4-power-manager -np '/xfce4-power-manager/blank-on-ac' -t int -s 0;
xfconf-query -c xfce4-power-manager -np '/xfce4-power-manager/dpms-on-ac-sleep' -t int -s 0;
xfconf-query -c xfce4-power-manager -np '/xfce4-power-manager/dpms-on-ac-off' -t int -s 0;
xfconf-query -c xfce4-power-manager -np '/xfce4-power-manager/lock-screen-suspend-hibernate' -t 'bool' -s 'false';
xfconf-query -c xfce4-power-manager -np '/xfce4-power-manager/dpms-enabled' -t 'bool' -s 'false'; # Remove dock
xfconf-query -c xfce4-panel -p '/panels/panel-2' -r -R;
xfconf-query -c xfce4-panel -np '/panels' -t int -s 1 -a; # Removing wallpaper
xfconf-query -c xfce4-desktop -np '/backdrop/screen0/monitorrdp0/workspace0/color-style' -t int -s 0;
xfconf-query -c xfce4-desktop -np '/backdrop/screen0/monitorrdp0/workspace0/image-style' -t int -s 0;
xfconf-query -c xfce4-desktop -np '/backdrop/screen0/monitorrdp0/workspace0/rgba1' -t double -s 0.184314 -t double -s 0.207843 -t double -s 0.258824 -t double -s 1.000000; # Personal settings
xfconf-query -c xfce4-desktop -np '/desktop-icons/tooltip-size' -t 'double' -s 48.000000;
xfconf-query -c xfce4-desktop -np '/desktop-icons/gravity' -t int -s 0;
xfconf-query -c xfwm4 -np '/general/workspace_count' -t int -s 1; # Put menu in bottom
xfconf-query -c xfce4-panel -np '/panels/dark-mode' -t 'bool' -s 'true';
xfconf-query -c xfce4-panel -np '/panels/panel-1/position' -t 'string' -s 'p=10;x=0;y=0';
xfconf-query -c xfce4-panel -np '/plugins/plugin-1/show-tooltips' -t 'bool' -s 'true'; # Grouping tasklist
xfconf-query -c xfce4-panel -np '/plugins/plugin-2/grouping' -t int -s 1; # Logout settings
xfconf-query -c xfce4-session -np '/shutdown/ShowSuspend' -t 'bool' -s 'false';
xfconf-query -c xfce4-session -np '/shutdown/LockScreen' -t 'bool' -s 'false';
xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'false';
xfconf-query -c xfce4-session -np '/general/PromptOnLogout' -t 'bool' -s 'false'; # Logout to save changes
xfce4-session-logout --logout;Sources:https://docs.xfce.org/start
https://docs.xfce.org/xfce/xfconf/xfconf-query
https://wiki.xfce.org/settings4.6 |
I would like to edit some preferences of xubuntu-desktop (xfce4), but 100% via Terminal.
In ubuntu-desktop (gnome) I use, for example:
# Prevent suspend and lock the sreen
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false # Set performance settings
gsettings set org.gnome.desktop.interface enable-animations false
gsettings set org.gnome.shell.extensions.dash-to-dock animate-show-apps false # Set personal configs
gnome-extensions enable [emailprotected]
gnome-extensions enable desktop-icons@csoriano
gnome-extensions enable [emailprotected]
gnome-extensions enable [emailprotected]
gsettings set org.gnome.desktop.privacy remember-recent-files false
gsettings set org.gnome.SessionManager logout-prompt falseIn xubuntu-desktop (xfce4), I can accomplish all these preferences via GUI, but I couldn't find a way to do the same tasks via Command Line.Just adding infos for more details:OS: Ubuntu 20.04
Types of Access: Remote Desktop via xrdp and SSH
Which preferences to change?Prevent system suspension due to inactivity
Disable screensaver
Disable animations
Disable logout confirmation
Disable "dock"
Change panel position
References I: similar commands to gsettings set ... and gnome-extensions enable ... from ubuntu-desktop (gnome) to perform changes
References II: similar commands to gsettings list-schemas and gsettings list-keys ... — also from ubuntu-desktop (gnome) — to list the available preference settings | Edit Xubuntu preferences via Command Line |
The problem encountered with xrdp in the Docker container might be associated with how services are initiated and managed within the container. When the container restarts, it might fail to automatically trigger the xrdp-sesman service, resulting in connection failures. This could be the reason why manually starting sesman resolves the issue until the container is restarted.
One possible solution could involve reconfiguring the Docker container's entry point or startup script to ensure that essential services, such as xrdp-sesman, initiate upon container initialization. This might require managing it through a process manager or script within the container.
Adjustments to be made in the Dockerfile:
#copy the startup script into the container
COPY startScript.sh /usr/local/bin/startScript.sh#grant execute permissions to the script
RUN chmod +x /usr/local/bin/startScript.sh# Set the script as entry point to run on container start
ENTRYPOINT ["/usr/local/bin/startScript.sh"]Additionally, the startScript.sh has to be modify to properly initiate xrdp services:
#!/bin/bash# Function to check and start the sesman service if not running
start_sesman() {
if ! pgrep -x "xrdp-sesman" > /dev/null; then
echo "xrdp-sesman not running. Starting sesman..."
/usr/sbin/xrdp-sesman
else
echo "xrdp-sesman is already running."
fi
}# Start sesman
start_sesman# Start xrdp
/usr/sbin/xrdp -nThis adjusted setup will initiate the startScript.sh as the container's entry point. It contains a function to verify if xrdp-sesman is running and starts it if it's not. This should ensure that the necessary services start upon container restart.
|
I have created an image with a Dockerfile which is a Debian Bookworm that has the UI XFCE and where you connect via xrdp (remote desktop).
Let's get to the problem:
If I create a whole new container with this image, then I can login to the UI with RDP, also log out and log in again.
ONLY when I restart the container and want to log in again (on the xrdp page) then I get a sesman error (sesman is strangely not active/started).
But if i start sesman with "/usr/sbin/xrdp-sesman" everything works again until i restart the container.
Is this a logic error from my side? or is this a known problem with sesman.
dockerfile:
#use the debian bookworm image
FROM debian:bookworm#update all package directories
RUN apt update#install all needed programs like
#XFCE for UI
#xrdp for connecting via RemoteDesktop
#dbus-x11 for that you can connect to the desktop at all (otherwise the connection w>
#xfce4-goodies for the Xfce4 Desktop Environment (https://packages.debian.org/de/sid>
RUN apt install -y xrdp xfce4 dbus-x11#install usefull tools like: nano, wget, curl and sudo
RUN apt install -y nano wget curl sudo#FIX: removed the annoying screen "Plugin "Power Manager Plugin" unexpectedly left t>
RUN apt remove xfce4-power-manager-plugins -y#clean up
RUN apt clean && apt autoremove -y#create default user called "user", with password "changeme"
RUN useradd -m -s /bin/bash -p $(openssl passwd -1 changeme) user#copy files
COPY /data/startScript.sh /#make the start script runable
RUN chmod +x /startScript.sh#expose the RDP port
EXPOSE 3389#start the start script and run the container
CMD ["/startScript.sh"]startScript.sh
#!/bin/bash#start the xrdp session manager
/usr/sbin/xrdp-sesman#start xrdp overall
/usr/sbin/xrdp -nUser-Data:
Username => user
Password => changemeCopyPaste-Commands:
docker build -t debianxfcerdp .
docker run -d -p 3399:3389 --name test01 debianxfcerdp | Remote connection to Debian container has a certain error (xrdp & sesman) |
In openSUSE, there are a few ways of listing installed files. With Zypper, I
would try:
zypper search -iOr:
zypper search --installed-onlyWith RPM, you can try:
rpm -ql packageName | less |
How can I use zypper to list the locations of installed files for a given package?
| How can I list all files which have been installed by an ZYpp/Zypper package? |
To search from all available packages to find a particular file, you can use the option wp or se --provides --match-exact as an example:
zypper se --provides --match-exact hgYou will see output similiar to the following:
Loading repository data...
Reading installed packages...S | Name | Summary | Type
--+-----------+--------------------------+--------
| mercurial | Scalable Distributed SCM | packageFrom that point you can install the package through a standard zypper install
zypper in mercurialIt should be noted that zypper wp is obsolete and may no longer be available.
|
I am thinking on some like Contents-<arch>.gz on Debian. A network service were also okay. Does it exist?
Simple elaboration: For example, we need a binary named exampletool, which we know very good from other distributions or operation systems. We want to install that, for example, with zypper. But zypper can only install a package. To find out, in which package can we find the required exampletool binary, we need to do practically a search, and ideally a fast, indexed search in the file list of the currently not installed, but in the repositories available packages. On debian, there is an index file in the package repositories named Contents-amd64.gz, in which we can find the required package with a single zgrep command. I am looking for some similar, single-command solution for OpenSUSE, too. If there is none, a web service were also okay for the same functionality.
| How do I find a package that provides a given file in OpenSuSE? |
In general, you should use --non-interactive mode, in shortcut -n, when running zypper non-interactively:
zypper -n install curlThat might seem confusing for someone coming from apt-get install -y curl. Some zypper sub-commands also support a command-specific -y/--no-confirm option as an alias for -n/--non-interactive, but not all sub-commands do. As the install command does implement that, this command is equivalent to the above:
zypper install -y curlNote that the -y must come after install, while the global -n option comes before the subcommand (zypper install -n means something different; read the man page for that).
[Edit] The section below is no longer accurate, but is retained for historical reference. Current zypper supports the --gpg-auto-import-keys option to automatically import and trust the gpg keys associated with a new repository.According to documentation there's no way how to accept a GPG key without interactive mode:a new key can be trusted or imported in the interactive mode onlyEven with --no-gpgp-checks the GPG key will be rejected.
A workaround for scripts is to use pipe and echo:
zypper addrepo http://repo.example.org my_name | echo 'a' |
I have a few questions about moving from apt-get to zypper in bash scripts.
What is the equivalent of this?
sudo apt-get install curl --assume-yes(where curl could be any package)
I found the Zypper Cheat Sheet - openSUSE. Very nice! But I would appreciate the voice of experience here -- what's the right way to use zypper in a script where I want to auto agree to all prompts and not skip things that need a response?
With my inexperience I would be tempted to use:
sudo zypper --non-interactive --no-gpg-checks --quiet install --auto-agree-with-licenses curlBut is that really the equivalent of --assume-yes?
What about the equivalent for these?
sudo apt-get autoremove -y
sudo apt-get autoclean -yThis suggests there isn't one...
Is there a replacement for gdebi-core? Or is gdebi not ever needed with zypper's "powerful satisfiability solver"? I use gdebi for situations where I need to install a package on an older version and I have a .deb file already (but not all the dependencies).
| How to use zypper in bash scripts for someone coming from apt-get? |
I found the answer from https://www.reddit.com/r/bashonubuntuonwindows/comments/8fcbs5/update_of_opensuse_on_wsl_error/ : you need to change the repository URIs from HTTP to HTTPS. I just did that and was able to see new packages. I only had the oss and oss_update repositories, so the process I followed was:
sudo zypper rr oss
sudo zypper rr oss_update
sudo zypper ar https://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/ oss
sudo zypper ar https://download.opensuse.org/update/leap/42.3/oss/ oss_updatesudo zypper ref
sudo zypper upTo make sure this works for your version, find the version number of your system, and substitute it into the above URLs in the place of 42.3. (You can make sure the URLs are valid by opening them in a browser.) You can see the version number in the output of the following command:
cat /etc/os-release |
On WSL, I executed sudo zypper update, but I got this error message.Loading repository data...
Warning: Repository 'oss_update' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Nothing to do.When I executed sudo zypper refresh, I didn't get any error message, though.
Retrieving repository 'The Go Programming Language (openSUSE_Leap_42.3)' metadata ...............................................................................................................................................[done]
Retrieving repository 'devel:languages:php (openSUSE_Leap_42.3)' metadata .......................................................................................................................................................[done]
Repository 'oss' is up to date.
Retrieving repository 'oss_update' metadata .....................................................................................................................................................................................[done]
Retrieving repository 'PHP7 extensions (php7_openSUSE_Leap_42.3)' metadata ......................................................................................................................................................[done]
All repositories have been refreshedI checked the list of the repository I am using with zypper lr -u.
# | Alias | Name | Enabled | GPG Check | Refresh | URI
--+----------------------------+--------------------------------------------------+---------+-----------+---------+-------------------------------------------------------------------------------------------------
1 | devel_languages_go | The Go Programming Language (openSUSE_Leap_42.3) | Yes | (r ) Yes | No | http://download.opensuse.org/repositories/devel:/languages:/go/openSUSE_Leap_42.3/
2 | devel_languages_php | devel:languages:php (openSUSE_Leap_42.3) | Yes | (r ) Yes | No | http://download.opensuse.org/repositories/devel:/languages:/php/openSUSE_Leap_42.3/
3 | oss | oss | Yes | (r ) Yes | No | http://download.opensuse.org/distribution/leap/42.3/repo/oss/suse/
4 | oss_update | oss_update | Yes | (r ) Yes | No | http://download.opensuse.org/update/leap/42.3/oss/
5 | server_php_extensions_php7 | PHP7 extensions (php7_openSUSE_Leap_42.3) | Yes | (r ) Yes | No | http://download.opensuse.org/repositories/server:/php:/extensions:/php7/php7_openSUSE_Leap_42.3/When I check the content of http://download.opensuse.org/update/leap/42.3/oss/, I see the files and the directories have been updated on March 23, 2018, so they don't seem obsolete.
Why am I getting that error message about the repository being outdated? How do I change the repository I am using? What should I use?
| Why do I get "Warning: Repository 'oss_update' appears to be outdated. Consider using a different mirror or server."? |
You can reinstall all currently installed packages by this command:
zypper in -f $(rpm -q -a --qf '%{NAME} ')Maybe this information will be useful.
|
How do I tell zypper to reinstall all currently installed packages?
| How to reinstall all installed packages with zypper |
The zypper man page answers your question: i+ installed by user request
i installed automatically (by the resolver, see section Automatically installed packages) |
I'm struggling to understand what does the '+' symbol mean in the zypper output search.
I have some packages that in the S field have I, others I+.
What is this + ?
For some reason my system hasn't the + in a packet X and I have problems with another packet Y. In another system where there is the + symbol this problem isn't present.
Cheers
| zypper search output what does i+ mean? |
Found here: Zypper manualThe status column can contain the following values: i - installed, v - another version installed, or an empty space for neither of the former cases |
I've read the zypper man page, but it doesn't explain the output. Therefore, I am asking you to explain me what "S" column stands for.
For example. Type:
zypper se -s post Some of the output looks like this:
S | Name | Type | Version | Arch | Repository
--+-------------------------------------+------------+-----------------------+--------+-----------------------
| libgda-4_0-postgres | package | 4.1.2-1.3.48 | x86_64 | SLE11SP3-SERVER
i | libqt4-sql-postgresql | package | 4.6.3-5.32.1 | x86_64 | SLE11SP3-SDK-UPDATE
v | libqt4-sql-postgresql | package | 4.6.3-5.29.2 | x86_64 | SLE11SP3-SDK-UPDATE
v | libqt4-sql-postgresql | package | 4.6.3-5.25.4 | x86_64 | SLE11SP3-SDK The questions are:What "i" means? (I think it means installed)
What "v" means?
What whitespace means (I think it means not installed) | What "i" and "v" indicates in the zypper output? |
(I solved this a while ago, just forgot to post an answer)
I ended up creating a cron job which runs everyday at 3am (my computer stays on 24/7) and invokes an update script.
The script contains only a couple lines and basically refreshes the repositories (zypper ref) and then installs all available updates (zypper up). It has worked for me for the past few months.
|
I'm currently working in a command line only environment.
I would like to perform daily updates automatically using zypper, however I can't find a good way to do it. By good I mean clean and simple.
Is it safe to execute sudo zypper update daily using cron? I was told that this isn't always a good way to do it.
Are there other ways I could make package updates through zypper completely automatic?
| Tips for making software updates automatic in OpenSuse (zypper) |
Better
At first I experimented with SailorCire's answer here and came up with an improved version:
zypper search -t package -x -s PACKAGE | grep " MIN_NUM" | cut -d '|' -f 4 | tr -d '[:space:], then you can pipe it into zypper install by doing zypper install PACKAGE followed by backticks-surrounded command above.
For example, this will install php7-pear 1.*:
zypper -n in --details php7-pear-`zypper search -t package -x -s php7-pear | grep " 1." | cut -d '|' -f 4 | tr -d '[:space:]'`Best
But then I came up with a better solution. Rather than target a specific version with hacks like this, we can exclude versions without hacks using zypper addlock with version constraints.
So, what OP wants is actually this:
zypper addlock "mypackage < 2"
zypper addlock "mypackage >= 3"These will prevent mypackage installs with versions <2 or >=3.
|
I am writing a script that installs some packages and does some configuration work. I want the script to install a specific major version of a package, but I do not care which minor version of the package it is.
More to the point, I want it to install the latest 2.y.z release of the package, but not 1.y.z or 3.y.z (or any other major version number).
I have tried (without success)zypper install 'mypackage=2'
zypper install 'mypackage>1<3'
zypper install 'mypackage>1' 'mypackage<3'
zypper install 'mypackage>=2.0.0' 'mypackage<3.0.0'The last one seems promising, because then zypper complains:'mypackage>=2.0.0' not found in package names. Trying capabilities. No
provider of 'mypackage >= 2.0.0' found.However, after that message, it still proceeds with installing mypackage-1.5.0, because that satisfies the second package-edition specified.
| zypper install specific major version without specifying the minor version |
Actually, the source package has been installed successfully in /usr/src/package folder. But it is not marked as "installed" state from this document: HINT: Source packages can be copied from the installation medium to the hard disk and unpacked with YaST. They are not, however, marked as installed ([i]) in the package manager. This is because the source packages are not entered in the RPM database. Only installed operating system software is listed in the RPM database. When you install a source package, only the source code is added to the system. |
I use zypper si command to install source package in SUSE:
localhost:/dev/disk/by-id # zypper si zlib
Reading installed packages...
Loading repository data...
Resolving package dependencies...The following source package is going to be installed:
zlib1 source package to install.
Overall download size: 587.0 KiB. Already cached: 0 B. After the operation, additional 597.7 KiB will be used.
Continue? [y/n/? shows all options] (y): y
Checking for file conflicts: ........................................................................................................[done]But when I use the command: zypper se to check package state, it shows "not installed":
localhost:/dev/disk/by-id # zypper se zlib
Loading repository data...
Reading installed packages...S | Name | Summary | Type
--+------+--------------------------+-----------
| zlib | Data Compression Library | srcpackageCould anyone give some clues?
| How to install src package in SUSE? |
On the openSuSE forums, user Robi Listas gave the start of an answer which I finished. Here is the summary:
Zypper does not expose the location of the keys, but the repository key files on openSuSE are in /var/cache/zypp/raw/*/repodata where * is the alias name of a repository from the list you can get through zypper repos.
I wrote a small bash repomd_test.sh script based on a script by Tojaj that you can call like this for each repodata directory:
for d in /var/cache/zypp/raw/*/repodata; do ~/repomd_test.sh $d; doneEach of those directories has three files:repomd.xml signed repository file (this is XML)
repomd.xml.asc ASCII "armor" signature of repomd.xml
repomd.xml.key ASCII public key used to create the repomd.xml.asc signatureThe script creates a temporary keyring directory for GnuPG.
Then for the repodata, it adds the repomd.xml.key to the keyring, then verifies that the repomd.xml indeed corresponds to the repomd.xml.asc signature and prints the fingerprint and meta information (like expiration).
|
I've two almost identical openSuSE 12.3 virtual machines, snip and snap.
While updating them today, one asked to confirm a new repository or package signing key, the other didn't.
I want to make really sure I didn't do anything wrong (just in case one of them got compromised in one way or the other), especially since the system not asking for the key indicates all repositories are up to date.
So: Where does zypper install these keys?
How can I list the installed keys?
How can I verify these keys are indeed valid?System asking to trust the key:
snap:/home/jeroenp # zypper repos -d
# | Alias | Name | Enabled | Refresh | Priority | Type | URI | Service
---+---------------------------+------------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------------------------------------+--------
1 | Security_-_openSUSE_12.3 | Security - openSUSE 12.3 | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/security/openSUSE_12.3/ |
2 | openSUSE-12.3-1.6 | openSUSE-12.3-1.6 | Yes | No | 99 | yast2 | cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001,/dev/sr0 |
3 | repo-debug | openSUSE-12.3-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/distribution/12.3/repo/oss/ |
4 | repo-debug-update | openSUSE-12.3-Update-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/update/12.3/ |
5 | repo-debug-update-non-oss | openSUSE-12.3-Update-Debug-Non-Oss | No | Yes | 99 | NONE | http://download.opensuse.org/debug/update/12.3-non-oss/ |
6 | repo-non-oss | openSUSE-12.3-Non-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/12.3/repo/non-oss/ |
7 | repo-oss | openSUSE-12.3-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/12.3/repo/oss/ |
8 | repo-source | openSUSE-12.3-Source | No | Yes | 99 | NONE | http://download.opensuse.org/source/distribution/12.3/repo/oss/ |
9 | repo-update | openSUSE-12.3-Update | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/12.3/ |
10 | repo-update-non-oss | openSUSE-12.3-Update-Non-Oss | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/12.3-non-oss/ |
snap:/home/jeroenp # zypper update
Retrieving repository 'Security - openSUSE 12.3' metadata ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------[\]New repository or package signing key received:
Key ID: 69D1B2AAEE3D166A
Key Name: security OBS Project <[emailprotected]>
Key Fingerprint: AAF3EB044C49C402A9E7B9AE69D1B2AAEE3D166A
Key Created: Mon May 26 11:04:43 2014
Key Expires: Wed Aug 3 11:04:42 2016
Repository: Security - openSUSE 12.3Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): ^Csnap:/home/jeroenp # ^C
snap:/home/jeroenp #System not asking to trust the key:
snip:/home/jeroenp # zypper repos -d
# | Alias | Name | Enabled | Refresh | Priority | Type | URI | Service
---+---------------------------+------------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------------------------------------+--------
1 | Security_-_openSUSE_12.3 | Security - openSUSE 12.3 | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/repositories/security/openSUSE_12.3/ |
2 | openSUSE-12.3-1.6 | openSUSE-12.3-1.6 | Yes | No | 99 | yast2 | cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001,/dev/sr0 |
3 | repo-debug | openSUSE-12.3-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/distribution/12.3/repo/oss/ |
4 | repo-debug-update | openSUSE-12.3-Update-Debug | No | Yes | 99 | NONE | http://download.opensuse.org/debug/update/12.3/ |
5 | repo-debug-update-non-oss | openSUSE-12.3-Update-Debug-Non-Oss | No | Yes | 99 | NONE | http://download.opensuse.org/debug/update/12.3-non-oss/ |
6 | repo-non-oss | openSUSE-12.3-Non-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/12.3/repo/non-oss/ |
7 | repo-oss | openSUSE-12.3-Oss | Yes | Yes | 99 | yast2 | http://download.opensuse.org/distribution/12.3/repo/oss/ |
8 | repo-source | openSUSE-12.3-Source | No | Yes | 99 | NONE | http://download.opensuse.org/source/distribution/12.3/repo/oss/ |
9 | repo-update | openSUSE-12.3-Update | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/12.3/ |
10 | repo-update-non-oss | openSUSE-12.3-Update-Non-Oss | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/12.3-non-oss/ |
snip:/home/jeroenp # zypper update
Loading repository data...
Reading installed packages...The following package update will NOT be installed:
libudev0 Nothing to do.
snip:/home/jeroenp # snip:/home/jeroenp # zypper refreshRepository 'Security - openSUSE 12.3' is up to date.
Repository 'openSUSE-12.3-1.6' is up to date.
Repository 'openSUSE-12.3-Non-Oss' is up to date.
Repository 'openSUSE-12.3-Oss' is up to date.
Repository 'openSUSE-12.3-Update' is up to date.
Repository 'openSUSE-12.3-Update-Non-Oss' is up to date.
All repositories have been refreshed.snip:/home/jeroenp # | Where does zypper install the repository or package signing keys? |
Using Martin's answer/guidance, I wrote a quick script to take a string of packages to remove, zremove.sh:
#!/bin/shpkgs=""
while read line
do
pkgs="$pkgs $line"
donezypper rm $pkgsAfter noticing that all of my packages "without a repository" had a distribution of openSUSE 12.1 in the rpm query, I issued this command to locate and remove all of them:
rpm -qa --qf '%{DISTRIBUTION} : %{NAME}\n' | grep "openSUSE 12.1 :" | sed 's/openSUSE 12.1 : //' | sudo zremove.shThis doesn't generally answer the question of how to find all packages without a backing repository, but it did solve my initial issue.
|
I just upgraded to OpenSUSE 12.2 from OpenSUSE 12.1 by changing all of my repositories to target 12.2 (instead of 12.1). Now that I've upgraded, I've found a bunch of packages that have no repository*, which the YaST Software Manager marks with red text in the version column. I can scroll through these and remove every single one, but I'm wondering if the zypper search (zypper se) or the Software Manager has any way to target/select all of these at once.
*- These packages had a repository (OpenSUSE 12.1 something), but since I replaced those repositories with the 12.2 repositories, they no longer have a repository association. This doesn't create a problem, because the 12.2 repositories should contain everything I need to run my system.
| OpenSUSE: Find all Packages without a repository |
The process of executing this install is easier than most think and surprisingly there is not much good or direct info out there on how to do this. The above answer is correct, but has some elements which are a bit outdated. Download Oracle JDK 1.8.0_151
#// rpm Installation Oracle JDK 1.8.0_151
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie"http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.rpmRun installation command
#// installation command
rpm -ivh jdk-8u151-linux-x64.rpVerify the version is configured / installed to your prefernce
java -versionSet the environment variables using the command line interface or editor
#//Command line
export JAVA_HOME=/usr/java/jdk1.8.0_151/
export PATH=$PATH:/usr/java/jdk1.8.0_151/bin#// set variables at the END of the file etc/profile
sudo vim /etc/profile/#//Variables to set within the file
JAVA_HOME=/usr/java/jdk1.8.0_151
PATH=$Path:$HOME/bin:@JAVA_HOME/bin
export JAVA_HOME
export PATH#//To save / exit vim execute the following key strokes
<ESC>
<:>
<x> |
I have searched many OpenSUSE forums for an answer to this, but so far I have not found one. Long story short, when installing the RPM for the JDK from Oracle, I receive the following:
> sudo zypper install jdk-8u111-linux-x64.rpm
[sudo] password for root:
Loading repository data...
Reading installed packages...
Resolving package dependencies...The following NEW package is going to be installed:
jdk1.8.0_1111 new package to install.
Overall download size: 158.3 MiB. Already cached: 0 B. After the operation, additional 258.5 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package jdk1.8.0_111-2000:1.8.0_111-fcs.x86_64 (1/1), 158.3 MiB (258.5 MiB unpacked)
Checking for file conflicts: ......................................................................[done]
(1/1) Installing: jdk1.8.0_111-2000:1.8.0_111-fcs.x86_64 ..........................................[done]
Additional rpm output:
Unpacking JAR files...
tools.jar...
plugin.jar...
javaws.jar...
deploy.jar...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
update-alternatives: using /usr/java/jdk1.8.0_111/jre/bin/java to provide /usr/bin/java (java) in auto mode
update-alternatives: error: alternative ControlPanel can't be slave of javac: it is a slave of java
warning: %post(jdk1.8.0_111-2000:1.8.0_111-fcs.x86_64) scriptlet failed, exit status 2Forgive me for the high levels of verbosity, I just wanted you to see precisely as I see. This is on a fresh install of OpenSUSE Tumbleweed.
I have also tried to install it on OpenSUSE Leap 42.2 with a fresh install as well. After my very first attempt, I reloaded with no Java support whatsoever (no OpenJDK) to start from scratch as I've done with this install. I've followed the guides for installing Java on OpenSUSE specifically. Ones that have no Java installed, ones that java OpenJDK installed prior, ones that install both the JDK and JRE, for whatever reason, etc.
For the record, Java itself is functioning, but obviously the Control Panel is not. I have attempting manually use update-alternatives, I've attempted to compile from scratch, I've reloaded, I've switched from Leap to Tumbleweed. Here is some other information that may be of use:
> sudo update-alternatives --list java
/usr/java/jdk1.8.0_111/jre/bin/java
> sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/java/jdk1.8.0_111/jre/bin/java
Nothing to configure.
> java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
> javac -version
javac 1.8.0_111Again, I can see Java is working. But I'd still like to understand why this is so easily reproducible and how to fix it.
| Java 8 JDK install on OpenSUSE - Update Alternatives |
Short answer is you don't. I haven't found a way after reading the man pages, help section, or website.
What you can do, is download the rpm and then install that into a different directory.
You should be able to do this with the following:
zypper in --download-only wireshark
rpm --prefix=/home/ec2-user/ -ivh /var/cache/zypp/packages/SMT-http_smt-ec2_susecloud_net:SLE11-SDK-SP3-Updates/rpm/x86_64/wireshark-1.10.11-0.2.1.x86_64.rpmDon't ask me why, I think this has something to do with zypper's own internal database and dealing with distro-upgades.
|
How do I install a package in my ~/bin directory using zypper? I first downloaded the package as root, and then tried to install it as non root, but that way it runs into dependency issues.
# zypper in --download-only wireshark
...
$ zypper -R /home/ec2-user/bin in /var/cache/zypp/packages/SMT-http_smt-ec2_susecloud_net:SLE11-SDK-SP3-Updates/rpm/x86_64/wireshark-1.10.11-0.2.1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...Problem: nothing provides libadns.so.1()(64bit) needed by wireshark-1.10.11-0.2.1.x86_64
Solution 1: do not install wireshark-1.10.11-0.2.1.x86_64
Solution 2: break wireshark-1.10.11-0.2.1.x86_64 by ignoring some of its dependenciesIs there some zypper option similar to --prefix? BTW I only want the analysis function of tshark. Thanks.
| zypper, how to install a package in local ~/bin directory |
The best way I found is to use PackageKit CLI (pkcon). It's very usefull since it is used by other distros and can be a standarized way to query about software updates.
e.g.:
Get a list about all updates
pkcon get-updatesThen you can query updates about a specific package:
pkcon get-update-detail fooe.g.:
pkcon get-update-detail udev I am not using zypper but is been launched from command line so I can script it.
Also, there is a nagios plugin using PackageKit
|
Is there any way to get information about an available package update via zypper?
I can get info about a patch with:
zypper info -t patch pachNameHereand I can obtain the patch name via:
zypper list-patchesI want to do something similar with zypper list-updates to get info about those updates like release notes, bugfixes, etc in order to know how important they are.
I am also using the zypper nagios plugin (nagios-plugins-zypper)
Any suggestion?
| get info about package update in openSuSE |
You have to add the option ssl_verify=no to the baseurl parameter.
So if you do not want to check the URL of the offical sources you can use:
# WARNING: Use this option only if you know what you do
baseurl=https://download.opensuse.org/distribution/leap/15.2/repo/oss/?ssl_verify=no |
I'm using SLES 2015 behind a firewall. All of my outgoing communications go over a proxy; specifically, zypper tries to use the proxy when I write, say,
zypper search-packages foobut the proxy provides its own SSL certificate instead of the actual target site, essentially running a "man in the middle" attack :-P ... and so I get:
SSL verification failed: unable to get local issuer certificate
Certificate issuer: /C=US/O=Foo Inc./CN=Foo Inc. External Root CA 2.1
Certificate subject: /C=US/O=Foo Inc./OU=Whatever/CN=Foo Inc. CA 2.1
Could not search for the package: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)I want to avoid this failing certificate verification; and I'm guessing the easiest way is to just not verify any certs. How do I turn the verification off?
Additional info:
# zypper repos
Warning: No repositories defined.
Use the 'zypper addrepo' command to add one or more repositories. | How do I disable zypper's certificate check? |
I found Thread: zypper https urls: Protocol "http" not supported or disabled in libcurl, which contains a link to Thread: Cached files in /home/~/.cache/kioexec/krun/####_# ? How to avoid?
Following what said in those posts, I tried curl https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_42.3/devel:languages:php.repo, which outputs the following.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://download.opensuse.org/repositories/devel:languages:/php/openSUSE_Leap_42.3/devel:languages:php.repo">here</a>.</p>
<hr>
<address>Apache/2.2.34 (Linux/SUSE) Server at download.opensuse.org Port 443</address>
</body></html>So, https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_42.3/devel:languages:php.repo is redirected to http://download.opensuse.org/repositories/devel:languages:/php/openSUSE_Leap_42.3/devel:languages:php.repo and, since the redirect is from https:// to http://, it is not followed by Zypper.
In short, the server is not yet working using https:// URLs, and the temporary work-around is to use http:// URLs. Nothing is wrong in my OpenSuse 42.3 installation.
|
I am trying to add a repository to my OpenSUSE Leap 42.3 (running on WSL) with the following command.
sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_42.3/devel:languages:php.repoI get the following error.Download (curl) error for
'https://download.opensuse.org/repositories/devel:languages:php/openSUSE_Leap_42.3/devel:languages:php.repo':
Error code: Bad URL Error message: Protocol http not supported or
disabled in libcurlI find confusing the fact the error message is talking about http when I am using https as protocol, and still more confusing that the output of curl --version suggests https is a supported protocol.curl 7.37.0 (x86_64-suse-linux-gnu) libcurl/7.37.0 OpenSSL/1.0.2j zlib/1.2.8 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRPWith zypper info libssl43, I get the following output.
Information for package libssl43:
---------------------------------
Repository : oss
Name : libssl43
Version : 2.5.3-6.1
Arch : x86_64
Vendor : openSUSE
Installed Size : 360.0 KiB
Installed : Yes
Status : up-to-date
Source package : libressl-2.5.3-6.1.src
Summary : An SSL/TLS protocol implementation
Description :
LibreSSL is an open-source implementation of the Secure Sockets Layer
(SSL) and Transport Layer Security (TLS) protocols. It derives from
OpenSSL and intends to provide a more secure implementation.The output of zypper info libcrypto41 is the following. (libcrypto41 is a dependency of libssl43.)
Information for package libcrypto41:
------------------------------------
Repository : oss
Name : libcrypto41
Version : 2.5.3-6.1
Arch : x86_64
Vendor : openSUSE
Installed Size : 2.0 MiB
Installed : Yes (automatically)
Status : up-to-date
Source package : libressl-2.5.3-6.1.src
Summary : An SSL/TLS protocol implementation
Description :
The "crypto" library implements a wide range of cryptographic
algorithms used in various Internet standards. The services provided
by this library are used by the LibreSSL implementations of SSL, TLS
and S/MIME, and they have also been used to implement SSH, OpenPGP,
and other cryptographic standards.How can I use https URLs? I could instead use http, but I would prefer not going through that path.
| Why do I get "Protocol http not supported or disabled in libcurl"? |
I'm not familiar with Zypper, so take this answer with a grain of salt. I am familiar with APT, which Zypper draws some inspiration from; I may have missed important differences between the two.
As far as I can tell, zypper update tries to pull in the latest version of each package. But it does this in a relatively meek way: only more recent versions of already-installed packages from the same repository are considered for installation. zypper update doesn't install new packages, remove existing packages, or install a new package version from a different repository.
zypper dist-upgrade is more aggressive. It tries to bring your system in synch with what the repositories offer: after zypper dist-upgrade, you should have the same package versions as if you installed from scratch from the repositories as they are now.
|
sudo zypper update
The following package updates will NOT be installed:
amarok bluedevil choqok cln digikam digikam-lang GeoIP gstreamer-0_10 gstreamer-0_10-plugin-gnomevfs gstreamer-0_10-plugin-hal
gstreamer-0_10-plugins-base gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-lang k3b kaffeine kipi-plugins kipi-plugins-acquireimage
ksshaskpass ktorrent ktorrent-lang liba52-0 libavcodec52 libavformat52 libavutil50 libbluedevil1 libcares2 libGeoIP1 libgstapp-0_10-0
libgstinterfaces-0_10-0 libgstreamer-0_10-0 libgstreamer-0_10-0-32bit libidn libidn-32bit libktorrent3 libktorrent3-lang liblash1 liblzma5 libnetcdf4
libshout3 libssh2-1 libswscale0 libtag-extras1 libupnp6 libva1 libvlc5 libwavpack1 libx264-115 libxine1 libxine1-gnome-vfs libxine1-pulse linphone
mjpegtools netcdf NetworkManager-kde4-libs NetworkManager-openvpn-kde4 NetworkManager-pptp-kde4 NetworkManager-vpnc-kde4 openmpi oxygen-gtk
python-cairo python-gobject python-gobject-cairo python-gtk python-numpy python-qt4 python-simplejson python-sip shared-desktop-ontologies skanlite
sox taglib xz The following packages are going to be upgraded:
dbus-1 dbus-1-32bit dbus-1-devel google-chrome-stable gstreamer-0_10-buzztard libgstapp-0_10-0-32bit libvlc5 libvlccore4 libx264-116 libxine1-codecs
python-virtualbox virtualbox virtualbox-devel virtualbox-host-kmp-default virtualbox-qt vlc vlc-aout-pulse vlc-gnome vlc-noX vlc-qt First off, why is zypper telling me about updates I need, then saying they won't be installed? Also, below it says ...packages will be UPGRADED. Is there a difference between those terms?
I ask because zypper accepts both update and upgrade flags.
| Package managers Update versus Upgrade? |
1) How can I pipe values into systemctl?You can't, systemctl restart takes the unit names as arguments, not from standard input. There's nothing wrong with that, since you have convenient ways to collect the unit names and pass them as arguments (namely $(...)) rather than through a pipe.2) Is there a better way to restart all services shown by zypper ps?Not really. Well, there's a minor improvement in that you don't really need the tr command, since using unquoted $(...) will give you multiple arguments, using any whitespace as separator. So this should be enough:
systemctl restart $(zypper ps -sss) |
I do not want to restart the server after a zypper up. Instead I want to restart all services using deleted files as shown by zypper ps -sss.
I thought I could do something like zypper ps -sss | tr '\n' ' ' | systemctl restart which fails with Too few arguments.I've also tried to write into a file and use it as input systemctl restart < myfile.txt with the same result.
I ended up using
systemctl restart $(zypper ps -sss | tr '\n' ' ')So two questions:
1) How can I pipe values into systemctl?
2) Is there a better way to restart all services shown by zypper ps?
| Piping output of zypper ps -sss into systemctl restart |
I used rpmfind to find what package you need:
And I see:
xorg-x11-libX11-devel-32bit-7.6-10.2.x86_64.html Include Files and Libraries mandatory for Development. OpenSuSE 11.4 for x86_64
xorg-x11-libX11-devel-32bit-7.6-10.2.x86_64.rpmI don't see xorg-x11-devel-64bit... but it might be there and rpm find just doesn't know about it. Clicking on the link for the above text I see:
Files/usr/lib/libX11-xcb.so
/usr/lib/libX11.soHowever I think this libX11.so is 32-bit and chrome is asking for a 64-bit version. So if you have /usr/lib/X11.so then you probably need to download a 32-bit version.
|
I'm new to Linux. Now I just get started with SLES 11 installed on my company computer.
I want to install google chrome, so I downloaded: 64 bit .rpm (For Fedora/openSUSE), but there's an error during installation:
google-chrome-stable-43.0.2357.125-1.x86_64 requires libX11.so.6()(64bit), but this requirement cannot be providedI know in linux, the normal way to install a software package, is directly use the repository manager, it's zypper on sles, to install and it will resolve all the dependencies for me.
So it seems the repository containing the required package is missing, where can I find the repository?
| Where can I find the repository that contains a required package? |
if above OpenSuSE 13 you could copy your root CA into /etc/pki/trust/anchors/
and then run the
update-ca-certificates command to import it.
|
We're trying to set up a repository for SuSE Linux-based devices. We are authenticating the repository with a CA that contains, at its root, a self-signed certificate. When trying to retrieve updates from the repository, we get this message:
Connecting to server|10.0.1.15|:443... connected.
WARNING: cannot verify server's certificate, issued by `/CN=IntermediateCA_server_1/O=Company/OU=MACOSX OpenDirectory Intermediate CA/[emailprotected]':
Self-signed certificate encountered.The update then fails due to lack of trust.
Is there a way to install the self-signed certificate on the devices so that zypper finds it and knows to trust it?
| How do I give trust to a self-signed certificate for Zypper? |
There are two issues here:openSUSE comes with openSSH pre-installed, so the ssh server does not need to be installedhttps://nl.opensuse.org/OpenSSHThe packages for openSSH apparently have different names in openSUSE than they do in Ubuntu and Fedora (and maybe others?).In Ubuntu (using apt-get) and Fedora (using yum), "openssh-server" is a valid package name
In openSUSE, the package "openSSH" covers both the SSH client and the SSH serverSo if you type
sudo zypper install openssheverything should work fine. Though, as I said previously, it should already be installed. It will tell you if it's already installed.
|
I recently installed openSUSE, and I want to set up an ssh server so that I can ssh into this machine. However, I am having trouble installing openssh-server.
I have tried
$ sudo zypper install openssh-serverThis is what this site says to type, but I get this message:
Package 'openssh-server' not found.On my Ubuntu machine, if I type
$ sudo apt-get install openssh-serveror on my Fedora machine
$ sudo yum install openssh-servereverything works fine.
How can I install openssh-server on openSUSE? Do I have to manually add an RPM repository for it or something?
The solution doesn't need to use zypper, but I'd prefer not having to manually download and compile the source code.
| How to install openssh-server on openSUSE? |
rpm --query --recommends MozillaFirefoxlists the packages which the MozillaFirefox package recommends (I’ll explain that further down). As with most things interpreted by a computer, the output is to be taken literally; so the libpulse0 recommendation concerns the libpulse0 package, not the pulseaudio package.
The list of packages is static, and shown as defined in the MozillaFirefox package; it doesn’t take into account packages which are already installed on your system.
The package relationships are as follows:requires: package A requires on package B if it needs package B to function;
recommends: package A recommends package B if it can use package B, and most users would use the two packages together (this is known as a weak dependency);
suggests: package A suggests package B if it can use package B, but most users wouldn’t need it (this is known as a very weak dependency);
supplements: package A supplements package B if it adds functionality to package B, and most users would use the two packages together (it’s pretty much symmetric with “recommends”);
enhances: package A enhances package B if it adds functionality to package B, but most users wouldn’t find it particularly useful (it’s pretty much symmetric with “suggests”).This should help you understand what these terms refer to, what the differences between them are, and when they should be used.
Whether the relationships are actually taken into account depends on the package management tool being used. rpm itself deals with individual packages, so only strong dependencies matter to it (“requires”). As far as I’m aware, yum also only takes strong dependencies into account. dnf is configured to install weak dependencies by default; see the install_weak_deps flag in dnf.conf. Zypper and urpm can also be configured to consider weak dependencies.
One added subtlety is the difference between the recommends/suggests and supplements/enhances pair, i.e. why we need both. They represent knowledge which is available in different places. For example, a package which can optionally use a library “knows” that it can do so; the appropriate relationship then is “recommends” or “suggests”. However, a package such as Firefox can’t possibly know all its plugins, so it doesn’t attempt to list all available plugins in “recommends” or “suggests”; each individual plugin can indicate that it adds functionality to Firefox by indicating that it “supplements” or “enhances” it in its RPM specification.
See the RPM documentation for details.
|
RPM based package managers support subcommands such as requires, recommends, conflicts, obsoletes, suggests and supplements.
In reading the rpm man pages and dependencies documentation, it isn't clear how these differ.
For example, if i run the command rpm --query --info MozillaFirefox, the following output is returned.
Name : MozillaFirefox
Version : 60.4.0
Release : lp150.3.30.1
Architecture: x86_64
Install Date: Sun 06 Jan 2019 07:43:50 AM NZDT
Group : Productivity/Networking/Web/Browsers
Size : 161608776
License : MPL-2.0
Signature : RSA/SHA256, Thu 13 Dec 2018 08:35:09 PM NZDT, Key ID b88b2fd43dbdc284
Source RPM : MozillaFirefox-60.4.0-lp150.3.30.1.src.rpm
Build Date : Wed 12 Dec 2018 10:35:10 PM NZDT
Build Host : cloud138
Relocations : (not relocatable)
Packager : http://bugs.opensuse.org
Vendor : openSUSE
URL : http://www.mozilla.org/
Summary : Mozilla Firefox Web Browser
Description :
Mozilla Firefox is a standalone web browser, designed for standards
compliance and performance. Its functionality can be enhanced via a
plethora of extensions.If i run the command rpm --query --recommends MozillaFirefox, the following output is returned.
libavcodec-full >= 0.10.16
libcanberra0
libpulse0I assume that libpulse0 refers to the PulseAudio package. If yes, the command rpm --query --info pulseaudio returns
Name : pulseaudio
Version : 11.1
Release : lp150.4.1
Architecture: x86_64
Install Date: Sun 06 Jan 2019 06:49:12 AM NZDT
Group : System/Sound Daemons
Size : 3605819
License : GPL-2.0+ AND LGPL-2.1+
Signature : RSA/SHA256, Mon 23 Apr 2018 10:39:20 AM NZST, Key ID b88b2fd43dbdc284
Source RPM : pulseaudio-11.1-lp150.4.1.src.rpm
Build Date : Mon 23 Apr 2018 10:38:51 AM NZST
Build Host : build70
Relocations : (not relocatable)
Packager : https://bugs.opensuse.org
Vendor : openSUSE
URL : http://pulseaudio.org
Summary : A Networked Sound Server
Description :
pulseaudio is a networked sound server for Linux, other Unix like
operating systems and Microsoft Windows. It is intended to be an
improved drop-in replacement for the Enlightened Sound Daemon (ESOUND).If the pulseaudio package is already installed, why is there a recommendation to install libpulse0?What do recommends, conflicts, obsoletes, suggests and supplements
refer to?
What is the difference between recommends, suggests and supplements?
When should they be used? | What are the relationships between package commands? |
I found them at /usr/src/packages/SOURCES/<SomeName>
|
When using a command like
zypper source-install kwritewhere does zypper install the sources to?
| Where does zypper source-install put the sources? |
you can use the "-s" for the packages version.
zypper se -s pacemaker
Loading repository data...
Reading installed packages...S | Name | Type | Version | Arch | Repository
--+------------------------------------+------------+----------------+--------+----------------------
i | drbd-pacemaker | package | 8.4.1-0.11.6 | x86_64 | SLE11-HAE-SP2-Pool
| libpacemaker-devel | package | 1.1.6-1.29.1 | x86_64 | SLE11-HAE-SP2-Updates
| libpacemaker-devel | package | 1.1.6-1.27.26 | x86_64 | SLE11-HAE-SP2-Pool
i | libpacemaker3 | package | 1.1.6-1.29.1 | x86_64 | SLE11-HAE-SP2-Updates
v | libpacemaker3 | package | 1.1.6-1.27.26 | x86_64 | SLE11-HAE-SP2-Pool |
I am building a personal, local repository to store all the versions of packages i want. I have used createRepo to create the reop, populated its dir with rpms, created the necessary directory summary meta data via createpo and am working with the zypper cmd to query it.
Is there a cmd that will return the version number of the package?
I see that i can do a search but it does not show all of the metadata of the packages found eg author, version, etc. eg zypper search <package>
I see if i do a 'info' cmd then i get the version amongst other metadata. eg zypper info <package>
As i hope to host multiple versions of the same package, is there a query that will simply return the version if the repo has the package?
| A zypper cmd for querying repository versions of a package |
You already have a Zypper instance running, that's what the error message is telling you. Just kill the other process and try again:
sudo kill 2181If that doesn't work try
sudo kill -9 2181 |
I'm using an old version of OpenSUSE and when I try to update some package via the command line, e.g.
Zypper update firefoxit shows the message listed below.System management is locked by the application with pid 2181(/usr/sbin/packagekitd).
Close this application before trying again. | Command line error in OpenSUSE (old version) |
The problem was on the repository side (PEBKAC for the operating team for the repo :) )
Also, zypper clean --all helps.
| On a SLES11.4 server wanted to install a package:
SLES11SERVER:~ # zypper in -f telnet
Retrieving repository 'foobar_common' metadata [\]
File 'repomd.xml' from repository 'foobar_common' is unsigned, continue? [yes/no] (no): yes
Retrieving repository 'foobar_common' metadata [error]
Repository 'foobar_common' is invalid.
[|] Valid metadata not found at specified URL(s)
Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Disabling repository 'foobar_common' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
Forcing installation of 'telnet-1.2-134.24.1.x86_64' from repository 'SLES11-SP4-Pool'.
Resolving package dependencies...The following package is going to be reinstalled:
telnet1 package to reinstall.
Overall download size: 54.0 KiB. No additional space will be used or freed after the operation.
Continue? [y/n/? shows all options] (y): y
Retrieving package telnet-1.2-134.24.1.x86_64 (1/1), 54.0 KiB (118.0 KiB unpacked)
Retrieving: telnet-1.2-134.24.1.x86_64.rpm [done]
Installing: telnet-1.2-134.24.1 [done]
SLES11SERVER:~ # echo $?
106
SLES11SERVER:~ #According to the man page:
106 - ZYPPER_EXIT_INF_REPOS_SKIPPED
Some repository had to be disabled temporarily because it failed to refresh. You should check your
repository configuration (e.g. zypper ref -f).So I did a "zypper ref -f":
SLES11SERVER:~ # zypper ref -f
...
Retrieving repository 'foobar_common' metadata [/]
File 'repomd.xml' from repository 'foobar_common' is unsigned, continue? [yes/no] (no): yes
Retrieving repository 'foobar_common' metadata [error]
Repository 'foobar_common' is invalid.
[|] Valid metadata not found at specified URL(s)
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'foobar_common' because of the above error.
Forcing raw metadata refresh
...
Some of the repositories have not been refreshed because of an error.
SLES11SERVER:~ #The package got installed (from another repo, this foobar_common doesn't provides it), but I must have exit code 0 for zypper after a package install.
Q: How can I fix that the zypper will not give exit code 106?
I tried to: delete/add the foobar_common repo, same issue | zypper exit code 106 - how to fix? [closed] |
I had a similar problem
Run command: /sbin/yast2 sw_single &
terminate called after throwing an instance of 'YUIPluginException'
what(): Couldn't load plug-in qt
/sbin/yast2: line 448: 4353 Aborted (core dumped) $ybindir/y2start $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS zypper se libyuiwas
S | Name | Summary | Type
---+---------------------------------+-------------------------------------------------------------+--------
| libyui-devel | Libyui header files | package
| libyui-doc | Libyui documentation | package
| libyui-ncurses-devel | Libyui-ncurses header files | package
| libyui-ncurses-doc | Libyui-ncurses documentation | package
| libyui-ncurses-pkg-devel | Libyui-ncurses-pkg header files | package
| libyui-ncurses-pkg-doc | Libyui-ncurses-pkg documentation | package
i+ | libyui-ncurses-pkg7 | Libyui - yast2 package selector widget for the ncurses UI | package
i | libyui-ncurses-pkg8 | Libyui - yast2 package selector widget for the ncurses UI | package
i+ | libyui-ncurses7 | Libyui - Character Based User Interface | package
i | libyui-ncurses8 | Libyui - Character Based User Interface | package
| libyui-qt-devel | Libyui-qt header files | package
| libyui-qt-doc | Libyui-qt documentation | package
| libyui-qt-graph-devel | Libyui-qt-graph header files | package
| libyui-qt-graph-doc | Libyui-qt-graph documentation | package
i+ | libyui-qt-graph7 | Libyui - Qt Graph Widget | package
| libyui-qt-graph8 | Libyui - Qt Graph Widget | package
| libyui-qt-pkg-devel | Libyui-qt-pkg header files | package
| libyui-qt-pkg-doc | Libyui-qt-pkg documentation | package
i+ | libyui-qt-pkg7 | Libyui - Qt Package Selector | package
| libyui-qt-pkg8 | Libyui - Qt Package Selector | package
i+ | libyui-qt7 | Libyui - Qt User Interface | package
| libyui-qt8 | Libyui - Qt User Interface | package
i+ | libyui7 | Libyui - GUI-abstraction library | package
i | libyui8 | Libyui - GUI-abstraction library | package
| ruby2.4-rubygem-libyui-rake | Rake tasks providing basic work-flow for libyui development | package
| ruby2.4-rubygem-libyui-rake-doc | RDoc documentation for libyui-rake | packageFixed by
zypper in libyui-qt8 libyui-qt-graph8 libyui-qt-pkg8 |
While trying to run a module from within yast in Tumbleweed openSUSE, the module crashed and it says in terminal
Run command: /sbin/yast2 sw_single &
terminate called after throwing an instance of 'YUIPluginException'
what(): Couldn't load plug-in qt
YaST got signal 6 at file /usr/share/YaST2/modules/Wizard.rb:782
sender PID: 7211
/sbin/yast2: line 440: 7211 中止 (core dumped) $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGSWhat this could be ?
zypper search libyui* is:
S | 名前 | 概要 | 種類
--+--------------------------+--------------------------------------+-----------
| libyui-devel | Libyui header files | パッケージ
i | libyui-doc | Libyui documentation | パッケージ
| libyui-ncurses-devel | Libyui-ncurses header files | パッケージ
i | libyui-ncurses-doc | Libyui-ncurses documentation | パッケージ
| libyui-ncurses-pkg-devel | Libyui-ncurses-pkg header files | パッケージ
i | libyui-ncurses-pkg-doc | Libyui-ncurses-pkg documentation | パッケージ
i | libyui-ncurses-pkg7 | Libyui - yast2 package selector wi-> | パッケージ
i | libyui-ncurses7 | Libyui - Character Based User Inte-> | パッケージ
| libyui-qt-devel | Libyui-qt header files | パッケージ
i | libyui-qt-doc | Libyui-qt documentation | パッケージ
| libyui-qt-graph-devel | Libyui-qt-graph header files | パッケージ
i | libyui-qt-graph-doc | Libyui-qt-graph documentation | パッケージ
| libyui-qt-graph7 | Libyui - Qt Graph Widget | パッケージ
| libyui-qt-pkg-devel | Libyui-qt-pkg header files | パッケージ
i | libyui-qt-pkg-doc | Libyui-qt-pkg documentation | パッケージ
i | libyui-qt-pkg7 | Libyui - Qt Package Selector | パッケージ
i | libyui-qt7 | Libyui - Qt User Interface | パッケージ
i | libyui7 | Libyui - GUI-abstraction library | パッケージUpdate, it seems to be related to a specific package/ パッケージ as cited here
but making the process listed I still dont get the UI up.
Despite the page speaks about novell linux, and Im open Suse, there is no
xorg-x11-libXrender-7.4-1.23.1
but instead is
libXrender1-0.9.10-1.1.x86_64So what would be needed?
Thanks in advance
| yast2 crashed at the moment of loading the install software module |
I think the programmers of zypper intended it more for installation of source packages than for download. I always end up going to their repository and performing a wget to download the source rpm:
NOTE: this is a workaround!
zypper se -s source-package-name # to determine in which repository to look
zypper lr -u # list the adresses of all repositories; so I can pick the correct onenow I go to that web adress look for the src.rpm; copy its adress and:
wget <address of src.rpm> |
In Debian I could easily download the original sources for a package with apt-get source. I found this very useful for learning about the software I use.
How can I do something similar in Opensuse? The closest I found is the zyppre source-download command according to the help text its going to download sources for every package in my system? How do I download the sources for a single package?
Output of zypper help source-download, for reference:
Download source rpms for all installed packages to a local directory. Command options:
-d, --directory <dir>
Download all source rpms to this directory.
Default: /var/cache/zypper/source-download
--delete Delete extraneous source rpms in the local directory.
--no-delete Do not delete extraneous source rpms.
--status Don't download any source rpms,
but show which source rpms are missing or extraneous. | What is Opensuse's equivalent of `apt-get source`? |
Maybe an example is the easiest way to explain:
we use cloud-init to deploy new instances within a private cloud. And for our environment we have to rely on a configuration which has been broken a couple of times during the development of cloud-init. So when we find a working cloud-init version we lock it. That way no update will break that version.
So in conclusion: whenever you need to keep a specific version of a package you would lock it for zypper.
|
I moved to openSUSE recently. In their cheat sheet, there is a section called "Lock packages". Can someone explain for me what they are and when they're used?
for example: lock all packages starting with 'yast2'
zypper addlock yast2*or
zypper al yast2* | What is meant by "Lock packages" and when exactly it is used |
If you have a repository enabled that contains 32-Bit packages you would be able to install them. Regarding firefox you have to download the 32-Bit package from the mozilla website as openSUSE is 64-Bit only since Leap 42.1 (13.2 was the last 32-Bit release) and so are the official packages. You can view the available architecture of your package by running
leap15:~ # zypper se -s MozillaFirefox
Loading repository data...
Reading installed packages...S | Name | Type | Version | Arch | Repository
--+------------------------------------+------------+---------------------+--------+--------------------------
| MozillaFirefox | package | 60.2.2-lp150.3.23.1 | x86_64 | openSUSE-Leap-15.0-Update
[...]EDIT:
To install a different architecture you have to provide it as a capability. An excerpt from zypper man page:The packages can be selected by their name or by a capability they provide.A capability is formed by "NAME[.'ARCH'][ OP EDITION]", where ARCH is an architecture code [...]So to install a 32-bit package you would run:
opensuse:~ # zypper in -C MozillaFirefox.i586
Loading repository data...
Warning: Repository 'OS-13.1-Updates' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
Resolving package dependencies...Problem: nothing provides libz.so.1 needed by MozillaFirefox-26.0-4.2.i586
Solution 1: do not ask to install a solvable providing MozillaFirefox.i586
Solution 2: break MozillaFirefox-26.0-4.2.i586 by ignoring some of its dependenciesChoose from above solutions by number or cancel [1/2/c] (c): |
If I have to install a package( 64-bit ) I use -
zypper install -y MozillaFirefox which is same as zypper install -y MozillaFirefox.x86_64 for a 64 bit machine.
If I use zypper install -y MozillaFirefox.i586 it exits as -
No provider of 'MozillaFirefox.i586' found.
Is there a way to install 32-bit package in a 64-bit machine using zypper.
As in yum I can do yum install firefox.x86_64 and yum install firefox.i686 and both works for me and gets me the package with required architecture.
| How do I install 32 bit package in a 64 bit SUSE machine using zypper? |
The best ways is to get source code from subversion official site and compile it manually.
In my own experience, If you compile it without berkeley db, there would be no problem with other dependencies. To do so, you should pass --without-berkeley-db option to ./configure command.
|
I need specific version of subversion 1.6.x on my SLE11 (SUSE Linux Enterprise Server 11 (x86_64)) but I do not know how to install it.
If I follow the instructions on http://software.opensuse.org/download.html?project=devel:tools:scm:svn&package=subversion I get subversion 1.7.x installed.
| How to install subversion 1.6.x on SLE11? |
It seems like you've done the right things to zap IPv6 from a kernel perspective, but I might also -- assuming you don't care about IPv6 -- delete any IPv6 entries in /etc/hosts. If that still doesn't do the trick (and this is reaching back), I had a problem with Amanda backup once that was very similar to your issue, and was only able to fix it by installing xinetd instead of inetutils-inetd (note that I have no idea what S.u.S.E. installs by default). Lastly (and as a desperation measure) I might suggest using "strace" with something like:
strace -s 1024 -f -o /tmp/zypper.log /path/to/zypperexecutable
and then go through the log file looking for that IPv6 address, and seeing if there's anything informative that might be helpful. (FYI, "strace" can generate a HUGE file, so you probably want to abort zypper as soon as it fails.)
|
I'm setting up a box with OpenSUSE 13.1. For reasons beyond my comprehension, Zypper utterly insists on using IPv6 addresses and refuses to use IPv4. Which is a problem, since IPv6 doesn't work on our LAN.
I've tried disabling IPv6 multiple ways:I told YaST to disable IPv6.
I tried poking and prodding /etc/modprobe.
I tried setting ipv6.disable=1 as a kernel boot parameter.None of these things had the slightest effect; Zypper still refuses to use real IP addresses and keeps hopelessly trying to use IPv6.
Note that I can ping the download server just fine; the ping command looks up the IPv4 address of the server, and has no problem pinging it. And yet, Zypper still insists on using IPv6, and then giving up because the destination is unreachable. (Which is it - via IPv6.)
I am having the exact problem described in this question. (Even the failing IPv6 address is identical.) That question addresses an older release of OpenSUSE, and the accepted answer just says to disable IPv6, which I already tried.
I have now wasted multiple hours of my life trying to perform the trivial task of installing a few software packages. Does anybody know how I can completely destroy IPv6 and get networking to work again?
| Prevent Zypper trying to use IPv6 |
Although the process used to find it would make you think it is, it isn't actually a repository, it is in fact just a simple file-share. In this situation, your best bet would be to remove all your openSUSE-provided mono packages (zypper rm), lock them (zypper al), and install (zypper in) the packages from the mono-project file-share.
Alternatively, mono in OpenSUSE Factory is now at the next major version (3.0.2), so you could also get your packages from there. Although, I'd recommend you don't - Factory isn't suitable for daily use, and there is a possibility packages from Factory may pull in other incompatible packages and cause serious issues.
|
Question:
I want to install mono3 from here:
http://download.mono-project.com/archive/3.0.3/linux/x64/
How can I add this link to the appropriate OpenSuse package installation program ?
I tried zypper ar http://download.mono-project.com/archive/3.0.3/linux/x64/ mono3
but that yields "Repository type cannot be determined"
Repository mono3 is invalid.
| Adding openSuSe mono repository? |
Going on a vague memory of rpm's numerous options, and checking the manual, I think this should do the trick:
rpm -e --justdb nnn
rm /usr/bin/nnn /usr/share/man/man1/nnn.1.gzWarning: untested, check your backups first.
|
I just installed a totally wrongly packaged RPM on my openSUSE distribution (the packager added / and /usr/* as a file of the package, so I can't uninstall it without wiping the entire root FS)
How can I remove the package without touching any of the declared files?
Here are the infos :
rpm -qi nnn-4.0-1.x86_64
Name : nnn
Version : 4.0
Release : 1
Architecture: x86_64
Install Date: Fri 28 May 2021 01:53:46 CEST
Group : other
Size : 112871
License : BSD 2-Clause
Signature : (none)
Source RPM : nnn-4.0-1.src.rpm
Build Date : Tue 13 Apr 2021 13:19:31 CEST
Build Host : 43528e776956
Packager : Arun Prakash Jana <[emailprotected]>
URL : https://github.com/jarun/nnn
Summary : The unorthodox terminal file manager.
Description :Distribution: (none)rpm -ql nnn-4.0-1.x86_64
/
/usr
/usr/bin
/usr/bin/nnn
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/nnn.1.gz | Remove a RPM file without touching any of the files |
OP here.
Attempt 2 should have worked, but that specific URL (http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/a02bda6c6525d5d550e34e98844bf0e18a66aa1a24282c72a80c4679ef2e121d-primary.xml.gz) was being automatically redirected to one of the various opensuse repository mirrors. I figured it out by trying to download it directly via wget and it showed the redirect. This particular mirror was unreachable (hence the timeout) due to a network connectivity allowlist that did not include it. The fix was to include this mirror in the allowlist.
|
I am trying to install docker on SLES 12.5. I tried to follow the instructions on this SO answer.
Initial Attempt
# zypper addrepo https://download.opensuse.org/repositories/Virtualization:containers/SLE_12_SP5/Virtualization:containers.repo
Adding repository 'Virtualization:containers (SLE_12_SP5)' ...........................................................................................................[done]
Repository 'Virtualization:containers (SLE_12_SP5)' successfully addedURI : https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/
Enabled : Yes
GPG Check : Yes
Autorefresh : No
Priority : 99 (default priority)Repository priorities are without effect. All enabled repositories share the same priority.# zypper refresh
Repository 'SLES12-SP5-Pool' is up to date.
Repository 'SLES12-SP5-Updates' is up to date.
Repository 'Update' is up to date.
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata -------------------------------------------------------------------------------------------------[-]
Download (curl) error for 'https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/a02bda6c6525d5d550e34e98844bf0e18a66aa1a24282c72a80c4679ef2e121d-primary.xml.gz':
Error code: Bad URL
Error message: Redirect to protocol "http" not supported or disabled in libcurlAbort, retry, ignore? [a/r/i/...? shows all options] (a): a
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata .............................................................................................[error]
Repository 'Virtualization:containers (SLE_12_SP5)' is invalid.
[Virtualization_containers|https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Virtualization:containers (SLE_12_SP5)' because of the above error.
Some of the repositories have not been refreshed because of an error.Second Attempt
I found this question on Unix & Linux with a similar error, so I edited the /etc/zypp/repos.d/Virtualization_containers.repo file as follows:
Before:
[Virtualization_containers]
name=Virtualization:containers (SLE_12_SP5)
enabled=1
autorefresh=0
baseurl=https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/
type=rpm-md
gpgcheck=1
gpgkey=https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/repomd.xml.keyAfter:
[Virtualization_containers]
name=Virtualization:containers (SLE_12_SP5)
enabled=1
autorefresh=0
baseurl=http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/
type=rpm-mdThen tried again:
# zypper refresh
Repository 'SLES12-SP5-Pool' is up to date.
Repository 'SLES12-SP5-Updates' is up to date.
Repository 'Update' is up to date.
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata -------------------------------------------------------------------------------------------------[/]
Timeout exceeded when accessing 'http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/a02bda6c6525d5d550e34e98844bf0e18a66aa1a24282c72a80c4679ef2e121d-primary.xml.gz'.
Abort, retry, ignore? [a/r/i] (r): i
Autoselecting 'r' after 7 seconds.
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata .............................................................................................[error]
Repository 'Virtualization:containers (SLE_12_SP5)' is invalid.
[Virtualization_containers|http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Virtualization:containers (SLE_12_SP5)' because of the above error.
Some of the repositories have not been refreshed because of an error.Third Attempt
I tried to give up on zypper and use another installation method. I found an RPM file here
https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/x86_64/docker-19.03.12_ce-378.39.x86_64.rpm
myserver:~/temp # systemctl stop docker
myserver:~/temp # docker ps
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
myserver:~/temp # rpm -ivh docker-19.03.12_ce-378.39.x86_64.rpm
error: Failed dependencies:
catatonit is needed by docker-19.03.12_ce-378.39.x86_64
containerd-git = 7ad184331fa3e55e52b890ea95e65ba581ae3429 is needed by docker-19.03.12_ce-378.39.x86_64
docker-libnetwork-git = 026aabaa659832804b01754aaadd2c0f420c68b6 is needed by docker-19.03.12_ce-378.39.x86_64
docker-runc-git = dc9208a3303feef5b3839f4323d9beb36df0a9dd is needed by docker-19.03.12_ce-378.39.x86_64
fix_bsc_1057743 is needed by docker-19.03.12_ce-378.39.x86_64
https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/x86_64/docker-19.03.12_ce-378.39.x86_64.rpmQuestion
So how can I install Docker on SLES 12.5? Can I fix Redirect to protocol "http" not supported or disabled in libcurl?
| Unable to run `zypper refresh` on SLES 12.5 |
strange, I added setuid instead, and it works.For a binary to run with root privileges when invoked by any other user, it must be setuid. You can do it as follows:
$ sudo /usr/bin/chmod 4755 /usr/bin/zypper |
I want to initiate zypper command without the entry of sudo.
For example,
zypper updateI attempt to change the permission bit of the zypper file located at /usr/bin folder. I assume that with allow me to run the zypper command without sudo command.
-rwxr-sr-x 1 root root 1942112 Oct 10 19:21 /usr/bin/zypperI added current user to root group; this file should be able to run as root.
| Launching zypper command with root privilege |
I downloaded zyppper and libzypp from software.opensuse.org for openSuse 42.3
after that I run rpm --force -hiv *rpm (for these rpm's) and after this operation zypper is fixed.
|
I have changed my distribution from Tumleweed to Leap 43 by changing list of repositories to:
# zypper lr
Repository priorities are without effect. All enabled repositories share the same priority.# | Alias | Name | Enabled | GPG Check | Refresh
--+-------------------------------------+-----------------------------------+---------+-----------+--------
1 | http-download.opensuse.org-2fb25ebb | devel:tools:building | Yes | (r ) Yes | Yes
2 | packman | packman | Yes | (r ) Yes | Yes
3 | repo-debug | openSUSE-Leap-42.3-Debug | No | ---- | ----
4 | repo-non-oss | openSUSE-Leap-42.3-Non-Oss | Yes | (r ) Yes | Yes
5 | repo-oss | openSUSE-Leap-42.3-Oss | Yes | (r ) Yes | Yes
6 | repo-source | openSUSE-Leap-42.3-Source | No | ---- | ----
7 | repo-source-non-oss | openSUSE-Leap-42.3-Source-Non-Oss | Yes | (r ) Yes | Yes
8 | repo-update | openSUSE-Leap-42.3-Update | Yes | (r ) Yes | Yes
9 | repo-update-non-oss | openSUSE-Leap-42.3-Update-Non-Oss | Yes | (r ) Yes | Yes Next I tried to update it:
# zypper up
Loading repository data...
Reading installed packages...The following 119 package updates will NOT be installed:
cmake dmraid ffmpeg gettext-runtime gio-branding-openSUSE gstreamer-plugins-bad gtk3-branding-openSUSE java-1_8_0-openjdk java-1_8_0-openjdk-headless libavcodec57 libavdevice57 libavfilter6 libavformat57 libavresample3 libavutil55 libdcerpc0 libdcerpc0-32bit
libdcerpc-binding0 libdcerpc-binding0-32bit libgstadaptivedemux-1_0-0 libgstbadaudio-1_0-0 libgstbadbase-1_0-0 libgstbadvideo-1_0-0 libgstbasecamerabinsrc-1_0-0 libgstcodecparsers-1_0-0 libgstgl-1_0-0 libgstmpegts-1_0-0 libgstphotography-1_0-0 libgsturidownloader-1_0-0
libgstwayland-1_0-0 libltdl7 libmjpegutils-2_0-0 libndr0 libndr0-32bit libndr-krb5pac0 libndr-krb5pac0-32bit libndr-nbt0 libndr-nbt0-32bit libndr-standard0 libndr-standard0-32bit libnetapi0 libnetapi0-32bit libpostproc54 libquicktime0 libsamba-credentials0
libsamba-credentials0-32bit libsamba-hostconfig0 libsamba-hostconfig0-32bit libsamba-passdb0 libsamba-passdb0-32bit libsamba-util0 libsamba-util0-32bit libsamdb0 libsamdb0-32bit libsmbclient0 libsmbconf0 libsmbconf0-32bit libsmbldap0 libsmbldap0-32bit libsox3
libswresample2 libswscale4 libwbclient0 libwbclient0-32bit mjpegtools NetworkManager-branding-openSUSE PackageKit-branding-openSUSE perl-Authen-SASL perl-B-Hooks-EndOfScope perl-Class-Data-Inheritable perl-Class-Factory-Util perl-Class-Method-Modifiers
perl-Crypt-SmbHash perl-Devel-Caller perl-Devel-LexAlias perl-Digest-HMAC perl-Digest-MD4 perl-Digest-SHA1 perl-Eval-Closure perl-File-Listing perl-HTML-Tagset perl-HTTP-Daemon perl-HTTP-Date perl-HTTP-Negotiate perl-LWP-MediaTypes perl-namespace-autoclean
perl-namespace-clean perl-Net-LibIDN perl-Package-DeprecationManager perl-PadWalker perl-Params-Util perl-Pod-Coverage perl-Sub-Install perl-TermReadLine-Gnu perl-Test-Fatal perl-TimeDate perl-WWW-RobotRules perl-X11-Protocol perl-X500-DN perl-XML-SAX python3-cairo
qt4-qtscript samba samba-client samba-client-32bit samba-libs samba-libs-32bit samba-winbind samba-winbind-32bit site-config sox subversion-perl xf86-input-vmmouse xf86-input-void xf86-video-fbdev xf86-video-vesa xorg-x11-server yast2-core yast2-perl-bindingsThe following 2 packages are going to be REMOVED:
libzypp libzyppThe following 5 packages are going to be upgraded:
libicu52_1 libicu52_1-data libzypp zypper-aptitude zypper-log5 packages to upgrade, 2 to remove.
Overall download size: 8.7 MiB. Already cached: 0 B. After the operation, 14.9 MiB will be freed.
Continue? [y/n/...? shows all options] (y): y
Retrieving package libicu52_1-data-52.1-15.1.x86_64 (1/5), 5.2 MiB ( 22.4 MiB unpacked)
Retrieving delta: ./x86_64/libicu52_1-data-52.1-13.3_15.1.x86_64.drpm, 16.7 KiB
Retrieving: libicu52_1-data-52.1-13.3_15.1.x86_64.drpm ..................................................................................................................................................................................................................[done]
Applying delta: ./libicu52_1-data-52.1-13.3_15.1.x86_64.drpm ............................................................................................................................................................................................................[done]
Retrieving package libzypp-16.15.6-12.1.x86_64 (2/5), 2.0 MiB ( 7.4 MiB unpacked)
Retrieving: libzypp-16.15.6-12.1.x86_64.rpm ...............................................................................................................................................................................................................[done (356.5 KiB/s)]
Retrieving package zypper-aptitude-1.13.32-8.1.noarch (3/5), 60.4 KiB ( 4.0 KiB unpacked)
Retrieving: zypper-aptitude-1.13.32-8.1.noarch.rpm .........................................................................................................................................................................................................[done (75.4 KiB/s)]
Retrieving package zypper-log-1.13.32-8.1.noarch (4/5), 61.0 KiB ( 6.2 KiB unpacked)
Retrieving: zypper-log-1.13.32-8.1.noarch.rpm ...........................................................................................................................................................................................................................[done]
Retrieving package libicu52_1-52.1-15.1.x86_64 (5/5), 1.4 MiB ( 4.3 MiB unpacked)
Retrieving delta: ./x86_64/libicu52_1-52.1-13.3_15.1.x86_64.drpm, 21.8 KiB
Retrieving: libicu52_1-52.1-13.3_15.1.x86_64.drpm .......................................................................................................................................................................................................................[done]
Applying delta: ./libicu52_1-52.1-13.3_15.1.x86_64.drpm .................................................................................................................................................................................................................[done]
Checking for file conflicts: ............................................................................................................................................................................................................................................[done]
(1/5) Installing: libicu52_1-data-52.1-15.1.x86_64 ......................................................................................................................................................................................................................[done]
(2/5) Installing: libzypp-16.15.6-12.1.x86_64 ...........................................................................................................................................................................................................................[done]
(3/5) Installing: zypper-aptitude-1.13.32-8.1.noarch ....................................................................................................................................................................................................................[done]
(4/5) Installing: zypper-log-1.13.32-8.1.noarch .........................................................................................................................................................................................................................[done]
(5/5) Installing: libicu52_1-52.1-15.1.x86_64 ...........................................................................................................................................................................................................................[done]
There are some running programs that might use files deleted by recent upgrade. You may wish to check and restart some of them. Run 'zypper ps -s' to list these programs.After that zypper have been broken:
# zypper
zypper: relocation error: zypper: symbol _ZN4zypp13KeyRingReport10infoVerifyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_13PublicKeyDataERKNS_10KeyContextE, version ZYPP_plain not defined in file libzypp.so.1600 with link time referenceI tried to find versions from Tumbleweed of packages related to zypper and I installed them:
# rpm --force -hiv libmodman1-2.0.1-24.25.x86_64.rpm libproxy1-0.4.14-164.14.x86_64.rpm python-zypp-0.7.3-3.27.x86_64.rpm zypper-1.13.32-9.1.x86_64.rpm zypper-aptitude-1.13.14-1.1.noarch.rpm zypper-log-1.13.14-1.1.noarch.rpm
warning: libmodman1-2.0.1-24.25.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 629ff0c2: NOKEY
warning: python-zypp-0.7.3-3.27.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID f3ef3328: NOKEY
warning: zypper-aptitude-1.13.14-1.1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f6ab3975: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:zypper-1.13.32-9.1 ################################# [ 17%]
2:libmodman1-2.0.1-24.25 ################################# [ 33%]
3:libproxy1-0.4.14-164.14 ################################# [ 50%]
4:zypper-aptitude-1.13.14-1.1 ################################# [ 67%]
5:zypper-log-1.13.14-1.1 ################################# [ 83%]
6:python-zypp-0.7.3-3.27 ################################# [100%]However it do not repair zypper:
# zypper
zypper: relocation error: zypper: symbol _ZN4zypp13KeyRingReport10infoVerifyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_13PublicKeyDataERKNS_10KeyContextE, version ZYPP_plain not defined in file libzypp.so.1600 with link time referenceWhat can I do to avoid reinstalling my system? Can I download source of zypper and compile it and run?
| How to fix broken Zypper after change SUSE Tumbleweed to Leap |
I looked at my package list and found that the latest version of opencv is in the Education repository:
zypper info opencvVersion : 3.2.0-95.4
Arch : x86_64
Vendor : openSUSE-Education
Installed Size : 10.1 MiB
Installed : No
Status : not installed
Source package : opencv-3.2.0-95.4.src
Summary : Collection of algorithms for computer visionSo, you should add Education repository for installing the latest version of opencv:
zypper ar -f -n education http://download.opensuse.org/repositories/Education/openSUSE_Tumbleweed/ education |
Available opencv version for tumbleweed on the website https://software.opensuse.org/package/opencv is listed 3.2, but when I try installing it on my laptop version 3.1 is installed. Can you please help?
| opensuse tumbleweed cannot install latest version of opencv |
You can download a src.rpm with zypper's source-install command.
zypper si -D --download-only hello would download the .src.rpm ignoring any dependencies needed to build the package.
You can find the .src.rpm at /var/cache/zypp/packages/repo/src/hello-version.src.rpm.
You can then go through the normal process of extracting the package.
% rpm2cpio /var/cache/zypp/packages/Virtualization/src/qemu-2.1.0-260.12.src.rpm | cpio -idmv
0001-XXX-dont-dump-core-on-sigabort.patch
0002-XXX-work-around-SA_RESTART-race-wit.patch
0003-qemu-0.9.0.cvs-binfmt.patch
0004-qemu-cvs-alsa_bitfield.patch
<...> |
Let's say that I am using a program called "hello" which I have downloaded using the zypper. The question is how can I see if a specific .patch is included into this hello package?
Basically, what I think it that I need the rpm source file (but how can I find it using zypper ?) and then do unrpm and check if the *.patch file is included. Is it correct or there's another way?
| How can I list the patches of an installed package in SUSE? |
You can try running zypper in the verification mode:
zypper verify -DThat should report any inconsistencies in package dependencies. See the zypper(8) man page.
|
A while ago I made my own distro of Linux using SuseStudio and may have left out some important packages.Apps like gnome-software and gnome-music don't work
The computer runs really high process rates, doing simple tasks like web browsing
vmware can't recognize hardware acceleration
Overall sluggishness about the machine is existentIn the past I would update to the latest package version, but now I feel that I'm missing some packages.
Is there a zypper command I can run or a way to install all the base SuSe rpms?
| How to know what packages I'm missing? |
I modified the script by first downgrading libglib with version 2.70.5 (which already existed) to version 2.70.4. For this I used -f flag.
zypper install -fy libglib-2_0-0-2.70.4-150400.1.5and then installed glib2-devel
zypper install -y glib2-devel |
I want to install the package glib2-devel inside a sles15 SP4 docker container via some setup script.
The script is failing due to zypper install -y glib2-devel is not getting installed quietly. Here is the exception:
Problem: the to be installed glib2-devel-2.70.4-150400.1.5.aarch64 requires 'libglib-2_0-0 = 2.70.4', but this requirement cannot be provided
not installable providers: libglib-2_0-0-2.70.4-150400.1.5.aarch64[SLE_BCI]
Solution 1: downgrade of libglib-2_0-0-2.70.5-150400.3.3.1.aarch64 to libglib-2_0-0-2.70.4-150400.1.5.aarch64
Solution 2: do not install glib2-devel-2.70.4-150400.1.5.aarch64
Solution 3: break glib2-devel-2.70.4-150400.1.5.aarch64 by ignoring some of its dependenciesChoose from above solutions by number or cancel [1/2/3/c/d/?] (c): cThe problem basically is that it's wants a solution from 1 to 3 but fails since the flag -y is provided (I guess) and hence select the cancel option c.
This results in failure for docker container.
Is there a way to select Solution 1 during the quiet installation of the above pacakge?
| Zypper | Quietly install Solution 1 for glib2-devel package |
I find two copies of libxml2.so.2 in /usr/lib64 and /usr/local/lib64. I deleted and symlinked the binary and the error message is gone?
|
How can I fix this problem? What is libzypp.so.1106 and and libaugeas.so.0? Why is this error repeated so many times in libzypp.so.1106?
zypper: /usr/local/lib64/libxml2.so.2: no version information available (required by / usr/lib64/libzypp.so.1106)
zypper: /usr/local/lib64/libxml2.so.2: no version information available (required by /usr/lib64/libzypp.so.1106)
zypper: /usr/local/lib64/libxml2.so.2: no version information available (required by /usr/lib64/libzypp.so.1106)
zypper: /usr/local/lib64/libxml2.so.2: no version information available (required by /usr/lib64/libzypp.so.1106)
zypper: /usr/local/lib64/libxml2.so.2: no version information available (required by /usr/lib64/libaugeas.so.0) | No version information available? |
It seems like it is impossible to rename the URI.
So I removed the old repository with zypper rr openSUSE-Leap-15.0-1 and created new ones - I created both oss and non-oss, but im not sure what oss and non-oss refers to:
zypper ar -p 1 http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/ openSUSE-Leap-15.2_non-osszypper ar -p 2 http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/ openSUSE-Leap-15.2_ossYou can find all repos here: http://download.opensuse.org/
I also had to change the install command, because the package names were wrong:
zypper install php7-gd php7-mcrypt php7-curl php7-intl php7-xsl php7-mbstring php7-openssl php7-zip php7-soapEDIT: But be cautious! As you can see I changed from openSUSE-Leap-15.0-1 to openSUSE-Leap-15.2. As I executed zypper update it also updated PHP from 7.2 to 7.3 which caused some bugs in magento 2. Better stay on your version if you don't want to upgrade.
|
I try to install some PHP modules:
zypper install php7.0-gd php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-openssl php7.0-zip php7.0-soapOutput:
Failed to mount cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001 on /var/tmp/AP_0xgQO1rM: Mounting media failed (mount: /var/tmp/AP_0xgQO1rM: no medium found on /dev/sr0.)
Please insert medium [] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): no
Error building the cache:
[openSUSE-Leap-15.0-1|cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001] Valid metadata not found at specified URL
Warning: Skipping repository 'openSUSE-Leap-15.0-1' because of the above error.
Some of the repositories have not been refreshed because of an error.
Loading repository data...
Reading installed packages...
'php7.0-curl' not found in package names. Trying capabilities.
No provider of 'php7.0-curl' found.
'php7.0-gd' not found in package names. Trying capabilities.
No provider of 'php7.0-gd' found.
'php7.0-intl' not found in package names. Trying capabilities.
No provider of 'php7.0-intl' found.
'php7.0-mbstring' not found in package names. Trying capabilities.
No provider of 'php7.0-mbstring' found.
'php7.0-mcrypt' not found in package names. Trying capabilities.
No provider of 'php7.0-mcrypt' found.
'php7.0-openssl' not found in package names. Trying capabilities.
No provider of 'php7.0-openssl' found.
'php7.0-soap' not found in package names. Trying capabilities.
No provider of 'php7.0-soap' found.
'php7.0-xsl' not found in package names. Trying capabilities.
No provider of 'php7.0-xsl' found.
'php7.0-zip' not found in package names. Trying capabilities.
No provider of 'php7.0-zip' found.
Resolving package dependencies...Nothing to do.I think there is something wrong with my repositories. It tries to load the repository from the disk (cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001) instead of from the internet. But the disc is not inserted anymore and I can't since it is a virtual machine in my company and the admin is in vaccation.
zypper lr -uP:
# | Alias | Name | Enabled | GPG Check | Refresh | Priority | URI
---+---------------------------+-----------------------------------------+---------+-----------+---------+----------+---------------------------------------------------------------------------------------
1 | openSUSE-Leap-15.0-1 | openSUSE-Leap-15.0-1 | Yes | ( p) Yes | No | 99 | cd:///?devices=/dev/disk/by-id/ata-VMware_Virtual_IDE_CDROM_Drive_10000000000000000001
2 | packman.inode.at-suse | Packman Repository | Yes | (r ) Yes | Yes | 99 | http://packman.inode.at/suse/openSUSE_Leap_15.0/
3 | repo-debug | openSUSE-Leap-15.0-Debug | No | ---- | ---- | 99 | http://download.opensuse.org/debug/distribution/leap/15.0/repo/oss/
4 | repo-debug-non-oss | openSUSE-Leap-15.0-Debug-Non-Oss | No | ---- | ---- | 99 | http://download.opensuse.org/debug/distribution/leap/15.0/repo/non-oss/
5 | repo-debug-update | openSUSE-Leap-15.0-Update-Debug | No | ---- | ---- | 99 | http://download.opensuse.org/debug/update/leap/15.0/oss/
6 | repo-debug-update-non-oss | openSUSE-Leap-15.0-Update-Debug-Non-Oss | No | ---- | ---- | 99 | http://download.opensuse.org/debug/update/leap/15.0/non-oss/
7 | repo-non-oss | openSUSE-Leap-15.0-Non-Oss | Yes | (r ) Yes | Yes | 99 | http://download.opensuse.org/distribution/leap/15.0/repo/non-oss/
8 | repo-oss | openSUSE-Leap-15.0-Oss | Yes | (r ) Yes | Yes | 99 | http://download.opensuse.org/distribution/leap/15.0/repo/oss/
9 | repo-source | openSUSE-Leap-15.0-Source | No | ---- | ---- | 99 | http://download.opensuse.org/source/distribution/leap/15.0/repo/oss/
10 | repo-source-non-oss | openSUSE-Leap-15.0-Source-Non-Oss | No | ---- | ---- | 99 | http://download.opensuse.org/source/distribution/leap/15.0/repo/non-oss/
11 | repo-update | openSUSE-Leap-15.0-Update | Yes | (r ) Yes | Yes | 99 | http://download.opensuse.org/update/leap/15.0/oss/
12 | repo-update-non-oss | openSUSE-Leap-15.0-Update-Non-Oss | Yes | (r ) Yes | Yes | 99 | http://download.opensuse.org/update/leap/15.0/non-oss/How can I change the repository so that it loads from the internet?
I know I can modify an existing repo with zypper modifyrepo, but how can I modify the URI and where can I find the correct URI?
| openSUSE - Repository 'XY' is invalid - change repository to load from internet instead from medium |
The i+ stands for user installed packages while i means it was installed automatically (for example as a dependency of a other package).
I think this is also mentioned in the zypper manual.
To answer your question: Yes, you have installed the newest version.
Cheers
|
As I am working on automating the patch process on a Suse machines. I would like to get a clearer image on the packages status lifecycle.
First of all, I am trying to list the available patches and their new version, simply by running:
$ zypper list-updates
Loading repository data...
Warning: Repository 'NON OSS Update' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'OSS Update' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
S | Repository | Name | Current Version | Available Version | Arch
--+------------+---------------+----------------------+----------------------+-------
v | OSS Update | libkmod2 | 17-16.1 | 17-19.1 | x86_64
v | OSS Update | libsgutils2-2 | 1.43+43.158502d-18.1 | 1.43+46.4b09c76-21.1 | x86_64
v | OSS Update | libssh2-1 | 1.4.3-19.6.1 | 1.4.3-19.9.1 | x86_64
v | OSS Update | libtasn1 | 4.9-3.1 | 4.9-6.1 | x86_64
v | OSS Update | libtasn1-6 | 4.9-3.1 | 4.9-6.1 | x86_64It is shown that the Status is "v"
After that, I am checking the packages installed, by running:
$ zypper packages --installed-only
Loading repository data...
Warning: Repository 'NON OSS Update' appears to be outdated. Consider using a different mirror or server.
Warning: Repository 'OSS Update' appears to be outdated. Consider using a different mirror or server.
Reading installed packages...
S | Repository | Name | Version | Arch
---+------------+-----------------------------------+---------------------------------+-------
i | OSS Update | aaa_base | 13.2+git20140911.61c1681-28.9.1 | x86_64
v | OSS Update | aaa_base | 13.2+git20140911.61c1681-28.6.1 | x86_64
v | OSS Update | aaa_base | 13.2+git20140911.61c1681-28.3.1 | x86_64
v | OSS | aaa_base | 13.2+git20140911.61c1681-27.2 | x86_64
i+ | OSS Update | acl | 2.2.52-11.3.1 | x86_64
v | OSS | acl | 2.2.52-10.15 | x86_64
i | OSS Update | bash | 4.3-83.15.1 | x86_64
v | OSS Update | bash | 4.3-83.12.1 | x86_64
v | OSS Update | bash | 4.3-83.9.1 | x86_64
v | OSS Update | bash | 4.3-83.6.1 | x86_64
v | OSS Update | bash | 4.3-83.3.1 | x86_64
v | OSS | bash | 4.3-82.6 | x86_64...In the manual, they mentioned that "i" means that the package is installed while the "v" means that a different version is installed. But, nothing mentioned about the "i+".
When I update one of the available patches, the status changes from "v" to "i+". Does it mean that the last version of the package is installed?
| Zypper packages status flag explanation |
Technically zypper does just that; installs and resolves RPM dependencies as long as it has the necessary RPM's in its list of repositories much like the YUM toolkit.
In this case the percona howto shows you how to add their RPM repository to the YUM list of repositories.
zypper is not so different; the following should work
$> wget http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
$> rpm -ivh percona-*.rpmThat should create a new .repo file at /etc/zypp/repos.d/ which will allow you to account for depencies (unless you don't have any support repositories defined, in which case you would want to install the latest OpenSSL RPM to address the libcrypto.so dependency)
|
I'm trying to install downloaded percona RPM packages:
> ls -1
Percona-Server-5.7.10-3-r63dafaf-el7-x86_64-bundle.tar
Percona-Server-57-debuginfo-5.7.10-3.1.el7.x86_64.rpm
Percona-Server-client-57-5.7.10-3.1.el7.x86_64.rpm
Percona-Server-devel-57-5.7.10-3.1.el7.x86_64.rpm
Percona-Server-server-57-5.7.10-3.1.el7.x86_64.rpm
Percona-Server-shared-57-5.7.10-3.1.el7.x86_64.rpm
Percona-Server-shared-compat-57-5.7.10-3.1.el7.x86_64.rpm
Percona-Server-test-57-5.7.10-3.1.el7.x86_64.rpm
Percona-Server-tokudb-57-5.7.10-3.1.el7.x86_64.rpmBy running the following command:
> sudo zypper in Percona-Server-*.rpmBut I receive this error:
Problem: nothing provides libcrypto.so.10()(64bit) needed by Percona-Server-client-57-5.7.10-3.1.el7.x86_64
Solution 1: do not install Percona-Server-client-57-5.7.10-3.1.el7.x86_64
Solution 2: break Percona-Server-client-57-5.7.10-3.1.el7.x86_64 by ignoring some of its dependenciesChoose from above solutions by number or skip, retry or cancel [1/2/s/r/c] (c):I wonder what command I need to run to automatically install all RPM packages and all their dependencies? Is it possible?
| Problem: nothing provides libcrypto.so.10()(64bit) needed by Percona-Server-client-57-5.7.10-3.1.el7.x86_64 |
As you've indicated that what I mentioned in my comment worked after you tried it, I'm going to post it as an answer:
zypper install gitgit is available in the SLES repos as it is in the repos for nearly every other distribution. In the case of SLES, the above command will install it as long as the repos are enabled.
|
This is similar to the question about http not supported, but I was not able to apply the solutions suggested there to my situation.
I've done
zypper addrepo https://download.opensuse.org/repositories/devel:tools:scm/SLE_12_SP5/devel:tools:scm.repo
zypper refreshand I'm getting
Retrieving repository 'Software configuration management (SLE_12_SP5)' met
Download (curl) error for 'https://download.opensuse.org/repositories/devels:/scm/SLE_12_SP5/repodata/8ff6d5e77f953a771c9870113c655dfef8cf31ffba709feec8e0a617fc-primary.xml.gz':
Error code: Bad URL
Error message: Redirect to protocol "http" not supported or disabled in liNow if I
curl https://download.opensuse.org/repositories/devel:/tools:/scm/SLE_12_SP5/repodata/8ff6d5e77f953a771c9870113c655dfef8cf31ffba709f2506cceec8e0a617fc-primary.xml.gzI see
<p>The document has moved <a href="http://downloadcontent.opensuse.org/repositories/devel:/tools:/scm/SLE_12_SP5/repodata/8ff6d5e77f953a771c9870113c655dfef8cf31ffba709f2506cceec8e0a617fc-primary.xml.gz">here</a>.</p>But if I try to apply the solution suggested in the related question with a
vi /etc/zypp/repos.d/devel_tools_scm.repoand I change https in http, then it does not work because the http URL does (no longer?) exist: http://download.opensuse.org/repositories/devel:/languages:/php/openSUSE_Leap_42.3/devel:languages:php.repo
What am I doing wrong or what am I supposed to do to install git so?
| How to install git on SLES 12? |
GCC 5 is installed, but the executable is called gcc-5, not gcc.
You may either create a symlink from gcc-5 to gcc in /usr/bin (but moving gcc out of the way first if it exists!), or (which may be preferable since it wouldn't include messing about with things installed by a package manager), just use gcc-5.
For the command line, you could set up an alias:
alias gcc=gcc-5In most Makefiles, the compiler is picked from the CC Makefile variable, so setting this to gcc-5 would also work.
|
I would like to install gcc-5 on my local machine. But I am encountering some issues. When I type the following command:
sudo zypper install gcc-5I got the following answerLoading repository data...
Reading installed packages...
Package 'gcc-5' not found.
Resolving package dependencies...
Nothing to do.It is strange because when I type the following command:
cnf gcc-5I got the following answer:Program 'gcc-5' is present in package 'gcc5', which is installed on your system.
Absolute path to 'gcc-5' is '/usr/bin/gcc-5'. Please check your $PATH variable to see whether it contains the mentioned path.And when I want to check which gcc version is installed on my computer with the following command:
gcc --versionI have the following answer:If 'gcc' is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf gccHow do I get GCC-5 properly installed and how could I check which version is installed/used by my computer? Thank you
info: I use openSUSE with Xfce terminal
| GCC-5 installation |
Enter in Failsafe mode and remove the package, using rpm -e package_name.
|
I installed the latest version of OpenSUSE and tried to install the driver for my touchpad. It would not install, so I installed it in this way:
zypper install ./filename_.rpmAfter that my OpenSUSE will not load. When I boot and choose OpenSUSE in the Grub menu, I only see the OpenSUSE logo (about 4sec) and then only a black screen.
Failsafe mode is working.
Is it possible that the system isn't working due to the driver I installed? If yes, is there a way to "delete" the driver, which I installed or maybe remove it from startup?
| OpenSUSE can only boot into Failsafe mode |
Yup, you have an incorrect repo.
It should be https://download.opensuse.org/distribution/leap/15.5/repo/oss/
|
I'm using openSUSE Leap 15.5 and zypper version 1.14.68
Upon startup, the system will attempt to run the updater, which fails. In order to get a more detailed error, I updated manually using:
sudo zypper updateI receive the following error:File './x86_64/libsoup-3_0-0-3.0.4-150400.1.6.x86_64.rpm' not found on medium 'https://download.opensuse.org/repositories/openSUSE:/Leap:/15.5/standard/'This error then prevents zypper from updating other packages as well (if I proceed with using the 'ignore' command). I'm trying to make sense of this error, but not quite sure where to start.
It appears that it has the incorrect repository listed for an important dependency?
| Libsoup error encountered when updating openSUSE using zypper |
How can I perform an in-place upgrade of openSUSE 42 to 15.x?Before starting to experiment, it's a good idea to make a
precautionary backup in case things go wrong.
To back up the existing .repo configuration files, do :
1
cd /etc/zypp/repos.d/ && sudo zip oss-42.2_orig.zip *.repoHow I upgraded openSUSE from 42.2 to 15.4 2
1. Refresh and update the existing openSUSE 42.2
Before upgrading, a crucial step is to run sudo zypper refresh and
sudo zypper update to refresh and update the current version of the
system.
:~> sudo zypper refresh
Retrieving repository 'oss' metadata ...........................[done]
Building repository 'oss' cache ................................[done]
Retrieving repository 'oss_update' metadata ....................[done]
Building repository 'oss_update' cache .........................[done]
All repositories have been refreshed.:~> sudo zypper update
Loading repository data...
Warning: Repository 'oss_update' appears to be outdated.
Consider using a different mirror or server.
Reading installed packages...The following 3 NEW packages are going to be installed:
kbd kmod pkg-configThe following 88 packages are going to be upgraded:
binutils command-not-found coreutils cpp48 curl dbus-1 …
…
yast2-xml zip zypper88 packages to upgrade, 3 new.
Overall download size: 96.8 MiB. Already cached: 0 B. After the operation,
additional 7.8 MiB will be used.
Continue? [y/n/...? shows all options] (y): yAs indicated in the output dump above, I chose y to start the
update.
This started the download and installation of the latest package
versions of openSUSE 42.2.
Retrieving package emacs-info-24.3-24.6.1.noarch (1/91), 4.2 MiB
Retrieving: emacs-info-24.3-24.6.1.noarch.rpm .............[done (1.7 MiB/s)]
Retrieving package file-magic-5.22-7.6.1.x86_64 (2/91), 334.5 KiB
Retrieving: file-magic-5.22-7.6.1.x86_64.rpm ..........................[done]
…
Retrieving package wicked-service-0.6.40-6.6.1.x86_64 (91/91), 58.6 KiB
Retrieving: wicked-service-0.6.40-6.6.1.x86_64.rpm ....................[done]
Checking for file conflicts: ..........................................[done]
( 1/91) Installing: emacs-info-24.3-24.6.1.noarch .....................[done]
( 2/91) Installing: file-magic-5.22-7.6.1.x86_64 ......................[done]
…
(91/91) Installing: wicked-service-0.6.40-6.6.1.x86_64 ................[done]
Additional rpm output:
Failed to connect to bus: No such file or directory
…
Output of coreutils-8.25-2.3.1.x86_64.rpm %posttrans script:
Please run mkinitrd as soon as your system is complete.Now that openSUSE Leap 42.2 has been successfully refreshed and
updated,
it's time to start upgrading to openSUSE Leap 15.4.
2. Change the version numbers in the .repo configuration files
A. In /etc/zypp/repos.d/oss.repo, replace 42.2/repo/oss/suse
with 15.4/repo/oss :
sudo sed -i 's|42.2/repo/oss/suse|15.4/repo/oss|g' /etc/zypp/repos.d/oss.repo
:~> cat /etc/zypp/repos.d/oss.repo
[oss]
enabled=1
autorefresh=0
baseurl=http://download.opensuse.org/distribution/leap/15.4/repo/oss/
type=rpm-mdB. In /etc/zypp/repos.d/oss_update.repo, replace 42.2
with 15.4 :
sudo sed -i 's|42.2|15.4|g' /etc/zypp/repos.d/oss_update.repo
:~> cat /etc/zypp/repos.d/oss_update.repo
[oss_update]
enabled=1
autorefresh=0
baseurl=http://download.opensuse.org/update/leap/15.4/oss/
type=rpm-md3. Synchronize the list of packages and versions available
:~> sudo zypper refresh
Retrieving repository 'oss' metadata ...........................[done]
Building repository 'oss' cache ................................[done]
Retrieving repository 'oss_update' metadata ....................[done]
Building repository 'oss_update' cache .........................[done]
All repositories have been refreshed.4. Perform the distribution upgrade
:~> sudo zypper dist-upgrade
Warning: You are about to do a distribution upgrade with all enabled
repositories. Make sure these repositories are compatible before you
continue. See 'man zypper' for more information about this command.
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
14 Problems:
…
Problem: nothing provides (kmod(sg.ko) if kernel)
needed by suse-module-tools-15.4.12-150400.1.4.x86_64
Solution 1: deinstallation of suse-module-tools-12.4-3.2.x86_64
Solution 2: keep obsolete suse-module-tools-12.4-3.2.x86_64
Solution 3: break suse-module-tools-15.4.12-150400.1.4.x86_64
by ignoring some of its dependencies
Choose from above solutions by number or skip, retry, cancel [1/2/3/s/r/c]: 1OK? What should I do now?
As indicated in the output dump above, I chose
deinstallation of suse-module-tools-12.4-…
A new Problem was displayed.
Problem: nothing provides (/usr/sbin/useradd or busybox)
needed by sysuser-shadow-3.1-150400.1.35.noarch
Solution 1: deinstallation of rpcbind-0.2.3-3.3.1.x86_64
Solution 2: keep obsolete rpcbind-0.2.3-3.3.1.x86_64
Solution 3: break sysuser-shadow-3.1-150400.1.35.noarch
by ignoring some of its dependencies
Choose from above solutions by number or skip, retry, cancel [1/2/3/s/r/c]: 1Again, I chose deinstallation … (rpcbind-0.2.3-3.3.1.x86_64).
This went on and on.
Sometimes, deinstallation was presented as Solution 2.
I continued to choose deinstallation for the following packages:
patterns-openSUSE-base-20150918-27.1.x86_64,
man-2.6.6-6.3.1.x86_64,
emacs-24.3-24.6.1.x86_64,
udev-228-25.18.1.x86_64,
util-linux-2.28-12.9.1.x86_64,
systemd-228-25.18.1.x86_64,
libutempter0-1.1.6-7.55.x86_64,
openssh-7.2p2-11.6.1.x86_64,
emacs-nox-24.3-24.6.1.x86_64,
gpm-1.20.7-9.53.x86_64,
systemd-sysvinit-228-25.18.1.x86_64,
util-linux-systemd-2.28-12.9.1.x86_64,
sysconfig-netconfig-0.84.0-1.2.x86_64,
aaa_base-13.2+git20140911.61c1681-24.3.1.x86_64,
kmod-17-10.3.1.x86_64,
screen-4.0.4-7.21.x86_64,
sysconfig-0.84.0-1.2.x86_64,
wicked-0.6.40-6.6.1.x86_64,
kmod-compat-17-10.3.1.x86_64,
libwicked-0-6-0.6.40-6.6.1.x86_64,
ruby-common-2.1-6.3.1.noarch,
wicked-service-0.6.40-6.6.1.x86_64,
yast2-packager-3.1.123-5.6.1.x86_64,
aaa_base-extras-13.2+git20140911.61c1681-24.3.1.x86_64,
yast2-ruby-bindings-3.1.51.2-3.1.x86_64,
yast2-3.1.217-5.6.1.x86_64,
yast2-country-data-3.1.32-1.2.x86_64,
ruby-2.1-4.2.x86_64,
yast2-hardware-detection-3.1.7-9.5.x86_64,
yast2-transfer-3.1.3-1.3.x86_64.
After answering deinstallation for that last package, a lot of
output followed.
Resolving dependencies...
Computing distribution upgrade...
The following 96 NEW packages are going to be installed:
bash-sh blog boost-license1_66_0 branding-openSUSE … vim-data-commonThe following NEW product is going to be installed:
"openSUSE Leap 15.4"The following 45 packages are going to be REMOVED:
aaa_base aaa_base-extras emacs emacs-nox gpm kmod … yast2-transferThe following pattern is going to be REMOVED: baseThe following product is going to be REMOVED: openSUSEThe following 198 packages are going to be upgraded:
augeas bash bc bind-utils binutils bzip2 ca-certificates … zypperThe following pattern is going to be upgraded: minimal_baseThe following 26 packages are going to be downgraded:
acl fillup insserv-compat klogd libacl1 libaio1 libattr1 … unzip zipThe following 4 packages are going to change architecture:
file-magic x86_64 -> noarch
linux-glibc-devel noarch -> x86_64
openssl x86_64 -> noarch
perl-XML-NamespaceSupport x86_64 -> noarchThe following 217 packages are going to change vendor:
acl openSUSE -> SUSE LLC <https://www.suse.com/>
…
zypper openSUSE -> SUSE LLC <https://www.suse.com/>198 packages to upgrade, 26 to downgrade, 96 new, 45 to remove, 217 to
change vendor, 4 to change arch.
Overall download size: 189.6 MiB. Already cached: 0 B. After the operation,
additional 293.0 MiB will be used.
Continue? [y/n/...? shows all options] (y): yI chose y, and the download and installation started.
Retrieving package boost-license1_66_0-1.66.0-12.3.1.noarch (1/320), 20.8 KiB
Retrieving: boost-license1_66_0-1.66.0-12.3.1.noarch.rpm ..............[done]
Retrieving package branding-openSUSE-15.4.20220322-lp154.2. (2/320), 11.6 KiB
…
Retrieving package device-mapper-1.02.163-150400.15.95.x (320/320), 143.7 KiB
Retrieving: device-mapper-1.02.163-150400.15.95.x86_64.rpm ............[done]Checking for file conflicts: ..........................................[done]
( 1/363) Installing: boost-license1_66_0-1.66.0-12.3.1.noarch ........[done]
Additional rpm output:
warning: /var/cache/zypp/packages/oss/noarch/boost-license1_66_0-1.66.0-12.3.
1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 39db7c82: NOKEY
( 2/363) Installing: …
…
(362/363) Removing kmod-17-10.3.1.x86_64 ..............................[done]
(363/363) Removing suse-module-tools-12.4-3.2.x86_64 ..................[done]
…
Output of rpm-4.14.3-150300.46.1.x86_64.rpm %posttrans script:
migrating rpmdb from /var/lib/rpm to /usr/lib/sysimage/rpm...I saw lots of warnings, of which the most common was
No such file or directory.
The download and installation took about 7 minutes.
5. Check the new current version of openSUSE
:~> sudo zypper repos
Repository priorities are without effect.
All enabled repositories share the same priority.# | Alias | Name | Enabled | GPG Check | Refresh
--+-----------------------------+-------------+---------+-----------+--------
1 | oss | oss | Yes | (r ) Yes | No
2 | oss_update | oss_update | Yes | (r ) Yes | No
3 | repo-backports-debug-update | Update re-> | No | ---- | ----
4 | repo-backports-update | Update re-> | Yes | (r ) Yes | Yes
5 | repo-sle-debug-update | Update re-> | No | ---- | ----
6 | repo-sle-update | Update re-> | Yes | (r ) Yes | Yes
…Check the version :
:~> cat /etc/os-release
NAME="openSUSE Leap"
VERSION="15.4"
…6. Rebuild the caches for the system repositories
:~> sudo zypper refresh
Repository 'oss' is up to date.
Building repository 'oss' cache ................................[done]
Repository 'oss_update' is up to date.
Building repository 'oss_update' cache .........................[done]New repository or package signing key received:
Repository: Update repository of openSUSE Backports
Key Fingerprint: …
…
Do you want to reject the key, trust temporarily, trust always? [r/t/a/?]: t
Retrieving repository 'Update repository of openSUSE Backports'metadata[done]
Building repository 'Update repository of openSUSE Backports' cache ...[done]New repository or package signing key received:
Repository: Update repository with updates from SUSE Linux Enterprise 15
Key Fingerprint: …
…
Do you want to reject the key, trust temporarily, trust always? [r/t/a/?]: t
Retrieving repository 'Update repository with updates from SUSE Linux E[done]
Building repository 'Update repository with updates from SUSE Linux Ent[done]
All repositories have been refreshed.7. Upgrade installed packages to their newest available versions 3
Then I ran sudo zypper update.
-bash-4.4$ sudo zypper update
Loading repository data...
Reading installed packages...The following 125 packages are going to be upgraded:
augeas bind-utils binutils ca-certificates-mozilla curl … zypperThe following 7 NEW packages are going to be installed:
libisc1606 libjitterentropy3 libutempter0 libzck1 … util-linuxThe following 2 packages are going to be REMOVED:
bind-libs hardlink125 packages to upgrade, 7 new, 2 to remove.
Overall download size: 102.2 MiB. Already cached: 0 B. After the operation,
additional 1.7 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): yOf course, I chose y.
The download and installation of the Update followed.
Retrieving package sysuser-shadow-3.1-150400.1.35.noarch (1/132), 12.9 KiB
Retrieving: sysuser-shadow-3.1-150400.1.35.noarch.rpm .................[done]
Retrieving package system-group-hardware-20170617-150400.… (2/132), 12.4 KiB
Retrieving: …
…
Retrieving package util-linux-2.37.2-150400.8.8.1.x86_64 (132/132), 1.3 MiB
Retrieving: util-linux-2.37.2-150400.8.8.1.x86_64.rpm .................[done]Checking for file conflicts: ..........................................[done]
( 1/132) Installing: sysuser-shadow-3.1-150400.1.35.noarch ...........[done]
/usr/sbin/groupadd -r render
/usr/sbin/groupadd -r sgx
( 2/132) Installing: …
…
(132/132) Installing: util-linux-2.37.2-150400.8.8.1.x86_64 ...........[done]
Executing %posttrans scripts ..........................................[done]8. The battle between http: and https:
In my experience, replacing http: with https: in the
/etc/zypp/repos.d/*.repo files,
can cause an error.
When I do this – and then run sudo zypper refresh – I often
(but not always) get :
4
:~> sudo zypper refresh
Download (curl) error for 'https://download.opensuse.org/distribution/…':
Error code: Curl error 60
Error message: SSL certificate problem: certificate has expiredApparently, this is a problem with expired certificates.
The risk of getting such a Curl error is likely much smaller once an
upgrade has been successfully completed, including refreshing and
updating the system.
Summary
It's prudent to repeat the initial precautionary backup :
cd /etc/zypp/repos.d/ && sudo zip oss-15.4_orig.zip *.repoIt's far from obvious which choices to make during an upgrade like
this.
But it seems the upgrade worked for the most part.
And cat /etc/os-release says the version is now
openSUSE Leap 15.4.
I still get Access is denied. Press Enter or Esc to exit... every
now and then, when I try to start openSUSE-15 via ConEmu.
I don't know if this issue is related to ConEmu, but I've never seen
it when I start openSUSE-15 directly from CMD.exe,
wsl ~ -d openSUSE-15.
5
ReferencesSupport Data Base: System upgrade
Downloads for Leap 15.4 | main page
Downloads for Leap 15.4 | updates
The zypper man page
Enable snaps on openSUSE (and install GNU nano)
Prompt changed to "-Bash-4.2" and colors lost1
To see the contents of the oss-42.2_orig.zip file,
run unzip -l oss-42.2_orig.zip.
To restore the .repo files :
cd /etc/zypp/repos.d/ && sudo rm *.repo && sudo unzip oss-42.2_orig.zip
2
Support Data Base: System upgrade is the single most
important reference I used to perform the upgrade.
3
At this point, the openSUSE distro hang and didn't respond to any
input from the keyboard.
When I restarted, it looked as follows.
-bash: /etc/profile: No such file or directory
-bash-4.4$
After installing Snap as described here, and restarting
again, that behavior went away.
The prompt resumed to looking normal again, like so :
henke@hp:~>
I don't know exactly what fixed the system.
And I don't know how to replicate the problem.
4
To replace http: with https: in all .repo files, run :
sudo sed -i 's/http:/https:/' /etc/zypp/repos.d/*.repo
5
If you haven't changed the name of the distro, you should start it as
wsl ~ -d openSUSE-42, even though the distro contained is
openSUSE 15. |
A major advantage of doing an in-place upgrade compared to doing
a clean install,
is that all accounts, configurations, and installed programs are kept
intact.
Using Windows Subsystem for Linux (WSL),
I have installed a fresh instance of openSUSE 42.
1
How can I perform an in-place upgrade of openSUSE 42 to 15.x?
My primary interest is in going from openSUSE 42 to the latest
openSUSE version.
At the time of writing,
Leap 15.4 is the latest active openSUSE release.
Motivation
WSL still offers only version 42.2 of openSUSE when installing from
the command line.
Considering that the lifetime of openSUSE 42.2 officially ended
in January 2018
– almost five years ago – it would make sense to upgrade to
a newer version.
Caution!
Make sure there is enough free disk space before considering
an in-place upgrade,
in this case, at least about 5 GiB.
ReferencesHow to install Linux on Windows with WSL
Active openSUSE Leap releases
openSUSE Leap discontinued distributions1
Open Windows CMD.exe as administrator
(WinKey+r, type cmd, hold down
Ctrl+Shift, press Enter).
Then install openSUSE 42.2 by running :
wsl.exe --install --distribution openSUSE-42 | How to do an in-place upgrade to the latest openSUSE Leap release |
I think this will result in a very large output that your terminal settings might not support at all (you will have to configure them for showing N number of lines). Or if you redirect the output to a file you could get a very large file The * does not work because your shell (bash,zsh) interprets as a wildcard expansion.
If you are using bash try using this:
set -f
zypper info *In zsh you use:
noglob zypper info *Or you can simply quote the * between single quotes or double quotes (this works for any shell, AFAIK):
zypper info '*' |
I am a beginner to zypper and I am trying to display the package info of all available packages in OpenSuse across all repos.
zypper info #Orzypper info * # doesn't seem to workneeds a package as an argument. Could any command be suggested that can make this happen? Thanks!
| Display package info of all available packages across all repos in OpenSuse |
After setting everything back to english I could get the desired behavior by:
Right clicking the clock - selecting Set Time Format... - Selecting Detailed Settings and activating swedish for all detailed settings:Verifying the locale after that I think maybe LC_CTYPE might be the crook. But alot of LC_variables I had set to swedish are now english, so it would require some more tinkering to be sure.
user@computer:~> zypper ref
Root privileges are required for refreshing system repositories.
user@computer:~> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL= |
I just installed openSUSE Leap 42.2. I'm struggling with the language settings.
I want the computer to talk english to me, but I want my formats to be swedish, so I've changed the settings to a mix of swedish and english.
In Ubuntu setting /etc/default/locale to the following usually gives what I like:
LANG=en_US.UTF-8
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=The same does not seem to be the right way to do it in openSUSE.
Instead I've changed sv_SE to en_US in a couple of files in my home folder.
~/.config/plasma-locale-settings.sh
~/.config/plasma-localerc
~/.i18n
~/.profileAfter first trying the set the language using gui tools:Now locale gives what I expect it, and as the pictures show most dialogs speak english, but zypper does not seem to care:
user@computer:~> locale
LANG=en_US.UTF-8
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=user@computer:~> zypper search | head -3
Läser in förrådsdata...
Läser installerade paket...How can I convince zypper to talk english to me?
Trying to work around the problem by using en_DK instead of a mix of en_US and sv_SE is not very successful:Even with every LC_variable set to en_US the system insists on talking swedish, so there must be something else influencing the language shown:
user@computer:~> locale | grep sv_SE
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_CTYPE
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_NUMERIC
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_TIME
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_COLLATE
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_MONETARY
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_PAPER
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_NAME
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_ADDRESS
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_TELEPHONE
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper ref
LC_MEASUREMENT
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> NEXT=`locale | grep sv_SE | awk -F '=' '{ print $1 }' | head -1`; echo $NEXT; export $NEXT=en_US.UTF-8; zypper refbash: export: "=en_US.UTF-8": inte en giltig identifierare
Root-behörigheter krävs för att uppdatera systemarkiv.
user@computer:~> locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=Resetting everything to en_US and rebooting teaches zypper english:
user@computer:~> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
user@computer:~> zypper ref
Root privileges are required for refreshing system repositories. | change zypper language |
syslog is system wide, so you can't disable syslog on a per session basis.
However, you can copy /etc/rsyslog.conf to /tmp/rsyslog.conf
edit /tmp/rsyslog.conf to remove unwanted logging
kill rsyslogd (/etc/init.d/rsyslogd stop)
run rsyslogd -d -f /tmp/rsyslog.conf for the time of your "session"at the end of the sessionkill rsyslogd (find process with ps)
run rsyslog (/etc/init.d/rsyslogd start) |
I am experimenting with aircrack-ng and I managed to fill up / with the syslog file complaining about what I'm doing to the poor wifi card. How can I disable logging to syslog for the duration of my Bash session?. Of course I would like other, unrelated, processes to continue their logging as necessary.
The /var/log/syslog file looks like this, repeating:
Oct 24 03:39:40 loathe NetworkManager[673]: <error> [1445647180.233086] [platform/nm-linux-platform.c:2782] do_chan ge_link(): platform-linux: do-change-link: failure changing link 4: Unspecific failure (1)
Oct 24 03:39:40 loathe wpa_supplicant[762]: Could not set interface mon0 flags (UP): Name not unique on network
Oct 24 03:39:40 loathe wpa_supplicant[762]: nl80211: Could not set interface 'mon0' UP
Oct 24 03:39:40 loathe wpa_supplicant[762]: nl80211: deinit ifname=mon0 disabled_11b_rates=0
Oct 24 03:39:40 loathe wpa_supplicant[762]: Could not set interface mon0 flags (UP): Name not unique on network
Oct 24 03:39:40 loathe wpa_supplicant[762]: WEXT: Could not set interface 'mon0' UP
Oct 24 03:39:40 loathe wpa_supplicant[762]: mon0: Failed to initialize driver interfaceThis is on Kubuntu 15.10.
| Disable logging to syslog |
After some days in research and testing on second distro (Ubuntu), the conclusion is that this adapter does not support monitor (or at least not with the default drivers) so I bought TL-WN823N USB adapter. It is cheap and monitor mode works like charm. So if anyone encounters this problem - this is my solution
|
I'm running Fedora 31 Security Lab updated to the latest on Acer, with wireless driver ath10k_pci.
The case is is that when i run airmon-ng there are no captured packets.
Does the hardware is problematic or the driver?
I've stopped the Network Manager , then ran airmon-ng check kill and then airmon-ng it shows that wlp3s0mon is started but nothing captured.
Also tried without airmon. Checked iwlist and it does not show monitor but when i run iwconfig wlp3s0 mode monitor and check again with iwconfig it shows Mode:Monitor but still no captured packets. No errors in dmesg, rfkill is 'unblocked' and the adapter is detected and properly running when not in Monitor. I`ve read in the Qualcom's forum that QCA9377 can't operate in monitor but I was not sure because of the driver or the hardware.
| No monitor mode on Atheros QCA9377? |
When you do the AirPlay attack you generally need to stop the airodump process and to specify all the information required such as
Root@kali $: aireplay-ng -0 0 -e [target wifi mac] -a [target station mac] mon0And if that doesn't work apply the '--ignore-negative-one' option
Root@kali $: aireplay-ng -0 0 -e [target wifi mac] -a [target station mac] --ignore-negative-one mon0 | aireplay-ng -0 3 -a xx:xx:xx:xx mon0 15:31:35 Waiting for beacon frame (BSSID:xx:xx:xx:xx) on channel -1 15:31:35 Couldn't determine current channel for mon0, you should either force the operation with --ignore-negative-one or apply a kernel patch
Please specify an ESSID (-e).I got this error in kali linux(Latest Version with update) while using the command
~#aireplay-ng -0 2 -a xx:xx:xx:xx:xx mon0(De-authentication attack). So, what is this error and how to resolve. Thanks!
| Couldn't determine current channel for mon0 (Kali Linux ) |
This feature is not (yet) implemented in WSL.
To add one quote:fpqc commented on 21 Sep 2016
The way it works right now, the Win32-side networking settings control the kernel, which then controls the LX-side networking. There are no real networking devices set up in /dev on the LX side, at the moment at least.There are many duplicates of the same type in the WSL issue tracker on github:WSL Not Detecting wireless adapters #5041
Problems with WiFi interface when type airmon-ng in Kali linux #5005
iwconfig - no wireless extensions #3270etc...
|
I have installed Kali Linux on my Windows 10 laptop through the Microsoft store. Now when I use the command iwconfig, it says no wireless extensions next wifi0, wifi1 and wifi2. So I thought my built-in wireless adapter is not capable of monitor mode, however, I have Microsoft Network Monitor 3.4 installed in my Laptop and it successfully captures packets, so to my understanding, my built-in adapter is capable of monitor mode.
My question is essentially why does it say "no wireless extensions" because I won't be able to use airmon-ng unless this is resolved. I'm relatively new to Kali Linux so please forgive if my understanding of the situation is incorrect.
| Kali Linux(WSL) not recognizing wireless adapter |
I found the answer.Using instruction here,I found that my pci uses "rt2800pci".I unloaded the module using the following command :
modprobe -r rt2800pciIt worked well and the usb wifi adapter started working,but this solution works only for one session once the computer reboots you will have to unload the module again, you can blacklist the module if you want the module to be unloaded all the time.
|
I have a usb wifi adapter (Edimax EW-7612UAn V2) with its driver installed on my parrot system and my computer's pci is not compatible with parrot .The problem is parrot says both adapters are disabled when i use normal wifi and when I use airmon-ng the usb wifi adapter works well and the computer's pci ,of course, doesn't work. when putting my pci in monitor and my usb wifi adapter in managed mode, network manager removes both of them from the wifi menu although the usb adapter is not in the monitor mode.
In other words, parrot won't recognize both adapters if the main pci isn,t compatible or recognizable. so, what should i do to force parrot to use the usb wifi adapter only ?
lsusb -v result:
Bus 002 Device 003: ID 7392:7822 Edimax Technology Co., Ltd 802.11n WLAN Adapter
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x7392 Edimax Technology Co., Ltd
idProduct 0x7822
bcdDevice 2.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x002e
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1screenshot of network managerresult of rf-kill:
0: hp-wifi: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: hp-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: yes
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: phy1: Wireless LAN
Soft blocked: no
Hard blocked: yesresult of ifconfig :
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 34:64:a9:73:43:20 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 8 bytes 396 (396.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8 bytes 396 (396.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | Usb wifi adapter problem |
-Hello! this ends up happening just because unfortunately the use of some tools mainly airmon-ng or other tools that make use of the network device is this very thing, why they need access to a network device "card" even to create addresses the virtual items of the tools in use, so the fall of the internet connection is normal, if you want to continue to have access, use the internet access during this process you need to have another network device to do it! or reset the changes that you have made it like, mac-address changing, and others...
|
My kail linux (desktop dual boot, not vm) disconnects from WiFi whenever I do something with the given tools. It works fine with the browser and even other terminal procedures like vim. However, when I try to use a tool like wifite, arimon-ng or airodump-ng, it disconnects. After it disconnects, the adapter can no longer find any networks.
| Kali disconnect from WiFi when tools are used |
When using wlan0 as your monitoring device you give the process/service over to airmon-ng. This is normal you would normally use 2 Interfaces if you wanted to keep an internet connection while scanning the airwaves and hacking.
Im surprised that it let you do this while the wireless was active, normally it would throw me an error. So yes this is normal!
|
I am learning Kali Linux with web tutorials. I was starting with penetrating my Samsung's Hotspot WiFi. As shown on the tutorial I ran the command airmon-ng start wlan0 but it caused the Wifi symbol on the bar to disappear and my internet connection was gone.
Is it normal or is there a problem here?
| Is it normal that "airmon-ng start wlan0" stops wifi on Kali? |
You need to end the monitor mode you created.
sudo airmon-ng stop mon0
I would also assume that you killed any processes that airmon complained about upon starting your monitor interface. So you need to restart network manager and any other processes you killed.
sudo service network-manager start
as well as starting any other services you stopped or running any other commands that you killed after your airmon-ng start command.
EDIT: A good old restart usually does the trick if you cant remember everything you did.
|
After using airmon-ng in kali linux the list of available networks is missing in the menu bar at the top. Can anyone please tell me how to "reactivate" it?
When i use iwconfig it shows up an entry for wlan0
Mode: changed
Access point: not associated
RTS thr: off
Fragment thr: off
enc key: off
power management: offlo -> no wireless connection
eth0 -> no wireless connection | Missing network list in menubar after using airmon-ng |
Your host OS is controlling the WiFi adapter.
Since VirtualBox (nor any other virtualization software) has not implemented a virtual WiFi adapter, and your physical WiFi adapter is on a PCIe bus, the only way to get the Kali VM to control it would be to use PCI passthrough, which is complicated. And I think the PCI passthrough feature was removed from the newest major release of VirtualBox because it did not work well enough.
You might want to buy a USB-connected Wi-Fi adapter that is known to support "monitor mode" in Linux. Then you can tell VirtualBox to hand over full control of that adapter to the VM. Only then you will be able to use the full functionality of airmon-ng or other WiFi monitoring/penetration tools from within a VM.
|
I'm using Intel (R) Dual Band Wireless-AC 8260 on my laptop and installed Kali Linux 2020.2 on virtual box. My problem is when I run sudo airmon-ng it doesn't get detected, I get no output under PHY, Interface, Driver or Chipset. But on Ubuntu 20.04 installed on my HDD when I run the same command I get PHY(phy0), Interface(wlp2s0), Driver(iwlwifi), Chipset(Intel Corporation Wireless 8260 (rev 3a)). How can I get Kali Linux on virtual box to detect my Wi-Fi card? I already installed the firmware through sudo apt-get install firmware-iwlwifi and it's in the newest version.
| Wifi card not getting detected |
To help avoid this, I make the live usb, with Rufus on Windows and extract the Debian non free firmware to the firmware folder on the USB. Then when installing Kali have the wifi card plugged in. It should load the non free firmware for it.
| My Wifi-Adapter is TL-WN823N, initially my pc did not recognize anything. So i installed two solutions finded googling:rtl8192cu-fixes
rtl8192eu-linux-driverNow my Wifi adapter is recognized by the Kali-Linux system (4.7.0), but it does not work.airmon-ng start wlan1PHY Interface Driver Chipsetnull wlan1 ??????These are some commands that i launched to looking for a solution:lsusbBus 001 Device 009: ID 2357:0109 lshw *-usb:1
description: Generic USB device
product: 802.11n NIC
vendor: Realtek
physical id: 3
bus info: usb@1:3
version: 2.00
serial: 00e04c000001
capabilities: usb-2.10
configuration: driver=rtl8192eu maxpower=500mA speed=480Mbit/tail -f -n 0 /var/log/messagesNov 3 18:57:18 KALI-PC kernel: [ 171.096552] usb 1-2: new high-speed USB device number 6 using xhci_hcd
Nov 3 18:57:19 KALI-PC kernel: [ 171.281427] usb 1-2: New USB device found, idVendor=2357, idProduct=0109
Nov 3 18:57:19 KALI-PC kernel: [ 171.281430] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Nov 3 18:57:19 KALI-PC kernel: [ 171.281431] usb 1-2: Product: 802.11n NIC
Nov 3 18:57:19 KALI-PC kernel: [ 171.281433] usb 1-2: Manufacturer: Realtek
Nov 3 18:57:19 KALI-PC kernel: [ 171.281434] usb 1-2: SerialNumber: 00e04c000001
Nov 3 18:57:19 KALI-PC kernel: [ 171.282035] RTL871X:
Nov 3 18:57:19 KALI-PC kernel: [ 171.282035] usb_endpoint_descriptor(0):
Nov 3 18:57:19 KALI-PC kernel: [ 171.282038] RTL871X: bLength=7
Nov 3 18:57:19 KALI-PC kernel: [ 171.282039] RTL871X: bDescriptorType=5
Nov 3 18:57:19 KALI-PC kernel: [ 171.282039] RTL871X: bEndpointAddress=84
Nov 3 18:57:19 KALI-PC kernel: [ 171.282040] RTL871X: wMaxPacketSize=512
Nov 3 18:57:19 KALI-PC kernel: [ 171.282041] RTL871X: bInterval=0
Nov 3 18:57:19 KALI-PC kernel: [ 171.282042] RTL871X: RT_usb_endpoint_is_bulk_in = 4
Nov 3 18:57:19 KALI-PC kernel: [ 171.282043] RTL871X:
Nov 3 18:57:19 KALI-PC kernel: [ 171.282043] usb_endpoint_descriptor(1):
Nov 3 18:57:19 KALI-PC kernel: [ 171.282044] RTL871X: bLength=7
Nov 3 18:57:19 KALI-PC kernel: [ 171.282045] RTL871X: bDescriptorType=5
Nov 3 18:57:19 KALI-PC kernel: [ 171.282046] RTL871X: bEndpointAddress=5
Nov 3 18:57:19 KALI-PC kernel: [ 171.282046] RTL871X: wMaxPacketSize=512
Nov 3 18:57:19 KALI-PC kernel: [ 171.282047] RTL871X: bInterval=0
Nov 3 18:57:19 KALI-PC kernel: [ 171.282048] RTL871X: RT_usb_endpoint_is_bulk_out = 5
Nov 3 18:57:19 KALI-PC kernel: [ 171.282049] RTL871X:
Nov 3 18:57:19 KALI-PC kernel: [ 171.282049] usb_endpoint_descriptor(2):
Nov 3 18:57:19 KALI-PC kernel: [ 171.282050] RTL871X: bLength=7
Nov 3 18:57:19 KALI-PC kernel: [ 171.282051] RTL871X: bDescriptorType=5
Nov 3 18:57:19 KALI-PC kernel: [ 171.282051] RTL871X: bEndpointAddress=6
Nov 3 18:57:19 KALI-PC kernel: [ 171.282052] RTL871X: wMaxPacketSize=512
Nov 3 18:57:19 KALI-PC kernel: [ 171.282053] RTL871X: bInterval=0
Nov 3 18:57:19 KALI-PC kernel: [ 171.282054] RTL871X: RT_usb_endpoint_is_bulk_out = 6
Nov 3 18:57:19 KALI-PC kernel: [ 171.282055] RTL871X:
Nov 3 18:57:19 KALI-PC kernel: [ 171.282055] usb_endpoint_descriptor(3):
Nov 3 18:57:19 KALI-PC kernel: [ 171.282056] RTL871X: bLength=7
Nov 3 18:57:19 KALI-PC kernel: [ 171.282056] RTL871X: bDescriptorType=5
Nov 3 18:57:19 KALI-PC kernel: [ 171.282057] RTL871X: bEndpointAddress=87
Nov 3 18:57:19 KALI-PC kernel: [ 171.282058] RTL871X: wMaxPacketSize=64
Nov 3 18:57:19 KALI-PC kernel: [ 171.282059] RTL871X: bInterval=3
Nov 3 18:57:19 KALI-PC kernel: [ 171.282060] RTL871X: RT_usb_endpoint_is_int_in = 7, Interval = 3
Nov 3 18:57:19 KALI-PC kernel: [ 171.282061] RTL871X:
Nov 3 18:57:19 KALI-PC kernel: [ 171.282061] usb_endpoint_descriptor(4):
Nov 3 18:57:19 KALI-PC kernel: [ 171.282062] RTL871X: bLength=7
Nov 3 18:57:19 KALI-PC kernel: [ 171.282062] RTL871X: bDescriptorType=5
Nov 3 18:57:19 KALI-PC kernel: [ 171.282063] RTL871X: bEndpointAddress=8
Nov 3 18:57:19 KALI-PC kernel: [ 171.282064] RTL871X: wMaxPacketSize=512
Nov 3 18:57:19 KALI-PC kernel: [ 171.282065] RTL871X: bInterval=0
Nov 3 18:57:19 KALI-PC kernel: [ 171.282065] RTL871X: RT_usb_endpoint_is_bulk_out = 8
Nov 3 18:57:19 KALI-PC kernel: [ 171.282067] RTL871X: nr_endpoint=5, in_num=2, out_num=3
Nov 3 18:57:19 KALI-PC kernel: [ 171.282067]
Nov 3 18:57:19 KALI-PC kernel: [ 171.282068] RTL871X: USB_SPEED_HIGH
Nov 3 18:57:19 KALI-PC kernel: [ 171.282104] RTL871X: CHIP TYPE: RTL8192E
Nov 3 18:57:19 KALI-PC kernel: [ 171.282110] RTL871X: register rtw_netdev_ops to netdev_ops
Nov 3 18:57:19 KALI-PC kernel: [ 171.282150] RTL871X: ReadChipVersion192e 0xF0 = 0xc441135
Nov 3 18:57:19 KALI-PC kernel: [ 171.282156] RTL871X: Chip Version Info: CHIP_8192E_Normal_Chip_SMIC_B_CUT_2T2R_RomVer(0)
Nov 3 18:57:19 KALI-PC kernel: [ 171.282158] RTL871X: RF_Type is 2!!
Nov 3 18:57:19 KALI-PC kernel: [ 171.282160] RTL871X: _ConfigChipOutEP_8192E OutEpQueueSel(0x07), OutEpNumber(3)
Nov 3 18:57:19 KALI-PC kernel: [ 171.282161] RTL871X: ====> ReadAdapterInfo8192EU
Nov 3 18:57:19 KALI-PC kernel: [ 171.282184] RTL871X: Boot from EFUSE, Autoload OK !
Nov 3 18:57:19 KALI-PC kernel: [ 171.338870] RTL871X: EEPROM ID=0x8129
Nov 3 18:57:19 KALI-PC kernel: [ 171.338879] RTL871X: VID = 0x2357, PID = 0x0109
Nov 3 18:57:19 KALI-PC kernel: [ 171.338881] RTL871X: Customer ID: 0x00, SubCustomer ID: 0xCD
Nov 3 18:57:19 KALI-PC kernel: [ 171.338884] RTL871X: hal_ReadMACAddress_8192EU MAC Address from EFUSE = 18:a6:f7:12:eb:08
Nov 3 18:57:19 KALI-PC kernel: [ 171.338887] RTL871X: Hal_ReadPowerSavingMode8192E...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(1)
Nov 3 18:57:19 KALI-PC kernel: [ 171.338889] RTL871X: ### PS params=> power_mgnt(1),usbss_enable(0) ###
Nov 3 18:57:19 KALI-PC kernel: [ 171.338893] RTL871X: EEPROMRegulatory = 0x1 TxPwrCalibrateRate=0x0
Nov 3 18:57:19 KALI-PC kernel: [ 171.338894] RTL871X: Board Type: Dongle or WIFI only Module
Nov 3 18:57:19 KALI-PC kernel: [ 171.338898] RTL871X: mlmepriv.ChannelPlan = 0x21
Nov 3 18:57:19 KALI-PC kernel: [ 171.338899] RTL871X: CrystalCap: 0x1b
Nov 3 18:57:19 KALI-PC kernel: [ 171.338900] RTL871X: ThermalMeter = 0x23
Nov 3 18:57:19 KALI-PC kernel: [ 171.338901] RTL871X: SWAS: bHwAntDiv = 0, TRxAntDivType = ff
Nov 3 18:57:19 KALI-PC kernel: [ 171.338902] RTL871X: pHalData->PAType_2G is 0x0, pHalData->ExternalPA_2G = 0
Nov 3 18:57:19 KALI-PC kernel: [ 171.338903] RTL871X: pHalData->LNAType_2G is 0x0, pHalData->ExternalLNA_2G = 0
Nov 3 18:57:19 KALI-PC kernel: [ 171.338904] RTL871X: ReadAdapterInfo8192EU <====
Nov 3 18:57:19 KALI-PC kernel: [ 171.339008] RTL871X: init_channel_set ChannelPlan ID 21 Chan num:13
Nov 3 18:57:19 KALI-PC kernel: [ 171.339802] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~~~~
Nov 3 18:57:19 KALI-PC kernel: [ 171.339818] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~[1]~~~
Nov 3 18:57:19 KALI-PC kernel: [ 171.339824] RTL871X: can't get autopm:
Nov 3 18:57:19 KALI-PC kernel: [ 171.339828] RTL871X: rtw_macaddr_cfg MAC Address = 18:a6:f7:12:eb:08
Nov 3 18:57:19 KALI-PC kernel: [ 171.339830] RTL871X: bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
Nov 3 18:57:19 KALI-PC kernel: [ 171.339872] RTL871X: rtw_ndev_init(wlan1)
Nov 3 18:57:19 KALI-PC NetworkManager[702]: <info> [1478195839.1747] (wlan1): driver supports SSID scans (scan_capa 0x3F).
Nov 3 18:57:19 KALI-PC NetworkManager[702]: <info> [1478195839.1749] (wlan1): using WEXT for WiFi device control
Nov 3 18:57:19 KALI-PC kernel: [ 171.341084] RTL871X: _rtw_drv_register_netdev, MAC Address (if1) = 18:a6:f7:12:eb:08
Nov 3 18:57:19 KALI-PC kernel: [ 171.342813] RTL871X: LeaveAllPowerSaveMode(wlan1): bup=0 Skip!
Nov 3 18:57:19 KALI-PC kernel: [ 171.342827] RTL871X: rtw_wx_set_scan: bDriverStopped=1, bup=0, hw_init_completed=0
Nov 3 18:57:19 KALI-PC NetworkManager[702]: <info> [1478195839.1763] manager: (wlan1): new 802.11 WiFi device (/org/freedesktop/NetworkManager/Devices/3)
Nov 3 18:57:19 KALI-PC mtp-probe: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2"
Nov 3 18:57:19 KALI-PC mtp-probe: bus: 1, device: 6 was not an MTP device
Nov 3 18:57:19 KALI-PC kernel: [ 171.404413] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Nov 3 18:57:19 KALI-PC kernel: [ 171.404438] RTL871X: +871x_drv - drv_open, bup=0
Nov 3 18:57:19 KALI-PC kernel: [ 171.404440] RTL871X: ==>_InitPowerOn_8192EU
Nov 3 18:57:19 KALI-PC kernel: [ 171.406520] RTL871X: SetHwReg8192E: bMacPwrCtrlOn=1
Nov 3 18:57:19 KALI-PC kernel: [ 171.406717] RTL871X: ===> FirmwareDownload88E() fw source from Header.
Nov 3 18:57:19 KALI-PC kernel: [ 171.406720] RTL871X: FirmwareDownload8192E fw:NIC, size: 31818
Nov 3 18:57:19 KALI-PC NetworkManager[702]: <info> [1478195839.2360] devices added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/net/wlan1, iface: wlan1)
Nov 3 18:57:19 KALI-PC NetworkManager[702]: <info> [1478195839.2360] device added (path: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/net/wlan1, iface: wlan1): no ifupdown configuration found.
Nov 3 18:57:19 KALI-PC NetworkManager[702]: <info> [1478195839.2361] device (wlan1): state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Nov 3 18:57:19 KALI-PC kernel: [ 171.406722] RTL871X: FirmwareDownload8192E: fw_ver=19 fw_subver=0 sig=0x92e1
Nov 3 18:57:19 KALI-PC kernel: [ 171.437964] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00070305
Nov 3 18:57:19 KALI-PC kernel: [ 171.438409] RTL871X: =====> _8051Reset8192E(): 8051 reset success .
Nov 3 18:57:19 Koine-Paolo kernel: [ 171.462916] RTL871X: _FWFreeToGo8192E: Polling FW ready OK! (508, 24ms), REG_MCUFWDL:0x000702c6
Nov 3 18:57:19 Koine-Paolo kernel: [ 171.462925] RTL871X: FWDL success. write_fw:1, 56ms
Nov 3 18:57:19 KALI-PC kernel: [ 171.467718] RTL871X: ===> phy_BB8192E_Config_ParaFile() EEPROMRegulatory 1
Nov 3 18:57:19 KALI-PC kernel: [ 171.482715] RTL871X: PHY_BBConfig8192E ==> CrystalCap:0x1b
Nov 3 18:57:19 KALI-PC kernel: [ 172.022213] RTL871X: Auto InitLLTTable8192E success
Nov 3 18:57:19 KALI-PC kernel: [ 172.032385] RTL871X: pDM_Odm TxPowerTrackControl = 1
Nov 3 18:57:20 KALI-PC kernel: [ 172.189231] RTL871X: phy_SpurCalibration_8192E =>AFE_PHASE_SEL
Nov 3 18:57:20 KALI-PC kernel: [ 172.249968] RTL871X: ===FixSpur NOT Pass!
Nov 3 18:57:20 KALI-PC kernel: [ 172.620896] RTL871X: wlan1 MAC Address from REG_MACID = 18:a6:f7:12:eb:08
Nov 3 18:57:20 KALI-PC kernel: [ 172.620898] RTL871X: rtl8192eu_hal_init in 1220ms
Nov 3 18:57:20 KALI-PC kernel: [ 172.620900] RTL871X: wlan1Port-0 set opmode = 2
Nov 3 18:57:20 KALI-PC kernel: [ 172.627095] RTL871X: MAC Address = 18:a6:f7:12:eb:08
Nov 3 18:57:20 KALI-PC kernel: [ 172.627132] RTL871X: -871x_drv - drv_open, bup=1
Nov 3 18:57:20 KALI-PC kernel: [ 172.627188] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Nov 3 18:57:20 KALI-PC kernel: [ 172.627343] RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
Nov 3 18:57:20 KALI-PC kernel: [ 172.633770] RTL871X: indicate disassoc
Nov 3 18:57:20 KALI-PC kernel: [ 172.633789] RTL871X: SetHwReg8192E(wlan1) HW_VAR_BASIC_RATE: BrateCfg(0x15d)
Nov 3 18:57:20 KALI-PC kernel: [ 172.633791] RTL871X: +rtl8192e_set_FwJoinBssReport_cmd(wlan1): iface_type=0 mstatus(0)
Nov 3 18:57:20 KALI-PC kernel: [ 172.633945] RTL871X: -871x_drv - drv_close, bup=1
Nov 3 18:57:20 KALI-PC NetworkManager[702]: <warn> [1478195840.5662] device (wlan1): set-hw-addr: new MAC address 36:26:4F:13:8B:1B not successfully set (scanning)
Nov 3 18:57:20 KALI-PC kernel: [ 172.734440] RTL871X: +871x_drv - drv_open, bup=1
Nov 3 18:57:20 KALI-PC kernel: [ 172.734446] RTL871X: -871x_drv - drv_open, bup=1
Nov 3 18:57:20 KALI-PC kernel: [ 172.734464] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Nov 3 18:57:20 KALI-PC kernel: [ 172.742328] RTL871X: [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
Nov 3 18:57:20 KALI-PC kernel: [ 172.742334] RTL871X: set_mode = IW_MODE_INFRA
Nov 3 18:57:20 KALI-PC kernel: [ 172.742350] RTL871X: set bssid:00:00:00:00:00:00
Nov 3 18:57:20 KALI-PC kernel: [ 172.742361] RTL871X: =>rtw_wx_set_essid
Nov 3 18:57:20 KALI-PC kernel: [ 172.742362] RTL871X: ssid=g�isQ�J�)ͺ����F|�T����vZ.c3�ɚ, len=32
Nov 3 18:57:20 KALI-PC kernel: [ 172.742364] RTL871X: set ssid [g�isQ�J�)ͺ����F|�T����vZ.c3�ɚUw-�] fw_state=0x00000008
Nov 3 18:57:20 KALI-PC kernel: [ 172.742364] RTL871X: Set SSID under fw_state=0x00000008 | Wifi Adapter Not Working In Kali-Linux [duplicate] |
Turns out it was network-manager interfering. Switched it off
service network-manager stopand everything works fine.
I suspect there exists a less drastic solution than disabling it altogether, but it does what I need for now.
|
Background: I am trying to set up an access point on Linux. The ultimate aim is to run SSLStrip (for an exercise) so I need to be able to do something like this, to redirect port 80 traffic through port 10000, on which SSLStrip listens.
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000Using Linux - Kali2, 64bit. Machine has internet access via eth0.This is how I am setting up the access point:
airmon-ng start wlan0 6
modprobe tunifconfig wlan0mon down
iwconfig wlan0mon mode monitor
ifconfig wlan0mon upairbase-ng -e "MyAccessPoint" -c 6 wlan0mon &ifconfig "at0" up
ifconfig "at0" "10.0.0.1" netmask "255.255.255.0"
ifconfig "at0" mtu 1500
route add -net "10.0.0.0" netmask "255.255.255.0" gw "10.0.0.1" dev "at0"Into /etc/dhcp/dhcpd.conf I put the following:
subnet 10.0.0.0 netmask 255.255.255.0 {
authoritative;
range 10.0.0.100 10.0.0.200;
default-lease-time 3600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
option domain-name-servers 8.8.8.8;
option domain-name “freeinternet.co.uk”
}Check that /etc/default/isc-dhcp-server has INTERFACES=”at0”
Start the DHCP Server:
/etc/init.d/isc-dhcp-server restartConfigure NAT and enable ip forwarding:
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forwardAt this stage I believe I should be able to connect a client to my access point and browse the web.
The client sees the access point, connects, gets an IP address from the server's DHCP (10.0.0.101) and then has the following routing table:
mark@laptop15:~/TT$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 wlan0
10.0.0.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0However it cannot even ping the server (10.0.0.1) - no errors, we just don't get the pings back:
mark@laptop15:~/TT$ ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.And it stays like that forever.
What am I doing wrong please?
| Linux access point (airmon-ng/airmon-ng) not working |
WSL does not have a real Linux kernel. It is an emulation of the Linux services on top of the Windows HAL.
As such low level utilities such as airmon-ng won't work. I also have honest doubts iwconfig will fully work - the WiFi/network configuration is done on the Windows side.
For more details, see SSH In Windows 10 Bash(Ubuntu) and Attempting to run a regular tunnel in Debian version 9.5 Linux
|
Im using ubuntu bionic (UBUNTU
WSL)
I can't use airmon-ng!
It throws the following
ls: cannot access '/sys/class/ieee80211/': No such file or directoryI checked airmon-ng: ls: cannot access '/sys/class/ieee80211/': No such file or directory no fix
iwconfig
eth0 no wireless extensions.eth1 no wireless extensions.eth2 no wireless extensions.eth3 no wireless extensions.lo no wireless extensions.wifi0 no wireless extensions.wifi1 no wireless extensions.I have a wifi card and latest aircrack-ng, no fix
airmon-ng check kill
ls: cannot access '/sys/class/ieee80211/': No such file or directorythis is the output
airmon-ng wifi0
ls: cannot access '/sys/class/ieee80211/': No such file or directoryPHY Interface Driver Chipsetthe same thing
| airmon ng ls: cannot access '/sys/class/ieee80211/': No such file or directory |
I solved it by running the following commands sudo airmon-ng check kill
Before using sudo airmon-ng start <NETWORK INTERFACE>
everything works great and I finally can enjoy my new wifi adapter.
Thanks for anyone who was concerned ♥️
If anybody have explanation for it it will be great!
|
I'm facing an issue with my MT7601U network adapter on Linux. Although I've successfully entered monitor mode, I'm encountering difficulties capturing handshakes and discovering devices in the network/s. Strangely, only WPS attacks seem to work reliably.
Here are the key details:Adapter: Ralink MT7601U
Distribution: parrotOS 6.0 (lorikeet) 64-bit Kernel 6.8.0-xxxxx
Problem Summary:Monitor mode is enabled.
Unable to capture handshakes or detect devices in the network, except for WPS attacks which is very different kind of wifi attack.Attempts to Resolve:Successfully entered monitor mode using the iw command (sudo iw dev <interface> set monitor control).
Tried various tools like Aircrack-ng, Wireshark, and tcpdump for packet capture, but no success in capturing handshakes.
Even after ensuring monitor mode is active, no devices are being discovered in the network, except during WPS attacks.Observations:Checked system logs (dmesg, /var/log/syslog) but found no relevant error messages.
Updated drivers through the package manager and also tried downloading from the manufacturer's website, but the issue persists.I'm reaching out to the community for guidance on troubleshooting steps or potential solutions to this problem. Any advice or insights from users familiar with the MT7601U adapter or similar issues with other adapters would be greatly appreciated.
Thank you for your assistance!
| MT7601U Adapter in Linux - Monitor Mode Enabled, but Unable to Capture Handshake or Discover Devices |
You've already tried killing wpa_supplicant and restarting NetworkManager, but if the entire interface is no longer visible in the outputs of commands iwconfig, ifconfig iw list and/or ip link show, then that won't help.
The problem could be that the WiFi adapter driver has some kind of miscommunication with the hardware. It might be a suspend/hibernate issue, if you use that functionality.
You might want to check the dmesg output to see if there are any error messages related to the WiFi interface. And when the interface is no longer visible to commands like iwconfig etc., then you might try unloading & reloading the driver module for your WiFi interface.
When the wlan0 interface is working correctly, sudo ethtool -i wlan0 | awk '/driver:/{print $2;}' should display the name of the driver module. Make a note of it.
When the wlan0 goes missing again, run sudo modprobe -r <driver module name>, replacing <driver module name> with the actual module name you noted earlier, to unload the module. Then sudo modprobe <driver module name> to re-load it. This will force the driver to re-initialize the WiFi adapter 100% from scratch, hopefully clearing any miscommunication-related error states.
If this causes the WiFi adapter to start working again, and the problem seems to happen whenever you suspend your laptop, then you might need to customize the suspend/resume process to automatically shut down the WiFi adapter and unload its driver on suspend, and reload it on resume. This is generally doable fairly easily on most distributions, but I don't know what would be the recommended method for it for Kali specifically.
Apparently Kali is based on Debian, so putting the following script into /lib/systemd/system-sleep/wifi-workaround.sh and making it executable (chmod a+rx /lib/systemd/system-sleep/wifi-workaround.sh) might do the trick:
#!/bin/sh
# When suspending/resuming, systemd will call executables in /lib/systemd/system-sleep
# with the following parameters:
# $1 = either "pre" or "post"
# $2 = "suspend", "hibernate", "hybrid-sleep" or "suspend-then-hibernate"
INTERFACE=wlan0
DRIVER_MODULE=<driver module name> case "$1" in
pre)
nmcli device disconnect $INTERFACE
modprobe -r $DRIVER_MODULE
;;
post)
modprobe $DRIVER_MODULE
nmcli device connect $INTERFACE
;;
esac# Don't stop suspending/resuming even if we fail somehow.
exit 0Disclaimer: I have not tested this at all, you might need to troubleshoot & adjust this yourself. But I hope you get the idea.
|
I earlier asked a question Wifi isnt working after using wifite [duplicate]. This and this answer helped me. But, the problem is it works but, after few hours later when I start my laptop I get the same issue.I faces the issue whenever I run codes on the . Then, reboot my laptop everything works fine. I am unable to fix the issue permanently. I didn't use wifite after facing the issue that moment
sudo airmon-ng check killOutput :
Killing these processes
PID Name
1394 wpa_supplicant
sudo service NetworkManager restart
sudo ifconfig wlan0 upOutput : wlan0 : Error while getting interface flags : No such device
sudo iwconfig wlan0 downOutput : wlan0: ERROR while getting interface flags:No such device
sudo ifconfig wlan0 upOutput : wlan0 : ERROR while getting interface flags:No such device
sudo aireplay-ng wlan0Output : Please specify an attack mode.
"aireplay-ng --help" for help
I was trying to set wlan0 up. But, there was no wlan0 when I run ifconfig. When I restarted after running those commands. wlan0 was working correctly but, I have faced the multiple times. After running wifite few days ago. Even I have faced the issue again now... I think wifite status is keep running or something else is happening to it.
iwconfiglo no wireless extensions.
eth0 no wireless extensions.
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=15 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
wwan0 no wireless extensions.
docker0 no wireless extensions.ifconfigdocker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:7d:19:b4:b6 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether f0:de:f1:da:7d:80 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf2500000-f2520000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 28 bytes 1728 (1.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 1728 (1.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | wlan0 isn't working most of times |
You have to buy TP-Link to access wireless internet in VMware.Without this,you won't be able to access internet in VMware.
I bought model
TP-Link TL-WN723N 150Mbps Mini Wireless N USB Adapter (White).
|
I am currently running Kali Linux 2.0 on VMWare. When I do airmon-ng it shows
ls: cannot access '/sys/class/ieee80211/': No such file or directoryI looked in some threads and they told me to use an external network adapter device ( or something like that ) but I can't afford to buy things in the meantime. So is there any way for me to eliminate that error with my internal network adapter?
Thanks,
EDIT: Guess I have no other option beside buying an external network adapter then xD
| Kali Linux Wireless |
Well, you see, eth0 is an "cable" interface, generally speaking. You have to follow a procedure, which looks like that:
airmon-ng ### Shows the available wireless interfaces.airmon-ng start wlan0 ### Start a monitoring interface, usually named mon0 airodump-ng mon0 ### Just observing the available wireless networks |
I get this error when running airmon-ng on my Oracle VM. Not really sure why it's happening I'm fully updated and upgraded. When I try to run the command airmon-ng eth0 start it just gives me that message. Does someone know how to fix this?
| airmon-ng eth0 start: ls: cannot access '/sys/class/ieee80211/': No such file or directory |
This may happen if wlan0 WiFi adapter does not support monitor mode.
Specifically, LG G3's internal WiFi device does not support monitor mode.
|
LG G3 Android 5.0 device, rooted with Linux Deploy app, Kali Linux 2.0 installed with all components.
I'm connected to Kali Linux through SSH and trying to monitor wireless traffic.
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 34:...:b9
inet addr:172.20.10.6 Bcast:172.20.10.15 Mask:255.255.255.240
inet6 addr: f0...b9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:428 errors:0 dropped:1 overruns:0 frame:0
TX packets:477 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:185189 (180.8 KiB) TX bytes:91160 (89.0 KiB)$ airmon-ng PHY Interface Driver Chipsetphy0 p2p0 wcnss_wlan Not pci, usb, or sdio
phy0 wlan0 wcnss_wlan Not pci, usb, or sdio$ airmon-ng start wlan0Found 2 processes that could cause trouble.
If airodump-ng, aireplay-ng or airtun-ng stops working after
a short period of time, you may want to kill (some of) them! PID Name
1588 wpa_supplicant
8679 dhcpcdPHY Interface Driver Chipsetphy0 p2p0 wcnss_wlan Not pci, usb, or sdio
phy0 wlan0 wcnss_wlan Not pci, usb, or sdio
Failed to set wlan0mon up using ip
command failed: No such device (-19) (mac80211 monitor mode vif enabled for [phy0]wlan0 on [phy0]wlan0mon)
(mac80211 station mode vif disabled for [phy0]wlan0)After this wlan0 is no longer available and it does not appear in ifconfig. There doesn't seem to be any running aircrack-ng process, the only way I managed to bring it back is by restarting the phone.
# after running airmon-ng start wlan0
$ airmon-ng PHY Interface Driver Chipsetphy0 p2p0 wcnss_wlan Not pci, usb, or sdioWhat is the cause for this failure?
| wlan0 disappears after running airmon-ng on Android running Kali Linux |
Guess: The laptop BIOS is lying to ALSA, and giving it a wrong headphone jack codec node which always detects "connected".
Look at your analog codec with
cat /proc/asound/card*/codec\#*and use hdajackretask from package alsa-tools-gui to correct this if it is true.
Also see here for background information.
I don't know why it happened "suddenly", and can't explain the "sudden" change, but that's the first place I'd look. It's probably unrelated to the distro you are using, and it might have been always broken, and your hardware "suddenly" decided to switch from "undetected" to "detected" for the unused node with open pins. Or something complete different.
Edit
The Pin Complex info provided by the BIOS looks ok (or at least not as jumbled as the "lying" ones I've seen), so maybe it's something else. Try the following: Run evtest as root, select (in turn) each device that corresponds to soundcard plug events (usually they have HDA Intel or something similar in the name), and plug in/out your headphone and see if you actually receive events. According to the codec, you should have at least two of those, one for the headphone (Node 0x21) and one for the mic (Node 0x19).
Possibly the headphone/mic jack detection hardware is just broken. Or maybe something completely different.
|
I have a problem with the audio in Ubuntu 17.10.
No sound from speakers unless auto-mute from alsamixer is disabled. In that case sound goes to both speakers and headphones.
All sound cards are installed, however, even when headphones are not connected the only available output remains headphones-internal audio.
So far I did a fresh install of Ubuntu 17.10, run a live version of Ubuntu 16.04, 17.10, and Fedora, but no luck.
All this makes me think of a harware failure, in particular that the switch of headphones output jack socket is not working as it should.
I tried to gently clean it, but nothing. However, audio hardware failure is quite unlikely to happen (I hope at least).
After each boot speakers are muted in alsamixer, unmuting them and increasing the volume produce sound from speakers, but of course the speakers are not automatically disabled when headphones are connected.
Note that the audio worked properly with Ubuntu 17.04, and also with 17.10 (at least for a week), then suddenly stopped without updating anything.
Machine: Lenovo Yoga 2 Pro.
arecord -l
**** Lista di CAPTURE dispositivi hardware ****
scheda 1: PCH [HDA Intel PCH], dispositivo 0: ALC3239 Analog [ALC3239 Analog]
Sottoperiferiche: 1/1
Sottoperiferica #0: subdevice #0EDIT:
Here the output for cat /proc/asound/card*/codec#*
Moreover:I just tried to run a live usb with Windows and the problem is still there;
evtest for mic and heaphones reports them always connected (even if not).
I conclude that actually this is a hardware problem. I am going to replace the entire sound card, and I will update this post as soon as I have a final response. SOLUTION (hardware problem):
Replacing the sound board fixed the problem (40 Euros for a new one from eBay).
| Ubuntu: No sound from speakers, headphones jack detected even when no headphones are connected |
After a long search, I actually managed to find an answer. This might be helpful for others looking for something like this out there!
What you need:
pacmd list-sinksThis command has a line like this:
muted: noAnd this no indeed does change to yes, when I mute my device. Perfect. I managed to strip the output using this command, should anyone need it:
pacmd list-sinks | awk '/muted/ { print $2 }'Sorry for posting too soon, it seemed like I won't be able to find a solution anywhere.
|
I'm trying to look for a command that outputs 1 or 0 depending on whether I have my output muted.
I was trying this:
amixer sget MasterThis is the output I get:
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 64 [100%] [0.00dB] [on]Now the values change here accordingly (if I decrease volume, the percentage and the dB values change). However, if I head into Pavucontrol and mute my output on the 'Output devices' tab, the output of the command above stays the same. Literally nothing changes. But my sound indeed is muted.
What command should I use? Why doesn't that [on] change to [off]? Shouldn't it?
Thanks in advance.
| Find out whether sound output is muted (ALSA with Pulseaudio) |
1. Software switching support
Check, if your sound card supports software switching for the front audio panel. Some older motherboards don't support software switching at all. Some sound cards have connectors for both variants on the motherboard: software and hardware switching. In this case, make sure from your motherboard manual, that you use the connector with software switching.
2. Alsamixer Auto-Mute
Auto-Mute is a feature of Alsa. It ensures that when you connect your headphones, the other audio outputs are automatically muted. You can find and disable this in alsamixer. Open AlsaMixer, choose your sound card with F6 then move with < and > and find Auto-Mute. If it's enabled, disable it with the down arrow key.
3. PulseAudio configuration
This was the most problematic part for me because PulseAudio is poorly documented. When I disabled AutoMute in the previous step, speakers played in both cases. No matter, if I switched to Headphones or Line-out.
So what I had to do was look into AlsaMixer again and understand, how the volume bars react to audio switching in settings or pavucontrol.
Line-out:Headphones:As you can see, after switching to headphones, almost all volume bars got muted. But as I found out after a while, the volume of my speakers is for some reason controlled by Front bar. So now the last thing I had to do, was to configure PulseAudio to mute this Front volume-bar after switching to headphones.
PulseAudio configuration files we need to edit are stored in /usr/share/pulseaudio/alsa-mixer/paths/. In my case, I only edited the file analog-output-headphones.conf but this may vary depending on the configuration. You have to edit the file as root to contain these lines:
[Element Front]
switch = off
volume = offOnce you are done, save the file and restart PulseAudio with pulseaudio -k.
Output switching should now work as expected.
|
When I connect my headphones into the front jack, my speakers (line-out) get muted. I would like to switch to speakers without disconnecting my headphones. I see two possible options in gnome-control-center and pavucontrol: Headphones and Line-out. But when I switch to line-out, I hear nothing. How can I set correct behaviour?
I have Realtek ALC1150 with Alsa and PulseAudio installed.
| How to switch between headphones and speakers without disconnecting |
There is no suchlist of supported controlssince… whatever control element appropriately exposed by the device can be taken into account by amixer, v.g listed by the amixer scontrols command and accessible on the graphical interface via some button, slider or list according to its type (BOOLEAN, INTEGER or ENUM respectively) by calling alsalib's snd_ctl* functions.
These control elements can get different sort of properties (min/max values, step size, list of possible values)
From amixer's side, there is absolutely nothing specific to usb audio class 2 devices.
These control elements are defined by the driver in struct snd_ctl_elem_info objects of the like
static int snd_myctl_mono_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo)
{
uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
uinfo->count = 1;
uinfo->value.integer.min = 0;
uinfo->value.integer.max = 1;
return 0;
}for what would be a boolean control element.
Cf hereabove link for more details on control elements as well as the ALSA Kernel API Documentation for official documentation and detailed examples of sound drivers code.
Some alsa drivers can help by pre-defining (v.g. not restricting to some exhaustive list) some controls, for what concerns the usb_audio driver specifically :
enum {
USB_FEATURE_NONE = 0,
USB_FEATURE_MUTE = 1,
USB_FEATURE_VOLUME,
USB_FEATURE_BASS,
USB_FEATURE_MID,
USB_FEATURE_TREBLE,
USB_FEATURE_GEQ,
USB_FEATURE_AGC,
USB_FEATURE_DELAY,
USB_FEATURE_BASSBOOST,
USB_FEATURE_LOUDNESS
}; |
I am currently developing a usb soundcard that is usb audio class 2 compliant.
In my current setup I have audio and mute controls for several channels working in alsamixer.
The USB audio class 2 spec also supports a lot of other controls such as bass, mid, treble, equalizers, effects, etc. I have been trying to find a list of controls supported by alsamixer but the documentation does not mention any specifics on what kind of controls are supported.
If someone has a list with supported controls or an alternative command-line program that would be greatly appreciated.
| alsamixer / amixer supported usb audio class 2 controls |
With Pulseaudio, and no null sink:
Start pavucontrol. Start all applications. Select Output Devices, look at which output device app1 is using. Select Input Devices, set input1 of editing app to the .monitor input of the output device you just saw.
This is inconvenient if you don't want to hear the sound app1 produces, but only want to hear the sound of editing app. So create a null sink:
pacmd load-module module-null-sink sink_name=app1sinkAgain in pavucontrol, set the output device for app1 to app1sink, and set input1 of editing app to app1sink.monitor.
You can do the same for app2, either with an additional app2sink, or using the same null sink. In the latter case the sound outputs of app1 and app2 will be mixed. You can adjust the volume for each add separately using pavucontrol (or the in-app volume control).
If editing app (which you didn't name) actually can't use two different ALSA/Pulseaudio inputs, and you are not content with the simple mixing of a single null sink as above, it gets a bit more complicated - in that case you have to decide how you want to mix app1 and app2 in Pulseaudio, so the single input for editing app does something useful.
|
What I want is to separate two different applications' sound output from each other, and pipe that into a sound editing program.
What I need is a way to add an entry in record that outputs into the playback tab. I need two of these. I'm not sure if there are alsa (plumbing) commands to make these two connections, or phonon?
app1(output) > inputA --- outputA > editing app (input1)
app2(output) > inputB --- outputB > editing app (input2)So I'll set the output device as the input device for the editing application. That will give me two separate audio sources in the same editing application.
| I need to know how to get sound in Linux to do something specific |
Ok two things: between the application playing back a stream of PCM samples and the kernel side of ALSA, there's the userland alsalib with its optional internal resampling. If the application did not disable that but requested a device as is, the kernel had no way of knowing what the original sapling rate was. It's simply not visible to the kernel in any way. This is doubly true if the application doesn't use ALSA as pure hardware interface, but uses a userland soundserver like Pulseaudio, pipe wire, esound or JACK, which might also offer userland-implemented ALSA devices, and do the mixing/resampling internally. This is the norm for modern Linux desktops.
If the application wants the hardware to sample at a specific rate, it will call snd_pcm_hw_patams from alsalib, which will do the necessary syscalls to tell your kernel driver what rate was requested. Write a minimal program that does nothing but that and strace that to see which these were!
Generally, since it's pretty common that multiple streams of potentially different rates are to be played back at the same time, it feels natural that most applications would not try to fiddle with the hardware parameters themselves - they request a correctly set up device, and that will usually include resampling-in-userland being opted in.
|
I am currently working on an embedded board with a WM8776 which uses the MCASP1 of the AM335x. This works as expected and has expected behaviour.
What I now want to do is make a driver which can switch frequencies. I have two clocks which go in into the MCASP via a clock mux via a GPIO. If this GPIO is high I have an 24,576 clock, for 32/48/64/96/196, and so on audio and a 11,960 clock for 44.1/88.2/174 and so on audio.
My goal is now to be able to change this clock in kernel space. What I did so far was put some code to print out the current sample rate. Which went OK. I saw the sample rate which was currently transponded.
However, when I disabled the resampling of ALSA in .asoundrc I got the following error when trying to play a 96khz song one the 44.1khz (11,960mhz) clock.
alsa_open:303 unable to get period size: Invalid argument
This of course is logical since there is not Integer which can achieve this perfect bitrate without resampling on this clock. The problem with this is the earlier mentioned print comment I put in the kernel did not anymore put any information about the current bitrate. So it did not reach this function, as I think ALSA already did catch this.
So, I tried to trace where this error was coming from so I could program the kernel to say: we are playing this bitrate, so we want to change to this clock when we are using this specific soundcard, whenever changing a song. But I could not find this error anywhere when spitting through the kernel sound code.
In short the use case is as followed:
Start-up frequency is 11.960Mhz. -> we now are playing a 44.1 Khz song. -> Changing to 96Khz song -> Put GPIO high (clock now at 24,512Mhz) -> Inform ALSA and MCASP clock has changed.
I know how to change MCASP from kernel space.
So my question now is:
What is the first function called whenever a new playback is started(e.g. a song is changed)?
Where can I find the origin of this error?
And is there a better approach to do what I want to.
| Change clock bitrate (ALSA, PCM) at runtime AM335x |
I fixed it with this: https://help.ubuntu.com/community/HdaIntelSoundHowto#Playing_with_probe_mask
I still have an error in dmesg: snd_hda_intel 0000:00:1f.3: control 2:0:0:PCM Playback Volume:0 is already present, but I don't experience any problems.
|
This randomly started happening today. Yesterday I opened up my laptop to clean it out. I also disconnected the CMOS battery cable by mistake.
When I open alsamixer in a terminal, the following things happen when I try to control the channels:Controlling the 'PCM' channel is the only way for me to change the volume.Using the up/down arrow keys when selecting the master channel, it changes the numbers but doesn't actually change the volume. Even weirder: controlling the master volume mutes it instead. It also mutes the headphone channel, but not the speaker channel.Unmuting the master channel by pressing 'M' doesn't bring the audio back. To do that, I have to press Fn+F1, which is bound to pactl set-sink-mute 0 toggle in sxhkdrc (using bspwm).Using Fn+F2/F3 (bound to pactl set-sink-volume 0 -/+ 5%) to decrease/increase changes the master channel but doesn't change the audio, but also doesn't mute it.(un)Muting the headphone channel doesn't do anything to the audio. Increasing/decreasing the headphone channel doesn't change the volume.Muting the master channel also mutes the headphone channel, but unmuting the master channel doesn't unmute the headhpone channel.I can't get the speakers to work at all.When I lower the master channel using the function keys all the way to 0, the headphone channel goes down as well. When the headphone channel gets to 0, it mutes only the right channel (wtf?).Everything works in Windows (I did have a problem with audio drivers in Windows but a reboot fixed it) and in Ubuntu 18.10 on a USB live stick. I'm on a laptop (Lenovo Legion Y520) running Arch Linux. According to alsamixer I'm using the HDA Intel PCH soundcard and Realtek ALC233 chip.
EDIT: I saw in pavucontrol that I have two audio outputs: Headphones and Speakers. Next to speakers, it says 'unavailable'.
EDIT: dmesg: https://pastebin.com/YUr4MyDf
output of ls /proc/asound/card*/codec*:/proc/asound/card0/codec#0
/proc/asound/card0/codec#2 | Multiple problems with alsamixer after opening up laptop (no problems in other OSs) |
A/ You might prefer using the semigraphical ncurses alsamixer utility.
Fire it then as informed in the upper right corner F6 to select your sound card, then simply depress cursor keys in order to set the gain for the controls you wish.
B/ Using bare metal amixer, since the control you selected appears unknown to your system, I suggest you first check what are the controls available for your card using :
$ amixer -c 1 scontrolsthen, set the gain you wish on the particular control using :
$ amixer -c 1 sset controllabel 80%in order to set the gain for this particular control.
BTW : Do not enclose the controllabel between double quotes.Beware : Whatever controls get different capabilities. On these capabilities depend the possible settings. In order to get informations regarding some control's capabilities, fire :
$ amixer -c 1 sget some_control # adapt some_controlThe control will accept changing the gain only if it gets the volume capability. If, as detailed in OP, it is of a pswitch capability, the only possibility offered is to put it on or off :
|
There are two output devices : headphone and line out in my pc.I can select one of them as output decice with the PulseAudio Volume Control.Can amixer do the same job such as pulseaudio?
I want to select speaker on card 1 to play audio.
amixer -c 1 set "speaker" On
amixer: Unable to find simple control 'speaker',0
amixer -c 1 set "speaker" 10db
amixer: Unable to find simple control 'speaker',0Both of them can't work.
@MC68020,Invalid command:
debian@debian:~$ amixer -c 1 scontrols
Simple mixer control 'Master',0
Simple mixer control 'Headphone',0
Simple mixer control 'Headphone+LO',0
Simple mixer control 'PCM',0
Simple mixer control 'Front',0
Simple mixer control 'Front Mic',0
Simple mixer control 'Front Mic Boost',0
Simple mixer control 'Surround',0
Simple mixer control 'Center',0
Simple mixer control 'LFE',0
Simple mixer control 'Line',0
Simple mixer control 'Line Boost',0
Simple mixer control 'IEC958',0
Simple mixer control 'IEC958 Default PCM',0
Simple mixer control 'Capture',0
Simple mixer control 'Capture',1
Simple mixer control 'Auto-Mute Mode',0
Simple mixer control 'Channel Mode',0
Simple mixer control 'Input Source',0
Simple mixer control 'Input Source',1
Simple mixer control 'Loopback Mixing',0
Simple mixer control 'Rear Mic',0
Simple mixer control 'Rear Mic Boost',0
debian@debian:~$ amixer -c 1 sset Headphone 80%
amixer: Invalid command!
debian@debian:~$ amixer -c 1 set Headphone 80%
amixer: Invalid command!
debian@debian:~$ amixer -c 1 set "Headphone" 80%
amixer: Invalid command!
debian@debian:~$ amixer -c 1 sset "Headphone" 80%
amixer: Invalid command!More info on my amixer:
debian@debian:~$ amixer -v
amixer version 1.2.4
debian@debian:~$ amixer -c 1 sget Headphone
Simple mixer control 'Headphone',0
Capabilities: pswitch
Playback channels: Front Left - Front Right
Mono:
Front Left: Playback [on]
Front Right: Playback [on] | How can manage output device with amixer command? |
I found that this problem is common in windows/linux dual boot systems and the solution for me was putting system into suspend mode by running systemctl suspend in linux system and when you get back everything is ok, sound is working again.
|
I have antergos and gnome as DE dual booted with windows 10.
Everything was ok until I powered on the laptop and played a movie, there was no sound.(Also no sound when headphones plugged)
There is sound in windows so its not a hardware issue.
Here are some system details:
System:
$ uname -a
Linux prometheus 4.17.6-1-ARCH #1 SMP PREEMPT Wed Jul 11 19:14:29 UTC 2018 x86_64 GNU/LinuxCard:
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xef528000 irq 16Drivers:
$ lsmod | grep snd
snd_hda_codec_hdmi 57344 1
snd_hda_codec_realtek 110592 1
snd_hda_codec_generic 86016 1 snd_hda_codec_realtek
snd_soc_skl 114688 0
snd_soc_skl_ipc 73728 1 snd_soc_skl
snd_hda_ext_core 28672 1 snd_soc_skl
snd_soc_sst_dsp 36864 1 snd_soc_skl_ipc
snd_soc_sst_ipc 16384 1 snd_soc_skl_ipc
snd_soc_acpi 16384 1 snd_soc_skl
snd_soc_core 290816 1 snd_soc_skl
snd_compress 24576 1 snd_soc_core
ac97_bus 16384 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_hda_intel 45056 3
snd_hda_codec 151552 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 94208 7 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_soc_skl
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 135168 8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_soc_core,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine
snd_timer 36864 1 snd_pcm
snd 98304 16 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm
soundcore 16384 1 sndlspci | grep Audio output:
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)aplay -lL output:
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
HDA Intel PCH, ALC294 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC294 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC294 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC294 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC294 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC294 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC294 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC294 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
hdmi:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 3
HDMI Audio Output
hdmi:CARD=PCH,DEV=4
HDA Intel PCH, HDMI 4
HDMI Audio Output
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC294 Analog [ALC294 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0System is fully updated and I tried reinstalling pavucontrol pulseaudio pulseaudio-alsa pulseaudio-bluetooth alsa-firmware alsa-lib alsa-utils
Nothing worked :( I like arch linux but it sometimes gets annoying.
| Sound stopped working all of a sudden |
If you don't mind changing the file every time after you have pulseaudio updated (or reinstalled), or, just as a preliminary test, you may change this file directly:
/usr/share/pulseaudio/alsa-mixer/paths/usb-gaming-headset-output-stereo.confIn the file remove ,1 after Element PCM. (I don't think you need something like ,0.) After changing the file, restart the pulseaudio server with:
systemctl --user restart pulseaudioTo avoid having to keep changing the file, you'll need to copy the following files:
/usr/share/pulseaudio/alsa-mixer/paths/usb-gaming-headset-output-stereo.conf
/usr/share/pulseaudio/alsa-mixer/profile-sets/usb-gaming-headset.confto whatever name your like (which doesn't conflict with / replace other existing file) under the same respective directory, e.g.:
/usr/share/pulseaudio/alsa-mixer/paths/usb-gaming-headset-output-stereo-0.conf
/usr/share/pulseaudio/alsa-mixer/profile-sets/usb-gaming-headset-0.confThen, inside the new profile set file (usb-gaming-headset-0.conf), replace all the instances of usb-gaming-headset-output-stereo with the name (without .conf) of the copy of the mixer path file (usb-gaming-headset-output-stereo-0).
Don't forget to remove ,1 in the copy of the mixer path file (usb-gaming-headset-output-stereo-0.conf) if you didn't make or have reverted the change in the original.
Finally, create a udev rules file with the prefix 91- (so that it overrides the relevant effect of 90-pulseaudio.rules), e.g.:
/etc/udev/rules.d/91-pulse-pcm.rules(Make sure it has the extension name .rules)
with the following line of content (the value for ENV{PULSE_PROFILE_SET} should be the name chosen for the copy of the profile set file):
SUBSYSTEM=="sound", ACTION=="change", KERNEL=="card*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="12c4", ENV{PULSE_PROFILE_SET}="usb-gaming-headset-0.conf"(Make sure you don't mix up SUBSYSTEM and SUBSYSTEMS. Don't miss the S in ATTRS. Also don't mix up == and =.)
After all the work, run the following or reboot to get them applied:
sudo systemctl restart systemd-udevd
sudo systemctl restart systemd-udev-trigger
systemctl --user restart pulseaudioP.S. Your distro might somewhat implicitly make your system use pipewire instead at some point, e.g. after a certain system update / upgrade. I don't know if pipewire has the problem as well, but if someday the hack is no longer in effect, the switch is probably the cause. (By then pacmd list-sinks will say pulseaudio is not running while pactl list sinks will list the available sinks provided by "pipewire-pulse").
|
I am running Linux Mint and whenever I use my system's hardware volume controls (e.g., volume up/down buttons), it adjusts the "PCM 1" level in alsamixer. However, I want it to adjust the "PCM" level instead.
Here's the output from amixer -c 1 which shows the available controls:
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 74
Mono:
Front Left: Playback 74 [100%] [0.00dB] [on]
Front Right: Playback 74 [100%] [0.00dB] [on]
Simple mixer control 'PCM',1
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 74
Mono:
Front Left: Playback 74 [100%] [0.00dB] [on]
Front Right: Playback 74 [100%] [0.00dB] [on]
Simple mixer control 'Mic',0
Capabilities: cvolume cvolume-joined cswitch cswitch-joined
Capture channels: Mono
Limits: Capture 0 - 74
Mono: Capture 74 [100%] [0.00dB] [on]I have tried modifying PulseAudio's default.pa configuration, but this resulted in loss of audio.
I am looking for a solution that doesn't involve custom scripts or keybindings. I'd prefer to have the standard master volume change "PCM" directly.
Any suggestions or insights would be greatly appreciated!
As requested, here is the output of cat ~/.xbindkeysrc:
## For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.7
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
# "command to start"
# associated key
#
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
## The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events# By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable# Examples of commands:"xbindkeys_show"
control+shift + q# set directly keycode (here control + f with my keyboard)
#"xterm"
# c:41 + m:0x4# specify a mouse button
#"xterm"
# control + b:2#"xterm -geom 50x20+20+20"
# Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
# alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a release event starts rxvt
#"rxvt"
# release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
# Control + b:2 + Release##################################
# End of xbindkeys configuration #
###################################"xdotool type 'r'"
#Control+Alt + RightAnd the output of pacmd list-cards:
4 card(s) available.
index: 0
name: <alsa_card.pci-0000_01_00.1>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "2"
alsa.card_name = "HDA NVidia"
alsa.long_card_name = "HDA NVidia at 0xdc080000 irq 17"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:01:00.1"
sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card2"
device.bus = "pci"
device.vendor.id = "10de"
device.vendor.name = "NVIDIA Corporation"
device.product.id = "10f0"
device.product.name = "GP104 High Definition Audio Controller"
device.string = "2"
device.description = "GP104 High Definition Audio Controller"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:hdmi-stereo: Digital Stereo (HDMI)-Ausgabe (priority 38668, available: unknown)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2)-Ausgabe (priority 38468, available: unknown)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3)-Ausgabe (priority 38468, available: unknown)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4)-Ausgabe (priority 5700, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4)-Ausgabe (priority 600, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4)-Ausgabe (priority 600, available: no)
off: Aus (priority 0, available: unknown)
active profile: <output:hdmi-stereo>
sinks:
alsa_output.pci-0000_01_00.1.hdmi-stereo/#11: GP104 High Definition Audio Controller Digital Stereo (HDMI)
sources:
alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#14: Monitor of GP104 High Definition Audio Controller Digital Stereo (HDMI)
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "LG HDR 4K
"
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "27GL650F
"
hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "27GL650F
"
hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
index: 1
name: <alsa_card.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00>
driver: <module-alsa-card.c>
owner module: 8
properties:
alsa.card = "1"
alsa.card_name = "SteelSeries Arctis 9"
alsa.long_card_name = "SteelSeries SteelSeries Arctis 9 at usb-0000:00:14.0-3.1, full speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:3.1:1.0"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3.1/1-3.1:1.0/sound/card1"
udev.id = "usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00"
device.bus = "usb"
device.vendor.id = "1038"
device.vendor.name = "SteelSeries ApS"
device.product.id = "12c4"
device.product.name = "SteelSeries Arctis 9"
device.serial = "SteelSeries_SteelSeries_Arctis_9_000000000000"
device.string = "1"
device.description = "SteelSeries Arctis 9"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-usb"
profiles:
output:stereo-game+output:stereo-chat+input:mono-chat: Spiel-Ausgabe + Chat-Ausgabe + Chat-Eingabe (priority 5100, available: unknown)
input:mono-chat: Chat-Eingabe (priority 1, available: unknown)
output:stereo-chat: Chat-Ausgabe (priority 5000, available: unknown)
output:stereo-chat+input:mono-chat: Chat-Ausgabe + Chat-Eingabe (priority 5000, available: unknown)
output:stereo-game: Spiel-Ausgabe (priority 5000, available: unknown)
output:stereo-game+input:mono-chat: Spiel-Ausgabe + Chat-Eingabe (priority 5000, available: unknown)
off: Aus (priority 0, available: unknown)
active profile: <output:stereo-game+output:stereo-chat+input:mono-chat>
sinks:
alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-game/#1: SteelSeries Arctis 9 Spiel
alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-chat/#2: SteelSeries Arctis 9 Chat
sources:
alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-game.monitor/#1: Monitor of SteelSeries Arctis 9 Spiel
alsa_output.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.stereo-chat.monitor/#2: Monitor of SteelSeries Arctis 9 Chat
alsa_input.usb-SteelSeries_SteelSeries_Arctis_9_000000000000-00.mono-chat/#3: SteelSeries Arctis 9 Chat
ports:
usb-gaming-headset-output-stereo: Headphones (priority 0, latency offset 0 usec, available: unknown)
properties:
usb-gaming-headset-input: Headset Microphone (priority 0, latency offset 0 usec, available: unknown)
properties:
index: 2
name: <alsa_card.usb-046d_081b_61151E20-02>
driver: <module-alsa-card.c>
owner module: 9
properties:
alsa.card = "3"
alsa.card_name = "USB Device 0x46d:0x81b"
alsa.long_card_name = "USB Device 0x46d:0x81b at usb-0000:00:14.0-6, high speed"
alsa.driver_name = "snd_usb_audio"
device.bus_path = "pci-0000:00:14.0-usb-0:6:1.2"
sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.2/sound/card3"
udev.id = "usb-046d_081b_61151E20-02"
device.bus = "usb"
device.vendor.id = "046d"
device.vendor.name = "Logitech, Inc."
device.product.id = "081b"
device.product.name = "Webcam C310"
device.serial = "046d_081b_61151E20"
device.form_factor = "webcam"
device.string = "3"
device.description = "Webcam C310"
module-udev-detect.discovered = "1"
device.icon_name = "camera-web-usb"
profiles:
input:mono-fallback: Mono-Eingabe (priority 1, available: unknown)
off: Aus (priority 0, available: unknown)
active profile: <input:mono-fallback>
sources:
alsa_input.usb-046d_081b_61151E20-02.mono-fallback/#4: Webcam C310 Mono
ports:
analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
index: 3
name: <alsa_card.pci-0000_00_1f.3>
driver: <module-alsa-card.c>
owner module: 10
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0x2ffff20000 irq 139"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1f.3"
sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "a2f0"
device.product.name = "200 Series PCH HD Audio"
device.form_factor = "internal"
device.string = "0"
device.description = "Eingebautes Tongerät"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analog Stereo-Eingabe (priority 32833, available: unknown)
output:analog-stereo: Analog Stereo-Ausgabe (priority 6500, available: no)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
output:analog-surround-21: Analog Surround 2.1-Ausgabe (priority 1300, available: no)
output:analog-surround-21+input:analog-stereo: Analog Surround 2.1-Ausgabe + Analog Stereo-Eingabe (priority 1365, available: unknown)
output:analog-surround-40: Analog Surround 4.0-Ausgabe (priority 1200, available: no)
output:analog-surround-40+input:analog-stereo: Analog Surround 4.0-Ausgabe + Analog Stereo-Eingabe (priority 1265, available: unknown)
output:analog-surround-41: Analog Surround 4.1-Ausgabe (priority 1300, available: no)
output:analog-surround-41+input:analog-stereo: Analog Surround 4.1-Ausgabe + Analog Stereo-Eingabe (priority 1365, available: unknown)
output:analog-surround-50: Analog Surround 5.0-Ausgabe (priority 1200, available: no)
output:analog-surround-50+input:analog-stereo: Analog Surround 5.0-Ausgabe + Analog Stereo-Eingabe (priority 1265, available: unknown)
output:analog-surround-51: Analog Surround 5.1-Ausgabe (priority 1300, available: no)
output:analog-surround-51+input:analog-stereo: Analog Surround 5.1-Ausgabe + Analog Stereo-Eingabe (priority 1365, available: unknown)
output:analog-surround-71: Analog Surround 7.1-Ausgabe (priority 1200, available: no)
output:analog-surround-71+input:analog-stereo: Analog Surround 7.1-Ausgabe + Analog Stereo-Eingabe (priority 1265, available: unknown)
output:iec958-stereo: Digital Stereo (IEC958)-Ausgabe (priority 38268, available: unknown)
output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958)-Ausgabe + Analog Stereo-Eingabe (priority 38333, available: unknown)
off: Aus (priority 0, available: unknown)
active profile: <output:iec958-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1f.3.iec958-stereo/#3: Eingebautes Tongerät Digital Stereo (IEC958)
sources:
alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor/#5: Monitor of Eingebautes Tongerät Digital Stereo (IEC958)
alsa_input.pci-0000_00_1f.3.analog-stereo/#6: Eingebautes Tongerät Analog Stereo
ports:
analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: yes)
properties:
device.icon_name = "audio-input-microphone"
analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)
properties:
analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: no)
properties:
analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties: | Change Default Master Volume Control to "PCM" in alsamixer on Linux Mint |
The asym plugin is a PCM plugin; it is not possible to apply it to ctl devices.
This configuration has never worked.
If you did not get this error before, then it probably got overridden by a later definition somewhere else.
Remove that ctl asym definition. You'll have to select the respective sound device in alsamixer (as you probably already did).
|
I have a Logitech Webcam C310 and the built-in microphone of the webcam works
really well, that's why I use at as my default microphone.
My ~/.asoundrc looks like this:
pcm.usb
{
type hw
card U0x46d0x81b
}pcm.!default
{
type asym
playback.pcm
{
type plug
slave.pcm "dmix"
}
capture.pcm
{
type plug
slave.pcm "usb"
}
}ctl.!default {
type asym
playback.pcm
{
type plug
slave.pcm "dmix"
}
capture.pcm
{
type plug
slave.pcm "usb"
}
}This setup has been working well for the last couple of years.
I use Gentoo Linux and last week I made an system wide update. I didn't pay
attention whether media-libs/alsa-lib and/or media-plugins/alsa-plugins
got updated but when I executed alsamixer I got the following error:
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.1.2/work/alsa-lib-1.1.2/src/dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_ctl_asym.so
cannot open mixer: No such device or addressMy current version of media-libs/alsa-lib is 1.1.2 and the version of
media-plugins/alsa-plugins is 1.1.1-r1. I've downloaded the sources of both
and compilied them but the file libasound_module_ctl_asym.so is never
generated.
Is the asym module deprecated? Which option in ./configure should I enable
in order to compile and link libasound_module_ctl_asym.so?
| Is ALSA's asym plugin deprecated? |
Compile the application on such multi-arch system, patch the interp for it (patchelf --set-interpreter /lib/ld-linux-armhf.so.3 /usr/local/bin/openocd) if You cannot. Or call the dynamically linked binary explicitly through the corresponding dynamic linker (/lib/ld-linux-armhf.so.3 /usr/local/bin/openocd). You could do the last by wrappping the command name in a script or alias and move the acutal binary out of the way.
|
My current setup is quite exotic, and I could use some clarification.
I am running on a Pinebook Pro, powered by a Quad Cortex-A53, 64-bit CPU. The OS is a 64-bit version of Debian:
$ uname -a
Linux pinebook 4.4.196 #1 SMP Tue Oct 15 16:54:21 EDT 2019 aarch64 GNU/LinuxBy default however only armhf architecture was enabled:
$ dpkg --print-architecture
armhfSince I wanted to run aarch64 binaries I added the corresponding architecture:
$ dpkg --add-architecture arm64
$ apt update && apt upgrade
$ apt install gcc-6-base:arm64 libc6:arm64 libgcc1:arm64This worked without problems. However, after this I found myself not being able to run another 32-bit binary anymore because suddenly /lib/ld-linux.so.3 had disappeared. Inspecting it gave me the following output.
$ file openocd
openocd: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=363651b03c33118c80584e99b6f876c7a8663325, strippedIndeed, ld-linux.so.3 was missing. In its place I found architecture-specific symbolic links:
$ ls /lib
aarch64-linux-gnu firmware ld-linux-armhf.so.3 systemd
arm-linux-gnueabihf ifupdown lsb terminfo
cpp init modprobe.d udev
dhcpcd ld-linux-aarch64.so.1 modules Since I needed ld-linux.so.3 from armhf architecture I looked for it under /lib/arm-linux-gnueabihf/ and sure enough there it was. To solve my problem I then linked it in /lib, and the binary worked again.
$ ln -s /lib/arm-linux-gnueabihf/ld-linux.so.3 /lib/ld-linux.so.3Now, the question: to fix this problem I had to mess directly with /lib, which is not ideal. What would be the preferred solution?
| Correct way to add /lib/ld-linux.so.3 in Debian |
When we use u-boot as bootloader, (I think it will be the same if we do it using UEFI and grub, or arm reference design) the bootloader runs at EL3 and at the final code sets the elr (address to return to from the exception handling) to the entry address of linux. It then executes eret which makes it jump to linux address kept in elr, and the EL is automatically lowered to EL2 at the same time. In linux, the code examines if FEAT_VHE is implemented (virtualization hardware extension) and if so, it remains in EL2. When VHE is implemented, many accesses to EL1 registers are actually accessing those in EL2 (this part not 100% sure, I remember something like that). So for building linux, we don't have to set anything. (but I think if we turn CONFIG_ARM64_VHE off, it might run in EL1).
|
In https://stackoverflow.com/questions/39614772/how-to-know-the-linux-kernel-run-either-el2-non-secure-or-el3-secure-mode, I saw in recent arm64 linux, the kernel runs at EL2 not EL1. Recently I'm doing linux port on a test board using u-boot-spl falcon mode. There too, when the CPU hardware started from EL3, the linux seems to be run in EL2 (from arm64, see https://elixir.bootlin.com/u-boot/latest/source/arch/arm/lib/spl.c#L55 and https://elixir.bootlin.com/u-boot/latest/source/arch/arm/cpu/armv8/transition.S#L13). My question is, for linux to run in EL2, is there anything I should set in the config, or is linux build agnostic to whether it will run in EL1 or EL2?
| in arm64 linux, when linux is to be run in EL2 (bootloader in EL3), do I have to set something for this during kernel build? |
No, there is no other way; overflow_stack isn’t declared or defined in any header included by entry.S. But that’s not an error as far as the assembler is concerned; overflow_stack doesn’t have a local prefix, so it ends up as an undefined symbol in arch/arm64/kernel/entry.o, which is resolved when the kernel is linked.
Run
make arch/arm64/kernel/entry.o(or make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 arch/arm64/kernel/entry.o on an architecture other than arm64); then
objdump -t arch/arm64/kernel/entry.owill show (among others)
0000000000000000 *UND* 0000000000000000 overflow_stackThe relocation tables include an number of entries for overflow_stack+0x0000000000001000 (overflow_stack + OVERFLOW_STACK_SIZE); run objdump -r arch/arm64/kernel/entry.o to see them.
|
The overflow_stack variable is used in the kernel_ventry macro in arch/arm64/kernel/entry.S
/* Switch to the overflow stack */
adr_this_cpu sp, overflow_stack + OVERFLOW_STACK_SIZE, x0It seems to me to be declared in arch/arm64/include/asm/stacktrace.h
DECLARE_PER_CPU(unsigned long [OVERFLOW_STACK_SIZE/sizeof(long)], overflow_stack);However, this header file is not included in entry.S, or in any other meaningful header that I can find. Is there another way it is being included?
| How is overflow_stack variable included in entry.S in arm64 architecture? |
This is mandated by the multiarch specification:multiarch packages are required to be kept in lockstep; i.e., an implicit Breaks: ${self}:other (!= ${binary:Version}).The reason is that packages always ship some arch-independent files in shared directories (/usr/share/doc), so the package management system has to ensure that they are identical across architectures. It does that by enforcing identical versions across architectures, even with binNMUs.
Inside a single distribution this isn’t much of a problem, but across distributions it is.
In your case specifically, let’s consider gcc-6-base (since that’s where the documentation lives). The Debian Stretch version installs its changelog in /usr/share/doc/gcc-6-base/changelog.Debian.gz. Installing the same package for other architectures, using the same version, installs the same file, so while technically there’s a conflict, it’s ignored. The Raspbian version however adds the following entry:
gcc-6 (6.3.0-18+rpi1+deb9u1) stretch-staging; urgency=medium [changes brought forward from 6.1.1-1+rpi1 by Peter Michael Green <[emailprotected]> at Wed, 11 May 2016 20:
* Disable testsuite. -- Raspbian forward porter <[emailprotected]> Thu, 01 Mar 2018 00:03:02 +0000Now the /usr/share/doc/gcc-6-base/changelog.Debian.gz is no longer identical. If we were to install both Debian Stretch and Raspbian Stretch versions of the package side-by-side, which version of the file should be kept? There’s no way to decide, so the packaging system forbids the situation entirely.
|
With Raspbian and a 64-bit kernel, I am fetching packages from the following sources:
deb [arch=armhf] http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
deb http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-freeAttempting to install the minimal dependencies to run something like gzip:arm64 reports conflicts such as:
libgcc1 : Breaks: libgcc1:arm64 (!= 1:6.3.0-18+rpi1+deb9u1) but 1:6.3.0-18+deb9u1 is to be installed
gcc-6-base:arm64 : Breaks: gcc-6-base (!= 6.3.0-18+deb9u1) but 6.3.0-18+rpi1+deb9u1 is to be installedIt looks like the "+rpi1" armhf packages are conflicting with the non-rpi1 arm64 packages. But that would mean that it's comparing package versions across two different architectures!
Error messages with apt-get can be misleading anyhow, so to bring my system into a state similar to bamarni's Debian Pi64 (where multiarch works), I can try downloading some non-rpi1 armhf packages from links such as https://packages.debian.org/stretch/armhf/libgcc1/download Once I replace libgcc1:armhf, gcc-6-base:armhf, libc6:armhf, libatomic1:armhf and others, basic conflicts go away and I can install libgcc1:arm64 gcc-6-base:arm64 libc6:arm64 via apt. However, this isn't a great solution because in the process I have likely lost ARMv6 compatibility and other Raspbian-specific modifications.
And the above could still mean there's something else fishy hiding in the Raspbian packages. My next test is to use the Raspbian *.deb files, except with a script I repackage them to remove the +rpi1 part of the version text in each control file. Once I do this and reinstall those packages, the conflicts with arm64 packages go away. This again indicates that APT is comparing package versions across two different architectures.
When I run apt-cache show on any of these they all say Multi-Arch: same with their correct corresponding Architecture: lines. As I understand things, it would only care about versions across different architectures in the cases of Multi-Arch: foreign or Multi-Arch: allowed.
What's going on here? It seems like APT is comparing package versions across different architectures when it shouldn't, which leads to bogus conflicts. I wonder if the fact that multiarch works okay on bamarni's Pi64 or Ubuntu MATE--or most i386+x86_64 systems--is in part luck that these systems have generally consistent package versions across 32-bit and 64-bit.
| APT version conflicts across different architectures even with Multi-Arch: same? |
I resolved this issue by using different toolchains for compiling 32bit and 64bit applications - arm-linux-gnueabihf & arm-linux-gnueabi respectively. Not sure if there exist a better way of doing it.
Anyways, I don't need this anymore as the Cavium processor of the ARM64 machine I'm using does not support 32bit libraries. I will have to find a way to get the 64bit version of the library.
|
I have a ARM virtual machine on AWS with Ubuntu18.04 installed.
dpkg & uname commands show this,
$ dpkg --print-architecture
arm64
$ uname -m
aarch64I've got a third-party precompiled static library (.a) built for 32-bit.
I understand that I cannot link 32-bit library to a 64-bit application, so
I've created a new application which will link the library and get compiled for 32-bit. This application will communicate with rest of the applications (64-bit) using some IPC mechanism.
To compile this application I've added following flag in my cmake file,
set (CMAKE_CXX_FLAGS "-m32")but the compiler throw this error,
c++: error: unrecognized command line option ‘-m32’c++ version on my machine is,
$ c++ -v
Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/7/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu
Thread model: posix
gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)It shows that it is prepared with configuration option --enable-multiarch which I suppose should allow me to compile for different architecture (32-bit ARM).
On one of the other thread on stackoverflow says that some ARM64 machine's hardware may not support compilation of 32-bit applications.
My question is how to check if my ARM64 machine is capable of building 32-bit application? And if it is capable of building then what is the alternative to -m32 flag?
| How to check if my ARM64 board supports 32 bit binary compilation? (error: unrecognized command line option ‘-m32’) |
I manage to find out that this issue is related to the integrated Ethernet and known issues with the RK3399 CPU. With an USB 3 to Ethernet adapter this issue won't happen.The boards like RK3399 need TCP/UDP offloading disabled to avoid the
retransmissions and reset errors. This was already implemented by
Ayufan on Rock64 and RockPro64 Rootfs and DietPi needs this too.An easy fix for this is to disable offloading:
ethtool -K eth0 rx off tx offYou may check offloading status afterwards with ethtool --show-offload eth0.
After disabling the offloading features I don't have the reported issue anymore.
In order to survive reboots (and network restarts) you may create a script at /etc/network/if-up.d/disable-offload similar to:
#!/bin/bash
/sbin/ethtool -K eth0 rx off tx off(Be sure to NOT name the file with .sh and to chmod +x this file as well)
|
I've a brand new setup of Apache2 running under Debian 9 (armbian on NanoPi M4). Everything works fine until I try to download a large file over HTTPS. Small files download successfully however, larger ones seem to fail randomly at some point.
I can't reproduce this issue with plain HTTP. Example on wget (same behaviour on a browser):
wget https://xyz---/test.bin --no-check-certificate
--2019-01-13 18:22:22-- https://xyz---/test.bin
Resolving xyz--- (xyz---)... 85.241.xxx.xxx
Connecting to xyz--- (xyz---)|85.241.xxx.xxx|:443... connected.
WARNING: cannot verify xyz---'s certificate, issued by 'CN=Let\'s Encrypt Authority X3,O=Let\'s Encrypt,C=US':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: 1073741824 (1,0G) [application/octet-stream]
Saving to: 'test.bin.2'test.bin.2 39%[==================> ] 403,66M 11,6MB/s eta 54sIt was downloading fine until it reached 403,66M, after this point nothing else happened. On the server side (error.log) I get this:
ssl_engine_io.c(2135): [client 85.243.xxx.xxx:59904] OpenSSL: write 16413/16413 bytes to BIO#5588cd8c50 [mem: 5588a87c23] (BIO dump follows)
core_filters.c(525): [client 85.243.xxx.xxx:59904] core_output_filter: flushing because of THRESHOLD_MAX_BUFFER
core_filters.c(547): (70007)The timeout specified has expired: [client 85.243.xxx.xxx:59904] core_output_filter: writing data to the network
ssl_engine_io.c(2144): [client 85.243.xxx.xxx:59904] OpenSSL: I/O error, 16413 bytes expected to write on BIO#5588cd8c50 [mem: 5588a87c23]
(70007)The timeout specified has expired: [client 85.243.xxx.xxx:59904] AH01993: SSL output filter write failed.It seems to run the core_output_filter: flushing because of THRESHOLD_MAX_BUFFER and then nothing else happens. Sometimes I've also noticed this error:
ssl_engine_io.c(2135): [client 95.239.xxx.xxx:9937] OpenSSL: write 45/45 bytes to BIO#55bd9e23e0 [mem: 55bd9ec213] (BIO dump follows)
ssl_engine_io.c(2144): [client 95.239.xxx.xxx:9937] OpenSSL: I/O error, 5 bytes expected to read on BIO#55bd9e9d80 [mem: 55bd9ec213]Here is the configuration of the VHosts serving this requests:
<VirtualHost *:443>
ServerName xyz---
ServerAdmin tcb13---
DocumentRoot /test
ErrorLog /test/error.log
CustomLog /test/access.log combined SSLEngine on
SSLCertificateFile /mnt/SU1/letsencrypt/config/live/xyz---/fullchain.pem
SSLCertificateKeyFile /mnt/SU1/letsencrypt/config/live/xyz---/privkey.pem
Header always set Strict-Transport-Security "max-age=15768000" LogLevel trace6
</VirtualHost>I'm sure this isn't a network related problem because:Only happens with SSL enabled, on non-ssl vhosts I can download without issues;
Other protocols (FTP and SCP) work just fine to download the same test file;
No issues while testing the network with iperf3.Some system information:
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretchuname -a
Linux testxyz 4.4.162-rk3399 #41 SMP Fri Oct 26 14:03:47 CEST 2018 aarch64 GNU/Linuxapache2ctl -V | grep -i "Server version"
Server version: Apache/2.4.25 (Debian)
root@testxyz:~# dpkg -l |grep apache2
ii apache2 2.4.25-3+deb9u6 arm64 Apache HTTP Server
ii apache2-bin 2.4.25-3+deb9u6 arm64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.25-3+deb9u6 all Apache HTTP Server (common files)
ii apache2-utils 2.4.25-3+deb9u6 arm64 Apache HTTP Server (utility programs for web servers)
ii libapache2-mod-php7.3 7.3.0-2+0~20181217092659.24+stretch~1.gbp54e52f arm64 server-side, HTML-embedded scripting language (Apache 2 module)How can I fix this? Thank you.
| NanoPi M4 - RK3399: Apache2 + SSL: Large download hangs |
The error comes from one of your system’s apt hooks, which aren’t essential to the system’s overall functionality. You’ll find details in the files under /etc/apt/apt.conf.d; I suspect the culprit in your case could be PackageKit (/etc/apt/apt.conf.d/20packagekit).
If you want to figure out which one is failing, rename each file in turn, adding .disabled to its name, and run apt update again. Rename each file back afterwards, until you find the failing hook.
|
I'm running a debian linux on arm64 hardware, just did a dist-upgrade from stretch to buster and everything seems to be working except I'm systematically getting the following message:
Error connecting: Could not connect: Connection refused
After every apt command.
For example apt update will return:
Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://deb.debian.org/debian buster/main arm64 Packages [7736 kB]
Get:3 http://deb.debian.org/debian buster/main Translation-en [5968 kB]
Get:4 http://deb.debian.org/debian buster/contrib arm64 Packages [38.7 kB]
Get:5 http://deb.debian.org/debian buster/contrib Translation-en [44.5 kB]
Fetched 13.9 MB in 5s (3012 kB/s)
Error connecting: Could not connect: Connection refused
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.Its worth noting the packages do install successfully even though the same message continue to appear, for example, installating nmap:
root@localhost:/home/marc# apt install nmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cgmanager default-mysql-server galera-3 libaio1 libass5 libavcodec57 libavdevice57 libavfilter6 libavformat57
libavresample3 libavutil55 libbind9-140 libblas-common libbluray1 libboost-iostreams1.62.0 libcdio-cdda1
libcdio-paranoia1 libcdio13 libcgmanager0 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libdns162
libdrm-freedreno1 libebur128-1 libevent-2.0-5 libfile-copy-recursive-perl libgcr-3-common libgfortran3
Get:2 http://deb.debian.org/debian buster/main arm64 liblua5.3-0 arm64 5.3.3-1.1 [110 kB]
Get:3 http://deb.debian.org/debian buster/main arm64 nmap-common all 7.70+dfsg1-6+deb10u1 [3898 kB]
Get:4 http://deb.debian.org/debian buster/main arm64 nmap arm64 7.70+dfsg1-6+deb10u1 [1844 kB]
Fetched 5889 kB in 1s (11.3 MB/s)
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Selecting previously unselected package liblinear3:arm64.
(Reading database ... 88667 files and directories currently installed.)
Preparing to unpack .../liblinear3_2.1.0+dfsg-4_arm64.deb ...
Unpacking liblinear3:arm64 (2.1.0+dfsg-4) ...
Selecting previously unselected package liblua5.3-0:arm64.
Preparing to unpack .../liblua5.3-0_5.3.3-1.1_arm64.deb ...
Unpacking liblua5.3-0:arm64 (5.3.3-1.1) ...
Selecting previously unselected package nmap-common.
Preparing to unpack .../nmap-common_7.70+dfsg1-6+deb10u1_all.deb ...
Unpacking nmap-common (7.70+dfsg1-6+deb10u1) ...
Selecting previously unselected package nmap.
Preparing to unpack .../nmap_7.70+dfsg1-6+deb10u1_arm64.deb ...
Unpacking nmap (7.70+dfsg1-6+deb10u1) ...
Setting up nmap-common (7.70+dfsg1-6+deb10u1) ...
Setting up liblinear3:arm64 (2.1.0+dfsg-4) ...
Setting up liblua5.3-0:arm64 (5.3.3-1.1) ...
Setting up nmap (7.70+dfsg1-6+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Error connecting: Could not connect: Connection refused | Debian buster arm64 apt return error message, package installation works anyway |
Thanks to a lot of trial and error, I got it to work with
WINEDLLPATH=/usr/lib/wine/x86_64-unix wine64It seems that I have a 64 bit .wine, which is why it wouldn't accept the others. No idea why it didn't find the DLL's by itself.
EDIT: It also seemed that I needed to copy the qemu-* into the guest.
|
Since I'm running an ARM system, I installed Arch in a x86_64 chroot, then installed WINE. However, running wincfg gave wine: could not load ntdll.so: (null). I assumed that it meant that WINE couldn't find the file, so then I did WINEDLLPATH=/usr/lib32/wine/i386-unix winecfg. However, that gave wrong ELF class: ELFCLASS32. I'm assuming that WINE somehow knows this is an ARM system and won't allow it to run. Is there any way around this?
| WINE "wine: could not load ntdll.so: (null)" on ArchLinux ARM |
You're most likely trying to mix 32 bit and 64 bit libraries. 32 bit applications must be linked against 32 bit libraries whereas 64 bit applications must be linked against 64 bit libraries.
You can run file /usr/local/lib/libspotify.so to check if your library has been compiled for 32 bit or 64 bit.
You can instruct a GCC running on a 64 bit system to compile 32 bit code by setting the following environment variables:
CFLAGS=-m32 CXXFLAGS=-m32 makeAlso see /usr/bin/ld: skipping incompatible foo.so when searching for foo.
|
I'm trying to install mopidy-spotify on my freebox delta that allow me to install vm and is arm64 based
After many problems, i've manage to get most of the dependencies working and to get rid of most of the errors.
But am still struggling on libspotify when trying to compile pyspotify.
I've compiled successfully (i think) libspotify on my system using the sources from that link
but I'm always getting
here are the log output:
Obtaining file:///home/jc/pyspotify
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from pyspotify==2.1.3) (45.2.0)
Requirement already satisfied: cffi>=1.0.0 in /usr/local/lib/python3.8/dist-packages (from pyspotify==2.1.3) (1.14.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.8/dist-packages (from cffi>=1.0.0->pyspotify==2.1.3) (2.20)
Installing collected packages: pyspotify
Running setup.py develop for pyspotify
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/jc/pyspotify/setup.py'"'"'; __file__='"'"'/home/jc/pyspotify/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/jc/pyspotify/
Complete output (22 lines):
running develop
running egg_info
writing pyspotify.egg-info/PKG-INFO
writing dependency_links to pyspotify.egg-info/dependency_links.txt
writing requirements to pyspotify.egg-info/requires.txt
writing top-level names to pyspotify.egg-info/top_level.txt
reading manifest file 'pyspotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'examples/tmp'
warning: no previously-included files matching '__pycache__/*' found anywhere in distribution
writing manifest file 'pyspotify.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-aarch64-3.8/spotify._spotify.c'
already up-to-date
building 'spotify._spotify' extension
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c build/temp.linux-aarch64-3.8/spotify._spotify.c -o build/temp.linux-aarch64-3.8/build/temp.linux-aarch64-3.8/spotify._spotify.o
aarch64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.8/build/temp.linux-aarch64-3.8/spotify._spotify.o -lspotify -o build/lib.linux-aarch64-3.8/spotify/_spotify.abi3.so
/usr/bin/ld: skipping incompatible /usr/local/lib/libspotify.so when searching for -lspotify
/usr/bin/ld: cannot find -lspotify
collect2: error: ld returned 1 exit status
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1please be free to ask for more informations
Any clues on that?
| pyspotify compilation ld error |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.