Q : How to run debian inside of arch

Hi, I have a question
I really love arch, but the project i'm working on requires Debian (stable) meaning : old gcc(3.3.5), xfree86, debian tools, filesystem layout and so on.
I have a 2 (actually more) partitions one with debian, one with arch. Right now choose on boot one or another.
I'd like to run debian inside of arch, but not via VmWare or qemu or some other emulator because I need things to compile quick (this IS a big project) and run at native speed (really important)
Newer kernel in arch is not an issue(or at least shouldn't be) but versions of tools and libraries as well as file locations are critical.
Any ideas ?

Hi torindan2,
You should have a look to debootstrap. That way you would only need a chroot inside your debian tree, without the CPU and memory overhead of a virtual machine on top of your Archlinux.
Procedure (from what i remember) :
- go to packages.debian.org
- choose "debootstrap"
- download the source code of debootstrap (it is a shell script)
- call it with the right parameters (AFAIR it required to read the source, but it is quite readable)
- now debian is installed in the directory of your choice.
- chroot a shell inside that tree
- update the fstab for the proc and sys filesystems of the debian tree
and here you go, Debian inside Arch

Similar Messages

  • How to run tomcat inside eclipse

    hello
    I try to run tomcat inside eclipse with sysdo ... plugin
    info.
    eclipse 3.0
    tomcat 5.0
    J2sdk 6.0
    I become an Exception
    SEVERE: Error initializing endpoint
    java.net.SocketException: Invalid argument: listen failed
         at java.net.PlainSocketImpl.socketListen(Native Method)
         at java.net.PlainSocketImpl.listen(Unknown Source)
         at java.net.ServerSocket.bind(Unknown Source)
         at java.net.ServerSocket.<init>(Unknown Source)
         at java.net.ServerSocket.<init>(Unknown Source)
         at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
         at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1429)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
    22-Jun-2006 11:29:23 org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException:  Protocol handler initialization failed: java.net.SocketException: Invalid argument: listen failed
         at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1431)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)I run tomcat outside eclipse as Win service it works fine
    what is wrong

    please no body in this world to help me ????

  • How to run servlet inside jar file

    Hi
    I have a problem on running a servlet class which resides in a jar file.
    At first, it runs if it is located in the root directory of jar file, but if I put in inside a sub directory, I wasn't able to run it. It seems that the servlet class was not found.
    Here's the contents of my jar file:(eg. application.jar)
    META-INF/
    META-INF/MANIFEST.MF
    Business/
    Business/Business.class
    TransferManager/
    TransferManager/Default.class
    TransferManager/Application.class
    DAL/
    DAL/XMLDocument.class
    DAL/ParameterCollection.class
    DAL/ConnectionReaper.class
    DAL/JDCConnectionPool.class
    DAL/JDCConnection.class
    DAL/JDCConnectionDriver.class
    DAL/DataAccess.class
    Presentation/
    Presentation/IPresentation.class
    Presentation/XslTransform.class
    When I deploy this jar in tomcat4.0 and try to run the Default.class
    in the TransferManager package, the server can not locate the class.
    But if I put it in the root directory of the jar it works.
    Is there any additional setting in tomcat for this? Anyone can give
    me an idea for this?
    Thanks in advance...

    If you want to put the compiled servlet into Business/Business.class, you need for it to be in the Business package. I.e. the first line of code should be "package Business;" It looks like your jar file is in the right place, since Tomcat is finding something in it. So put your servlets in the appropriate packages and they should run. Also, you would have to change the configuration to refer to "Business.Business.class" and so on.

  • How to run applet inside a browser coz my applet runs outside the browser

    I would like to run the Java Applet viewer in-line inside a Browser Window. Presently, when launched through an html page, the applet opens another main window outside the browser. Can't seem to find any applet parameter tags for it. If there is a way to do that please let me know. Thanks in advance - m.a.

    public class mainGIS extends JApplet {
    public void init() {
    GISEditor tempGISEditor = new GISEditor();
    public mainGIS(){
         GISEditor tempGISEditor = new GISEditor();
         tempGISEditor.setTitle("Franchise Viewer");
         tempGISEditor.setSize(1000,600);
    and..
    <Html>
    <Head>
    <Title></Title>
    </Head>
    <Body>
    <APPLET CODE="mainGIS.class" archive="aaa.jar" WIDTH="800" HEIGHT="600">
    </APPLET>
    </Body>
    </Html>
    it opens outside a web browser!(it pops out) I mean, I want to display my application in-line with the browser

  • How to run windows inside mac

    Want to run windows 7 inside the Lion OS 10. of my macbook pro. I understand some products like Parallels are helpful, but I want to know which is the most reliable and easy to use product that would seamlessely work between Mac and Windows. Thank you for your answer and help.

    VMFusion I know has Unity, which will hide Windows itself and only show windows of Windows programs in OS X so it appears as seemless as possible.
    Windows in BootCamp or Virtual Machine?

  • [SOLVED]How to build debian package source in Arch Linux?

    I'm porting openssl for sh4 arch.
    If I use Arch Linux PKGBUILD, it built failed. (I guess that's caused by there is no asm code for sh4 cpu).
    So, I decide use debian's source.
    But, is there any one know how to porting debian's package into Arch Linux?
    I can apt-get source openssl from other machine.  But I don't know what's the correct step to build it into Arch Linux' structure.
    Solution: refer brebs's PKGBUILD hint.
    Last edited by dlin (2013-02-26 09:44:16)

    The source is not hard to find. Look on Debian packages - each package has 2 files, the ".orig", and Debian's diff (which is sometimes not a diff, these days, thankfully because just having a simple "debian/patches" subdirectory available is a little bit easier for us).
    Edit: Here ya go, convenient links:
    http://packages.debian.org/sid/openssl
    http://ftp.de.debian.org/debian/pool/ma … ian.tar.gz
    Last edited by brebs (2013-02-26 09:42:10)

  • How to run jscript or vbscript inside a java class

    I would like to create a class that can excecute jscripts and/or Vbscripts. Does any one knows if there is a class or a way to host jscrips so the script can access only the methods I specify in my "hosting env"? This is similar as using MS scripting utility to run vbscripts inside a VBprogram.
    Thanks
    G/

    see the rhino project at
    http://www.mozilla.org/rhino/

  • How to run a dialog's method from a button's event handler?

    I've created my first dialog from the samples, but I am having trouble figuring out how to run a method in my dialog from an button's event handler. Can anyone please point me in the right direction?
    function CreateDialog() 
        this.windowRef = null;
    CreateDialog.prototype.run = function()
        //...declare a bunch of vars
        // Create a window of type palette.
        var win = new Window("dialog", "Element Spray Generator",[iTop,iLeft,iTop + iWidth,iLeft + iHeight] );  // bounds = [left, top, right, bottom] 
        this.windowRef = win;
        // Add a frame for the contents.   
        win.btnPanel = win.add("panel", [iPadding,iPadding,iWidth-iPadding,iHeight-iPadding], "");
        .... add a bunch of other stuff ...
        win.btnAdd = win.btnPanel.add("button", [win.btnRemove.bounds.left - iPadding - iButtonWidth,win.lstImages.bounds.bottom + iSmPadding,win.btnRemove.bounds.left - iPadding,win.lstImages.bounds.bottom + iSmPadding +iTextHeight], "Add");
        win.btnAdd.onClick = function() {
           //todo implement this
           var f = File.openDialog("Open File") ;
           win.lstImages.add("item", f.displayName );
           this.EnableControls();    //<--- problem is on this line here!!
        this.EnableControls();  //<--- this works
        // Display the window
        win.show();
        return true;      
    CreateDialog.prototype.EnableControls = function (){
        var result = true;
        result = result && (this.windowRef.ddlPaths.selection != "");
        result = result && (this.windowRef.lstImages.items.length > 0);
        this.windowRef.btnOK.enabled = result;

    This may not be the reason, but when using the way I create dialogs 'this' inside of an onClick points to the control.
        win.btnAdd.onClick = function() {
           //todo implement this
           var f = File.openDialog("Open File") ;
           win.lstImages.add("item", f.displayName );
           this.EnableControls();    //<--- I would expect it to call another function of btnAdd
                                            // this.parent.EnableControls() might be what you want if the control is not in some other container

  • How to run stored procedure in run-time not in design

    hello:
    I have download the ODT software
    and i installed VS 2003 environment
    amd i have oracle 9i on the server and oralce client on my computer
    and I know how to run the ODT inside the VS2003 and how to use it
    I built a package and inside it a procedure that does not take any parameter
    PROCEDURE "TEST1" IS
    BEGIN
    insert into emp (empno,ename)
    values (3003,'jon');
    END "TEST1";
    this procedure is valid and I can run it in ODT (by right click over the procedure name and select "Run")
    but when I drag it and drop this procedure on a form in application I have a dialog with errors that's not understandable
    for example:
    ORA-06550: line 1, column 27
    PLS-00315: PL/SQL TABLE Declarations must currently use binary_integer indexes
    and many other errors
    ok I want to know how I can call the procedure in the code and give to it the in parameters and then get the out parameters
    I hope to find replay
    thank you

    Hi,
    You have to take care of certain measures other thatn just drag and drop the Oracle procedure to the .NET form.
    Following is a simple code to call an Oracle procedure from the C#.Net form
    ============================================================
    using System;
    using System.Collections;
    using System.ComponentModel;
    using System.Drawing;
    using System.Web;
    using System.Web.SessionState;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace TEST1
         public class CallingProcs : System.Web.UI.Page
              protected System.Web.UI.WebControls.Button Button1;
              protected System.Web.UI.WebControls.TextBox txtYear;
              OracleConnection conn;
              private void Page_Load(object sender, System.EventArgs e)
                   // Put user code to initialize the page here
                   string oradb = "Data Source=ORA1;User Id=SCOTT;Password=TIGER;";
    conn = new OracleConnection(oradb);
                   conn.Open();
              #region Web Form Designer generated code
              override protected void OnInit(EventArgs e)
                   // CODEGEN: This call is required by the ASP.NET Web Form Designer.
                   InitializeComponent();
                   base.OnInit(e);
              /// <summary>
              /// Required method for Designer support - do not modify
              /// the contents of this method with the code editor.
              /// </summary>
              private void InitializeComponent()
                   this.Button1.Click += new System.EventHandler(this.Button1_Click);
                   this.Load += new System.EventHandler(this.Page_Load);
              #endregion
              private void Button1_Click(object sender, System.EventArgs e)
                   //OracleCommand dbcmd = new OracleCommand();
                   OracleCommand dbcmd = conn.CreateCommand ();
                   dbcmd.CommandType = CommandType.StoredProcedure;
                   dbcmd.CommandText = "TEST1";
                   try
                        dbcmd.ExecuteNonQuery ();
                        Response.Write("Excecuted succesfully");
                   catch(Exception ex)
                        Response.Write(ex.Message);
    ============================================================
    Most of the above code is generated automatically. I am using Visual Studio .NET 2003 , C# for it.
    The design view of the form contains a button named 'Button1' and the code is aimed to call the procedure 'TEST1' on clicking the button.
    Hope this will give you a start to using oracle from .NET

  • How to run Content DB Client console from JDevloper

    Hi
    I have downloaded all the content db client console pages from server. Please let me know how to run the console from my local machine thru jdeveloper. When i tried to run it is giving some runtime exceptions.
    Sep 10, 2007 10:46:07 AM oracle.ifs.fdk.http.HttpNodeManager
    INFO: Creating HTTP Node ...
    07/09/10 10:46:07 Cannot create HTTP Node:
    oracle.ifs.common.IfsException: IFS-45061: Unable to create node
    oracle.ifs.common.IfsException: IFS-20016: Required parameters are null (either "Schema Name" or "Domain Name" should be non-null)
         at oracle.ifs.management.domain.HttpServletNodeUtilities.createNode(HttpServletNodeUtilities.java:243)
         at oracle.ifs.management.domain.HttpServletNodeUtilities.createNode(HttpServletNodeUtilities.java:156)
         at oracle.ifs.fdk.http.HttpServer.createNode(HttpServer.java:162)
         at oracle.ifs.fdk.http.HttpNodeManager.contextInitialized(HttpNodeManager.java:37)
    Please let me know if there is any documentation for this.
    Thanks
    Ravi

    Hi,
    I built berkeley DB 4.4.20 and use it from Jbuilder2005, I noticed that tha size of Jbuilderw.exe consumes about 96MB of memory and the size of javaw.exe consumes (in my application) about 63MB. so I thought that if I load the jdk1.4 only ( by running my code from the command line) this will save memory because not all compenents of Jbuilder will be loaded into memory. to do so, I copied the directory jdk1.4 from inside jbuilder2005 and put it on c:\, then I build berkeley DB using visaul c++ 6.0 and filled the following pathes in the include directory(tools-->options->directories)
    c:\jdk1.4\include
    c:\jdk1.4\include\win32
    and in the executable files directories I added the following path:
    c:\jdk1.4\bin
    then I set the classpath from inside windows (server2003), and I set the path as well but when I run the java class from the command line, I recieved message like "the packege com.sleepycat.db " not exist
    thanks

  • How does Iterate work inside an Action

    I'm having trouble figuring out how does <Iterate > work inside an <Action> in a workflow. My <Action> is to call a subprocess that takes several arguments and initiates an approval. Since I need to fire-off several approvals at the same time instead of chaining them I use <Iterate> that loops over a list variable.
    Now the subprocess being an approval the workflow gets suspended and divided into multiple parallel paths. My question is that how do these parallel paths assimilate together after approval or they don't assimilate at all and process in separate parallel lines or otherwise whichever approval returns first takes precedence and proceeds with rest of the activities.
    TIA,
    AndyDev

    Thanks for the reply. But this doesn't answer my question completely.
    Say within <Iterate> I specify **for='var_name' in='list_name'** will it continue to run after it has run once for each element in the list. If yes, doesn't it trigger the sub-process multiple times, something I don't want. If no, what happens next ? (that was actually my original ques).
    Say if list_name had 5 elements, it triggers one sub-process (which is a multiapproval) for each of them. What happens next ? Does it transition to next activity? Does it wait for all approvals to finish approve/reject?

  • How to run a servlet in Tomcat 5.0 server

    HI Everybody,
    I want to know how to run the servlet file on my tomcat 5.0 server. that is where to place a class file and deployment details.
    Thanks In ADVANCE

    Sourav_cs wrote:
    I am a biginner to start servlet i get confusion to configure servlet in tomcat 5 where it should be saved in tomcat directory and how to execute that as first timeHi,
    goto
    tomcat 5.0\webappsnow create a folder here. this is your webapplication project name. Let's suppose it as "TestApp"
    inside this create directories as follows :
    TestApp
            |
            |-----JSP/htmls( if you have any )
            |
            |-----WEB-INF(File Folder)
                       |
                       |-----web.xml
                       |-----lib ( Directory. place all the .jar files which are required for this project(if any) )
                       |-----classes ( .class files. )[all of your java code should be placed here.](servlets / beans/ pojo )this is the general Directory structure of a web application. now you've to place the compiled .class file of your servlet in the "TestApp\WEB-INF\classes" directory. make sure that you've configured the servlet in Deploment Desctiptor, i.e, web.xml.
    now start the server and type the url like : "http://localhost:8080/TestApp/TestServlet"
    the port no. 8080 is the default port no. of tomcat. you have to give your port no. if u've modified it. and TestServlet is the <url-pattern> of your servlet.
    go through some tutorials .. then you can easily know that
    Diablo

  • How to run a openssl command from a java program

    Hi All
    Please suggest on how to run a openssl command from a java program.
    I am using this
    Runtime runtime = Runtime.getRuntime();
    runtime.exec("openssl pkcs8 -inform der -nocrypt test.der result.pem");
    This is suppose to take test.der as input and create result.pem.
    There are no errors but the file result.pem isnt created.
    Thanks in Advance

    First off is that openssl command correct? Should it be this instead:
    openssl pkcs8 -inform der -nocrypt -in test.der -out result.pem
    Try out your openssl command within a command prompt so that you know that it works ok. I think the command line you specified waits on stdin (well it does for me).
    After that.....
    runtime.exec creates a Process object. If you do this:
    Process openssl = runtime.exec("....")
    then you can examine the return code from openssl to see the exit code - for instance if the input file does not exist then exit = 1. You can test for this with Java
    Alternatively you could get the stderr from the process and look inside it - if it is 0 length then all is good, if it has some text in there then it has likely failed. You could then throw an exception and include the stderr output in the exception messgae. You may need to experiment with this, runnig it first when openssl is happy then running it again when openssl is upset.
    M

  • How to run .sql file in tsql or powershell

    Hi All,
    HOw to run .sql file inside the TSQL or powershell using with IF else condition. This below query works fine but when i executing through the SQL Agent it's geeting an error.Please could help how to run through the SQL agent already using execution type
    in agent as 'Operating system(CmdExec)'
    Declare @computerName varchar(100), @InstanceName varchar(50)                             
    SET @ComputerName = REPLACE(CAST(SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS varchar),'\','$')  
    SET @InstanceName = REPLACE(CAST(SERVERPROPERTY('instancename') AS varchar),'\','$')
    IF (@InstanceName = 'SQL2008R2')
    Begin  
    :r C:\BackupFolder\Test1.sql    
    :r C:\BackupFolder\Test2.sql    
    End
    IF (@InstanceName = 'SQLINS2')
    BEGIN
    :r C:\BackupFolder\Test3.sql
    END
    IF (@InstanceName = 'SQL2012')
    BEGIN
    :r C:\BackupFolder\Test4.sql
    END
    Thansk in Advance
    A-ZSQL

    In T-SQL, you can try using sqlcmd to invoke sql file
    if @@SERVERNAME='abcd'
    begin
    Master..xp_cmdshell 'sqlcmd -S <ServerName> -i BackupDetails.sql -E'
    end
    OR 
     PowerShell 
    Load the snapins
    Add-PSSnapin SqlServerCmdletSnapin100
    Add-PSSnapin SqlServerProviderSnapin100
    Function Get-SqlInstances {
    Param($ServerName = '.')
    $localInstances = @()
    [array]$captions = gwmi win32_service -computerName $ServerName | ?{$_.Name -match "mssql*" -and $_.PathName -match "sqlservr.exe"} | %{$_.Caption}
    foreach ($caption in $captions) {
    if ($caption -like "MSSQLSERVER") {
    $localInstances += $ServerName
    } else {
    $temp = $caption | %{$_.split(" ")[-1]} | %{$_.trimStart("(")} | %{$_.trimEnd(")")}
    $localInstances += "$ServerName\$temp"
    $localInstances
    $instance=Get-SqlInstances -ServerName HQDBSP17
    foreach($i in $instance)
    if($i -like 'CRM2011')
    write-host 'CRM Database'
    invoke-sqlcmd -inputfile 'F:\PowerSQL\test.sql' -ServerInstance 'abcd'
    if( $i -like 'SQL2012')
    write-host 'SQL 2012 instance'
    invoke-sqlcmd -inputfile 'F:\PowerSQL\test.sql' -ServerInstance 'abcd'
    --Prashanth

  • How to run an X11 app as a normal icon on the dock?

    How to run an X11 app as a normal icon on the dock?
    I don't want to have to go through the X11 app than up to the command, etc. I want it to run as a normal osx app

    I've only got one X11 application, Wireshark. I have its icon on my dock -- I just dragged it to there from its location in the Finder. When I click on it (Wireshark's dock icon), X11 starts, then Wireshark starts inside X11's environment. Have you tried doing it that way with your app, or is Wireshark's behavior in that regard just a different animal from all the other X11 apps that are out there for Mac?

Maybe you are looking for

  • FireFox -- Issue with Spry Gallery

    I posted this a few months ago and I was wondering if I could get an answer. I want to make the images in the Spry gallery fade out before a new image fades in. In the current mode the images vanish instantly followed by a fade-in of the next or prev

  • PDF attached in Mail changes suffix

    This is a really strange problem. When sending PDF files attached per Mail, the suffix will be automatically changed from .pdf into .pdf0, .pdff and so on. It happens randomly. What can be done here, has someone observed the same issue in his Mails?!

  • Can't get thumb drive(s) to work

    I have a fairly new XP SP2 install using Leopard bootcamp. In Windoze when I plug in any of my thumb drives it shows it found new hardware and tries to install the drivers, but that fails. I used the windows update mode. Any suggestions.

  • Adapter for in-car iPod connection

    Is there an adapter for iPod Shuffle 2G or iPod Nano that will let either one of these play through my in-car (2006 Scion xB) dock?

  • Problem User Languange

    Hi experts,  i have the following situation for BPC NW 7.0003: I have a ADMIN user that belongs to a domain X and when i create a dimension with this user, caracteristic in BW is displayed in ES (spanish) language. On the other hand, when i create a