10-23-2009
Solaris can go out to internet
I am using Solaris 10 for a Desktop OS , also router has been configured to connect to the net , but error 404 is coming always.
I add new gateway bout that did not worked , so guessing I need to add DNS but where .
![Big Grin Smilie](https://www.unix.com/images/smilies/biggrin.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
configure internet connection on Solaris (3 Replies)
Discussion started by: CreamHarry
3 Replies
2. IP Networking
Downloaded and installed, when I try to execute iexplorer it responds with "iexplorer: not found", but it is right there in the directory I am in and I im logged in as root. any ideas? (3 Replies)
Discussion started by: cluettr
3 Replies
3. UNIX for Dummies Questions & Answers
I have cable and Solaris 8 (Intel Ver.) and a Compaq NC3121 Fast
Ethernet NIC
How do I connect to the internet? (3 Replies)
Discussion started by: eloquent99
3 Replies
4. Cybersecurity
i am on solaris 8 and i wish to configure internet on solaris 8 using our proxy server. How to i do that.
Hitesh Shah (1 Reply)
Discussion started by: Hitesh Shah
1 Replies
5. Solaris
Hi all
I am new to unix having played with linux for a few years (still newbie).
My problem is I am having trouble connecting to the internet. I do not seem to have an eth0 connection just a locahost.
I read on a blog post somewhere that unix uses pcn0 instead of eth0 but it seems my card... (3 Replies)
Discussion started by: skewbie
3 Replies
6. Solaris
Hello! I'm having trouble getting this to work so I ask kindly if I can get some help to get it to work, please :).
I installed Solaris 10 (nov 06) on a laptop and I been trying to get it to connect to the router (wired connection) and it doesn't work.
I have a 2wire 2700HG router that has... (5 Replies)
Discussion started by: RemoL
5 Replies
7. Solaris
Hello,
I have Solaris 10 Express, and am going to try OpenSolaris on a different computer. I need to configure and setup my wireless card, a NetGear WG311T, on my Solaris 10 machine, because I have no internet yet. Please help me get my wireless working, Thanks.
-SunPowered
Some links... (2 Replies)
Discussion started by: sunpowered
2 Replies
8. Solaris
Hi friends,i use BSNL broadband for my internet through a modem(a router) from ethernet port.i use a username and password to connect.Its dhcp .plz help me (1 Reply)
Discussion started by: santugvd
1 Replies
9. Solaris
Hi !!!!
i am very new in solaris.
at present i am using windows XP for internet connection.
ISP has given me user name and password for connecting to the internet.
it is a brodband DSL connection.
but i am unable to connect to the internet in solaris.
i am using one static ip given by the... (4 Replies)
Discussion started by: alamin
4 Replies
10. UNIX for Dummies Questions & Answers
I recently installed solaris 10 on a seperate hard disk in my desktop pc. My first hard disk is running windows xp.
I am totally new to solaris. Please help me to connect to the internet through solaris 10. I read a few threads, and re-installed solaris 10 by giving 'Yes' to the question that... (1 Reply)
Discussion started by: hari86av
1 Replies
LEARN ABOUT DEBIAN
router::simple::cookbook
Router::Simple::Cookbook(3pm) User Contributed Perl Documentation Router::Simple::Cookbook(3pm)
NAME
Router::Simple::Cookbook - The Router::Simple Cookbook
FAQ
How to create Sinatra-ish framework with Router::Simple?
Please read the following example code.
package MySinatraish;
use Router::Simple;
use Plack::Request;
sub import {
my $pkg = caller(0);
my $router = Router::Simple->new();
my $any = sub ($$;$) {
my ($pattern, $dest, $opt) = do {
if (@_ == 3) {
my ($methods, $pattern, $code) = @_;
($pattern, {code => $code}, +{method => [ map { uc $_ } @$methods ]});
} else {
my ($pattern, $code) = @_;
($pattern, {code => $code}, +{});
}
};
$router->connect(
$pattern,
$dest,
$opt,
);
};
no strict 'refs';
# any [qw/get post delete/] => '/bye' => sub { ... };
# any '/bye' => sub { ... };
*{"${pkg}::any"} = $any;
*{"${pkg}::get"} = sub {
$any->([qw/GET HEAD/], $_[0], $_[1]);
};
*{"${pkg}::post"} = sub {
$any->([qw/POST/], $_[0], $_[1]);
};
*{"${pkg}::as_psgi_app"} = sub {
return sub {
if (my $p = $router->match($_[0])) {
[200, [], [$p->{code}->()]];
} else {
[404, [], ['not found']];
}
}
};
}
package MyApp;
use MySinatraish;
get '/' => sub {
'top';
};
post '/new' => sub {
'posted';
};
as_psgi_app;
How to switch from HTTPx::Dispatcher?
HTTPx::Dispatcher is class specific declararative router.
package MyApp::Dispatcher;
use HTTPx::Dspatcher;
connect '/', {controller => 'foo', action => 'bar'};
1;
The following script is same as above.
package MyApp::Dispatcher;
use Router::Simple::Declare;
my $router = router {
connect '/', {controller => 'foo', action => 'bar'};
};
sub match { $router->match() }
How to use Router::Simple with non-strictly-MVC application?
use Router::Simple::Declare;
my $router = router {
connect '/foo/bar/' => { 'target' => '/foobar.asp' };
connect '/topics/:topic' => { target => '/my-topic.asp' };
connect '/products/{Category:.*}' => { target => '/products.asp', Category => 'All' };
connect '/zipcode/{zip:[0-9]{5,5}}' => {target => '/zipcode.asp' };
};
You can pass the target path as destination.
AUTHOR
Tokuhiro Matsuno <tokuhirom AAJKLFJEF GMAIL COM>
LICENSE
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Router::Simple
perl v5.14.2 2011-05-15 Router::Simple::Cookbook(3pm)