exo-preferred-applications
Saturday, 27 September 2014
Changing Default Applications (Gnome 3)
To change your preferred browser/file manager/email program in GNOME 3, type into a terminal.
Friday, 18 July 2014
Star Wars: The Old Republic - Start Script
#! /bin/bash
unset OPTIMUS_PREFIX
# In case of an optimus-enabled laptop, the use of primusrun is recommended over optirun.
# Don't uncomment this line in any other case.
# OPTIMUS_PREFIX="primusrun"
# If you store the script anywhere else than the game directory, change this to the path of your launcher.exe
LAUNCHER_COMMAND="wine launcher.exe"
#LAUNCHER_COMMAND="wine explorer /desktop=name,1920x1080 launcher.exe"
# Set up a new wineprefix in the game directory, and reduce debugging to improve performance.
# If you don't like it there, or running the script from somewhere else, change it.
# Please note that WINEARCH=win32 is REQUIRED.
export WINEARCH=win32
export WINEDEBUG=-all
export WINEPREFIX="$( pwd )/wineprefix"
# Check if we have swtor_fix.exe, and download it if we don't.
# This can be placed anywhere on the system, and must be run parallel to the game.
if [ ! -f swtor_fix.exe ]; then
wget -O swtor_fix.exe https://github.com/aljen/swtor_fix/raw/master/swtor_fix.exe
fi
# Start it parallely.
wine swtor_fix.exe &
# Give it a sec to fire up.
sleep 1
# Install and set up components in wineprefix.
# Since that command does nothing if already ran, we need no checks there.
winetricks msvcp90=native d3dx9_36 vcrun2008 msls31 winhttp
# Here we come!
$OPTIMUS_PREFIX $LAUNCHER_COMMAND
# Since wait for swtor_fix.exe to finish.
wait $!
# Clean up after ourselves.
unset WINEARCH
unset WINEPREFIX
unset WINEDEBUG
unset OPTIMUS_PREFIX
# In case of an optimus-enabled laptop, the use of primusrun is recommended over optirun.
# Don't uncomment this line in any other case.
# OPTIMUS_PREFIX="primusrun"
# If you store the script anywhere else than the game directory, change this to the path of your launcher.exe
LAUNCHER_COMMAND="wine launcher.exe"
#LAUNCHER_COMMAND="wine explorer /desktop=name,1920x1080 launcher.exe"
# Set up a new wineprefix in the game directory, and reduce debugging to improve performance.
# If you don't like it there, or running the script from somewhere else, change it.
# Please note that WINEARCH=win32 is REQUIRED.
export WINEARCH=win32
export WINEDEBUG=-all
export WINEPREFIX="$( pwd )/wineprefix"
# Check if we have swtor_fix.exe, and download it if we don't.
# This can be placed anywhere on the system, and must be run parallel to the game.
if [ ! -f swtor_fix.exe ]; then
wget -O swtor_fix.exe https://github.com/aljen/swtor_fix/raw/master/swtor_fix.exe
fi
# Start it parallely.
wine swtor_fix.exe &
# Give it a sec to fire up.
sleep 1
# Install and set up components in wineprefix.
# Since that command does nothing if already ran, we need no checks there.
winetricks msvcp90=native d3dx9_36 vcrun2008 msls31 winhttp
# Here we come!
$OPTIMUS_PREFIX $LAUNCHER_COMMAND
# Since wait for swtor_fix.exe to finish.
wait $!
# Clean up after ourselves.
unset WINEARCH
unset WINEPREFIX
unset WINEDEBUG
Sunday, 2 February 2014
Fixing the hddtemp Permissions Problem (Linux Mint)
To enable the CPU panel applet to display the hddtemp reading type into a console...
sudo chmod u+s /usr/sbin/hddtemp
Thursday, 23 January 2014
FSTAB Backup (Linux Mint 15)
# /etc/fstab: static file system information.
#
#
#Entry for /dev/sda2 :
UUID=a8df1bf1-348e-488d-8b4b-85cf697508a2 / ext4 errors=remount-ro 0 1
#Entry for /dev/sda3 :
UUID=af6228ed-ecf6-4ba5-b41b-1ee2ad3131d1 /home ext4 defaults 0 2
#Entry for /dev/sdb5 :
UUID=6A96512F11008B6C /media/Archives ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb1 :
UUID=717C64040B1AAA85 /media/Audio ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb7 :
UUID=22B1D8761652CD13 /media/Audiobooks ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb2 :
UUID=4DA5A9D475203A97 /media/Comics ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb3 :
UUID=5738040F13AA6DB3 /media/Encrypted ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sda6 :
UUID=7DD730AC7EBC41BA /media/Storage ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb6 :
UUID=3D6F4D094E05930A /media/Television ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb8 :
UUID=485D903C5ED3DE8B /media/Video ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/mapper/cryptswap1 :
/dev/sda5 none swap sw 0 0
#UUID=86612f93-9212-4b65-a84e-5e2246958ee6 none swap sw 0 0
#UUID=4911e8b6-c879-459b-8d47-3a5d2dbe19fb none swap sw 0 0
#
#
#Entry for /dev/sda2 :
UUID=a8df1bf1-348e-488d-8b4b-85cf697508a2 / ext4 errors=remount-ro 0 1
#Entry for /dev/sda3 :
UUID=af6228ed-ecf6-4ba5-b41b-1ee2ad3131d1 /home ext4 defaults 0 2
#Entry for /dev/sdb5 :
UUID=6A96512F11008B6C /media/Archives ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb1 :
UUID=717C64040B1AAA85 /media/Audio ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb7 :
UUID=22B1D8761652CD13 /media/Audiobooks ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb2 :
UUID=4DA5A9D475203A97 /media/Comics ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb3 :
UUID=5738040F13AA6DB3 /media/Encrypted ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sda6 :
UUID=7DD730AC7EBC41BA /media/Storage ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb6 :
UUID=3D6F4D094E05930A /media/Television ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb8 :
UUID=485D903C5ED3DE8B /media/Video ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/mapper/cryptswap1 :
/dev/sda5 none swap sw 0 0
#UUID=86612f93-9212-4b65-a84e-5e2246958ee6 none swap sw 0 0
#UUID=4911e8b6-c879-459b-8d47-3a5d2dbe19fb none swap sw 0 0
Wednesday, 1 January 2014
Fixing Skype 64 Bit (Linux Mint 16)
I kept having this problem installing the 32 bit version of Linux in Linux 64 bit: pusleaudio would never show up is the sound options. To fix it, I ended up installing the i386 version of libpulse
apt-get install libpulse0:i386
It may also be worth trying to run Skype from a terminal using...PULSE_LATENCY_MSEC=30 skype
If it works, try adding...Exec=/usr/bin/env PULSE_LATENCY_MSEC=30 /usr/bin/skype %U
... to the 'exec' line in the .desktop file.
Monday, 1 July 2013
Solving the Permissions HDD Fault (Linux Mint 15)
To solve the permissions fault when using the XFCE sensors applet, type into a console...
sudo chmod u+s /usr/bin/hddtemp
... and reboot.
Saturday, 22 June 2013
Backup Mirrors for /etc/pacman-mirrors-conf (Manjaro)
## ## /etc/pacman-mirrors.conf ## ## Branch Pacman should use (stable, testing, unstable) Branch=stable ## Generation method ## 1) rank - rank mirrors depending on their access time ## 2) random - randomly generate the output mirrorlist Method=rank ## Specify to use only mirrors from a specific country ## Disabled by default OnlyCountry=United_Kingdom ## Input mirrorlist directory MirrorlistsDir="/etc/pacman.d/mirrors" ## Output mirrorlist OutputMirrorlist="/etc/pacman.d/mirrorlist"
Thursday, 20 June 2013
Setting Up NTP Server on Manjaro
Create a text file containing the following....
Save, and as sudo, run ntp.sh script.
#!/bin/bash
systemctl stop ntpd.service
ntpd -qg
ntpd -qg
ntpd -qg
ntpd -qg
systemctl start ntpd.service
hwclock -w
... and name file ntp.sh and make executable.
Edit /etc/ntp.conf and under '# Associate to public NTP pool servers; see http://www.pool.ntp.org/', replace the three lines of 'server 0.pool.ntp.org' with...
server 0.uk.pool.ntp.orgN.B. The 'uk' is for United Kingdom. Insert your own region.
server 1.uk.pool.ntp.org
server 2.uk pool.ntp.org
server 3.uk pool.ntp.org
Save, and as sudo, run ntp.sh script.
sudo ./ntp.shTo sync the clock every time your computer boots run...
sudo systemctl enable ntpdN.B. Alternately, replace 'systemctl start ntpd.service' in the top script with the above command.
Tuesday, 18 June 2013
Fixing the "RTMP ReadPacket failed" error in iPlayer
To fix "RTMP_ReadPacket, failed to read RTMP packet header" error, try typing the following into a terminal:
More info on the cause here.
get_iplayer --prefs-add --rtmp-tv-opts="--swfVfy http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf"... and then use as normal.
More info on the cause here.
Friday, 3 May 2013
Installing 34 bit Skype on 64 bit Xubuntu
First, install 32 bit architecture, then update:
sudo dpkg --add-architecture i386Then add necessary Canonical repo and install Skype.
sudo apt-get update
sudo add-apt-repository "deb http://archive.canonical.com/
$(lsb_release -sc) partner"
sudo apt-get update && sudo apt-get install skype
Sunday, 28 April 2013
Making Skype Work on Xubuntu 13.04 with nVidia Drivers
1. Install Skype from .deb from main website.
2. Rename the 'skype' executable found at /usr/bin to /usr/bin/skype-bin
3. Create the text file /usr/bin/skype and copy and paste the following information and save.
#!/bin/sh
export LD_PRELOAD=/usr/lib/i386-linux-gnu/mesa/libGL.so.1
exec /usr/bin/skype-bin
4. Set 0775 permissions on /usr/bin/skype
sudo chmod 0775 /usr/bin/skype
Saturday, 9 March 2013
Backup fstab (Manjaro)
First create the respective folders in /media
#
# /etc/fstab: static file system information
#
#
UUID=547fd19a-66be-46b0-8323-815b7adfeb76 / ext4 defaults 0 1
UUID=8978dd1d-1867-4ced-ad55-87e3e939dc4c swap swap defaults 0 0
UUID=fe17cdfb-7b6e-4cd8-8eb1-016daedae010 /home ext4 defaults 0 1
#added mount points
/dev/sda4 /media/backup ntfs defaults 0 0
/dev/sdb1 /media/audio ntfs defailts 0 0
/dev/sdb2 /media/archives ntfs defaults 0 0
/dev/sdb5 /media/television ntfs defaults 0 0
/dev/sdb6 /media/comics ntfs defaults 0 0
/dev/sdb7 /media/video ntfs defaults 0 0
Wednesday, 23 January 2013
Reinstalling GRUB2 (Manjaro)
Load up a live distro of Manjaro. Determine the partition where Manjaro is installed. (Example /dev/sda2).
blkidMount the partition:
mount /dev/sda5 /mntMount the swap:
swapon -a
Subscribe to:
Posts (Atom)