Skip to content

u/piluke

In this archive from Dec 2012 to Jul 2019

1
posts
33
comments
0
media
86
score

Honestly I've had so much trouble with optimus and nouveau versus nvidia that I would avoid any mention of optimus. Recently I've built a desktop which runs great with an nvidia GPU but I've never been able to get my laptop to run well under optimus.

Mind you, the laptop is a few years old so the newer GPUs will probably have better support but personally I cannot recommend optimus.

1 points

I don't remember where I found it but this script lists all orphan packages:

#!/bin/bash

# This script is designed to help you clean your computer from unneeded packages. The script will find all packages that no other installed package depends on. It will output this list of packages excluding any you have placed in the ignore list. You may browse through the script's output and remove any packages you do not need.

# Enter groups and packages here which you know you wish to keep. They will not be included in the list of unrequired packages later.
ignoregrp="base base-devel"
ignorepkg=""

# Temporary file locations
tmpdir=/tmp
ignored=$tmpdir/ignored
installed=$tmpdir/installed

# Generate list of installed packages and packages you wish to keep.
echo $(pacman -Sg $ignoregrp | awk '{print $2}') $ignorepkg | tr ' ' '\n' | sort | uniq > $ignored
pacman -Qq | sort > $installed

# Do not loop packages you are keeping
loop=$(comm -13 $ignored $installed)

orphans=""

# Check each remaining package. If package is not required by anything and is not on your ignore list, print the package name to the screen.
 for line in $loop; do
	check=$(pacman -Qi $line | awk '/Required By/ {print $4}')
	if [ "$check" == 'None' ]; then
		echo -en "\e[01;37m$line\e[00m"
		reason=$(pacman -Qi $line | awk '/Install Reason/')
		reason=${reason#'Install Reason'}
		if [ "$reason" == ' : Installed as a dependency for another package' ]; then
			echo -e " : \e[01;31mInstalled as a dependency, but no longer needed\e[00m"
			orphans+=$line"\n"
		else
 			echo -e " : \e[01;32mExplicitly installed\e[00m"
		fi
		desc=$(pacman -Qi $line | awk '/Description/')
		echo "${desc#'Description'}"
	fi
done

echo -e "# Orphans List"
if [ "$orphans" != "" ]; then
    echo -e $orphans
else
	echo "# No Orphans"
	echo ""
fi

# Clean up $tmpdir
rm $ignored $installed
4 points

You do know you can modify the output from i3status and display it in i3bar? Albeit with bash, sans colors. I'm sure python or another more advanced language could handle the colors just fine.

I used the following script to prepend the Bitcoin exchange rate:

#!/bin/bash
# Prepends custom info to i3status

i3status | while :
do
	read line
	echo "$(btc-exrate) | $line" || exit 1
done

If anyone wants the exchange rate fetching code:

#!/bin/bash
# Fetches the BTC exchanges rate from blockchain.info

file="/home/luke/.cache/BTCrate"

touch $file
cat $file

rand="$(printf '%d' \'$(head -c1 /dev/urandom))"
if [[ $(expr $rand % 10) == 0 ]]; then
	p=$(curl -s http://blockchain.info/q/24hrprice)
	if [[ $(echo "$p" | wc -l) -le 2 ]]; then
		echo "$p" > $file
	else
		echo "unknown" > $file
	fi
fi

It's only updated roughly every tenth run because fetching the price takes a few seconds and ain't nobody got time for that.

7 points

I've got a sort of followup question. Whenever someone asks for file syncing programs, i never see sparkleshare mentioned even though i've been using it for nearly a year and find it quite satisfactory. Is there anything negative about it that i should be aware of?

2 points

Gaming on Linux is fine, it's just a matter of finding games that support us. For graphics cards nearly everything Nvidia will run fine except Optimus. I can't speak for AMD.

Mint and Fedora will do fine. Personally I recommend Mint because I like Cinnamon a bit better, but if you'll be using something different, then either distro will be fine. The main difference between the two is the Red Hat base versus the Ubuntu base, but it doesn't matter too much for a beginner.

2 points

I do not have any experience with Abaqus, Solidworks, or AutoCAD, but from what I've heard, engineering software is not well supported under Linux at the moment. If I were you, I would keep around your current computer or install Windows for dual-booting, instead of solely using Linux.

If all you're using Linux for is web surfing, document editing, and gaming, you'll be fine. For engineering, you'll likely need Windows, but that doesn't mean Linux is not a viable option.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.