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
Related
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
I want to add a hook to ejabbered code. Steps followed:
added mod_filter.erl to src folder(mod_filter catches filter_packet event and returns modified packet)
added mod_filter in ejjbaerd.yml under modules section.
ran ./configure, make , make install
Ejabberd server runs successfully , with mod_filter.beam file in /ebin folder but the ejabberd.yml file located at /etc/ejabberd/ejabberd.yml does not get updated as per my second step.
I can manually update it and restart server but that does not seem to be the correct way. I think i might be missing a deployment step here, please suggest.
Change configuration file (ejabberd.yml) according to your need and reload configuration file like that- ejabberd_ctl reload_config or ejabberd_config:reload_file(). or ejabberd_config:load_file("/etc/ejabberd/ejabberd.yml"). you do not need to restart server.
https://www.ejabberd.im/tricks
https://docs.ejabberd.im/admin/api/
This MEAN-stack tutorial describes using Bower to install AngularJS in your public folder. One of the steps describes creating a file called ".bowerrc" in your test-app folder. However, Windows won't let you create a file without a name. How do I accomplish this on a Windows system?
on the command line (make sure to cd into your working directory), issue this command:
touch .bowerrc
This will also work for other files common to webdev like .htaccess and .gitignore
Note: If you haven't installed git bash for windows, you may not have support for the touch command. In that case (as mentioned in one of the comments here), the easiest way to accomplish this is via the cli with:
echo "" > .bowerrc
To create a file that starts with a "." in Windows, you just need to add a trailing ".".
So, simply name your file ".bowerrc." instead of ".bowerrc".
See https://superuser.com/questions/64471/create-rename-a-file-folder-that-begins-with-a-dot-in-windows for more information and more detailed solution if this doesn't work for you.
Another way to accomplish this is through Notepad++.
Create the file in Notepad++
Set the encoding to "Encoding in ANSI" (click "Encoding" in the menu bar)
Save the file as .bowerrc (change the "Save as type:" to . which is one list item up from *.txt)
Simply rename the file you created:
C:\project> ren bowerrc .bowerrc
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".
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.