opensuse

opensuse zypper源

好久不见. 提交于 2019-12-23 03:56:31
本文写于 2019-12-22 ,因技术更新较快,超过一年不建议再看本文。 kvm新建的一台opensuse主机,版本:leap 15.1 zypper in nginx #安装软件报错 这里的问题应该是,使用iso文件安装完系统后,默认会添加原始cd源到main,需要删除。 zypper lr #查看所有已设置的源 zypper rr main repo-debug-update-non-oss repo-non-oss repo-oss repo-source repo-source-non-oss #我把找到的都删除了 也可以只禁用官方源 zypper mr -d openSUSE-Leap-15.1-1 下面四行:添加新源并刷新 zypper ar -f http://mirrors.163.com/openSUSE/distribution/leap/15.1/ main zypper ar -f http://mirrors.163.com/openSUSE/distribution/leap/15.1/repo/non-oss non-oss zypper ar -f http://mirrors.163.com/openSUSE/distribution/leap/15.1/repo/oss oss zypper ref zypper update #更新新源镜像

MongoError: not authorized on to execute command { find: “app_updates”, filter: { key: “0.0.1-admins” }, limit: 1, batchSize: 1, singleBatch: true }

。_饼干妹妹 提交于 2019-12-23 02:43:20
问题 I start a KeystoneJS project following this method. But after entering the project root directory and running node keystone.js I receive the error: ------------------------------------------------ An error occurred applying updates, bailing on Keystone init. Error details: MongoError: not authorized on <KeystoneJS project name> to execute command { find: "app_updates", filter: { key: "0.0.1-admins" }, limit: 1, batchSize: 1, singleBatch: true } I researched on this error but I couldn't

How does one override an existing zsh keyboard completion?

自古美人都是妖i 提交于 2019-12-22 09:37: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

How to define ESC char in git?

纵然是瞬间 提交于 2019-12-22 05:23:34
问题 I want to use coloring in git output, e.g.: git log --decorate --color When I issue this command I get output looking like ESC[1;32m where ESC is in reversed color. This looks to me as a valid escape sequence, except that the \033 must be sent and not the characters E , S and C . When I issue an ls command, I get coloring of the files according to the rights. So nothing wrong with the capabilities. Is there an environment variable that must be set to the value of the ESC char? Or am I looking

Unable to compile: unrecognized relocation

徘徊边缘 提交于 2019-12-22 03:49:01
问题 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 回答1:

Let non-root user write to linux host in Docker

谁说我不能喝 提交于 2019-12-21 02:56:18
问题 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

openSUSE phpmyadmin Error: The mbstring extension is missing

拥有回忆 提交于 2019-12-20 05:53:07
问题 phpMyAdmin - Error The mbstring extension is missing. Please check your PHP configuration. I hava installed php-mbstring and php-gettext, my php version is php7. And I installed php and phpmyadmin through zypper. 回答1: install mbstring and restart your apache: sudo apt-get install php-mbstring sudo service apache restart then remove ; from your php.ini file: ;extension=php_mbstring.dll to extension=php_mbstring.dll If it still doesn't work..remove your php setup, without removing the databases

uninitialized constant Twitter (NameError)

本秂侑毒 提交于 2019-12-20 02:58:08
问题 Hey guys i have a problem i am facing with the twitter gem. I have a file (twitter.rb) with this content require "rubygems" require "twitter" puts Twitter.user_timeline("roykasa").first.text puts Twitter.user("roykasa").location search = Twitter::Search.new search.containing("hate").to("StewieJokess"). result_type("recent").each do |r| puts r.text end When i run the file i get this error : uninitialized constant Twitter (NameError) I read somewhere on SO where a user had a similar problem and

How to change the Monitor brightness on Linux?

做~自己de王妃 提交于 2019-12-18 10:35:53
问题 How do I programmatically change the monitor brightness on Linux? I'm using SLES 11. 回答1: You can always use xrandr --output LVDS1 --brightness 0.9 回答2: You can try using xbacklight. xbacklight -set 100 回答3: For me it works perfectly with xbacklight . If you for example wish to set up a key binding, you can use bindsym $SUPER+Shift+plus exec xbacklight -inc 10 bindsym $SUPER+Shift+minus exec xbacklight -dec 10 in your window managers config (I use i3) to regulate your screen's brightness

Insufficient permissions for device in Android Studio Workspace running in openSUSE 13.2

拈花ヽ惹草 提交于 2019-12-18 10:22:56
问题 I have a rooted Motorola Defy+ running a Cyanogenmod v11 custom ROM (nightly build) created by Quarx. Using Android Studio Workspace,(ASW) v.1.1.0, when I try and debug on this device, I get ????????????[null] listed in the Choose Device window, with the Logcat window showing insufficient permissions for device I would really like to use this device and ROM for debugging purposes. When I enter lsusb from the command line I get, Bus 002 Device 002: ID 22b8:431d Motorola PCS This is the correct