anthilla / antd Goto Github PK
View Code? Open in Web Editor NEWAnthilla System Daemon, Linux .net c# System Manager, binded with systemd. High Availability, Fault Tolerance
Home Page: http://www.anthilla.com/en/software/antd/
License: Other
Anthilla System Daemon, Linux .net c# System Manager, binded with systemd. High Availability, Fault Tolerance
Home Page: http://www.anthilla.com/en/software/antd/
License: Other
ip addr add xx.xx.xx.xx/xx broadcast xx.xx.xx.xx dev ethx
ip -6 addr add ipv6/64 dev ethx (should be possible change the netmask for obvious reasons)
ip -6 route add default via ipv6_gateway dev ethx
ip addr del xx.xx.xx.xx/xx broadcast xx.xx.xx.xx dev ethx
ip addr flush dev ethx
ip -stat -stat addr flush to 10/8
(delete range 10.0.0.0/8 and so on)
ip -4 addr flush label "eth*"
(flush all ethx addresses)
ip -6 addr flush dynamic
ip addr show ethx
ip -s link ls ethx
ip route add default via xx.xx.xx.xx
ip route add xx.xx.xx.xx/24 via xx.xx.xx.xx *(possible many netmasks)*
ip route add default scope global nexthop dev ppp0 nexthop dev ppp1
ip route add nat xx.xx.xx.xx via xx.xx.xx.xx
ip route del default via xx.xx.xx.xx
ip route del xx.xx.xx.xx via xx.xx.xx.xx
ip route show
ip link set ethx up | down
brctl addbr name
brctl delbr name
brctl addif name ethx
(for instance, eth0 - eth1 and so on)
brctl delif name ethx
brctl stp name on | off
brctl showmacs name
brctl showstp name
brctl setpathcost name <port> <cost> set path cost
brctl setportprio name <port> <prio> set port priority
ip link add team0 type bond (many other)
teamnl team0 setoption mode activebackup
ip link set dev eth0 master team0
ip link set dev eth1 master team0
ip addr add xxx.xxx.xxx.xxx/XX broadcast yyy.yyy.yyy.yyy dev team0
ip link set team0 up
-View teamnl mode:
teamnl name getoption mode
-View ports associated:
teamnl team0 ports
brctl addbr br0
brctl addif br0 eth0
ip link set eth0 up
ip link set br0 up
ip addr add xxx.xxx.xxx.xxx/XX dev br0
ip addr del xxx.xxx.xxx.xxx/XX dev eth0
ip route del default via yyy.yyy.yyy.yyy dev eth0
ip route add default via yyy.yyy.yyy.yyy dev br0
....a lot and more...
mixing parted and fs tools, with Microsoft Diskpart logic.
it is possible to create .torrent file
which have sourceforge as source
something like mktorrent -w http://downloads.sourceforge.net/project/skliss/Rel_1/image.iso image.iso -a http://tracker.openbittorrent.com:80/announce -o image.torrent
Anthilla antd: 11111 ???
Anthilla SP: "antd App" 80 & 443
here are described the various context of Antdg gui/api (29.06.2015)
(quote) "i don't why, but...."
- versions:ant 3.2.3/3.3.3
- component:Layout/Content/Header/Footer
- tsVersions:typescript-2.7.2
- ts Error:
TS2605: JSX element type 'Component<BasicProps, ComponentState>' is not a constructor function for JSX elements.
Types of property 'render' are incompatible.
Type '() => ReactNode' is not assignable to type '{ (): ReactNode; (): ReactNode; (): false | Element; }'.
Type 'ReactNode' is not assignable to type 'false | Element'.
Type 'string' is not assignable to type 'false | Element'.
- tsconfig:
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"experimentalDecorators": true,
"module": "esnext",
"allowJs": true,
"target": "es5",
"lib": ["es6", "dom"],
"sourceMap": true,
"jsx": "react",
"moduleResolution": "node",
"rootDir": "src",
"baseUrl": ".",
"paths": {
"": ["", "src/"]
}
},
"include": [
"src/**/"
],
"files": [
"global.ts"
],
"exclude": [
"node_modules"
]
}
我发现Layout组件下,如果嵌套了组件时,如果是把Sider抽取出来作为单独的组件。如:
import React from 'react';
import { Layout, Menu, Icon } from 'antd';
const { SubMenu } = Menu;
const { Sider } = Layout;
export default () => {
return <Sider width={200} style={{ background: '#fff' }}>
<Menu
mode="inline"
defaultSelectedKeys={[ '1' ]}
defaultOpenKeys={[ 'sub1' ]}
style={{ height: '100%' }}
>
<SubMenu key="sub1" title={<span><Icon type="user"/>subnav 1</span>}>
<Menu.Item key="1">option1</Menu.Item>
<Menu.Item key="2">option2</Menu.Item>
<Menu.Item key="3">option3</Menu.Item>
<Menu.Item key="4">option4</Menu.Item>
</SubMenu>
<SubMenu key="sub2" title={<span><Icon type="laptop"/>subnav 2</span>}>
<Menu.Item key="5">option5</Menu.Item>
<Menu.Item key="6">option6</Menu.Item>
<Menu.Item key="7">option7</Menu.Item>
<Menu.Item key="8">option8</Menu.Item>
</SubMenu>
<SubMenu key="sub3" title={<span><Icon type="notification"/>subnav 3</span>}>
<Menu.Item key="9">option9</Menu.Item>
<Menu.Item key="10">option10</Menu.Item>
<Menu.Item key="11">option11</Menu.Item>
<Menu.Item key="12">option12</Menu.Item>
</SubMenu>
</Menu>
</Sider>;
}
在放到Layout组件中,布局会出现问题。
import React from 'react';
import { Layout, Menu, Breadcrumb, Icon } from 'antd';
const { SubMenu } = Menu;
const { Header, Content, Sider } = Layout;
import Silder from '../components/Sider';
export default () =>
<Layout>
<Header className="header">
<div className="logo"/>
<Menu
theme="dark"
mode="horizontal"
defaultSelectedKeys={[ '2' ]}
style={{ lineHeight: '64px' }}
>
<Menu.Item key="1">nav 1</Menu.Item>
<Menu.Item key="2">nav 2</Menu.Item>
<Menu.Item key="3">nav 3</Menu.Item>
</Menu>
</Header>
<Layout className="">
<Silder></Silder>
<Layout style={{ padding: '0 24px 24px' }}>
<Breadcrumb style={{ margin: '12px 0' }}>
<Breadcrumb.Item>Home</Breadcrumb.Item>
<Breadcrumb.Item>List</Breadcrumb.Item>
<Breadcrumb.Item>App</Breadcrumb.Item>
</Breadcrumb>
<Content style={{ background: '#fff', padding: 24, margin: 0, minHeight: 280 }}>
Content
</Content>
</Layout>
</Layout>
</Layout>
布局会出现问题,看了源码,是这里有做了处理
class Basic extends React.Component<BasicProps, any> {
render() {
const { prefixCls, className, children, ...others } = this.props;
let hasSider;
React.Children.forEach(children, (element: any) => {
if (element && element.type && element.type.__ANT_LAYOUT_SIDER) {
hasSider = true;
}
});
const divCls = classNames(className, prefixCls, {
[`${prefixCls}-has-sider`]: hasSider,
});
return (
<div className={divCls} {...others}>{children}</div>
);
}
}
临时的解决办法实在父容器里,加上className -> ant-layout-has-sider.
建议,要么Layout上开发一个属性给用户指定。
或是,自动进行多层识别,但是可能会性能方面的考虑。
extend the configuration data, and the configuration case,
nodes, ip, user, passwords...
a virtual IP with 2 ethernet interfaces in 2 different hosts the interfaces will have a password and will be identified.
example:
ip addr add 10.1.1.252/24 dev ethX
ucarp -v 42 -p anthilla -a 10.1.1.252 -s 10.1.1.1 &
ucarp -v 42 -p anthilla -a 10.1.1.252 -s 10.1.1.2 &
in this case the identified is 42 and the password is anthilla
Templates are not compiled dinamically. Fix it.
make a dedicated aligned column for "apply" buttons placement.
wireless configuration gui
我想在select组件上 使用enter 怎么办
IF a file or dir it's needed,
can the method:
1- check it
2- if it does not exist, create it
3- fix permissions (mod & own or acl) by:
3.1 - umask default: 755 for DIRS, 644 for FILES
AND
3.2 - by specific SERVICE (ex: Bind, sshd, dhcpd) template config requirements.
it can be "static" and "default" for alla same commands triggers?
Admins and Service Users
passwd/group id mapping. and overmount.
seems some paths, files, directories are not created as first run.
Please; close the algorithm cycle.
1- verify (5Ws + 1h) https://en.wikipedia.org/wiki/Five_Ws (alo for logs)
2- create or manage (mount) what antd needs
3- start processes
4- load modules
5- Activate it.
What about this?
....
[05/09/15 14:48:45] loading application...
[05/09/15 14:48:45] setting core system configuration...
[05/09/15 14:48:46] setting core cfg configuration...
[05/09/15 14:48:46] initializing antd
[05/09/15 14:48:46] setting default configuration...
[05/09/15 14:48:46] set configuration for: antd...
[05/09/15 14:48:46] set configuration for: system...
[05/09/15 14:48:47] set configuration for: cfg...
[05/09/15 14:48:47] set configuration for: network...
[05/09/15 14:48:49] set configuration for: systemDataRepo...
[05/09/15 14:48:49] set configuration for: zfsMount...
[05/09/15 14:48:49] check configuration...
[05/09/15 14:48:49] loading service configuration
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidProgramException: Invalid IL code in (wrapper delegate-invoke) <Module>:invoke_callvirt_CancellationTokenRegistration_CancellationToken&_Action`1<object>_object (System.Threading.CancellationToken&,System.Action`1<object>,object): IL_0057: castclass 0x00000007
at Microsoft.AspNet.SignalR.Infrastructure.CancellationTokenExtensions.SafeRegister (CancellationToken cancellationToken, System.Action`1 callback, System.Object state) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeResolverDispose (IDependencyResolver resolver, CancellationToken hostShutdownToken) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeHost (IDependencyResolver resolver, System.String instanceName, CancellationToken hostShutdownToken) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.UseSignalRMiddleware[HubDispatcherMiddleware] (IAppBuilder builder, System.Object[] args) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.RunSignalR (IAppBuilder builder, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions+<>c__DisplayClass1.<MapSignalR>b__0 (IAppBuilder subApp) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, PathString pathMatch, System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, System.String pathMatch, System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.MapSignalR (IAppBuilder builder, System.String path, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.MapSignalR (IAppBuilder builder, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Antd.Startup.Configuration (IAppBuilder app) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at Owin.Loader.DefaultLoader+<>c__DisplayClass12.<MakeDelegate>b__b (IAppBuilder builder) [0x00000] in <filename unknown>:0
at Owin.Loader.DefaultLoader+<>c__DisplayClass1.<LoadImplementation>b__0 (IAppBuilder builder) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Engine.HostingEngine.ResolveApp (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.StartImplementation (IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start[Startup] (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start[Startup] (System.String url) [0x00000] in <filename unknown>:0
at Antd.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidProgramException: Invalid IL code in (wrapper delegate-invoke) <Module>:invoke_callvirt_CancellationTokenRegistration_CancellationToken&_Action`1<object>_object (System.Threading.CancellationToken&,System.Action`1<object>,object): IL_0057: castclass 0x00000007
at Microsoft.AspNet.SignalR.Infrastructure.CancellationTokenExtensions.SafeRegister (CancellationToken cancellationToken, System.Action`1 callback, System.Object state) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeResolverDispose (IDependencyResolver resolver, CancellationToken hostShutdownToken) [0x00000] in <filename unknown>:0
at Microsoft.AspNet.SignalR.Hosting.HostDependencyResolverExtensions.InitializeHost (IDependencyResolver resolver, System.String instanceName, CancellationToken hostShutdownToken) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.UseSignalRMiddleware[HubDispatcherMiddleware] (IAppBuilder builder, System.Object[] args) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.RunSignalR (IAppBuilder builder, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions+<>c__DisplayClass1.<MapSignalR>b__0 (IAppBuilder subApp) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, PathString pathMatch, System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Owin.MapExtensions.Map (IAppBuilder app, System.String pathMatch, System.Action`1 configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.MapSignalR (IAppBuilder builder, System.String path, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Owin.OwinExtensions.MapSignalR (IAppBuilder builder, Microsoft.AspNet.SignalR.HubConfiguration configuration) [0x00000] in <filename unknown>:0
at Antd.Startup.Configuration (IAppBuilder app) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at Owin.Loader.DefaultLoader+<>c__DisplayClass12.<MakeDelegate>b__b (IAppBuilder builder) [0x00000] in <filename unknown>:0
at Owin.Loader.DefaultLoader+<>c__DisplayClass1.<LoadImplementation>b__0 (IAppBuilder builder) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Engine.HostingEngine.ResolveApp (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Starter.DirectHostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.Starter.HostingStarter.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.StartImplementation (IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start[Startup] (Microsoft.Owin.Hosting.StartOptions options) [0x00000] in <filename unknown>:0
at Microsoft.Owin.Hosting.WebApp.Start[Startup] (System.String url) [0x00000] in <filename unknown>:0
at Antd.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
/etc/ssh/sshd_config: PermitTunnel yes OR ethernet (MANDATORY)
systemctl restart sshd
/etc/ssh/ssh_config: Tunnel ethernet (PROBABLY NOT MANDATORY)
ssh root@minipc01 "modprobe tun"
ssh root@minipc02 "modprobe tun"
ssh -o "Tunnel ethernet" -f -w 1:1 root@minipc02 "true"
ssh root@minipc01 "ip link set dev tap1 up"
ssh root@minipc01 "ip addr flush dev tap1"
ssh root@minipc01 "ip addr add 172.16.1.1/24 dev tap1"
ssh root@minipc02 "ip link set dev tap1 up"
ssh root@minipc02 "ip addr flush dev tap1"
ssh root@minipc02 "ip addr add 172.16.1.2/24 dev tap1"
it works.
yellow -> anthilla green
yellow it's unreadable
ssh Overmount and key management
Systemd, Journald conf:
default AOS to journal to RAM,
ANTD, switch it to DIR.
ANTD and ANTDSH, if is possible without script.
to bypass scripts it's also available AOSSVC as AnthillaOS internal component.
But can be nice make all projects massive updatable. one update all.
Lists, and procedures reference can be available on repo.
NO SCRIPTS, OK REFERENCE PROCEDURE executed by command (antd, antdsh)
implementing NOVNC, with an internal 2fa or captcha auth/login
Create and manage Ghost Drives and sharing/access with a webdav server
Dashboard and Graph stack
Only for statistics and related.
....
after update with antdsh, antd it's loaded but not started.
Please; close the algorithm cycle.
1- site reachable?
2- version verification
3- local process verification
4- update (download)
5- update (loading/conversion)
6- update (active process management)
7- update (config mount management)
8- known world verification
9- new version process start
....
antd can create it automatically?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.