



Now you will be able to run this command pkg_add -v desiredpackagename without any error.









#####MAKING YOUR NETBSD SYSTEM 7.0.1 RELEASE TO 7_STABLE ######









This is the main part and a bit complicated because we're going to fetch NetBSD stable source and recompiling and installing kernel.





Downloading sources for a NetBSD stable branch

anonymous CVS

CVSROOT

$ export CVSROOT="anoncvs@anoncvs.NetBSD.org:/cvsroot"

CVS_RSH

“ ssh ”

$ export CVS_RSH="ssh"

“ Maintenance branches ”

-r

“ netbsd-7 ”

$ cd /usr $ cvs checkout -r netbsd-7 -P src

“ xsrc ”

$ cvs checkout -r netbsd-7 -P xsrc

/usr/src

$ cd /usr/src $ cvs update -dP

“ xsrc ”

/usr/xsrc

Configuring the kernel manually

MYKERNEL

$ config MYKERNEL

MYKERNEL

$ cd ../compile/MYKERNEL $ make depend $ make

netbsd

You need to install kernel after compiling it otherwise it wouldn't work.

Installing the new kernel

#cd ../compile/MYKERNEL

# mv /netbsd /netbsd.old # mv netbsd /

netbsd.old

netbsd

-rwxr-xr-x 3 root wheel 3523098 Dec 10 00:13 /netbsd -rwxr-xr-x 3 root wheel 7566271 Dec 10 00:13 /netbsd.old

# shutdown -r now

If something went wrong “ single user ” ):

Reboot the machine

Press the space bar at the boot prompt duringhttps://www.blogger.com/blogger.g?blogID=8564502499231768514#editor/target=post;postID=4981906295107079464 the 5 seconds countdown

boot:

Type

> boot netbsd.old -s

Now issue the following commands to restore the previous version of the kernel:

# fsck / # mount / # mv netbsd.old netbsd # reboot When the computer is restarted it can happen that the new kernel doesn't work as expected or even doesn't boot at all. Don't worry: if this happens, just reboot with the previously saved kernel and remove the new one (it is better to reboot):This will give you back the working system you started with, and you can revise your custom kernel config file to resolve the problem. In general, it's wise to start with a GENERIC kernel first, and then make gradual changes.









Alright now all set Now proceed with packages installation. If you will enter uname -a command you will see 7-stable is running now.









Install the following packages.

$su

#pkg_add -v openbox feh tint2 gnome-terminal firefox vlc lxappearance obconf









once all done.





Past the following files in exactly same directory location. Please remember each user will use it's on directory like if you create a user of your own choice you need to login with that user not root user. You can also configure the same GUI for root user but it's not recommended for security reasons.





ok

#mkdir /home/username/.themes

# cp -rvf mytheme /home/username/.themes/mytheme

#cp -rvf openbox /home/username/.config/openbox

# cp -rvf tint2 /home/username/.config/tint2

# cp .conkyrc /home/username/.conkyrc

# cp .conkyrctop /home/username/.conkyrctop

#cp .gtkrc-2.0 /home/username/.gtkrc-2.0

# cp .xinitrc /home/username/.xinitrc





If you missed any of above files you will not get desired look. And if you already done as up mentioned and still icons or theme is not working use obconf and lxappearance tools to adjust setting in GUI mode.





All mentioned files can be downloaded from HERE





That's it.





And if Youtube audio is not working follow this below.









YouTube with audio!

# cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/

# echo "dbus=YES" >> /etc/rc.conf

# service dbus start