UberStudent Forums

Help and Community for Users of Uberstudent
Return to UberStudent Home Page
It is currently Fri Oct 19, 2018 5:32 am

All times are UTC




UberStudent Logo Shirt
Hey! You can wear this UberCool UberStudent Logo Shirt

Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed Sep 16, 2015 5:09 am 
Offline
UberStudent Founder and Lead Developer
User avatar

Joined: Sun Nov 11, 2012 8:54 am
Posts: 958
Location: UberStudent Headquarters
Thanks for your kind comments. :)

Regarding the user picture, as you can see, it's working well for me.

Try reducing the image to 48x48 pixels.

Then, make sure your username berker owns the file, and then change permissions to 644 without sudo:

Code:
sudo chown berker home/berker/.face
chmod 644 $HOME/.face

Attachment:
face2.png
face2.png [ 896.92 KiB | Viewed 6752 times ]

One other possible discrepancy: You mentioned that the default user image is "nobody.png."

Which one of these two?
Attachment:
nobody.png
nobody.png [ 1.38 KiB | Viewed 6752 times ]

Attachment:
epicurus.png
epicurus.png [ 10.27 KiB | Viewed 6752 times ]

_________________
UberStudent Must Become Self-Sustaining. If UberStudent and my dedicated support of it has benefited you, it's important to make a donation. Thanks!

The UberStudent Headquarters:
    * Mobo: MSI 870-G45
    * Processor: AMD Phenom II X4 3.4GHz
    * RAM: G.SKILL 8GB DDR3 1600
    * Graphics: MSI NVIDIA GeForce GTX 750 Ti
    * Drive: OCZ Vertex SSD
    * Case: Rosewill ATX Mid Tower
    * Monitors: 2 x Dell UltraSharp
    * With UberStudent 4.3 Development Build
You should build your own computers, too!


Top
 Profile  
 

Get an UberCool UberStudent Shirt!

UberStudent Logo Shirt
UberStudent Logo Shirt by uberstudent
See other Uberstudent T-Shirts
PostPosted: Sat Sep 19, 2015 2:42 am 
Offline
UberStudent Forum Helper

Joined: Fri Oct 18, 2013 12:48 pm
Posts: 54
Location: University of South Florida, Tampa, FL
Unfortunately tried both but still didn't work :( and it's "nobody.png" nobody, not even epicurus :(

_________________
Berker Peköz
PhD Student in Electrical Engineering
University of South Florida at Tampa


Top
 Profile  
 
PostPosted: Sat Sep 19, 2015 8:14 pm 
Offline
UberStudent Founder and Lead Developer
User avatar

Joined: Sun Nov 11, 2012 8:54 am
Posts: 958
Location: UberStudent Headquarters
Please open a terminal and one line at a time run:
Code:
sudo apt-get install apt-show-versions
apt-show-versions mdm

Does the result contain the following?:
Code:
1.8.3+epicurus uptodate

If not, run the Update Manager and reboot. If unsolved, continue.

In the terminal run:
Code:
sudo mdmsetup

Does it appear like the following?
Attachment:
mdmsetup.png
mdmsetup.png [ 73.69 KiB | Viewed 6710 times ]

If not, then the theme does not support the .face file. This won't work.

If it does appear as shown above, then before exiting mdmsetup go to Options > Default session and make sure Run Xclient Script is selected.

If it does use the default mdm theme, hit Alt+F2 and run:
Code:
gksu geany /usr/share/mdm/html-themes/uberstudent/index.html

Lines 137 through 140 should show:
Code:
            var picture = document.createElement('img');
                picture.setAttribute('class', "user-picture");
                picture.setAttribute('src', "file:///home/"+username+"/.face");
                picture.setAttribute('onerror', "this.src='file:///usr/share/pixmaps/faces/epicurus.png';");

Is that the case? If so then this should be working! Note line 139 where the theme is commanded to read the .face file from your home directory. If everything is as it should be for this to work, "nobody.png" would not even be read.

If not working, you can try to force the matter:

Code:
sudo cp /home/berker/.face /usr/share/pixmaps/faces/berker.png
sudo chmod 644 /usr/share/pixmaps/faces/berker.png

And then on line 139 of the above index.html file replace the line with one containing the path to the image you just copied over:
Code:
                picture.setAttribute('src', "file:///usr/share/pixmaps/faces/berker.png");

Then reboot. Beyond the above, I'm stumped. :ugeek:

_________________
UberStudent Must Become Self-Sustaining. If UberStudent and my dedicated support of it has benefited you, it's important to make a donation. Thanks!

The UberStudent Headquarters:
    * Mobo: MSI 870-G45
    * Processor: AMD Phenom II X4 3.4GHz
    * RAM: G.SKILL 8GB DDR3 1600
    * Graphics: MSI NVIDIA GeForce GTX 750 Ti
    * Drive: OCZ Vertex SSD
    * Case: Rosewill ATX Mid Tower
    * Monitors: 2 x Dell UltraSharp
    * With UberStudent 4.3 Development Build
You should build your own computers, too!


Top
 Profile  
 
PostPosted: Sun Sep 20, 2015 7:34 pm 
Offline
UberStudent Forum Helper

Joined: Fri Oct 18, 2013 12:48 pm
Posts: 54
Location: University of South Florida, Tampa, FL
Stephen Ewen wrote:
Please open a terminal and one line at a time run:
Code:
sudo apt-get install apt-show-versions
apt-show-versions mdm

Does the result contain the following?:
Code:
1.8.3+epicurus uptodate

If not, run the Update Manager and reboot. If unsolved, continue.

In the terminal run:
Code:
sudo mdmsetup

Does it appear like the following?
Attachment:
mdmsetup.png

If not, then the theme does not support the .face file. This won't work.

If it does appear as shown above, then before exiting mdmsetup go to Options > Default session and make sure Run Xclient Script is selected.

If it does use the default mdm theme, hit Alt+F2 and run:
Code:
gksu geany /usr/share/mdm/html-themes/uberstudent/index.html

Lines 137 through 140 should show:
Code:
            var picture = document.createElement('img');
                picture.setAttribute('class', "user-picture");
                picture.setAttribute('src', "file:///home/"+username+"/.face");
                picture.setAttribute('onerror', "this.src='file:///usr/share/pixmaps/faces/epicurus.png';");

Is that the case? If so then this should be working! Note line 139 where the theme is commanded to read the .face file from your home directory. If everything is as it should be for this to work, "nobody.png" would not even be read.

If not working, you can try to force the matter:

Code:
sudo cp /home/berker/.face /usr/share/pixmaps/faces/berker.png
sudo chmod 644 /usr/share/pixmaps/faces/berker.png

And then on line 139 of the above index.html file replace the line with one containing the path to the image you just copied over:
Code:
                picture.setAttribute('src', "file:///usr/share/pixmaps/faces/berker.png");

Then reboot. Beyond the above, I'm stumped. :ugeek:


Everything was the same as expected except the onerror pointed to pixmaps/nobody.png instead of epicurus. Then I copied the png file and forced to use it using the last line of code you have stated, one step before being stumped, it worked. Now I see my face on the login screen :)

I wonder why it took me so long where everyone else's just works out of the box :D But thank you very much for your help :)

_________________
Berker Peköz
PhD Student in Electrical Engineering
University of South Florida at Tampa


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2

Click Here to Get Inexpensive UberStudent Discs


Click here to get UberStudent discs delivered to your mailbox
Delivered Directly to Your Mailbox!



All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group