baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

February, 2016

GNU/Linux Elementary OS “Freya”: custom brightness indicator, exponential brightness control

http://ubuntuhandbook.org/index.php/2013/09/add-brightness-control-elementary-os/ this works nicely, however my personal taste is to have more precise control over low brightness settings. therefore i’ve adjusted the script to do exponential brightness. the two changed functions are in /opt/extras.ubuntu.com/indicator-brightness/indicator-brightness, changes in bold: def set_brightness(brightness):     bbb = int(brightness) * int(brightness) / max_brightness     subprocess.call([‘pkexec’,’/usr/lib/gnome-settings-daemon/gsd-backlight-helper’,’–set-brightness’,”%s” % bbb])     create_menu(ind)   def get_curr_brightness():     c = […]

Installing rEFInd: dual-boot GNU/Linux and Mac OSX

In Mac OS X, do: 1) Download + extract refind binaries from http://www.rodsbooks.com/refind/getting.html 2) chmod +x refind-install 3) ./refind-install You will then have a nice boot selector at startup. In case you are changing your fileVault settings under OSX, you might need to re-install rEFInd, which is no problem though, as it will automatically detect […]

GNU/Linux Elementary OS “Freya”: mounting a mac osx filevault 2 encrypted volume

****EL CAPITAN CURRENTLY NOT SUPPORTED**** https://github.com/libyal/libfvde/wiki/Mounting apt-get install automake autopoint aclocal libtool git clone https://github.com/libyal/libfvde.git cd libfvde ./synclibs.sh ./autogen.sh ./configure ./make install ldconfig to get the wipekey: apt-get install sleuthkit mmls /dev/sda # Note down the offset for “Recovery HD” and use that for the next command: fls -r -o 1991877544 /dev/sda | grep -i […]

GNU/Linux Backup tools: Timeshift, KBackup, rsync, Grsync, bup, rsnapshot, ddrescue, CloneZilla

Some backup tools you might like: Timeshift http://thesmallsecurity.weebly.com/linux/create-system-restore-points-for-ubuntulinux-mint-using-timeshift (This is what i’m currently using on my Laptops) https://aur.archlinux.org/packages/timeshift/ CloneZilla: http://clonezilla.org/clonezilla-live.php (This is what i’ve been using previously for my Laptops) rsnapshot (CLI) – uses rsync but keeps multiple revisions using hardlinks: http://rsnapshot.org/ (this is what i’m using to back up my servers) KBackup (GUI) will […]

Elementary OS “Freya”: Using touchegg to add three-finger-swipes between desktop spaces

check /usr/share/touchegg/touchegg.conf and /home/user/.config/touchegg/touchegg.conf to add the three-finger swipe between desktop spaces i’m using <gesture type=”DRAG” fingers=”3″ direction=”LEFT”> <action type=”SEND_KEYS”>Super+Left</action> </gesture> <gesture type=”DRAG” fingers=”3″ direction=”RIGHT”> <action type=”SEND_KEYS”>Super+Right</action> </gesture> this usually works everywhere except on empty desktop, to also make it work on the desktop, check this out: http://www.hongkiat.com/blog/elementary-os-luna-tips/ (key is running nautilus!)

MacBook Pro 9,1: Installing NVIDIA drivers on GNU/Linux Elementary OS without getting blank screen

To install proprietary NVIDIA driver: sudo add-apt-repository ppa:xorg-edgers/ppa sudo apt-get update sudo apt-get install nvidia-340 nvidia-settings sudo nvidia-xconfig sudo reboot — To go back to Nouveau driver #stop lightdm apt-get –remove purge nvidia* apt-get install –reinstall xserver-xorg-video-nouveau apt-get install –reinstall xserver-xorg-core update-grub reboot sudo apt-get install nouveau-firmware sudo dpkg-reconfigure xserver-xorg — Also have a look […]

Elementary OS “Freya” on Mid-2012 MacBook Pro 15″ – Improving battery life …

this blog entry is about elementary OS. #!/bin/bash echo ‘1’ > ‘/sys/devices/system/cpu/intel_pstate/no_turbo’; # disable turbo CPU speeds echo ‘1’ > ‘/sys/devices/system/cpu/intel_pstate/min_perf_pct’; # set minimum CPU speed echo ‘100’ > ‘/sys/devices/system/cpu/intel_pstate/max_perf_pct’; # set maximum CPU speed to 100% Screenshot: GNOME Power Statistics: #!/bin/bash echo ‘min_power’ > ‘/sys/class/scsi_host/host0/link_power_management_policy’; echo ‘1500’ > ‘/proc/sys/vm/dirty_writeback_centisecs’; echo ‘0’ > ‘/proc/sys/kernel/nmi_watchdog’; echo […]

Previous Posts Next posts