Jump to content

sparklyballs

Community Developer
  • Posts

    3,199
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by sparklyballs

  1. who are these top men and do they take requests ?
  2. GRRR, apt-get install -y handbrake installs the old version..... changed to apt-get install -y handbrake-gtk checked with apt-get policy and the -gtk version is the latest package. rebuilding now, hopefully it doesn't fail on dependencies, but i shouldn't think so.
  3. already using that ppa, lemme check out whether it's actually pulling from there or ubuntu repo.
  4. instead of shout add <user> try this shout add <user> --home /config/
  5. linux permissions, docker user home folders and unraid wanting nobody:users gives me a f****ing headache. i'll get a handle on it soon enough. you can add users via the command line, but at the moment they are saved in /root instead of the folder that everything else is saved in for shout-irc. also the shout user editor is vi , the most unfriendly, archaic and pig awkward editor to use, EVER. Vi is what got me stumped! Couldn't use it at all, I'm a nano guy, or Notepad++ if I really have a choice. it's saving the files in the wrong place anyways, might have to raise a bug issue with shout-irc 1, the editor doesn't respect the user-defined config, and from what i can tell if i add a json in the users folder it doesn't pick it up, which basically renders the user-defined config useless in regards to users.
  6. linux permissions, docker user home folders and unraid wanting nobody:users gives me a f****ing headache. i'll get a handle on it soon enough. you can add users via the command line, but at the moment they are saved in /root instead of the folder that everything else is saved in for shout-irc. also the shout user editor is vi , the most unfriendly, archaic and pig awkward editor to use, EVER.
  7. i have ideas all the time, not all of them are good, lol.
  8. i'm thinking of a base image use install a few related apps on a theme , edit the xrdp.ini and have a picker between them. or the guacamole menu, don't know which is easier for users.
  9. i'm thinking of a base image use install a few related apps on a theme , edit the xrdp.ini and have a picker between them.
  10. try putting the contents of your firstrun.sh into autostart, i don't know whether it takes multiple commands, but it can't hurt to try.
  11. are you using VOLUME /config and installing into config ? because when you mount the volume it will wipe anything in there. i just stopped my build and took the volume definition out and restarted.
  12. i'm building this on my docker build vm FROM phusion/baseimage:0.9.16 MAINTAINER sparklyballs <[email protected]> # Set correct environment variables ENV DEBIAN_FRONTEND=noninteractive HOME="/root" TERM=xterm LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 # set ports EXPOSE 8080 3389 # Use baseimage-docker's init system CMD ["/sbin/my_init"] # Add required files that are local ADD src/ /root/ # set config volume VOLUME /config # Set the locale RUN locale-gen en_US.UTF-8 && \ # Configure user nobody to match unRAID's settings usermod -u 99 nobody && \ usermod -g 100 nobody && \ usermod -m -d /nobody nobody && \ usermod -s /bin/bash nobody && \ usermod -a -G adm,sudo nobody && \ echo "nobody:PASSWD" | chpasswd && \ # folders for user nobody mkdir /nobody && \ mkdir -p /nobody/.config/openbox && \ mkdir /nobody/.cache && \ # update apt and install dependencies echo 'deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main universe restricted' > /etc/apt/sources.list && \ echo 'deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main universe restricted' >> /etc/apt/sources.list && \ add-apt-repository ppa:no1wantdthisname/openjdk-fontfix && \ apt-get update -qq && \ apt-get install -qy --force-yes --no-install-recommends wget unzip vnc4server x11-xserver-utils openbox xfonts-base xfonts-100dpi xfonts-75dpi libfuse2 xrdp openjdk-7-jre libossp-uuid-dev libpng12-dev libfreerdp-dev libcairo2-dev tomcat7 && \ # fix startup files etc.... mv /root/00_config.sh /etc/my_init.d/00_config.sh && \ mv /root/service/* /etc/service/ && \ rm -rf /root/service && \ chmod -R +x /etc/service/ /etc/my_init.d/ /etc/xrdp/startwm.sh && \ # fix up config files etc.... mv /root/xrdp.ini /etc/xrdp/xrdp.ini && \ mv /root/sesman.ini /etc/xrdp/sesman.ini && \ mkdir -p /etc/guacamole && \ mv /root/guacamole.properties /etc/guacamole/guacamole.properties && \ mv /root/noauth-config.xml /etc/guacamole/noauth-config.xml && \ mv /root/rc.xml /nobody/.config/openbox/rc.xml && \ mv /root/autostart /nobody/.config/openbox/autostart && \ chown nobody:users /nobody/.config/openbox/rc.xml && \ chown -R nobody:users /config /nobody /usr/bin/handbrake && \ # install tomcat and guacamole mkdir -p /var/cache/tomcat7 && \ mkdir -p /var/lib/guacamole/classpath && \ mkdir -p /usr/share/tomcat7/.guacamole && \ mkdir -p /usr/share/tomcat7-root/.guacamole && \ mkdir -p /root/.guacamole && \ dpkg -i /root/guacamole/guacamole-server_0.9.6_amd64.deb && \ ldconfig && \ cp /root/guacamole/guacamole-0.9.6.war /var/lib/tomcat7/webapps/guacamole.war && \ cp /root/guacamole/guacamole-auth-noauth-0.9.6.jar /var/lib/guacamole/classpath && \ rm -rf root/guacamole && \ ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat7/.guacamole/ && \ ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat7-root/.guacamole/ && \ ln -s /etc/guacamole/guacamole.properties /root/.guacamole/ && \ rm -Rf /var/lib/tomcat7/webapps/ROOT && \ ln -s /var/lib/tomcat7/webapps/guacamole.war /var/lib/tomcat7/webapps/ROOT.war && \ ln -s /usr/local/lib/freerdp/guacsnd.so /usr/lib/x86_64-linux-gnu/freerdp/ && \ ln -s /usr/local/lib/freerdp/guacdr.so /usr/lib/x86_64-linux-gnu/freerdp/ && \ #install boinc mkdir -p /config && \ wget http://boinc.berkeley.edu/dl/boinc_7.2.42_x86_64-pc-linux-gnu.sh && \ chmod +x boinc_7.2.42_x86_64-pc-linux-gnu.sh && \ ./boinc_7.2.42_x86_64-pc-linux-gnu.sh && \ chown -R nobody:users /config && \ # clean up apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ /usr/share/man /usr/share/groff /usr/share/info \ /usr/share/lintian /usr/share/linda /var/cache/man && \ (( find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true )) && \ (( find /usr/share/doc -empty|xargs rmdir || true )) with your autostart BTW.
  13. can you break out the boinc installation routine for me and i'll try....
  14. just different approaches i guess, i personally find dockerfile easier to follow than scripts, but that's just me i guess. , plus i have to insert a sleep 1s after chmod'ing any script in a dockerfile otherwise they don't run. some bug in docker
  15. i minimise layers by having everything under one RUN command and using && \
  16. not sure.... https://trac.handbrake.fr/milestone/HandBrake%201.0
  17. here https://github.com/sparklyballs/desktop-dockers/tree/master/handbrake
  18. my bad, lol. i used the image link instead of the hyperlink freaking eyesight and small icons.
  19. check the git https://github.com/sparklyballs/desktop-dockers/tree/master/handbrake just need to swap in your code for fetching your app in the main dockerfile, change the app name in noauth-config.xml and xrdp.ini (not crucial, just gives better appearance and less confusion for user) finally change up the autostart file to whatever your app needs to start, work out where your app stores config and make the neccessary changes in your template.xml.
  20. the way i recondensed your scripts back into a more trad Dockerfile lends itself to the possibility of a "put your code here and change this" scenario.
  21. although personally i think it adds another layer of maintenance above already having the maintenance of dockers dependant on authors.
×
×
  • Create New...