OpenWrt GUI installation failure - openwrt

enter image description here
I have installed Openwrt on my router and now want to install the web GUI, which is Luci. Accessed the router and logged in but it gives me the problems:
Signature check failed
Remove wrong signature file

I think you should edit this file and then try opkg update.
just do the following:-
vi /etc/opkg/distfeeds.conf
src/gz chaos_calmer_luci http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/packages/luci
Firstly remove link from above file which contain luci's link and then add this above link in the file, and then try
opkg update
opkg install luci

Related

Where does Homebrew Cask install Applications?

I used Homebrew Cask to install ngrok. The installation went fine. I'm trying to edit ngrok's config.yml file. I can't find it on my mac.
It appears that ngrok lives here:
/usr/local/Caskroom/ngrok/2.1.3,4VmDzA7iaHb
and there is a sub-directory in the above directory, but I can't open that directory. Any ideas on where I can find ngrok's config.yml file greatly appreciated.
A default config.yml doesn’t get installed. Instead ngrok checks $HOME/.ngrok2/ngrok.yml.
So on MacOS, for user foo, then ngrok looks for the file in Users/foo/.ngrok2/ngrok.yml.

How to change config files in openwrt?

I have to add a dns entry in /etc/config/network, so I added it in
package/base-files/files/etc/config/network. Then did
make V=99 package/base-files/clean
make V=99 package/base-files/compile
Now it generates an .ipk at bin/x86-eglibc/packages/base/base-files_156-unknown_x86.ipk. If I install this by opkg install base-files_156-unkonwn_x86.ipk the change is not seen. What am I missing?
try with the --force-install option
--force-maintainer should replace existing user configs with the files provided by the new package

Bower install CERT_UNTRUSTED Error

I got the CERT_UNTRUSTED when I tried to run bower install command to install components.
For example, I got this error when I ran the following:
bower install bootstrap-sass-official --save
The output was:
bower error Request to https://bower.herokuapp.com/packages/bootstrap-sass-official failed: CERT_UNTRUSTED
Note: This is not a package specific error. This happens when you try to install any package, not just with bootstrap-sass-official.
you can try setting this in .bowerrc:
{
"directory": "bower_components",
"registry": "http://bower.herokuapp.com",
"strict-ssl": false
}
I found a quick fix for this issue. I guess the issue is happening because of my company's SSL settings.
I changed the registry search as follows (in my windows laptop) and it fixed the issue.
set registry.search=http://bower.herokuapp.com
This should work in unix systems as well, where you have to create a env variable with above key and value.
You can also change the registry setting at .bowerrc file.
You can follow as a quick and dirty fix. Do not make it as a permanent solution.

Choose bower install directory

This is a follow-up to this question. I'm using bower 0.7.1, and still cannot get the components to be installed anywhere else than in the components folder.
I tried adding the following line to my component.json, as per this PR:
"componentsDirectory": "public/components"
But it will still install in ./components.
I tried to create a .bowerrc file next to component.json:
{
"directory" : "public/components"
}
But I get this error when running bower install:
Error: Unable to parse local .bowerrc file: Unexpected token }
Any idea?
Actually the .bowerrc file does work, this was an issue with my IDE not saving the file properly:
{
"directory" : "public/components"
}
I'm still wondering why componentsDirectory still doesn't work in component.json, though.
While you can happily use Bower to manage the dependencies of your own personal projects, primarily the component.json is a description of your project for other people. If you share a component through the Bower registry the component.json goes with it to describe the dependencies. That is why your own local preferences like where to install components don't belong in there.
Another way to change installation directory temporarily is using --config option in command line:
bower install jquery --config.directory=/path/to/your/components
If you are creating this file in Notepad++, make sure the Encoding is set to "Encode in UTF-8 without BOM" and save as file type "Any".

Windows Service, how can I uninstall from VS Setup project?

I have created a windows service, it works great, but as soon as I try to install the service, it removed the directory, however, the service did not get removed, and when I try to install the service again, it give me an error 1001: Service already exists. How can I fix that?
And also, is there any code for me to remove the service when I uninstall the project?
Thanks
You can use installutil.exe to install or uninstall a service from the command line.
To install: installutil yourproject.exe
To uninstall: installutil /u yourproject.exe
You can also use sc delete from the command line. Type sc by itself to get the list of parameters.
Lastly you can use the ServiceInstaller.Uninstall() method if you're using the predefined installation component. You'll have to call it from the Uninstall handler of your installer.
You might need to remove it from the registry at [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services]
Have a look at this post. It references another one, so, between them, they may have your solution.

Resources