zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Jiniper replace config via CLI

August 20, 2010 by Igor Drobot 2 Comments

I used a serial connection, with USB -> RJ45-Serial – Cable

1
save config from usb initial-config.cfg to flash

save config from usb initial-config.cfg to flash

And finally restart:

1
reset

reset

minicom config from: /etc/minicom/minirc.juniper

1
2
3
4
5
6
7
8
9
# Manuell erzeugte Datei - Verwenden Sie "minicom -s" zum Ändern
pu port             /dev/ttyUSB0
pu baudrate         9600
pu minit
pu mreset
pu mconnect
pu mhangup
pu escape-key       ^M
pu rtscts           No

# Manuell erzeugte Datei - Verwenden Sie "minicom -s" zum Ändern pu port /dev/ttyUSB0 pu baudrate 9600 pu minit pu mreset pu mconnect pu mhangup pu escape-key ^M pu rtscts No

Filed Under: Linux Tagged With: CLI, Juniper

Redirect incomming links with .htaccess

August 20, 2010 by Igor Drobot Leave a Comment

Redirect incoming links with .htaccess to prevent duplicate content penalties

Create a .htaccess file under htdocs, with following content

1
2
RewriteEngine on
RewriteRule ^(.*)$ http://www.zeldor.biz/$1 [L,R=301]

RewriteEngine on RewriteRule ^(.*)$ http://www.zeldor.biz/$1 [L,R=301]

Each request to your site will be redirected to www.zeldor.biz

Filed Under: Linux Tagged With: .htaccess, 301 redirect, redirect, RewriteRule

Hurricane-Electric IPv6 certification

August 16, 2010 by Igor Drobot 1 Comment

I think you have heard already of IPv4 address depletion. A new version of Internet addressing (New Internet protocol) system was prepared many years ago. But since everyone was using IPv4 address, the migration has not been implemented in a large scale. If we continue to use IPv4 address as on today, the entire range would be used up in less than one years. (Hurricane-Electric has a very nice counter.) Public IPv4 addresses are mainly used by Internet servers. Other PCs or Servers can use private IPv4 address which are not reachable from Internet. Although many methods like NAT (Network Address Translation) and CIDR (Classless Inter Domain Routing) were implemented to stretch the IPv4 address usage, it seems that it is reaching a level of saturation now.

It is sure that everyone must migrate to IPv6 address within a couple of months/ years. Some Internet registries are not so liberal in assigning free IPv4 address now. If you want to learn about IPv6 and make sure that you have skills to administer IPv6 address and servers, Hurricane Electric free IPv6 certification is a really great way to begin. You can register for this certification at: he.net. I will give you a brief overview of the tests in the following section.

Through this test set you will be able to:

-> Prove that you have IPv6 connectivity
-> Prove that you have a working IPv6 web server
-> Prove that you have a working IPv6 email address
-> Prove that you have working forward IPv6 DNS
-> Prove that you have working reverse IPv6 DNS for your mail server
-> Prove that you have name servers can respond to queries via IPv6
-> Prove your knowledge of IPv6 technologies through quick and easy testing

There are seven levels of certification available. The breakdown of each are given below:

Newb: Read the primer stuff, be able to answer some quick and easy questions.

Explorer: Verify that you can access ipv6.he.net over IPv6

Enthusiast: Verify that you have an IPv6 capable web server that we can connect to and fetch information from. This should be entered as a FQDN and not an IPv6 address, or you will have issues once you start working on the Guru level.

Administrator: Verify that you have a working IPv6 capable MTA by sending you an email only over IPv6.

Professional: Verify that your MTA has working reverse DNS (ex: dig mx $domain +short ; dig AAAA $mx +short ; dig -x $mx AAAA +short)

Guru: Verify that the authoritative NS for your domain have AAAA records, and respond to queries for the domain (ex: step 1 is dig ns $domain ; dig AAAA $ns | step 2 is dig AAAAA $domain @$nsAAAA)

Sage: Check to see if your domain’s authoritative NS have IPv6 glue with their listed TLD servers. Meaning the TLD server can directly answer for the host record (ex: dig +trace ns $domain to get the TLD server list then dig aaaa $ns @TLD +short for the glue).

After each test you will get a new certificate:

Filed Under: Debian, IPv6, Linux, Networking, Ubuntu Tagged With: Ipv6, IPv6 default route, IPv6 routing

Hide PHP version

August 15, 2010 by Igor Drobot Leave a Comment

In order to do this, you need to do some sysdmin job:). I am going to specifically focus on Apache and PHP because I’m more of a LAMP user. If you use ASP on Microsofts IIS, I can’t help you (but hey!, Google is there to save your sunny day! :P)

Find your php.ini file in my case,

1
vim /etc/php5/apache2/php.ini

vim /etc/php5/apache2/php.ini

Look for the line that says: “expose_php On“
Change it to:

1
expose_php Off

expose_php Off

Now our PHP is very silent

Note by PHP developer:
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.

Filed Under: Debian, Linux Tagged With: PHP, security

Move min/max/close buttons to the right side

August 13, 2010 by Igor Drobot Leave a Comment

With version 10.4 Ubuntu design team decided to move the “minimize/maximize/close” buttons to the left side. For everybody who do not like this and want their old buttons back on the right, follow the instructions.






Open to the “Terminal” or “Konsole” and run this:

1
gconf-editor

gconf-editor

Now navigate to:

1
apps => metacity => general

apps => metacity => general

And change the key button_layout from:

1
maximize,minimize,close:

maximize,minimize,close:

to

1
menu:minimize,maximize,close

menu:minimize,maximize,close





Even faster is this command you need to run in your terminal/shell:

1
gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close

gconftool-2 --set /apps/metacity/general/button_layout --type string menu:minimize,maximize,close

Filed Under: Linux, Ubuntu Tagged With: 10.04, GNOME, Lucid, Style, Ubuntu, ubuntu 10.10

  • « Previous Page
  • 1
  • …
  • 54
  • 55
  • 56
  • 57
  • 58
  • …
  • 62
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok