[SOLVED] VNC / SSH connection available when running in RAM?
#1
Is it possible to access the machine using VNC or SSH when starting the GUI in RAM mode?

RealVNC gives the message 'connection was refused by the host computer'. I have tried entering the IP of the computer directly and tried port 1 and 5901. I don't expect this to be a firewalll problem as I can access all other computers on my network without any problem.

I have also tried to connect via SSH (using Putty). For this I need to enter a password. However I don't have one. Resetting it via the 'Home' tab doesn't work as it needs to have a userid for that and it seems that it can't find one. You can also see this because it states "Your user account is: . You can login using a ssh client remotely or directly...." on the 'Home' page.

    .

Regard,
Leonard
 Go to solution Reply

#2
the ISO is authored as a LiveCD session, and the user is added automatically (i think with gid 999).. If you boot up the system in persistent mode vncserver will not load.

all this can be changed in theory once you setup a casper-rw filesystem I think. I will try this soon.
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • Leonard
Reply

#3
Hi Agent_Kith,
It seems that I have the casper-rw filesystem working now.
However, not able to logon via  SSH yet as I still haven't a username. (see attachment in first post)

Regards,
Leonard
 
(28-Apr-2016, 09:28 AM)agent_kith Wrote: the ISO is authored as a LiveCD session, and the user is added automatically (i think with gid 999).. If you boot up the system in persistent mode vncserver will not load.

all this can be changed in theory once you setup a casper-rw filesystem I think. I will try this soon.
Reply

#4
(03-May-2016, 06:54 AM)Leonard Wrote: Hi Agent_Kith,
It seems that I have the casper-rw filesystem working now.
However, not able to logon via  SSH yet as I still haven't a username. (see attachment in first post)
You'd need to add the user manually. To do this, you need to connect a monitor and keyboard to the Snakeoil machine. From the GUI, right click and select "Terminal", this will start up a command shell.

Then run the following command to create a new user (where user_name is the name of your choice, e.g. Leonard):
Code:
sudo adduser user_name
Next, you'd need to give it a password
Code:
sudo passwd user_name
Type in the password (twice).

Finally you'd need to add this new user to the adm group (this is a very important step):
Code:
sudo useradd -G adm user_name

And that should work. More information about adduser here and useradd here.

Once you add a user, the live session user will no longer be created, and you will loose admin access. So verify that the new user is created properly by SSH in from another machine. And once you get in, run
Code:
sudo su
Enter the password you entered previously, and see if you see root. And if it does, you can reboot and see what happens. 

If anything goes wrong, just go to the casper-rw parition, and remove the files and restart again. Let me know how it goes.

Another way is to install Snakeoil directly to a USB. This will be more straight forward as all files are writable (unlike persistent, where it boots from a read-only image, and then make changes via casper-rw).
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • Leonard
Reply

#5
Solved! I have been able to create a new user and access my streamer via SSH.
Now I can also start the VNCserver on the streamer remotely.

Tnx for you help :-)
Reply



Bookmarks

Possibly Related Threads…
Thread Author Replies Views Last Post
  LMS not running on RPi 3B Tecko 1 257 07-Sep-2023, 04:09 PM
Last Post: uglymusic
  Problem running MPD with 1.2.9 firmware koko6969koki 1 437 09-Mar-2023, 05:33 PM
Last Post: agent_kith
  Wireless connection jsp 5 1,888 20-Mar-2021, 03:17 AM
Last Post: PeteCallaghan
  [SOLVEDRunning Snakeoil as FANLESS Minimserver hkphantomgtr 23 5,559 27-Oct-2020, 09:53 AM
Last Post: agent_kith
  Connection Error Connection to myMPD failed. Trying to reconnect. luiswu 12 4,664 11-Jun-2020, 07:17 PM
Last Post: Snoopy8



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 612
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 149
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 70
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 52
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 195
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 41
Announcing Snakeoil Measurements 1.3.0
Last Post: agent_kith
26-Feb-2024 10:02 PM
» Replies: 94
» Views: 4137
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 69
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 365
RoonBridge (64 bit only)
Last Post: scrarfussi
15-Feb-2024 08:26 PM
» Replies: 3
» Views: 4125

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.