All credits goes to Yann-R that wrote here the following command:
brew cask install `brew cask list`
Works perfectly.
Note that you can also run this command using the -f flag (force) to force installation.
- Tal Kain
brew cask install `brew cask list`
import readline
readline.write_history_file('/home/user/current_history')
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADEI can use the comment match and add a comment to this line:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE -m comment --comment "SOME_COMMENT"
# iptables-save | grep -v SOME_COMMENT | iptables-restore
High-performance NVIDIA GPUs, each with 1,536 CUDA cores and 4GB of video memoryWhile writing this post, I used the g2.2xlarge machine, but you can also use the 8xlarge.
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgradeWhen prompted, choose the "install maintainer package...."
sudo apt-get install -y linux-image-extra-virtual linux-headers-`uname -r`3. Configure the xorg-edgers PPA
sudo add-apt-repository ppa:xorg-edgers/ppa4. Install the NVIDIA's CUDA repository package
sudo apt-get update
OUTPUT_PATH=/tmp/cuda.deb
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb -O ${OUTPUT_PATH}
dpkg -i ${OUTPUT_PATH}
sudo apt-get update
sudo apt-get install cuda
sudo nvidia-smi -a
cd /usr/local/cuda/samples/1_Utilities/deviceQuery
make
./deviceQuery
root@ubuntu:~# modprobe carl9170
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.10.17/modules.dep.bin'
modprobe: ERROR: ../libkmod/libkmod-index.c:821 index_mm_open() magic check fail: d00dfeed instead of b007f457
"depmod creates a list of module dependencies, by reading each module
under /lib/modules/version and determining what symbols it exports, and
what symbols it needs. By default this list is written to modules.dep
in the same directory. If filenames are given on the command line,
only those modules are examined (which is rarely useful, unless all
modules are listed)."
Hey everyone,
Several weeks ago I had to compile gdb and strace to a target device that runs on ARM (EBI).
This time, instead of cross compile it, I decided to use my favorite way - schroot environment.
I had the pleasure of using schroot on my old system - an Ubuntu 12.04 desktop, and this was the first time I needed to use it on my current Ubuntu 14.04 system.
The problem started after creating the schroot environment and trying to use it.
As you will see in the following lines, I tried getting into the environment and got an error:
root@ubuntu:/home/talkain# schroot -c ubuntu-armel -u talkain
W: line 11 [ubuntu-i386] union-type: Configuration key name ‘union-type’ is not a permitted name.
W: line 11 [ubuntu-armel] union-type: Configuration key name ‘union-type’ is not a permitted name.
W: Failed to change to directory ‘/home/talkain’: No such file or directoryI: The directory does not exist inside the chroot. Use the --directory option to run the command in a different directory.W: Falling back to directory ‘/’
(ubuntu-armel)talkain@ubuntu:/$
This was weird, since the directory exist, I had permissions to this directory (this is my home directory) and this was a fresh installation of this environment.
After digging a little bit, I found an excellent start point here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675189
So I looked at the schroot's config file:
/etc/schroot/chroot.d/sbuild-ubuntu-armel:[ubuntu-armel] description=ubuntu-armel groups=sbuild,root root-groups=sbuild,root # Uncomment these lines to allow members of these groups to access # the -source chroots directly (useful for automated updates, etc). #source-root-users=sbuild,root #source-root-groups=sbuild,root type=file profile=sbuild union-type=overlayfs file=/var/lib/schroot/tarballs/ubuntu-armel.tgzSo in order to solve this error, I changed the schroot configuration file's parameter called "profile" from sbuild to default as follows:profile=sbuildtoprofile=defaultand now I can get into the schroot environment with no issues.
Hope this helps,
- Tal Kain
Bluetooth: Firmware file "ath3k-1.fw" not found
ath3k is the Linux Bluetooth driver for Atheros AR3011/AR3012 Bluetooth chipsets.I saw this blog post: http://hexwave.blogspot.com/2011/04/debian-6-with-atheros-3011-ath3k-usb.html
$ dlocate linux-firmware | grep -i ath3or you can find it by searching for ath3k:
linux-firmware: /lib/firmware/ath3k-1.fw
$ dlocate ath3k-1.fwI just ran:
linux-firmware: /lib/firmware/ath3k-1.fw
# apt-get install linux-firmware