Editing BullDog Notes

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 +
= this page is junk, but useful for me for now =
  
== What - Remote Access to Ubunto 18.04 ==
 
  
How do you work with a headless Ubuntu 18.04 system?  I would like to make this easy so for me a remote desktop just like the local real
 
desktop would be great.  I think I have now, it but it has been hard to get there.  I would like to maintain as much security as possible.
 
The access to the Ubuntu machine will be from Windows 10.  For me this is all inside my local network.  I have found 3 useful ways to do this on my system:
 
  
* Get command line access ( Putty and SSH )
+
=======================al servers  ==============================
* Webmin, remote http web access.
+
VNC/Servers - Community Help Wiki
* Full VNC desktop ( there are other remote desktops )
+
    *>url https://help.ubuntu.com/community/VNC/Servers
* Why not just use option Share Desktop ? Because mine would not turn on thats why. Why it would not turn on, I was not able to figure out.
+
 +
 +
==================== vino ==================================
  
Of these VNC is the most difficult, and the one I wanted, it will be discussed first.  It also mentions tools that may be useful in other approaches.
 
  
 +
vino - Enable remote VNC from the commandline? - Ask Ubuntu
 +
    *>url  https://askubuntu.com/questions/4474/enable-remote-vnc-from-the-commandline
  
=== VNC full Desktop -- My Goal ===
+
 
 +
 
 +
 
 +
Just running
 +
 
 +
/usr/lib/vino/vino-server
 +
should do the job.
 +
 
 +
Once you have access to your server, I would recommend that you add it to Autostarted Apps so it is always started.
 +
 
 +
You'll probably like change some settings with :
 +
 
 +
vino-preferences
 +
be very careful when you run vino-preference on a remote machine, if you uncheck "Allow other users to control your desktop", you won't be able to check it back.
 +
 
 +
or to edit :
 +
 
 +
~/.gconf/desktop/gnome/remote_access/%gconf.xml
 +
Here a sample file :
 +
 
 +
<?xml version="1.0"?>
 +
<gconf>
 +
    <entry name="vnc_password" mtime="1289267042" type="string">
 +
        <stringvalue>cXdlcnR5</stringvalue>
 +
    </entry>
 +
    <entry name="view_only" mtime="1289262982" type="bool" value="false"/>
 +
    <entry name="prompt_enabled" mtime="1254965869" type="bool" value="false"/>
 +
    <entry name="authentication_methods" mtime="1289267034" type="list" ltype="string">
 +
        <li type="string">
 +
            <stringvalue>vnc</stringvalue>
 +
        </li>
 +
    </entry>
 +
    <entry name="enabled" mtime="128926
 +
 +
 +
============================ x11vnc ===================
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
= Just a few scribbled links =
 +
 
 +
*'''[https://www.google.com/search?client=opera&q=ubuntu+enable+nas+access&sourceid=opera&ie=UTF-8&oe=UTF-8 ubuntu enable nas access - Google Search ]'''
 +
*'''[https://www.google.com/search?safe=off&client=opera&hs=9g3&q=ubuntu+enable+nfs+access&spell=1&sa=X&ved=0ahUKEwi_lcKivt7gAhUIWN8KHcQXDW0QBQgrKAA ubuntu enable nfs access - Google Search ]'''
 +
*'''[https://ubuntuforums.org/showthread.php?t=1397766 [ubuntu] How do I access a NAS on my home network? ]'''
 +
*'''[https://ubuntuforums.org/showthread.php?t=288534 Mount samba shares with utf8 encoding using cifs ]'''
 +
*'''[https://ubuntuforums.org/showthread.php?t=1169149 Howto: Fix Windows share browsing issues ]'''
 +
*'''[http://www.opencircuits.com/index.php?title=BullDog_Notes&action=edit&redlink=1 Editing BullDog Notes - OpenCircuits ]'''
 +
 
 +
 
 +
== VNC  SSH  ==
 +
 
 +
*'''[https://www.cl.cam.ac.uk/research/dtg/attarchive/vnc/sshvnc.html Using VNC with SSH ]'''
 +
 
 +
*'''[https://www.liquidweb.com/kb/how-to-configure-a-vnc-server-to-use-an-ssh-tunnel-on-ubuntu-14-04-lts/ How to Configure a VNC Server to Use an SSH Tunnel on Ubuntu 14.04 LTS | Liquid Web Knowledge Base ]'''
 +
*'''[https://ubuntuforums.org/archive/index.php/t-11808.html HOWTO: Tunnel VNC through SSH from a windows machine [Archive] - Ubuntu Forums ]'''
 +
 
 +
*'''[https://askubuntu.com/questions/636018/how-do-i-set-up-an-encrypted-ssh-tunnel-for-vnc gnome - How do I set up an encrypted SSH tunnel for VNC? - Ask Ubuntu ]'''
 +
 
 +
 
 +
== misc vnc notes ==
 +
 
 +
 
 +
=== Goal ===
  
 
I would like to use VNC to access a Ubuntu 18.04 system from windows like I do with the Raspberry Pi.   
 
I would like to use VNC to access a Ubuntu 18.04 system from windows like I do with the Raspberry Pi.   
Line 20: Line 86:
 
* Connect to the existing desktop
 
* Connect to the existing desktop
 
* Keep the connection secure
 
* Keep the connection secure
* Stick to open source.
 
  
 
This has been a bit of a struggle for a number of gotchas.
 
This has been a bit of a struggle for a number of gotchas.
Line 29: Line 94:
  
 
* VNC has a server ( run on the machine you wish to view ) and viewer ( run on the machine you wish to access).
 
* VNC has a server ( run on the machine you wish to view ) and viewer ( run on the machine you wish to access).
* In addition to having several components there are many versions of VNC.  Directions for each differ, and differ across versions of Linux.  Make sure you directions match your software.
+
* In addition to having several components there are many versions of VNC.  Directions for each differ, and differ across versions of Linux.
 
* I will focus on Tiger VNC and Ubuntu 18.04
 
* I will focus on Tiger VNC and Ubuntu 18.04
 
* To get VNC working there seem to be various components.
 
* To get VNC working there seem to be various components.
 
** VNC server
 
** VNC server
** Desktop software ( there are many different ones, you may need to install -- however here I want to run on the default Ubuntu 18.04 desktop so, of course, it is already installed. )
+
** Desktop software ( there are many different ones, you may need to install -- however here I want to run on the default Ubuntu 18.04 desktop so no install is necessary )
 
** A way to connect to the VNC server -- many servers will only connect to localhost 127.0.0.1 so we will use vnc tunnelling to make a remote connection appear to be on localhost
 
** A way to connect to the VNC server -- many servers will only connect to localhost 127.0.0.1 so we will use vnc tunnelling to make a remote connection appear to be on localhost
  
  
=== Software Used ===
+
=== Other Software Used ===
  
 
before installs
 
before installs
Line 63: Line 128:
 
==== what ====
 
==== what ====
 
might this help gconf-editor
 
might this help gconf-editor
 
==== System Control ====
 
 
systemctl vs. service
 
 
* sudo systemctl stop httpd  << The Apache server would stop and you'd be returned to the bash prompt. To start the same service, we'd issue the command:
 
 
* sudo systemctl start httpd << The service would start and you'd be returned to your bash prompt.
 
 
 
* sudo systemctl restart httpd  << to restart the same service
 
  
 
==== Ubuntu text editor ( gedit ) ====
 
==== Ubuntu text editor ( gedit ) ====
Line 128: Line 182:
 
https://www.howtoforge.com/tutorial/how-to-start-a-vnc-server-for-the-actual-display-scraping-with-tigervnc/
 
https://www.howtoforge.com/tutorial/how-to-start-a-vnc-server-for-the-actual-display-scraping-with-tigervnc/
  
==== Workflow In Use ====
 
  
* Boot the Ubuntu machine, if powered off just power on, if you have access sudo reboot ?? or restart will boot it.
+
=== Webmin ===
* Wait
+
 
* On the windows machine connect with Putty and log in with your password and id
+
* rather than use the desktop use a web based admin tool:
* In Putty issue the command to start the VNC Server >> ./startvnc  start
+
 
* Start the windows VNC viewer the one I used is VNC viewer from RealVNC ... because this is the one I use for the Rasberry Pi ( you need to have a configuration with the right ip address of the Ubuntu Machine the same as the one in Putty
+
 
 +
Webmin
 +
http://www.webmin.com/
 +
 
 +
=== 3 ===
 +
 
 +
no keyboard untill 1 - > 4 gig memory  still running slugish??
 +
 
 +
 
 +
 
 +
spyder
 +
 
 +
 
 +
tiger vnc
 +
 
 +
sudo apt install tigervnc-standalone-server tigervnc-viewer
 +
 
 +
 
 +
start in terminal with
 +
 
 +
vncserver
 +
 
 +
vncviewer
 +
 
 +
russ@UbuntuBase-VB:~$ vncserver
 +
 
 +
New 'UbuntuBase-VB:1 (russ)' desktop at :1 on machine UbuntuBase-VB
 +
 
 +
Starting applications specified in /etc/X11/Xvnc-session
 +
Log file is /home/russ/.vnc/UbuntuBase-VB:1.log
 +
 
 +
Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/russ/.vnc/passwd :1 to connect to the VNC server.
 +
 
 +
russ@UbuntuBase-VB:~$ vncserver
 +
 
 +
loopback IP address is 127.0.0.1
 +
 
 +
 
 +
------------- not done yet ------
 +
 
 +
 
 +
Start TigerVNC vncserver at boot
 +
 
 +
The ubuntu install package also registers a system service, making it easy to define listening vnc servers on startup. Edit the file /etc/default/vncserver and add the display number and user to start as:
 +
 
 +
sudo gedit /etc/default/vncserver
 +
 
 +
VNCSERVERS="1:myusername"
 +
 
 +
Then enable the service at boot with:
  
=== Easiest, no Desktop Putty SSH ===
+
sudo update-rc.d vncserver defaults
  
* Install ssh on Ubuntu
+
--------------------- end not done
 +
vncserver in terminal to start
  
* Run Putty on windows using the IP address of the Ubuntu machine
+
Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/russ/.vnc/passwd :1 to connect to the VNC server.
  
  
.
+
------------------- more installs --------------------
  
=== Webmin Somewhat Graphical, Easier than Command Line ===
+
remmina
 +
 
 +
 
 +
sudo apt install openssh-server
 +
 
 +
----------------- done ------------------
 +
 
 +
 
 +
https://linuxize.com/post/how-to-install-webmin-on-ubuntu-18-04/
 +
 
 +
 
 +
sudo apt install software-properties-common apt-transport-https wget
 +
 
 +
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"
 +
 
 +
etting up libauthen-pam-perl (0.16-3build5) ...
 +
Setting up apt-show-versions (0.22.7ubuntu1) ...
 +
** initializing cache. This may take a while **
 +
Processing triggers for ureadahead (0.100.0-21) ...
 +
Setting up webmin (1.910) ...
 +
Webmin install complete. You can now login to https://UbuntuBase-VB:10000/
 +
as root with your root password, or as any user who can use sudo
 +
to run commands as root.
 +
Processing triggers for systemd (237-3ubuntu10.21) ...
 +
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
 +
Processing triggers for ureadahead (0.100.0-21) ...
 +
russ@UbuntuBase-VB:~$
 +
 
 +
------------------- what is running tiger?? ----------------
 +
sudo apt-get install htop
 +
htop
 +
 
 +
----------------------
 +
 
 +
 
 +
start with
 +
 
 +
tigervncserver -xstartup /usr/bin/xterm
 +
 
 +
 
 +
remania connccts ok with  127.0.0.1:5904 
 +
password password
 +
 
 +
 
 +
590  desktop number  may get the desktop number whhen start tigervnc with the command
 +
 
 +
vncserver ??
 +
 
 +
 
 +
how do I know so little
 +
 
 +
see what is going on with htop
 +
 
 +
    vncserver -kill :1
 +
 
 +
vnc viewerr is also installed
 +
 
 +
 
 +
this seems pretty good
 +
 
 +
How to remotely display and control a Linux desktop from a Windows or Linux system using VNC
 +
https://www.linuxtopia.org/HowToGuides/VNC_setup_Linux_Windows.html
 +
 
 +
 
 +
ls ~ -a to see home hidden files there is a .vnc
 +
 
 +
 
 +
sudo gedit  ~/.vnc/default.tigervnc
 +
 
 +
How to list VNC server sessions on Ubuntu Linux
 +
$ vncserver -list
 +
 
 +
ifconfig -a.
 +
ip addr (ip a)
 +
 
 +
 
 +
--------------------------------
 +
 
 +
 
 +
sudo apt-get install openssh-server
 +
 
 +
Input your password (no visual feedback while typing) when it prompts and hit Enter.
 +
 
 +
openssh-server-bionic
 +
 
 +
3. Once installed, SSH starts automatically in background. And you can check its status via command:
 +
 
 +
sudo systemctl status ssh.service
 +
 
 +
---------------------
  
* rather than use the desktop use a web based admin tool:
 
  
 +
x0tigervncserver
 +
Ubuntu Manpage: x0tigervncserver - TigerVNC Server for X displays
 +
http://manpages.ubuntu.com/manpages/bionic/man1/x0tigervncserver.1.html
  
* Website Webmin http://www.webmin.com/
+
x0tigervncserver -PasswordFile ~/.vnc/default.tigervnc
  
* Install >> sudo apt-get install webmin << seems to work on virtual machine but not real one ??
 
* Start >>  sudo /etc/webmin/start  << you can do this thru putty, then open your browser
 
* Stop >> /etc/webmin/stop  << not tested may need sudo
 
* Restart >>/etc/init.d/webmin restart
 
  
* access on your browser >>https://192.168.0.95:10000/    not work:??  http://192.168.0.95:10000/
 
  
How To Install Webmin on Ubuntu 18.04 | DigitalOcean
+
gedit  ~/.vnc/default.tigervnc
https://www.digitalocean.com/community/tutorials/how-to-install-webmin-on-ubuntu-18-04
 
sudo nano /etc/apt/sources.list
 
sudo gedit /etc/apt/sources.list
 

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)