Go to Post Hall of Fame FIRST Team 254 has arguably helped more teams become good than any other team in FIRST. I don't think they need a lecture on helping their opponents. - Karthik [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 34 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 23-07-2013, 16:01
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Best Linux Distribution (for a small screen)?

Alright guys and gals, I have a thin client desktop computer that I want to use on my train set to program my arduino. It has 512mb internal memory, so there isn't a whole ton I can do with it (the arduino Sketch software doesn't even work on it).

I have a 4gb flashdrive. I've been experimenting with different Linux distibutions but they've all been too high screen resolution for my tiny monitor (it is 640X480).

Can anyone recommend a Linux distribution with support for a very small screen (or just any Linux distribution in particular)?

Thanks in advance,
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.

Last edited by jwallace15 : 23-07-2013 at 16:31. Reason: Got the correct screen resolution
Reply With Quote
  #2   Spotlight this post!  
Unread 23-07-2013, 17:00
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,392
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

Look at http://distrowatch.com/ and you can dig into different distros to see what's available.

I'd suggest Knoppix, since I've had it run on some very old systems. DamnSmallLinux (DSL) (50MB), MINT and Puppy are also very small in size.

Good luck!
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-07-2013, 17:16
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

There's lubuntu:
https://wiki.ubuntu.com/Lubuntu

Quote:
With 512MB of RAM, you don't need to worry much.

The default "Desktop" installer requires 384-800 MB of RAM (depending on selected options.) If you have problems, please use the "Alternate" installer.
I've seen that installed on 2GB of storage and how much it needs will depend on what you install.

If you can't get your desktop or window manager to detect 640x480 boot in text mode and modify the xorg.conf to use the VESA driver. Just exactly what you need to do depends a bit on your choice of Linux. I will spare you an explanation of the good old 'modeline's.

There's also Puppy Linux (as noted above):
http://puppylinux.org/wikka/MinimumSystemRequirements

I've seen that installed on 512MB.

Of course there's actually ThinStation:
http://www.thinstation.org/

Which is basically Linux for a thin client (there are other choices for this but it's not clear to me you want a thin client as much as resource challenged Linux computer).

I will refrain from sending you my Slackware book. At some point 'back in the day' 32MB of RAM and several hundred MB of storage would have been 'excessive'. In that retro 8bit gaming sort of way.

I wonder if you really need a GUI (graphical user interface) or if you could get away with using 'curses' for a TUI (text user interface). If you did you could get this down to less than 2MB of storage and around 8MB of RAM. For example:
http://reboot.pro/topic/5796-linux-on-a-floppy-disk/

Last edited by techhelpbb : 23-07-2013 at 17:41.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-07-2013, 23:16
Anupam Goli's Avatar
Anupam Goli Anupam Goli is offline
PCH Q&A co-founder/Scouting Mentor
AKA: noops
FRC #1648 (G3 Robotics)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Atlanta, Georgia
Posts: 1,242
Anupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

DSL is a very popular distro to run on small systems. I have also heard of Puppy being very efficient in use as well. If you do have a little bit of power, Debian runs great on very low resource machines. The Raspberry pi comes with a stripped down version of Debian, if you want to look into that.
__________________
Team 1002: 2008-2012
Team 1648: 2012-2016
Georgia Tech Class of 2016
Reply With Quote
  #5   Spotlight this post!  
Unread 24-07-2013, 08:27
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Best Linux Distribution (for a small screen)?

Quote:
Originally Posted by Wing View Post
I have also heard of Puppy being very efficient in use as well.
Quote:
Originally Posted by techhelpbb View Post
There's also Puppy Linux (as noted above):
http://puppylinux.org/wikka/MinimumSystemRequirements
Quote:
Originally Posted by Foster View Post
I'd suggest Knoppix, since I've had it run on some very old systems. DamnSmallLinux (DSL) (50MB), MINT and Puppy are also very small in size.
While I was waiting for replies I tried out Puppy Linux, but the screen resolution is too big. I'm more worried about the screen resolution than the system requirements. I'll try DSL.
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-07-2013, 10:03
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

You need to edit xorg.conf and force it to use the proper driver and video modes if xorgwizard is configuring your monitor in a way that is not practical for you. Odds are that your hardware is returning a list of video modes that includes some that are really not a great idea and every attempt X-Windows makes (on each distro you've tried) returns the higher resolution so it figures that makes the best sense to use. You need to inform it otherwise. This actually happens often but usually you can either get into text mode to force it to stop or navigate in the GUI to lower the resolution to something workable. Changes to the login pages or otherwise sometimes require additional tweaks. This used to happen quite often with incorrect DDC (display data channel) information exchanged between the monitors (in your case probably integrated into the system) and the video subsystem. This can easily be made worse with the complexity of various Linux video card drivers, combinations of displays and video subsystems and system chipset issues.

If I have a few minutes I will toss a copy of PuppyLinux (or whatever distro you actually would prefer to use) into a virtual machine and see if I can't give you an example or some instruction. I am swamped right now so it might not be today.

It would help if you could provide the make and model of the thin client hardware you are messing with and specify a Linux distro you actually would prefer to use if the display would work correctly for you. That way I can figure out what sort of video chipset is probably integrated into it and what needs to be done. Given your display is 640x480 I suspect there is a very good chance I can make this work but generic instructions would be painful because of subtle differences.

Last edited by techhelpbb : 24-07-2013 at 10:25.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-07-2013, 12:24
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,565
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

Quote:
Originally Posted by jwallace15 View Post
I have a 4gb flashdrive. I've been experimenting with different Linux distibutions but they've all been too high screen resolution for my tiny monitor (it is 640X480).
It would help if you would better describe the symptoms of the problem you are having. Can you not get 640x480 to run or are there display artifacts? Are the GUI elements too large which makes the the GUI effectively unusable?
Reply With Quote
  #8   Spotlight this post!  
Unread 25-07-2013, 10:01
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

Preference of distro? If I don't hear from you I will just explore the process for PuppyLinux and 640x480 with the VESA driver.
Reply With Quote
  #9   Spotlight this post!  
Unread 25-07-2013, 10:24
Anupam Goli's Avatar
Anupam Goli Anupam Goli is offline
PCH Q&A co-founder/Scouting Mentor
AKA: noops
FRC #1648 (G3 Robotics)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Atlanta, Georgia
Posts: 1,242
Anupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

Quote:
Originally Posted by jwallace15 View Post
...
I have a 4gb flashdrive. I've been experimenting with different Linux distibutions but they've all been too high screen resolution for my tiny monitor (it is 640X480).

Can anyone recommend a Linux distribution with support for a very small screen (or just any Linux distribution in particular)?
...
Seems like your problem here is with your x configuration file, or you need a different window manager/desktop environment. Have you considered installing one of the distros without a gui, and then using the internet to install fluxbox? Fluxbox is a very light window manager and should work on all displays. If not, find either your xorg.conf (the default in debian-based distros), or run X -configure to confirm your driver settings.
__________________
Team 1002: 2008-2012
Team 1648: 2012-2016
Georgia Tech Class of 2016
Reply With Quote
  #10   Spotlight this post!  
Unread 25-07-2013, 10:49
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

It's going to be hard to find something that looks good at 640x480, but this might work.
Reply With Quote
  #11   Spotlight this post!  
Unread 25-07-2013, 16:04
jwallace15's Avatar
jwallace15 jwallace15 is offline
What am I going to do with my life?
AKA: Wally
FRC #0068 (Truck Town Thunder)
Team Role: College Student
 
Join Date: Aug 2012
Rookie Year: 2013
Location: Michigan
Posts: 435
jwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud ofjwallace15 has much to be proud of
Re: Best Linux Distribution (for a small screen)?

For everyone who has asked about me not being able to get 640X480 resolution to work, I'm sure I can if I had a bigger monitor to change the settings to in the first place. However, I don't have any other monitor that I can use to change the setting to.

I'll look into the x config file.
__________________
J Wallace IV
Truck Town Thunder
Just a college student now.
Reply With Quote
  #12   Spotlight this post!  
Unread 25-07-2013, 16:31
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

Quote:
Originally Posted by jwallace15 View Post
For everyone who has asked about me not being able to get 640X480 resolution to work, I'm sure I can if I had a bigger monitor to change the settings to in the first place. However, I don't have any other monitor that I can use to change the setting to.

I'll look into the x config file.
I tried installing PuppyLinux in an Oracle VirtualBox VM on my RedHat 6 Workstation Lenovo T61 laptop. I gave the virtual machine 512MB of my RAM and 4GB of storage on my SATA SSD. I had some interesting issues getting it to install and clearly the process for installing without booting into the GUI mode of the 'LiveCD' needs a bit of work. I was able to install the frugle hard drive installation by setting a kernel parameter at boot, going directly to a prompt without X-Windows and then doing this a way that from the 1990s might be the normal but that's a bit too much to lay on you as a student.

So currently I am using the 'Lubuntu i386 (Intel 386) Alternate Install' ISO that installs from a TUI, with ext4 file system, guided partitioning, 512MB of RAM onto a 4GB fixed size VMDK virtual disk. I have yet to have to type a single command at a prompt. However the ISO is much larger and this install will take longer. I can't be sure when you say 'flash drive' if you mean a plug-in USB flash drive. If you do mean a plug-In USB flash drive Google the directions to install Lubuntu from a USB flash drive (you can still use the ISO below if you substitute it). Just in case you mean that you don't just want to install from the USB flash drive, but actually want to use the USB flash drive as the Lubuntu drive, you need to Google the directions for pendrive Lubuntu. In one case you are installing from the USB flash drive to an internal storage device (so the USB flash drive contains the ISO that would normally be a 'LiveCD') in the other Lubuntu runs on the USB drive and there probably is no internal storage (Lubuntu is actually installed on the USB flash drive).

Here's where you get the ISO:
https://help.ubuntu.com/community/Lubuntu/Alternate_ISO
Click the button for "PC 32bit Standard image disk" or use Torrent.

In my testing outlined below I have created 4GB of virtual internal storage (looks like a hard drive to Lubuntu) and I have mounted the ISO linked above as a virtual machine CD-ROM drive via Oracle VirtualBox. Therefore I can boot to that virtual CD-ROM by pressing F12 in the Oracle VirtualBox boot screen (BIOS).

After installing Lubuntu the guided partitioning put about 500MB of the 4GB virtual drive space into a swap partition.
The guided partitioning left about 42% of the remaining 3.5GB (that's about 1.4GB free).
Chromium works with NAT to my wireless card to my cellular phone hot spot immediately.

Now that Lubuntu is installed without much modification or tweaking...

At this point it wants to install about 140MB of updates to the 13.04 release (so that will consume space).
I got Perl 5.14.2 and Python 2.7.4 by default just doing the install and no GCC (so that would consume space).
Java/OpenJDK is not installed by default, but you do get sed and awk (so Java would consume space).

Running 'Task Manager' shows 150MB of the 512MB of physical RAM in use during the updates.
With AbiWord (word processor) I consumed a mere additional 7MB of physical RAM.
With Chromium (Internet browser) I consumed 20MB more of physical RAM.

Under 'Preferences' in 'Monitor Settings' I reduced the installation from 1024x768 screen resolution to 640x480.
Chromium is still usable (you'll be scrolling a lot if you don't adjust the zoom).
Abiword is still usable.
With LXTerminal in the GUI the text is *really* tiny so I changed the font size to 12 point.

Lubuntu has xrandr installed.
So xrandr can set the X-Windows screen resolution from the command prompt.
That will not impact the login screen.

I noticed that the vi(m) editor in my copy of lubuntu is acting strange on this install so I am using nano.

I am not going to completely hand hold with this....if you need that let me know:

1. You need to create a Bash 4 script that looks like this:

Quote:
!#/bin/sh
xrandr --output default --primary --mode 640x480
It is possible on your system that 'default' should be something else but let's hope not.
I called that vga.sh and put that in: /usr/share/
I did a: chmod 775 vga.sh on that Bash 4 script.
I created that script while I was elevated to root privilege using: sudo su

2. You need to tell lightdm to run that script when it starts:
In: /etc/lightdm/
Edit the file: lightdm.conf

Add this line to the bottom:

Quote:
display-setup-script=/usr/share/vga.sh
That will impact the login screen.

3. Now we need to force the normal X-windows and window managers:

You need to edit some files in: /etc/xdg/lxsession/
There are 3 folders in Lubuntu 13.04 for different install types they are:

/Lubuntu/
/Lubuntu-Netbook/
/Lubuntu-Nexus7/

Each of those 3 folders has a text file called autostart.
Edit each of those autostart files and add this to the bottom:

Quote:
@xrandr --output default --primary --mode 640x480
Notice how similar it looks to the script in instruction 1?
You need to add that to all 3 autostart files (one in each directory).

4. Reboot and that should get your GUI working.

Now you'll no doubt wonder....but if the GUI doesn't work in the first place....

You can use CTRL-ALT-F2 or in VirtualBox usually 'right CTRL'-F2 to get to one of the other TTY sessions.

Got all that?
Clear as mud right?
If you can't follow let me know.

After completing the System Updates listed above and tweaking a few more things I ended up with around 1GB of the 4GB virtual disk free for whatever I like. Wow I can like....fit 1/100,000th of the database I was working on while doing this into that *huge* space free

Oh BTW:

If you use: xrandr -q
At the command prompt even while the X-Windows display is all messed up at the wrong resolution the line below the line that starts with "Screen 0" should start with the name of your adapter. In my virtual machine that's 'default'. Other common things are 'DVI-0', 'DVI-1'...

One last set of tweaks let's alter grub so that you get a text grub boot menu and the standard text from boot instead of the potentially unreliable graphical splash screen before the GUI login.

You need to go into: /etc/default/
You need to edit: grub

Things to change:
1. Comment out the lines that start with GRUB_HIDDEN by starting them with a hash: #
2. Comment out this line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
3. Uncomment out this line: GRUB_TERMINAL=console

When you are done save that.
Then execute this command: sudo update-grub
That will rebuild the grub menu and when those changes hit everything up to the login screen will be 80x25 text.
Since you can see the grub menu you can now easily alter the boot options or recover.

The line: GRUB_TIMEOUT=10 is how long the boot menu will display if you want to alter it.
Just make sure to redo the update-grub if you make more changes.

Whatever the outcome of all this please let us all know when you have the chance.
Enjoy your Linux computing. These sorts of weird things are still not quite plug and pray.




Yet another footnote:

I've been asked why /usr/share for the vga.sh script?

/etc/profile.d is more a Bash shell thing. If xrandr is not running, say because X-Windows is not started when Bash executes, the script will do nothing.

In Lubuntu there's a Bash script at /etc/X11/xinit/ called xinitrc but no xinitrc.d directory by default.
I could have suggested patching xinitrc instead of creating a stand alone shell script, but then if you wanted to tinker
with other resolutions changes or testing you'd have to restart X-Windows and with xrandr that is not necessary.
There is nothing stopping someone from creating a script in Python, Perl or Bash to do these changes for you.
There is nothing stopping someone from creating shell scripts like 800x600.sh, 1400x900.sh or 720.sh or 1080.sh.
Of course xrandr supports multiple monitors so you could create scripts like this to switch to different display arrangements on the fly.

Also what happens after you force X-Windows to use 640x480 and someone trys to use the GUI utility to change resolution? Well firstly usually before it commits the change it lets you see the change to see if this actually works. It times out. So if you do this let it time out and hopefully you can see the GUI at the previous resolution of 640x480 again. If not and you accidently accept a new and broken screen resolution in the GUI: CTRL-ALT-F2 or in Oracle VirtualBox 'right CTRL'-F2 to a TTY session then run the /usr/share/vga.sh shell script manually. That will fix your screen immediately. However, if you wanted, you could also force a reboot from that TTY session and, of course, /usr/share/vga.sh will be run anyway during the next startup process. I do not advise you to just force a hard reboot like turning the power off then on. Do a proper shut down or risk a chance meeting with your new best friend 'fsck'.

If you really want to get to use 'modeline' and something similar to xorg.conf on Lubuntu 13.04 then follow the directions at this link:
http://samuelmartin.wordpress.com/20...lubuntu-12-04/

I confirmed those work as well. In case someone is allergic to xrandr or if for some strange reason Lubuntu is not discovering that your video subsystem actually supports a certain screen resolution or refresh rate. Frankly I think that for a beginner (newb) xrandr is probably much more powerful without the risk that they will break X-Windows in some confusing way (or accidentally turn up the refresh rate on the display until something harmful happens). Keep in mind that several GUI tools might try to edit 10-monitor.conf if they find it or some GUI utilities that you might want to edit xorg.conf, now that you have it, might not work because they were designed for the xorg.conf that was in /etc/X11/ in days gone by. It might still be possible that putting any xorg.conf in the original location and the original format could simply stop X-Windows from starting even if that file is actually correct (this was an issue I've seen before in Ubuntu and I do not plan to test it at this time).

If you do choose to make a 10-monitor.conf for your unusual video subsystem consider downloading the free version of:
http://www.entechtaiwan.com/util/ps.shtm

Which in Windows will allow you figure out the correct modeline for your 7" Lilliput 16:10 aspect ratio monitor or your
slightly odd 200lb Sony Trinitron RGB monitor with the BNC inputs and no DDC support.

Have fun! Let me know when this all makes sense to you cause kernel driver coding is next

Last edited by techhelpbb : 26-07-2013 at 13:43.
Reply With Quote
  #13   Spotlight this post!  
Unread 26-07-2013, 16:59
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

My ability to edit my previous post has timed out.
So....

If you wanted to boot in text mode using Lubuntu here's how:

You can either:

Edit grub in /etc/default/
Then add (this should look similar to a line I suggested commenting out above):
Quote:
GRUB_CMDLINE_LINUX_DEFAULT="text"
Then do a: sudo update-grub

or

Create a text file called lightdm.override in /etc/init/
In that text file just type:
Quote:
manual
Either has the exact same result: lightdm will not start so the GUI will not start
I prefer the first choice because it more closely resembles how this trick works
when you use gdm in other versions of Ubuntu. You should not do a: startx
If you execute the 'startx' command the screen will likely go blank.
If you do that you'll likely need to CTRL-ALT-F1 back to the session that contained the command.
It'll be hung at: "Loading extension GLX"
There will be nothing suspicious in your Xorg.0.log in: /var/log/
This is because 'startx' is waiting for lightdm and you did not start lightdm
lightdm is providing things like the GUI login prompt which ends up with PAM etc.
Just press CTRL-C it'll drop you back to the command prompt.

Note: If you *really* want to get LXDE to start with: startx
When you have Internet access do a: sudo apt-get install lxde-common
Edit: ~/.xinitrc
And put in:
Quote:
exec startlxde
However, be warned now...this trick is a bad idea at 640x480 you'll have a hard time with the logout window.
Also, you'll immediately notice that you get LXDE generic not what you expect from Lubuntu.

So now...

When you boot you'll get a command line version of the login.
So what if you do this and then want to get the GUI?

Well you have the following choices:

To start the GUI: sudo service lightdm start
To stop the GUI: sudo service lightdm stop

Remember CTRL-ALT-F2 from the last post?
Well CTRL-ALT-F7 is usually where the GUI is.
CTRL-ALT-F1 is where you will start if you boot into text mode.
You can easily switch back and forth.

Does that command to start and stop lightdm seem like a lot to remember?

No problem:

Text edit the file environment in /etc/
To the PATH string and inside the quotes add the following: :/usr/share

Now create a shell script called 'gui' in /usr/share.
Copy and paste this into it:
Code:
#!/bin/bash

guicmdline=$(echo $1 | tr "[:upper:]" "[:lower:]")

echo ""
case "$guicmdline" in
  start)
    echo "Starting lightdm GUI..."
    sudo service lightdm start
    ;;
  stop)
    echo "Stopping lightdm GUI..."
    sudo service lightdm stop
    ;;
  *)
    echo "Correct command usage:"
    echo ""
    echo "  gui start"
    echo "  gui stop"
    ;;
esac
echo ""
When you are done save that shell script.
Execute a: chmod 775 /usr/share/gui

Now....
If you type: gui
You will get something like this:
Quote:
user@lubuntu13:/$ gui

Correct command usage:

gui start
gui stop
So at any prompt regardless of sudo you can start the GUI like this:
gui start

Why would you want to boot to a command prompt?
Well you wouldn't need a GUI on a small computer running Lubuntu on a robot.
However, you might occasionally want the GUI when it's in the pit.
It's not like you might be able to run this on something with like a BeagleBoard.
No never....Shhh....512MB of physical RAM and 4GB of storage.....where have I seen that specification before....

Last edited by techhelpbb : 26-07-2013 at 17:54.
Reply With Quote
  #14   Spotlight this post!  
Unread 26-07-2013, 23:33
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

Sorry for coming in late, but crunchbang. Best distro I know for almost anything.
__________________
All opinions are my own.
Reply With Quote
  #15   Spotlight this post!  
Unread 27-07-2013, 08:50
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,620
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Best Linux Distribution (for a small screen)?

The problem that exists here is that the LiveCD is generally a GUI.
The LiveCD will boot a GUI with the screen scrambled.
The core X-Windows system all the distro share does not know his system needs 640x480.

So either the LiveCD has to allow him to set the resolution to 640x480 even though it thinks he can use a higher resolution.

or

It needs to offer a text or TUI install.

You can install Linux entirely from the command prompt but that requires fair amounts of knowledge and the process has fallen out of favor because users find it off putting.

Lubuntu offers the 'Alternate Install' as does Ubunutu (but his system resources are limited).
RedHat offers a TUI install.

It *might* be possible on the LiveCD to use the CTRL-ALT-F2 trick to bypass the scrambled GUI and then use xrandr as I showed above to fix the GUI until the next reboot. Not all distros use xrandr like that so one would have to test. Either way the long instructions above hopefully offer inspiration.

Crunchbang has the Debian TUI under the boot option 'Text Install' if the grub boot loader graphics work right on the LiveCD.
If the boot menu does not work try 'setup' or 'install' at the command prompt.
PuppyLinux will be a harder install because the only installer he has is GUI based.

The following is how to get PuppyLinux to let you reconfigure the display at boot:


When you first see the PuppyLinux logo almost immediately after the BIOS that screen will wait 5 seconds by default.
That is the boot menu.
Press F2 *before* the 5 second time out.
Type: puppy pfix=nox (this is the kernel parameter I mentioned before above)
This will force PuppyLinux to boot to a command prompt instead of the GUI.
When you get to the keyboard template menu...this will take longer than Lubuntu...
Just hit ENTER at the keyboard template menu as I suspect you have a US English keyboard and speak American English.
Now you have the command prompt which is merely a hash: #
At the command prompt type: xorgwizard (remember I mentioned that before?)
If that does not work or complains like this:
mv: cannot stat '/usr/lib/xorg/modules/drivers/displaylink_drv.so': No such file or directory
Here's something silly just do: xorgwizard (yes do it again)
Oh look....a menu.....silly xorgwizard.
Select '< vesa >' on the right.
Now it'll probe your hardware and we know that is probably not working correctly.
Scroll up and down with the arrow keys.
If you see a line that ends with: CRT 640x480
Select that line with: ENTER
On the next menu you should automatically have the highlighted option:
640x480x16 Unconfirmed MAXIMUM for monitor, OK for card
Select that with: ENTER
Now it'll drop you to the command prompt with a red ominous warning.
Ignore the warning.
Type: startx
The PuppyLinux GUI will start in 640x480.
Now you can use the graphical installer.
The graphical installer is the icon labelled: install
That installer stinks because it ends showing you the grub configuration file.
Also it tends to disappear like it is done when it is not.
You will know when you are done because it'll show you the grub configuration file.
What it really barely mentions is you need to put grub on the internal drive.
You need to save that text file first (it's the configuration for grub which is not yet installed).
Grub is on the 'Menu' under: System
Select: simple
Select: standard
Now there is more nonsense, it'll pop-up a menu that says::
Puppy Linux users: If running from the Universal Installer....
It tells you to press OK.
Really? Cause there is no default provided that I saw.
I gave this menu the following to make it happy:
/dev/sda1 (this will also be the line shown in the grub configuration file and that the installer will *constantly* mention)
Now select: MBR (it's at the bottom of the menu)
Now do a reboot.
When it asks you to save do not save.
You will boot up to a text boot menu.
You will see text boot messages.
It has no login screen so you go directly to the desktop.

If the installed desktop is the wrong resolution.
CTRL-ALT-F1 to get the command prompt session running the GUI.
Press CTRL-C to stop GUI hard (it sends sigint).
If it asks for a login do:
Username: root
Password: woofwoof (not kidding)
Now...
Start: xorgwizard
Look up at the last set of directions to fix this like on the LiveCD.
Once you finish xorgwizard.
Restart the GUI with: startx
If all is well it should stay well after a reboot.
There you go.

When I was done with this:
PuppyLinux 5.2.8 - Full Install consumed 445MB of my 4GB free (much better than LUbuntu but I did not optimize Lubuntu).
It booted a full 17 seconds slower than Lubuntu for me.
'LXTask Manager' shows 37MB of 503MB of physical RAM used (which seems to be half of what Lubuntu was using).
Abiword still consumes 7MB of RAM while running.
I did the simple network install.
Selected Chromium as a browser that downloaded 37MB more.
As that ran I noticed that physical RAM usage crept up to 42MB (still less than Lubuntu).

Perl 5.10.1 was installed by default.
You get no Python or PHP by default (so Lubuntu already gave you Python as default).
You do get GAWK and GNU SED.

With Chromium installed and just opened to the SSL version of the Google search engine page, PuppyLinux is now using 90MB of RAM.
At that point PuppyLinux is consuming actually just a few MB less RAM than Lubuntu.
However, once I stopped Chromium the physical memory usage dropped back to 44MB.
Interesting that Chromium consumes 40MB of physical RAM on PuppyLinux and 27MB on Lubuntu.

I did notice that PuppyLinux does not shutdown properly in my VirtualBox machine. Not sure why.
Great it corrupted the ext2 virtual partition I installed it on.
Puppy ate it's own tail again!
Reinstalling with ext4.
Noticed I still get a text boot menu, but not a text boot log...in fact now I get blank splash screen.
Ah I see the grub configuration file in: /boot/grub/
Called: menu.lst
Never got written by the reinstall. So if this happens to you either figure it out or reinstall and install grub *before* you run the install.
Course if the drive is not partitioned first you have to partition it, then install grub, then run the install.
That makes perfect sense (sarcasm) because the install will detect a completely blank drive and start partitioning but not install grub.
Yes this install method is not nearly as clean as Lubuntu.
It did start and is using similar amounts of physical RAM and storage.
Going to repeat this and see if it self-destructs again.
With PuppyLinux reinstalled on an ext4 partition and Chromium installed and working it now oddly only consumed 30MB of physical RAM.
Clearly something was going wrong before because now it reboots without eating itself.

How to boot CrunchBang 11 into the TUI installer:

You'll notice that in CrunchBang 11 Waldorf the LiveCD boot menu does not have a text boot option.
So I booted into LiveCD GUI on a system where that works.
Then I opened a terminal and did a: find / -name initrd.gz
There are 2 of those found.
One in: /live/image/install/gtk/ (the one that runs the GUI install from that menu).
Another in: /live/image/install/ (the Debain TUI installer that was not added to the menu).
To find the syslinux boot menu configuration files do a: find / -name live.cfg
You'll find that live.cfg file in: /live/image/isolinux/
So if you look at the menu configuration files in: /live/image/isolinux/
If you look at the install.cfg file you'll see this line:
append initrd=/install/gtk/initrd.gz video=vesa:ywrap,mtrr vga=788 quiet file=/cdrom/install/crunchbang.cfg
That needs to be edited to start the other hidden installer.
When you boot(reboot) move the selector down to the 'Install' option WITHOUT pressing ENTER.
Press TAB.
When you press the left arrow the line will print again but the cursor will move left.
Do that till you get to the character to the left of /gtk/ in that line.
Then BACKSPACE to delete: gtk/
Now press ENTER.
Surprise there's the Debain TUI.
Follow it through.
I used the simple guided partitioning.
I let it write grub to the internal virtual hard drive.
When done it boots into a grub menu in a low graphics mode.
When that times out or you select CrunchBang it will load the GUI.
If the GUI is at the wrong resolution and scrambled.
Repeat the trick from Lubuntu...
Use: CTRL-ALT-F2
Do a: sudo su
In: /etc/default/
Edit (vi(m) is wonky for me in CrunchBang as well, but nano works): grub
Comment out the line that tells the boot to be 'quiet' by starting it with a hash: #
Add the line: GRUB_TERMINAL=console
The text option we used with Lubuntu to boot into command prompt first won't work here.
Save that.
Do a: update-grub
Now those changes are commited to the boot menu.

The following is the polite way to set the resolution of openbox....

To edit the Openbox configuration it is in: /etc/xdg/openbox/
Edit: autostart
Add: xrandr --output default --primary --mode 640x480 (note the @ is missing from the same line in Lubuntu)

Problem is that CrunchBang 11 gdm/slim login does not really give you an easy way to call xrandr unlike lightdm.
So back to the dreaded >modelines<

In: /usr/share/X11/
In a file called: 10-monitor.conf
Here's an xorg.conf with the VESA driver and 640x480 CRT settings.
Code:
Section "Monitor"
  Identifier   "Monitor0"
  ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
EndSection

Section "Device"
  Identifier   "Device0"
  Driver       "vesa"
EndSection

Section "Screen"
  Identifier   "Screen0"
  Device       "Device0"
  Monitor      "Monitor0"
  DefaultDepth  24
  SubSection   "Display"
    Depth       24
    Modes      "640x480"
  EndSubSection
EndSection
Now save that.
You don't need to chmod it.
Reboot and there you go, the gdm/slim login and openbox will be 640x480.
Now note if you do this 10-monitor.conf like this you can only use 640x480.
Not even xrandr will give you any other choices.
This is good and bad.
Good because no more accidental changes to something that will not work.
Bad because you might want to change for some reason.
If you want more generic modelines look here:
http://linuxhelp.150m.com/resources/modelines.htm

At this point you have now limited the boot menu and boot process to 80x25 text.
The login and GUI to 640x480 graphics.
If you reboot that should stay as such.

Immediately after installation I followed the post installation script.
I let it install: cups, java and libreoffice.
I stopped it at the prompt about the more unusual choices.
I started with a little more then 2GB of my 4GB of internal drive space used.
After all those files were installed it consumed another 800MB.
There is now roughly 1GB free (just like Lubuntu).
The system is using roughly 80MB - 84MB of 512MB of physical RAM (a little less than Lubuntu).
I could have avoided installing 'LibreOffice' as CrunchBang came with 'Abiword' but I was curious.
As before running 'Abiword' consumed about 7MB of physical RAM.
I chose to install Chromium but somehow ended up with IceWeasel.
IceWeasel is using initially 70MB of physical RAM while displaying the CrunchBang start page.

After all the updates from the post installation script I have:
Perl 5.14.2, Python 2.7.3, OpenJDK 1.6.0_27, AWK, GNU SED.
I got no PHP.

Last edited by techhelpbb : 28-07-2013 at 05:16.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi