| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 1600 online users. » 0 Member(s) | 1596 Guest(s) Applebot, Baidu, Bing, Google
|
| Latest Threads |
Sem som quando reinicia
Forum: Other
Last Post: di0lh0
34 minutes ago
» Replies: 12
» Views: 166
|
after install Linux Lite ...
Forum: Installing Linux Lite
Last Post: stevef
2 hours ago
» Replies: 9
» Views: 159
|
Problem updating lite 7.6...
Forum: Updates
Last Post: valtam
Yesterday, 11:52 PM
» Replies: 5
» Views: 357
|
ASUS x206HA black screen ...
Forum: Installing Linux Lite
Last Post: Doceal
11-10-2025, 09:25 AM
» Replies: 6
» Views: 854
|
time synchronization
Forum: Other
Last Post: LL-user
11-09-2025, 12:18 AM
» Replies: 1
» Views: 185
|
Series to Series Upgrade ...
Forum: Linux Lite Software Development
Last Post: berrywhitetiger
11-07-2025, 05:43 AM
» Replies: 4
» Views: 4,212
|
Regarding the minimum sys...
Forum: Installing Linux Lite
Last Post: valtam
11-02-2025, 11:41 PM
» Replies: 3
» Views: 429
|
Can't test LinuxLite 7.6 ...
Forum: Installing Linux Lite
Last Post: valtam
11-02-2025, 05:51 AM
» Replies: 23
» Views: 7,335
|
My worries
Forum: Installing Linux Lite
Last Post: stevef
11-01-2025, 03:44 PM
» Replies: 1
» Views: 241
|
nstall Updates - Could n...
Forum: Updates
Last Post: stevef
10-30-2025, 10:21 PM
» Replies: 5
» Views: 516
|
|
|
| colourfind (either version of python, or pypy) |
|
Posted by: freemedia2018 - 04-05-2019, 04:06 PM - Forum: Scripting and Bash
- No Replies
|
 |
usage:
find | colourfind
or:
find | colourfind -d
(which adds the date)
since I'm new here, I expect that you wouldn't simply trust this code without some kind of vetting. It happens to be perfectly alright, but that isn't the point.
Code: #!/usr/bin/env python3
# coding: utf-8
#### license: creative commons cc0 1.0 (public domain)
#### http://creativecommons.org/publicdomain/zero/1.0/
proginf = "colourfind, mar 2019 mn"
import sys
import os
from datetime import datetime
from sys import stdin, stdout
from os import popen
from os import name as osname
def colortext(f, b ):
if f == None:
f = 0
if b == None:
b = 0
n = "0"
if f > 7:
n = "1"
f = f - 8
if f == 1:
f = 4 ## switch ansi colours for qb
elif f == 4:
f = 1
if f == 3:
f = 6
elif f == 6:
f = 3
if b > 7:
b = b - 8
if b == 1:
b = 4
elif b == 4:
b = 1
if b == 3:
b = 6
elif b == 6:
b = 3
return "\x1b[" + n + ";" + str(30+f) + ";" + str(40+ b ) + "m"
def padleft(p, s, c=7):
if type( c ) == int:
c = (c, 0)
else:
c = c.split()
return colortext(int(c[0]),
int(c[1])) + (" " * s + str(p))[-s:] + colortext(7, 0)
def padright(p, s, c="5 0"):
if type( c ) == int:
c = (c, 0)
else:
c = c.split()
return colortext(int(c[0]),
int(c[1])) + (str(p) + " " * s)[:s] + colortext(7, 0)
def colourdc(c, f="p"):
if type( c ) != int: c = c.lower()
if c in [0, "0"]:
return "9 0"
cb = "0"
if len(f.split()) > 1:
cb = "1"
if c in [2, ".bat", ".com", ".exe"]:
return "10 " + cb
if c in [1, ".lnk"]:
return "11 " + cb
if c in [".tgz", ".tar.gz", ".gz", ".zip", ".7z"]:
return "4 " + cb
if c in [".fig", ".alex", ".py", ".fig.py", ".rose"]:
return "2 " + cb
if c in [".ogg", ".mp4", ".mpeg", ".mpg", ".mp3", ".webm", ".odt",
".odp", ".pdf"]:
return "3 " + cb
if c in ["."]:
return "8 " + cb
if c in [".jpg", ".jpeg", ".gif", ".bmp", ".pbm", ".pgm", ".ppm",
".tga", ".xbm", ".xpm", ".tif", ".tiff", ".png", ".svg", ".svgz",
".mng", ".pcx", ".mov", ".mpg", ".mpeg", ".m2v", ".mkv", ".ogm",
".m4v", ".mp4v", ".vob", ".flc", ".avi", ".fli", ".flv", ".gl",
".dl", ".xcf", ".xwd", ".yuv", ".cgm", ".emf", ".ogv"]:
return "13 " + cb
if c in [".htm", ".html", ".txt", ".js", ".php"]:
return "14 " + cb
return "7 " + cb
dates = ""
cw = 80
sizel = 0
dates = dates[1:]
from os import listdir
from os import path
for fp in stdin:
fp = fp[:-1]
b = []
bfext = 0
bp = 0
bfs = 0
bfiletime = 19
try:
paths = 1
for p in chr(0):
p = fp
paths = 1
fext = path.splitext(fp + path.sep + p)[1]
if len(p) > bfext:
bfext = len(p)
try:
fs = int(os.path.getsize(fp))
bfs = 0
except:
fs = ""
try:
if os.access(fp, os.X_OK):
fext = 2
if os.path.isdir(fp):
fext = 0
if os.path.islink(fp):
fext = 1
except:
pass
try:
filetime = str(
datetime.fromtimestamp(os.path.getmtime(fp)))[0:19]
except:
filetime = ""
tab = chr(9)
pld = 1
tab = chr(9)
bfile = tab + tab + padleft(str(filetime), bfiletime)
try:
flag = (sys.argv[1] == "-d")
except:
flag = 0
if not flag:
bfile = ""
print(str(fs) + " " + tab + padright(p,
bfext, colourdc(fext, p)) + bfile)
except OSError:
pass
|
|
|
| Hi, I probably won't ever use the 64bit version |
|
Posted by: freemedia2018 - 04-05-2019, 02:26 PM - Forum: Introductions
- Replies (6)
|
 |
I'm well aware of the advantages of 64bit, but I still use some 32bit hardware (sometimes) and don't generally bother with 64bit anything.
I do a lot of distro customisation, and going 64bit would double the work across everything. 64bit ARM is a different matter. The next architecture I bother with will more likely be ARM than 64bit x86.
That may mean that Linux Lite is not an option for long, or I may develop a schema/spec for it and make "Linux Lite Retro" or something of that nature, with updated binaries (not a guarantee, just a remote possibility.) Either way I have a fair amount of computing experience, which I'm willing to share here (as well as learn more about Linux Lite.)
|
|
|
| disable start job vbox.add service |
|
Posted by: circular_mews - 04-05-2019, 02:20 PM - Forum: Other
- Replies (3)
|
 |
Hi,
I've been duckduckgoing and have found no results on how to disable a service that slows down boot up time on my laptop with linux-lite and apparently I don't need it as I'm not using virtualbox. The console shows after:
Started LSB disk temperature monitoring
A start job is running for vbox.add service 5m 20s
and it takes about 3 or 4 minutes for this to run its course.
I did a removal (not complete removal) of any software I could find related to virtualbox in Synaptic, such as virtualbox-guest-utils, virtualbox-guest-x11, and virtualbox-guest-dkms but that didn't help.
I then went to Session and Startup and unticked vboxclient under application startup but that didn't help. I then edited /etc/xdg/autostart/vboxclient.desktop and changed the following line to false
Code: X-GNOME-Autostart-enabled=false
Didn't help.
Apparently it isn't a service that I see under
Code: service --status-all
so I'm out of ideas.
|
|
|
| Troubleshooting Software Update |
|
Posted by: BewilderedBob - 04-04-2019, 02:32 PM - Forum: Installing Linux Lite
- Replies (3)
|
 |
I'm a retired IBM Systems Engineer with over 50 years of IT experience but unfortunately none in Linux. However in a triumph of ignorance and superstition over science and technology Linux Lite (LL) was successfully installed running under Virtual Box (VB) 5.2.26 on my PC running Win 10. The screen desktop appears OK but when SOME menu items (software updates) are selected NOTHING HAPPENS - nada, no launch, no err msg !! Rotten thing to do to a nice man like me. What am i doing wrong ?? How is this fixed and why is there no err msg ? (luckily one of the games will run so that i can stay busy while waiting for your response).
The version of LL is (i think) 2.6/3.x/4.x (64-bit)
REALLY Bewildered Bob
|
|
|
| Stand alone Lite ??? |
|
Posted by: WallusWormus - 04-04-2019, 09:34 AM - Forum: Other
- Replies (1)
|
 |
How can I make Lite my stand alone system? I want to dump Windows 7 and run Lite only. Also, I don't want to boot from the install disk which seems to be mandatory for Lite, at least I don't get a boot option upon startup. The only way I can boot to Lite is if I change my BIOS boot options to boot from my start up disk but then I don't get the option to boot to Windows
Any help will be appreciated.
Thanks
|
|
|
| VLC Media Player won't play dvd's? |
|
Posted by: colin - 04-02-2019, 02:43 PM - Forum: Other
- Replies (4)
|
 |
It was really easy and fast installing Linux Lite 4.4 and everything as you would expect works except i can't get the VLC Media Player to play my DVD's? Can't think what to do now except ask for help from forum members.
|
|
|
|