auto running commands on startup


Recommended Posts

i have mandrake 9, and have just finished configuring the internet, :D but, when ever i restart, shutdown and startup, the /etc/resolv.conf resets the dns servers to being my gateways ip (192.168.0.1) this prevents the net from working, and so i have to, when ever the computer boots, log into root, and change these settings, how would i make a file that changes, or, copies a correct version of resolv.conf into /etc at startup???

Link to comment
https://www.neowin.net/forum/topic/59616-auto-running-commands-on-startup/
Share on other sites

There are two choices as I know:

1. Add the command to the end of /etc/rc.d/rc.local file to copy and overwrite the resolv.conf file. e.g. cp /etc/myresolv.conf /etc/resolv.conf (you may also need to use an option to prevent it from prompting to overwrite)

2. You setup a dhclient.conf file to supersede the resolver file. I can't remember off hand quite how to setup the file. Maybe type dhclient.conf into google or someone more experience than me may reply in the forum.

I have used option 2 before and it worked a treat.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • And they are both to blame. SEO optimisation and the knowledge panel killed web search. Both companies knew what they were doing. Now an interactive/dedicated knowledge panel is the front and centre of AI search, with websites simply being a back end to feed data to these tech giants. Don't need to pay ad money to websites if users dont visit them in the first place. https://arstechnica.com/ai/202...site-clicks-by-almost-half/
    • People yearn for the good old days of IRC and truly open Internet, yet are dismissive of modern solutions like ActivityPub (which Mastodon pioneered) and Matrix. Make it make sense.
    • AI judges learn new tricks to fact-check and code better by Paul Hill Image via Pixabay AI researchers and developers are increasingly turning to large language models (LLMs) to evaluate the responses of other LLMs in a process known as “LLM-as-a-judge”. Unfortunately, the quality of these evaluations degrades on complex tasks like long-form factual checking, advanced coding, and math problems. Now, a new research paper published by researchers from the University of Cambridge and Apple outlines a new system that augments AI judges with external validation tools to improve their judgment quality. This system aims to overcome limitations found in both human and AI annotation. Humans face challenges and biases due to time limits, fatigue, and being influenced by writing style over factual accuracy while AI struggles with the aforementioned complex tasks. The Evaluation Agent that the researchers created is agentic so it can assess the response to determine if external tools are needed and utilizes the correct tools. For each evaluation, three main steps are passed through: initial domain assessment, tool usage, and a final decision. The fact-checking tool uses web search to verify atomic facts within a response; code execution leverages OpenAI’s code interpreter to run and verify code correctness; and math checker is a specialized version of the code execution tool for validating mathematical and arithmetic operations. If none of the tools are found to be useful for making judgments, the baseline LLM annotator is used to avoid unnecessary processing and potential performance regression on simple tasks. The system delivered notable improvements in long-form factual checking, with significant increases in agreement with ground-truth annotations across various baselines. In coding tasks, the agent-based approach significantly improved performance across all baselines. For challenging math tasks, the agents improved performance over some baselines, but not all, and overall agreement remained relatively low at around 56%. Notably, the researchers found that in long-form factual responses, the agent’s agreement with ground-truth was higher than that of human annotators. This framework is extensible, so in the future, other tools could be integrated to further improve LLM evaluation systems. The code for the framework will be made open source on Apple’s GitHub, but it isn’t up yet.
    • https://www.neowin.net/news/tags/mastodon/ In short: Federated Twitter (X)
  • Recent Achievements

    • Collaborator
      fernan99 earned a badge
      Collaborator
    • Collaborator
      MikeK13 earned a badge
      Collaborator
    • One Month Later
      Alexander 001 earned a badge
      One Month Later
    • One Month Later
      Antonio Barboza earned a badge
      One Month Later
    • Week One Done
      Antonio Barboza earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      592
    2. 2
      ATLien_0
      224
    3. 3
      Michael Scrip
      171
    4. 4
      Xenon
      140
    5. 5
      +FloatingFatMan
      129
  • Tell a friend

    Love Neowin? Tell a friend!