.: Package Installation on OpenBSD :.
If you're new to OpenBSD and is a regular Linux user you might feel a little confused when it comes to install additional packages after the system installation. I hope this very quick guide can help you.
Well, all you have to do is to point your PKG_PATH environment variable to the right server and you're set!
export PKG_PATH=http://mirror.lncc.br/openbsd/4.9/packages/`machine -a`/
Now you just have to type the installation command and wait for the package to be downloaded and installed. Some useful tips:
pkg_add -i -v package : installs a package
pkg_delete package : removes a package
pkg_info | grep package_name : shows information about a installed packaged
I hope you enjoyed it! Take care! ;-)
Translate
Thursday, June 13, 2013
Tips and Tricks for OpenBSD - Network Configuration
.: Network Configuration :.
This is a quick guide for those new to OpenBSD who want to setup network. In a general way, all you have to do is to edit 3 files:
# /etc/hostname.bge0 : noticed that the extension of this file is the name of the network card? ;-)
192.168.7.70 255.255.255.0 NONE
# /etc/myname : contains the hostname
flagmachine
# /etc/mygate : this file contains the network gateway
192.168.7.254
Now just run the system script to restart the interface!
sh /etc/netstart bge0
That's it! :)
This is a quick guide for those new to OpenBSD who want to setup network. In a general way, all you have to do is to edit 3 files:
# /etc/hostname.bge0 : noticed that the extension of this file is the name of the network card? ;-)
192.168.7.70 255.255.255.0 NONE
# /etc/myname : contains the hostname
flagmachine
# /etc/mygate : this file contains the network gateway
192.168.7.254
Now just run the system script to restart the interface!
sh /etc/netstart bge0
That's it! :)
Wednesday, June 12, 2013
Tips and Tricks for NetBSD - Custom Kernel
.: Custom Kernel on NetBSD :.
If you want to discuss more about the BSD kernel implementation, sorry, but this is meant to be a quick guide for those who want to make simple adjustments and build a custom kernel. Feel free to go further.
Just follow the 10 steps bellow:
If you want to discuss more about the BSD kernel implementation, sorry, but this is meant to be a quick guide for those who want to make simple adjustments and build a custom kernel. Feel free to go further.
Just follow the 10 steps bellow:
- cd /usr/src
- wget http://mirror/netbsd/NetBSD-5.1/source/sets/syssrc.tgz
- tar zxvf sys.tar.gz -C /usr/src
- cd /usr/src/sys/arch/i386/conf
- cp GENERIC MYKERNEL (and edit MYKERNEL as you need ;-P)
- config MYKERNEL
- cd ../compile/MYKERNEL
- make depend && make && mv /netbsd /netbsd.original
- cp netbsd /
- reboot
Hum! That was fast and easy, wasn't it? :)
Keep practicing with different configurations!
See ya!
Tips and Tricks for NetBSD - Using GNU ls
.: How to use the GNU ls on NetBSD :.
If you're a Linux lover, you certainly miss GNU ls when using BSD systems. Well, this post will help you to install and configure GNU ls on NetBSD.
Just follow those really easy steps:
If you're a Linux lover, you certainly miss GNU ls when using BSD systems. Well, this post will help you to install and configure GNU ls on NetBSD.
Just follow those really easy steps:
- pkg_add -v gnuls
- alias ls='gls --color=auto'
If you want to make it permanent, just add this inside your favorite shell configuration file:
# for BASH
echo "alias ls=gls --color=auto" >> .bashrc
There you go! :)
Tips and Tricks for NetBSD - Shell Replacement
.: Shell Replacement :.
If you ever wondered how to replace the default shell of your newly installed NetBSD, this post might help you! :)
After you have configured your packages repository, just fire the commands bellow:
If you ever wondered how to replace the default shell of your newly installed NetBSD, this post might help you! :)
After you have configured your packages repository, just fire the commands bellow:
- pkg_add -v bash
- chsh -s bash root # this sets bash as the default shell for root
- chsh -s bash gabriel # this sets bash as the default shell for the user gabriel
I think you've got the idea!
=)
Tips and Tricks for NetBSD - Package Management
.: Package Installation on NetBSD :.
If you're new to NetBSD and is a regular Linux user you might feel a little confused when it comes to install additional packages after the system installation. I hope this very quick guide can help you.
Well, all you have to do is to point your PKG_PATH environment variable to the right server and you're set!
export PKG_PATH=http://mirror.lncc.br/netbsd/NetBSD-5.1/packages/`uname -m`/All/
Now you just have to type the installation command and wait for the package to be downloaded and installed. Some useful tips:
pkg_add -v package : installs a package
pkg_delete package : removes a package
pkg_info | grep package_name : shows information about a installed packaged
I hope you enjoyed it! Take care! ;-)
If you're new to NetBSD and is a regular Linux user you might feel a little confused when it comes to install additional packages after the system installation. I hope this very quick guide can help you.
Well, all you have to do is to point your PKG_PATH environment variable to the right server and you're set!
export PKG_PATH=http://mirror.lncc.br/netbsd/NetBSD-5.1/packages/`uname -m`/All/
Now you just have to type the installation command and wait for the package to be downloaded and installed. Some useful tips:
pkg_add -v package : installs a package
pkg_delete package : removes a package
pkg_info | grep package_name : shows information about a installed packaged
I hope you enjoyed it! Take care! ;-)
Tips and Tricks for NetBSD - Network Configuration
.: Network Configuration :.
This is a quick guide for those new to NetBSD who want to setup network. In a general way, all you have to do is to edit 3 files:
# /etc/hostname.bge0 : noticed that the extension of this file is the name of the network card? ;-)
192.168.7.70 255.255.255.0 NONE
# /etc/myname : contains the hostname
flagmachine
# /etc/mygate : this file contains the network gateway
192.168.7.254
This is a quick guide for those new to NetBSD who want to setup network. In a general way, all you have to do is to edit 3 files:
192.168.7.70 255.255.255.0 NONE
flagmachine
192.168.7.254
Now just run the system script /etc/rc.d/network to restart the configurations!
That's it! :)
Subscribe to:
Posts (Atom)