opensuse

How does one override an existing zsh keyboard completion?

…衆ロ難τιáo~ 提交于 2019-12-05 22:54:00
I would like to enable zsh to autocomplete modules for yast2 (an OpenSuSE control panel), but it seems to already have some things defined. I can run compctl -k "(hello world)" nonexistantprogram just fine, but compctl -k "(hello world)" yast2 doesn't work at all. Some things for yast2 seem to be already defined, namely the "-" options: --fullscreen, --geometry, --list [submodules], etc. Even if for those who don't use OpenSuSE: Are there any flags to compctl to make it override previous settings ? Thanks very much in advance. Most likely, your system is using the newer compsys system rather

Why am I getting a high address when I use kmalloc with GFP_DMA in Linux?

回眸只為那壹抹淺笑 提交于 2019-12-05 18:28:56
I am writing a device driver for a DMA device in Linux. In Linux Device Drivers, Chapter 15 , it says: For devices with this kind of limitation, memory should be allocated from the DMA zone by adding the GFP_DMA flag to the kmalloc or get_free_pages call. When this flag is present, only memory that can be addressed with 24 bits is allocated. Alternatively, you can use the generic DMA layer (which we discuss shortly) to allocate buffers that work around your device’s limitations I am calling kmalloc like this: physical_pointer0 = kmalloc(number_of_bytes, GFP_DMA); and printing the result like

Unable to compile: unrecognized relocation

夙愿已清 提交于 2019-12-05 01:47:00
I'm unable to compile anything in my linux pc. I have no idea why, probably I've installed some package and made a mess. I've uninstalled and reinstalled gcc and other packages, but no good news.. still this problem. This is the message: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse- linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/crt1.o: unrecognized relocation (0x29) in section `.text' Any idea of what does it mean and how to fix this problem? cheers For anyone else that encounters this issue: I think @gabib44's problem was using a older version of ld to

Invalid JAVA_HOME when build with cordova

回眸只為那壹抹淺笑 提交于 2019-12-04 23:51:58
I am trying to emulate an app on my device with cordova in OpenSuse Leap 42.1. But when I tried to emulate the app with the cordova run I get the error below: cordova run Running command: /home/soufraz/Projects/apps/myproject/platforms/android/cordova/run ERROR: Error: Failed to run "java -version", make sure that you have a JDK installed. You can get it from: http://www.oracle.com/technetwork/java/javase/downloads. Your JAVA_HOME is invalid: /usr/lib64/jvm/java-1.8.0-openjdk-1.8.0 ERROR running one or more of the platforms: Error: /home/soufraz/Projects/apps/myproject/platforms/android

Installing newest Python on openSUSE

萝らか妹 提交于 2019-12-04 08:40:43
I installed Python on an openSUSE system (see version below) using the Zypper package manager. This gives me Python 3.2, but some packages require Python 3.3. Updating with zypper update python3 stays on Python 3.2. How can I upgrade to 3.3, ideally using the package manager and reusing the rest of my working Python installation (site packages, pip...)? openSUSE 12.2 (x86_64) VERSION = 12.2 CODENAME = Mantis You can add the devel:languages:python:Factory repository or use the 1 Click Install and a Python 3.3.2 version form here (e.g. from the above repo). (Show other versions->openSUSE 12.2-

ini配置文件编辑器crudini

拈花ヽ惹草 提交于 2019-12-04 05:04:10
作者:张瑞旗 / 腾科IT培训集团红帽讲师 最近,在学习OpenStack过程中,遇到两个非常相像的命令:crudini和openstack-config。几经查询,发现它们原来是Pádraig Brady用Python开发的、用来对配置文件(即ini文件)进行编辑的工具。它们是同一个命令,有两个名字而已。 Pádraig Brady是Linux和OpenStack项目的代码贡献者。根据搜索到的资料推测,他在OpenStack项目中开发了openstack-config,后来感觉这个工具很有用,便将其改名为crudini。2013年9月27日,OpenSuse邮件列表中显示,openstack-config这个命令正式更名为crudini。 我们都知道,crud是4个单词的首字母简写,即create、read、update和delete,中文译为“增删改查”。这个是数据的最常见的4类操作方法。有些软件的配置文件采用的是ini格式,如php.ini。这样的配置文件往往会成若干个段落。段落以[default]之类的格式标识。具体的配置条目则为“datadir=/var/lib/data”形式。一个名叫myconfig.ini的文件可能会显示如下: [default] cmdline=/usr/bin/mycmd datadir=/var/lib/mydata

XP硬盘安装openSUSE11.4图文教程

喜夏-厌秋 提交于 2019-12-03 19:24:27
本文介绍的是如何在XP下不刻盘直接安装openSUSE11.4。 首先先引出2篇文章: XP硬盘安装Fedora14图文教程 http://www.linuxsight.com/blog/997 XP硬盘安装ubuntu10.10全程图解 http://www.linuxsight.com/blog/935 以上2篇文章也是采用硬盘安装方式,它主要利用了在XP下安装GRUB4DOS来引导安装。 如果openSUSE采用类似的方法也是行得通,不过这篇文章说的是另外一种方法。 此方法利用了openSUSE光盘里提供的软件来安装,有点类似于ubuntu的wubi的方式,但绝不是wubi那种直接当软件安装,它只不过充当grub4dos的角色。 openSUSE11.4下载地址: http://www.linuxsight.com/blog/1177 下载DVD的ISO后,在XP下用虚拟光驱可以看到光盘里有这么一个文件,如图: 双击安装 安装完成后会提示重启 重启后发现多了个引导菜单。 进入界面 安装 选择从硬盘 选择ISO所在的分区,输入路径。 注意前面有个“/”否则会提示:no repository found 成功引导之后就进入了正式的安装了。 下面就看看openSUSE的安装吧。 提供了GNOME和KDE两种桌面,我个人比较喜欢带GNOME的openSUSE。

Let non-root user write to linux host in Docker

旧城冷巷雨未停 提交于 2019-12-03 09:00:46
I have an OpenSuse 42.3 docker container image that I created which has a single user, which we will call 'streamuser'. I would like this to be the user that is active whenever anyone creates a container from my image. I have mounted the host's home directory to the home directory of streamuser. The trouble that I'm having is that if I run the Docker container on a Linux host, streamusercan not write anything to the host directories. This is because streamuser does not share the same UID and GID as the host. Is there a clean way to resolve this issue that avoids me setting the default user

opensuse使用zypper安装软件

匿名 (未验证) 提交于 2019-12-03 00:41:02
opensuse 通过zypper可以方便的进行软件管理,类似centos的yum 软件。 软件包操作 搜索软件 zypper search package 安装软件 zypper install package 安装某个版本的软件包 zypper install package=version 安装以某个单词名字开头的所有软件包 zypper install package* 卸载某个软件包 zypper remove package 升级某个软件包 zypper update package 获取所有可用新包的列表 zypper list-updates 检验软件包的依赖关系的完整性 zypper verify package 执行系统升级 zypper dist-upgrade 执行源代码软件安装和其依赖 zypper source-install package.tgz zypper通过软件源进行软件包的搜索,如果安装系统时使用CDROM进行操作,那么软件源会指向一个"cd://"的地址。 这样便无法从网上下载软件。 通过 zypper repos --details 查看源配置: # zypper repos --details # | Alias | Name | Enabled | Refresh | Priority | Type | URI | Service -

Build a linux module without source code

旧巷老猫 提交于 2019-12-02 14:13:48
问题 I just wonder, whether it is possible to build/ to insert a module without the source code. Say I have downloaded an openSuse operating system, and the kernel source code did not come with it. How can I compile a module and insert the module without recompiling the kernel? For openSuse without kernel source code, it is really hard to find exactly the same version of the source code. Even if the configuration of the kernel is different you cannot insert the module inside the current openSuse.