an3l / my_playground

My playground with python, nginx, docker and server!
0 stars 0 forks source link

Setting up VM #16

Open an3l opened 4 years ago

an3l commented 4 years ago

Setting up VM:

Not related:


       Debian on VM

sudo is not installed on debian: https://unix.stackexchange.com/questions/354928/bash-sudo-command-not-found

 su -
apt install sudo -y
usermod -aG sudo yourusername
visudo # %sudo   ALL=(ALL:ALL) ALL
VM-tools -> /media/cdrom
extract in /tmp, if not it will be readonly

* working with mariadb ***

++ uncomment deb-src 10.1 from sudo vim /etc/apt/sources.list ++ apt-get build-dep mariadb-server-10.1 ++ git clean -dffx && git reset --hard HEAD Running ./debian/autobake.sh

Read more about apt-key and build-dep in apt !!! Have 10.1 builds:

anel@anel-debian:~$ ls
10.1                                                                  mariadb-cracklib-password-check-10.1_10.1.44+maria-1~stretch_amd64.deb
Desktop                                                               mariadb-cracklib-password-check-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb
Documents                                                             mariadb-gssapi-client-10.1_10.1.44+maria-1~stretch_amd64.deb
Downloads                                                             mariadb-gssapi-client-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb
libmariadbclient18_10.1.44+maria-1~stretch_amd64.deb                  mariadb-gssapi-server-10.1_10.1.44+maria-1~stretch_amd64.deb
libmariadbclient18-dbgsym_10.1.44+maria-1~stretch_amd64.deb           mariadb-gssapi-server-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb
libmariadbclient-dev_10.1.44+maria-1~stretch_amd64.deb                mariadb-oqgraph-engine-10.1_10.1.44+maria-1~stretch_amd64.deb
libmariadbd-dev_10.1.44+maria-1~stretch_amd64.deb                     mariadb-oqgraph-engine-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb
libmysqlclient18_10.1.44+maria-1~stretch_amd64.deb                    mariadb-server-10.1_10.1.44+maria-1~stretch_amd64.deb
mariadb-10.1_10.1.44+maria-1~stretch_amd64.buildinfo                  mariadb-server_10.1.44+maria-1~stretch_all.deb
mariadb-10.1_10.1.44+maria-1~stretch_amd64.changes                    mariadb-server-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb
mariadb-10.1_10.1.44+maria-1~stretch.dsc                              mariadb-server-core-10.1_10.1.44+maria-1~stretch_amd64.deb
mariadb-10.1_10.1.44+maria-1~stretch.tar.gz                           mariadb-server-core-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb
mariadb-backup-10.1_10.1.44+maria-1~stretch_amd64.deb                 mariadb-test-10.1_10.1.44+maria-1~stretch_amd64.deb
mariadb-backup-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb          mariadb-test_10.1.44+maria-1~stretch_all.deb
mariadb-client-10.1_10.1.44+maria-1~stretch_amd64.deb                 mariadb-test-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb
mariadb-client_10.1.44+maria-1~stretch_all.deb                        Music
mariadb-client-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb          mysql-common_10.1.44+maria-1~stretch_all.deb
mariadb-client-core-10.1_10.1.44+maria-1~stretch_amd64.deb            Pictures
mariadb-client-core-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb     Public
mariadb-common_10.1.44+maria-1~stretch_all.deb                        server
mariadb-connect-engine-10.1_10.1.44+maria-1~stretch_amd64.deb         Templates
mariadb-connect-engine-10.1-dbgsym_10.1.44+maria-1~stretch_amd64.deb  Videos

$ sudo apt-get install ./mariadb-*build-deps_*.deb


       Debian on windows

Working again on debian from windows linux subsystem (SI) - it works, but cannot test systemd features : https://superuser.com/questions/1236338/a-workaround-which-lets-you-use-mk-build-deps-and-fakeroot-on-the-windows-li

an3l commented 4 years ago

Setting up NetBSD9 on vmware:

After install process:

Pretty straightforward. Install what we need:

pkgin install build-essential manpages-dev  cmake ninja-build libncurses5-dev gnutls-dev bison wget gdb-y

You should be able to start the server.

To enable xterm

$cp /usr/pkg/share/examples/rc.d/famd /etc/rc.d/ $cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/ $cp /usr/pkg/share/examples/rc.d/hal /etc/rc.d/

- Check `/etc/rc.conf` -> copy paste

- Change `rc.conf`

hostname= netbsd9 rpcbind= YES dbus=YES hal=YES famd=YES

- Change `/etc/hosts` to `hostname`
It was `127.0.0.1 localhost localhost`.
Now should be: `127.0.0.1 netbsd9`
- Reboot

$ su - anel $ bash $ startx



[1]: https://www.netbsd.org/docs/guide/en/chap-exinst.html#exinst-process
[2]: https://www.netbsd.org/docs/guide/en/chap-exinst.html#inst-bin-packages
an3l commented 4 years ago

FreeBSD

Add DHCP: vi /etc/rc.conf add ifconfig_em0="DHCP" Install sudo: pkg update && pkg upgrade && pkg install sudo , add new user to wheel group (pw usermod anel -G wheel)?!

pkg install cmake gnutls-dev bison gdb git -y

Installing ports collection see 2 FreeBSD handbook 3