| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 1047 online users. » 0 Member(s) | 1042 Guest(s) Applebot, Baidu, Bing, Google, Yandex
|
| Latest Threads |
Cant find up-to-date driv...
Forum: Video Cards
Last Post: justsumrandomcreture
Yesterday, 02:18 AM
» Replies: 0
» Views: 49
|
update error - PPA (stace...
Forum: Updates
Last Post: stevef
01-12-2026, 11:19 AM
» Replies: 1
» Views: 72
|
trying to update (while) ...
Forum: Installing Linux Lite
Last Post: stevef
01-11-2026, 08:27 AM
» Replies: 1
» Views: 75
|
Not Able to Install Googl...
Forum: Installing Software
Last Post: Orson_Yancey
01-09-2026, 06:50 PM
» Replies: 14
» Views: 540
|
Troubles installing 7.6 o...
Forum: Installing Linux Lite
Last Post: stevef
01-09-2026, 01:59 PM
» Replies: 3
» Views: 173
|
redshift-gtk
Forum: Other
Last Post: di0lh0
01-09-2026, 01:31 AM
» Replies: 1
» Views: 116
|
Linux Lite 7.8 RC1 Releas...
Forum: Release Announcements
Last Post: sqwuade
01-08-2026, 08:01 PM
» Replies: 23
» Views: 3,392
|
why that change in system...
Forum: Installing Linux Lite
Last Post: valtam
01-02-2026, 11:49 PM
» Replies: 3
» Views: 471
|
trouble updating os - PPA...
Forum: Updates
Last Post: stevef
01-02-2026, 05:59 AM
» Replies: 1
» Views: 245
|
Error when trying to inst...
Forum: Updates
Last Post: stevef
12-27-2025, 09:07 PM
» Replies: 1
» Views: 252
|
|
|
| Get-iplayer - Update Version 2.90 |
|
Posted by: newtusmaximus - 11-29-2014, 09:00 PM - Forum: Installing Software
- Replies (3)
|
 |
Currently installer only gives option for V2.83. This apparently no longer works with IPlayer. It says Version 2.90 is the new version to use. Is there a way to download and install this version with all the necessary dependencies. Tks.
|
|
|
| USB drive Storage Summary |
|
Posted by: anon222 - 11-29-2014, 08:37 AM - Forum: Scripting and Bash
- Replies (2)
|
 |
I've been working on this for some time.
This script will calculate USB drive Storage Summary
it's convinient for the USB sticks
It will display what type of files you have on your drive/stick and their size in KB and KiB
Save it anywhere you like, make executable, insert your USB Flash drive or drives and wait until they get auto-mounted.
Then start the script.
Code: #!/bin/bash
# store the devices list
list=/tmp/devices
# get a list of devices
devs=`ls -al /dev/disk/by-path/*usb*part* 2>/dev/null | awk '{print($11)}'`
if [[ ${?} != 0 || -z ${devs} ]]
then
zenity --warning --text "No USB Mounted!"
exit
fi
# Check with user to make sure they mounted usb stick, no use wasting time
zenity --question --title="REMEMBER" --text="Make sure your usb disk is mounted\nDo you want to continue?" --ok-label="Yes" || exit
# Initialize list and make sure it is empty
>$list
# Now get the info about our devices and put it in a list
for dev in $devs; do dev="${dev##*\/}";
echo "FALSE" >> $list;
echo -n "$dev" >> $list;
echo " " >> $list;
echo `cat /sys/block/${dev:0:3}/device/vendor 2>/dev/null` >> $list;
echo `cat /sys/block/${dev:0:3}/device/model 2>/dev/null` >> $list;
echo `lsblk 2>/dev/null | grep \`echo -E ${dev}\` |awk '{print($4)}' `B >> $list;
echo `lsblk 2>/dev/null | grep \`echo -E ${dev}\` |cut -c 38- ` >> $list;
echo `lsblk -o NAME,FSTYPE 2>/dev/null | grep \`echo -E ${dev}\`| awk '{print($2)}' ` >> $list;
echo `ls -l /dev/disk/by-uuid/ 2>/dev/null | grep \`echo -E ${dev}\`| awk '{print($9)}' ` >> $list;
done
# clear our array
devfs=()
# read in the array using a line tmp variable. This let's zenity see it line by line
while read -r line
do
devfs+=("$line")
done < /tmp/devices
#Display the main dialog
disktmp=$(zenity --list --text="Select your USB drive from the list and click OK to begin.\nThis will calculate what file types you have on the drive and how much space do they consume.\nThe speed of this process depends on the drive size and on the number of files." --radiolist --width=650 --height=350 --column="Pick" --column="Dev" --column="Vendor" --column="Model" --column="Size" --column="Mount" --column="FS" --column="UUID" "${devfs[@]}" --separator=":")
#Test for cancellation
if [[ ${?} != 0 || -z ${disktmp} ]]
then
exit 0
fi
# Extract device
disk=${disktmp:0:4}
# Start calculating file sizes and convert bytes to human readable
{
echo "#Please wait, this my take a while"
find "$(echo `lsblk 2>/dev/null | grep \`echo -E ${disk}\` |cut -c 38- `)" -type f -exec file -b '{}' \; -printf '%s\n' | awk -F , 'NR%2 {i=$1} NR%2==0 {a[i]+=$1} END {for (i in a) printf("%12u %s\n",a[i],i)}' | sed -e 's/^[ \t]*//' > ~/usbinform
echo "#Calculating File size"
awk '{print $1}' ~/usbinform | awk '{ sum=$1 ; hum[1024**3]="GiB";hum[1024**2]="MiB";hum[1024]="KiB"; for (x=1024**3; x>=1024; x/=1024){ if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x];break } if (sum<1024) {printf sum" bytes\n";break } }}' > ~/usbinform1
awk '{print $1}' ~/usbinform | awk '{ sum=$1 ; hum[1000**3]="GB";hum[1000**2]="MB";hum[1000]="KB"; for (x=1000**3; x>=1000; x/=1000){ if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x];break } if (sum<1000) {printf sum" bytes\n";break } }}' > ~/usbinform2
sed -i 's/\w*.//' ~/usbinform
} | zenity --progress --pulsate --auto-close || exit
# Display results
paste -d'\n' ~/usbinform2 ~/usbinform1 ~/usbinform|zenity --list --title="${disk}" --column="Size" --column="Size KiB" --column="Description" --width=800 --height=650 --ok-label="Save" --cancel-label="OK" --text="Drive ${disk} Storage Summary\n1KB=1000 bytes, 1KiB=1024 bytes"
#Test for cancellation
if [[ ${?} != 0 ]]
then
rm ~/usbinform
rm ~/usbinform1
rm ~/usbinform2
exit 0
fi
#Ask where to save our file
zNewData=$(paste -d'\t' ~/usbinform2 ~/usbinform1 ~/usbinform)
zSavePath=$(echo -n "$(zenity --file-selection --save --confirm-overwrite --filename="USBdrive_summary.txt" --title="Save USB drive info")")
#Test for cancellation
f [[ ${?} != 0 ]]
then
rm ~/usbinform
rm ~/usbinform1
rm ~/usbinform2
exit 0
fi
#save
echo -n "$zNewData" > "$zSavePath"
# Remove temp files
rm ~/usbinform
rm ~/usbinform1
rm ~/usbinform2
exit
|
|
|
| TiddlyWiki |
|
Posted by: Mike - 11-29-2014, 02:10 AM - Forum: Off Topic
- Replies (3)
|
 |
Not sure what everyone uses to keep notes but TiddlyWiki 5 is looking pretty nice. I've been using it for a while now - works great. I was a bit obsessed about finding the perfect notes app for a while and stuck with this for a few reasons:
- Single file is easy to backup
- TW has built-in encryption if you wish to use it
- Almost every OS has a browser so the file is always accessible
|
|
|
| New from Indiana |
|
Posted by: delmar - 11-29-2014, 12:55 AM - Forum: Introductions
- Replies (8)
|
 |
Hi
I just installed Linux Lite 2.0 32 bit
I thought I read somewhere that L L includes Google Chrome and Netflix. Do I need to add more software or did I download the wrong version of Linux Lite?
PS the ability to run Netflix well is just about the last reason I have to hold on to Windows in any form.
|
|
|
| Cannon ip3600 Printer |
|
Posted by: cypher000 - 11-28-2014, 03:02 PM - Forum: Printing and Scanning
- Replies (3)
|
 |
Hi Guy's. I had set up my printer, a Cannon Pixma ip3600 and expected it would work without problems. LL installed my printer without hesitation. But no matter what I do I cannot get it to print anything out for me. All I have got is a flashing oramge light telling me that something is not right. But what? In XP I was able to find that same photo and print it out beautifully, there being no orange fault light flashing and no hesitation either. Could it be the driver? Maybe I need to download a Linux driver? But which one and where from? If any member could point me in the right direction, then I would love to hear from them. Regards Walt.
|
|
|
| Windows-like file size info |
|
Posted by: anon222 - 11-28-2014, 03:35 AM - Forum: Scripting and Bash
- No Replies
|
 |
First let's make it clear
"1 KB" means 1024 bytes (as Windows would report it, traditional usage)
"1 KB" means 1000 bytes (as Linux would report it, IEC usage)
"1 KiB" means 1024 bytes (unambiguous, but perhaps unfamiliar terminology, IEC usage)
This is why, in Windows:
1 Terabyte hard drive is only 932 Gibabytes
CD filesize is 700 MB
and DVD isn't 4.7 GB
This script displays file sizes as Windows would.
You can select multiple files and with a right-click and call the Thunar Custom Action which is going to call this script.
It will not work with Directories.
Directions are in the script.
command:
Code: >/tmp/1024conv; >/tmp/1024convR;for file in %N; do echo "$file" >> /tmp/1024conv ;done; /usr/bin/1024convert %N
Code: #!/bin/bash
# Thunar custom action to calculate and display file sizes in Kib, MiB and Gib in a zenity list dialog
# Command for the thunar custom action:
# >/tmp/1024conv; >/tmp/1024convR;for file in %N; do echo "$file" >> /tmp/1024conv ;done; /usr/bin/1024convert %N
# This file should be saved in /usr/bin and named 1024convert
# and made executable (chmod +x)
# Mark all file types except directories
# File pattern *
# Cheers from Misko
# Calculate File Sizes in Kib, MiB and Gib and write the results in /tmp/1024convR
stat -c%s "$@" |
awk '{
sum=$1;
hum[1024**3]="GiB";
hum[1024**2]="MiB";
hum[1024]="KiB";
for (x=1024**3; x>=1024; x/=1024)
{
if (sum>=x)
{
printf "%.2f %s\n",sum/x,hum[x];
break
}
if (sum<1024)
{
printf sum" bytes\n";
break
}
}
}' > /tmp/1024convR
# store the file list
list=/tmp/1024list
# Merge the results from two files and display the result
paste -d'\n' /tmp/1024conv /tmp/1024convR > $list
# clear our array
LIST_Z=()
# read in the array using a line tmp variable. This let's zenity see it line by line
while read -r line
do
LIST_Z+=("$line")
done < /tmp/1024list
zenity --list --column=Name --column=Size "${LIST_Z[@]}" --width=800 --height=700 --title="1024 byte conversion" --text="File size displayed in the IEC standard"
# Remove temporary files
rm /tmp/1024list
rm /tmp/1024conv
rm /tmp/1024convR
![[Image: vLRxS2b.png?1]](http://i.imgur.com/vLRxS2b.png?1)
Windows-like file size info... Yeah, I know 
Spent my creativity on the scipt.
|
|
|
|