Thanks again Jan,

I'll dig deeper into it over these next few days to see if I can get things
rolling.

Will also try to be less verbose as I sometimes get so involved that I sent
to ramble on in an effort to clarify.

Cheers,
Lonnie


On Thu, Nov 2, 2017 at 5:25 AM, Ján Poctavek <jan.pocta...@erigones.com>
wrote:

> Hi,
>
> On 1. 11. 2017 15:16, Lonnie Cumberland wrote:
>
> Hi Jan,
>
> I started working on this a bit more today after spending a bit of time
> reviewing the SmartOS docs to get a better feel for things but have a
> couple of questions (in-line)
>
> X server environment can be installed using pkgsrc. But in SmartOS, you
>> are very limited. You can make it running but expecting even a working web
>> browser is a bit daring. Here is what you need to do:
>>
>
> Mostly, I just want to startup a VNC or Spice client and try to connect to
> a running zone with maybe a simple linux VM running, perhaps.
>
> For VNC, there's a good VNC/RDP client called vinagre in pkgsrc. For
> connecting to zones you just need some sort of xterm.
>
>
>
>> - bootstrap pkgsrc into the global zone
>>
> For this part, do you mean to install pkgin as I did this by following:
>
> https://wiki.smartos.org/pages/viewpage.action?pageId=756297
>
> That's and old link. Use this: https://pkgsrc.joyent.com/
> install-on-illumos/
> And this download link: http://pkgsrc.joyent.com/
> packages/SmartOS/bootstrap/bootstrap-{{ pkgin_release }}-x86_64.tar.gz
> With pkgin_release="2017Q3"
>
>
> and:
>
> Install pkgin
>
> From http://wiki.smartos.org/display/DOC/Installing+pkgin
>
> This is the SmartOS package manager you will find the latest version at
> http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/ in this case its
> bootstrap-2013Q2-x86_64.tar.gz
>
> cd /
> curl -k http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/
> bootstrap-2013Q2-x86_64.tar.gz | gzcat | tar -xf -
> pkg_admin rebuild
> pkgin -y up
> --------------------------------------------------------------
>
> For the next part, I want to install everything in a zone, if possible,
> and am looking at:
>
> From https://gist.github.com/3050224
>
> From http://wiki.smartos.org/display/DOC/How+to+create+a+
> zone+%28+OS+virtualized+machine+%29+in+SmartOS
>
>
> imgadm update
> imgadm avail | grep base64
> # copy the UUID "9eac5c0c-a941-11e2-a7dc-57a6b041988f" from the latest
> version (look at the date)
> # Note there exist a node image too, but its always outdated and it
> contains software that you most likely don't need
>
> imgadm import 9eac5c0c-a941-11e2-a7dc-57a6b041988f
> # you should also see a ASCII progress bar. If instead you see:
> #   60a3b1fa-0674-11e2-abf5-cb82934a8e24 doesnt exist. continuing with
> install
> # you are mostlikely running an older SmartOS version, don't worry it is
> downloading it just dosn't show any progress
>
> # /zones/ is the permanent directory if you store something elsewhere it
> will be deleted when SmartOS power off.
> mkdir /zones/defs
> touch /zones/defs/base.json
>
> # dataset_uuid: the copied UUD
> # nics[0].ip: In smartos I typed `ifconfig -a` and found `e1000g0`
> (172.16.136.129).
> #   so for the SmartMashine I use `172.16.136.100` (I just picked 100
> randomly)
> # nics[0].gateway, resolvers[0]: I typed `netstat -r` and find the default
> gateway value (172.16.136.2).
> # ram: My VM of smartos is given 1024 so I give my SmartMachine 512
>
> echo '
> {
>   "brand": "joyent",
>   "ram": 512,
>   "autoboot": false,
>   "dataset_uuid": "9eac5c0c-a941-11e2-a7dc-57a6b041988f",
>   "resolvers": [
>     "172.16.136.2",
>     "8.8.8.8"
>   ],
>   "nics": [
>     {
>       "nic_tag": "admin",
>       "ip": "172.16.136.100",
>       "netmask": "255.255.255.0",
>       "gateway": "172.16.136.2"
>      }
>   ]
> }' > /zones/defs/base.json
>
> vmadm create -f /zones/defs/base.json
>
> Of course, I will be chaning the IP, gateway, etc.., then start the VM and
> zlogin:
>
> vmadm list
> # output:
> # UUID                                  TYPE  RAM      STATE
>  ALIAS
> # 463647dc-57f8-45ac-bdc2-18b0cc4c0be6  OS    512      running           -
> # copy the UUID
>
> vmadm start 463647dc-57f8-45ac-bdc2-18b0cc4c0be6
> zlogin 463647dc-57f8-45ac-bdc2-18b0cc4c0be6
>
> - basic X org:
>> pkgin install modular-xorg-server xf86-video-vesa xf86-input-keyboard
>> xf86-input-mouse xhost xauth dejavu-ttf xinit
>>
>
> I think that this will need to be done after creating the unprivileged
> user in the next step below, right.
> -----------------------------------------
>
>
>> - create an unprivileged user (make sure the user and homedir persist
>> after reboot)
>>
>
> This part is a bit confusing and all that I could find on this process is,
> of course will change the user name:
>
> https://docs.joyent.com/sdc6/managing-customers
>
> User Accounts on SmartMachines
>
> The SmartMachine owner can create user accounts by logging in to the
> SmartMachine as root and using the useradd tool. This command creates a
> user account for the user jill:
>
> [root@smartos ~]# useradd -d /home/jill -m -c "Jill Joyent" jill
> By default, new user accounts are locked. Mark the user account as "no
> login" to unlock it. This means that the user cannot log in to the user
> account with a password. She will be able to log in to the user account
> using SmartLogin. Use the passwd command like this to mark the account "no
> login":
>
> [root@smartos ~]# passwd -N jill
> passwd: password information changed for jill
> You will need to store the users public key in her ~/.ssh/authorized_keys
> file.
>
> Another option is to use the passwd command to give the user account a
> password:
>
> [root@smartos ~]# passwd jill
> New Password:
> Re-enter new Password:
> passwd: password successfully changed for jill
> One reason you may want to give a user account a password even though
> password logins are disabled is to allow her to use sudo. If you want to
> enable password logins, you can do so in /etc/ssh/sshd_config.
>
> ------------------------------------------------------
>
> If all goes well then I can add the basic X org and fluxbox or icewm
>
>
>> - choose a window manager (for example, I've seen icewm and fluxbox
>> working)
>> pkgin install fluxbox
>> echo fluxbox > ~/.xinitrc     # run this as unprivileged user
>> - or
>> pkgin install icewm
>> echo icewm-session > ~/.xinitrc     # run this as unprivileged user
>>
>> startx     # run this as unprivileged user
>>
>> -----------------------------------------------------------------
>
>> And don't use 2016Q4 repo. AFAIK the X mouse integration is broken there.
>> Use newer (2017Q2 worked for me).
>>
>
> Not sure about this part yet, but everything is making more sense the more
> that I read the docs and will do more on that as well.
>
> Does this all seem about correct?
>
> Just try it and see if it works for you and come back with less verbose
> questions. Moreover, there's not much difference in running X related
> things between SmartOS and plain Linux (except pkgsrc).
>
>
> Thanks and have a great day,
> Lonnie
>
>
>
>>
>> Cheers & GL
> Jan
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/29189741-d7570d4f> |
> Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription <http://www.listbox.com>
>
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to