echo 0 > /sys/module/
Monday, December 29, 2014
Fix the tilde not working on MacBookAir 6,2 model on Ubuntu 14.04
Just add the following to /etc/rc.local and reboot
echo 0 > /sys/module/ hid_apple/ parameters/ iso_layout
echo 0 > /sys/module/
Friday, November 14, 2014
likewise-open (pbis open, power broker) install samba interop
Using the
net -U <username> ads join
will break PowerBrokers connection to AD. For example, you may find that your AD accounts may longer be able to SUDO.
The proper way to link SAMBA to AD via PowerBroker is this:
samba-interop-install --install
Follow the official documentation from
http://download1.beyondtrust.com/Technical-Support/Downloads/files/pbise/Manuals/PBIS_Samba_Integration_Guide_V8.0.pdf
Tuesday, November 4, 2014
Install Apache Maven 3.2 on Ubuntu
sudo add-apt-repository ppa:natecarlson/maven3
sudo apt-get update
sudo apt-get install -y maven3
echo "export PATH='/usr/share/maven3/bin':$PATH " >> ~/.bashrc
echo "export JAVA_HOME=/usr/lib/jvm/java-7-oracle " >> ~/.bashrc
Friday, October 31, 2014
Install Eclipse Luna on Ubuntu 12.04
Download latest Eclipse from
https://www.eclipse.org/downloads/
sudo vi /usr/share/applications/eclipse.desktop
https://www.eclipse.org/downloads/
tar xvzf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz
sudo mv eclipse /opt
sudo vi /usr/share/applications/eclipse.desktop
[Desktop Entry] Name=Eclipse Type=Application Exec=/opt/eclipse/eclipse Terminal=false Icon=/opt/eclipse/icon.xpm Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=Eclipse Luna
Thursday, October 30, 2014
Delete all files matching certain text
# Delete all .desktop files matching pattern pycharm
sudo find / -iname '*.desktop' -exec grep -l pycharm \{\} \; | xargs rm
sudo find / -iname '*.desktop' -exec grep -l pycharm \{\} \; | xargs rm
Monday, October 27, 2014
fixing installation of udf in firebird 2.5
We need to uncomment the line with value 'Restrict UDF'
For some reason it is supposed to be the default but it is not.
For some reason it is supposed to be the default but it is not.
Friday, October 24, 2014
Toggle between keyboard layouts in Debian Wheezy LXDE
echo '@setxkbmap -option grp:alt_shift_toggle "us,es"' | sudo tee -a /etc/xdg/lxsession/LXDE/autostart
Thursday, October 2, 2014
force remove a node from proxmox node tree
If you like me did not follow the rule of shuting down a server before removing the node from proxmox cluster, you will get a broken node in your node tree, to force remove it just do the following
From
http://undefinederror.org/how-to-reset-cluster-configuration-in-proxmox-2/
# rm -rf /etc/pve/nodes/HOSTNAME
From
http://undefinederror.org/how-to-reset-cluster-configuration-in-proxmox-2/
Tuesday, September 9, 2014
Solving problems with python-dev package installing hplip 3.14.6 on Ubuntu 12.04.4
I found that the latest update of Ubuntu 12.04.4 does not include precise-updates and this is necesary to install the latest hplip 3.14.6
Just add these lines to /etc/apt/sources.list
deb http://mx.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
Just add these lines to /etc/apt/sources.list
deb http://mx.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
Thursday, August 28, 2014
Solving problems with ncomputing in Ubuntu 12.04
Using synaptic package manager (sudo apt-get install synaptic) I was able to find the Xorg meta package which is listed as "Xorg" then by going to the "packages" menu at the top of synaptic, drop down, and select force version. I had my luck with the older version " 1:7.6 12ubuntu1 (precise) "
Synaptic will warn you that it is removing and installing a bunch of packages. That's just the downgrade of all the packages comprising the xorg meta. We end up with what's likely what the nc modules are built against, so everything seems to work fine.
Hopefully this helps until nc can update the installer.
from
https://ncommunity.force.com/forum/?q=906500000000AcOAAU&
Friday, August 22, 2014
Friday, August 15, 2014
Remove AppArmor from Ubuntu
sudo /etc/init.d/apparmor stop
sudo update-rc.d -f apparmor remove
sudo apt-get -y --purge remove apparmor apparmor-utils libapparmor-perl libapparmor1
sudo update-rc.d -f apparmor remove
sudo apt-get -y --purge remove apparmor apparmor-utils libapparmor-perl libapparmor1
Friday, August 8, 2014
Install ruby plugin for netbeans 8.0
First download the plugin from here
http://plugins.netbeans.org/plugin/38549/ruby-and-rails
Then check out the instructions below
http://stackoverflow.com/questions/22573463/ruby-netbeans-plugin-cant-install
http://plugins.netbeans.org/plugin/38549/ruby-and-rails
Then check out the instructions below
http://stackoverflow.com/questions/22573463/ruby-netbeans-plugin-cant-install
Tuesday, August 5, 2014
Join Lubuntu 14.04 to Active Directory using pbis open (before likewise-open)
#Download latest stable version
http://download1.beyondtrust.com/Technical-Support/Downloads/PowerBroker-Identity-Services-Open-Edition/?Pass=True
# Join via domainjoin-cli
sudo su -l
# Install openssh-server
apt-get install openssh-server
#Join
domainjoin-cli join --assumeDefaultDomain yes --userDomainPrefix PREFIX prefix.mydomain.com username
#Change default shell to bash
/opt/pbis/bin/config LoginShellTemplate "/bin/bash"
/opt/pbis/bin/config Local_LoginShellTemplate "/bin/bash"
From a terminal:
sudo vi /etc/pam.d/common-session
sudo vi /etc/pam.d/common-session
Find the line that states the following:
session sufficient pam_lsass.so
session sufficient pam_lsass.so
Replace it with:
session [success=ok default=ignore] pam_lsass.so
session [success=ok default=ignore] pam_lsass.so
Saturday, July 26, 2014
fixing xrdp server with lubuntu 12.04
When accessing a lubuntu 12.04 machine via rdp with xfreerdp, I was getting the error 'failed to load session gnome'.
Found the following fix
From
http://askubuntu.com/questions/247501/i-get-failed-to-load-session-ubuntu-2d-when-using-xrdp
Found the following fix
echo lxsession -s Lubuntu -e LXDE > ~/.xsession
From
http://askubuntu.com/questions/247501/i-get-failed-to-load-session-ubuntu-2d-when-using-xrdp
Friday, July 25, 2014
fixing acroread on ubuntu 12.04 with likewise open
install nscd
http://ubuntuforums.org/showthread.php?t=1567183
http://ubuntuforums.org/showthread.php?t=1567183
change default shell in likewise open
http://michael.requeny.com/2011/02/11/likewise-open-change-default-shell/
Thursday, July 24, 2014
Fix error when using wine
When getting error
err:module:attach_process_dlls "krnl386.exe16" failed to initialize,
Put the following in /etc/rc.d/rc.local:
err:module:attach_process_dlls "krnl386.exe16" failed to initialize,
Put the following in /etc/rc.d/rc.local:
Code:
echo 1 > /proc/sys/abi/ldt16
Wednesday, July 23, 2014
Tuesday, July 15, 2014
create 7zip archive with password and encrypt file list too
7z a -p -t7z -mx0 -mhe=on ~/Documents.7z ~/Documents
Saturday, July 12, 2014
Using opendns.com
apt-get install ddclient
#configure with your opendns credentials
#set the opendns.com network label as hostname
#add the line
ssl=yes
#test with
sudo ddclient -daemon=0 -debug -verbose -noquiet
#configure with your opendns credentials
#set the opendns.com network label as hostname
#add the line
ssl=yes
#test with
sudo ddclient -daemon=0 -debug -verbose -noquiet
Thursday, June 26, 2014
Fix problems changing password on ubuntu openldap
Installed openldap from here
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps
root@srv013:/etc/pam.d# diff common-password common-password.bak
26c26
< password [success=1 user_unknown=ignore default=die] pam_ldap.so try_first_pass
---
> password [success=1 user_unknown=ignore default=die] pam_ldap.so use_authtok try_first_pass
Wednesday, June 25, 2014
Install samba4 on ubuntu 12.04
http://www.matrix44.net/cms/notes/gnulinux/samba-4-ad-domain-with-ubuntu-12-04
Tuesday, June 17, 2014
Sunday, June 15, 2014
Switching keyboard layout between English and Spanish in Lubuntu 12.02
echo '@setxkbmap -option grp:alt_shift_toggle "us,es"' | sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart
Install Koha on Ubuntu 12.04 LTS
#Add the following apt repository
echo deb http://debian.koha-community.org/koha squeeze main | sudo tee /etc/apt/sources.list.d/koha.list
# Get The key
wget http://debian.koha-community.org/koha/gpg.asc
apt-key add gpg.asc
apt-get update
echo deb http://debian.koha-community.org/koha squeeze main | sudo tee /etc/apt/sources.list.d/koha.list
# Get The key
wget http://debian.koha-community.org/koha/gpg.asc
apt-key add gpg.asc
apt-get update
# Install mysql server
apt-get install mysql-server
# Update and install
apt-get update
apt-get install koha-common
Saturday, May 31, 2014
Install latest netbeans and oracle java on ubuntu 12.04
sudo su -l
#install oracle java 7
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java7-installer
# install latest netbeans
download from https://netbeans.org/downloads/
Sunday, May 25, 2014
Make Ubuntu faster with tmpfs and swappiness
# If you have enough RAM you want to turn off swappiness and turn on tmpfs
vi /etc/fstab
# add the line
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
vi /etc/sysctl.conf
# add the line
vm.swappiness = 0
vi /etc/fstab
# add the line
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
vi /etc/sysctl.conf
# add the line
vm.swappiness = 0
Wednesday, May 21, 2014
Bing the windows key to the lubuntu start menu (lxpanel menu)
vi ~/.config/openbox/lxde-rc.xml
# add the following entry inside the keyboard xml element
lxpanelctl menu
# add the following entry inside the keyboard xml element
<keybind key="Super_L">
<action name="Execute">
<command>lxpanelctl menu</command>
</action>
</keybind>
Wednesday, April 9, 2014
Integrating Thunderbird with Google Mail, Calendar, Contacts
First install thunderbird (if not already installed)
sudo apt-get install thunderbird
Then add your existing gmail account
File->Existing Email Account
Now add support for syncing contacts
Tools->Addons
Search for 'google contacts'
Choose 'Google Contacts 0.7.12'
Now add support for calendar:
Search for Lightning, install it
Search for 'Provider for Google Calendar', install it
Follow this tutorial to add your calendar to Thunderbird
https://support.mozilla.org/en-US/kb/using-lightning-google-calendar
sudo apt-get install thunderbird
Then add your existing gmail account
File->Existing Email Account
Now add support for syncing contacts
Tools->Addons
Search for 'google contacts'
Choose 'Google Contacts 0.7.12'
Now add support for calendar:
Search for Lightning, install it
Search for 'Provider for Google Calendar', install it
Follow this tutorial to add your calendar to Thunderbird
https://support.mozilla.org/en-US/kb/using-lightning-google-calendar
Wednesday, February 19, 2014
No password Kerberos authentication (gssapi) with Samba Active Directory
After you have setup your workstation and server to join your samba4 Active Directory DC, you can setup Kerberos authentication to ssh into the server without needing to retype your password (single sign-in)
Just add these lines to the /etc/ssh/sshd_config on the server
KerberosAuthentication yes GSSAPIAuthentication yes GSSAPICleanupCredentials yes UsePAM no
And add these lines to the /etc/ssh/ssh_config on the client
GSSAPIAuthentication yes GSSAPIDelegateCredentials yes
Credential delegation is the magic that passes your password to the server. Voila!
Friday, January 31, 2014
Installing Active Directory client bridge likewise-open on Debian Wheezy
# Grab the Ubuntu source package
wget http://archive.ubuntu.com/ubuntu/pool/main/l/likewise-open/likewise-open_6.1.0.406.orig.tar.gz
# Extract
tar xvzf likewise-open_6.1.0.406.orig.tar.gz
cd likewise-open_6.1.0.406
# Get dependencies
apt-get install -y build-essential fakeroot devscripts debhelper \
autoconf automake libtool libncurses5-dev uuid-dev \
flex bison libpam0g-dev libssl-dev libxml2-dev libpopt-dev pkg-config
mkdir debug
cd debug
../configure
make package
wget http://archive.ubuntu.com/ubuntu/pool/main/l/likewise-open/likewise-open_6.1.0.406.orig.tar.gz
# Extract
tar xvzf likewise-open_6.1.0.406.orig.tar.gz
cd likewise-open_6.1.0.406
# Get dependencies
apt-get install -y build-essential fakeroot devscripts debhelper \
autoconf automake libtool libncurses5-dev uuid-dev \
flex bison libpam0g-dev libssl-dev libxml2-dev libpopt-dev pkg-config
mkdir debug
cd debug
../configure
make package
Samba4 Active Directory Domain Controller on Debian Wheezy
#We will use BIND9_DLZ as backend, we need to add a compile flag to bind9
sudo su -l
apt-get install build-essential fakeroot devscripts
#download bind9 src
apt-get source bind9
cd bind9-9.8.4.dfsg.P1
vi debian/rules
#add the following line after ./configure
--dl-open=yes \
# get the dependencies
apt-get build-dep bind9
#build
fakeroot debian/rules binary
#install
dpkg -i ../bind9-9.8.4.dfsg.P1_<your arch>.deb
#add backports repo
vi /etc/apt/sources.lst
#add the following line to sources.list
deb http://ftp.us.debian.org/debian wheezy-backports main
#install samba from backports (version 4)
apt-get install -t wheezy-backports samba
#check your samba version is 4
samba -V
# provision domain
/usr/local/samba/bin/samba-tool domain provision --use-rfc2307 --interactive
service samba start
apt-get install chkconfig
chkconfig samba on
#setup bind,kerberos, etc
http://wiki.samba.org/index.php/Dns-backend_bind
http://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
sudo su -l
apt-get install build-essential fakeroot devscripts
#download bind9 src
apt-get source bind9
cd bind9-9.8.4.dfsg.P1
vi debian/rules
#add the following line after ./configure
--dl-open=yes \
# get the dependencies
apt-get build-dep bind9
#build
fakeroot debian/rules binary
#install
dpkg -i ../bind9-9.8.4.dfsg.P1_<your arch>.deb
#add backports repo
vi /etc/apt/sources.lst
#add the following line to sources.list
deb http://ftp.us.debian.org/debian wheezy-backports main
#install samba from backports (version 4)
apt-get install -t wheezy-backports samba
#check your samba version is 4
samba -V
# provision domain
/usr/local/samba/bin/samba-tool domain provision --use-rfc2307 --interactive
service samba start
apt-get install chkconfig
chkconfig samba on
#setup bind,kerberos, etc
http://wiki.samba.org/index.php/Dns-backend_bind
http://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
Installing ltsp-server in Linux Mint 13 LTS
sudo su -l
apt-get install ltsp-server-standalone
# You need to make a link from Ubunto to LinuxMint since ltsp does not know about Mint
cd /usr/share/ltsp/plugins/ltsp-build-client/
ln -s Ubuntu LinuxMint
ln -s Debian-functions LinuxMint-functions
# You need to tell explicitly which release you are using, you can change the architecture to something #else
ltsp-build-client --arch=i386 --dist=precise
# Follow the rest of the tutorial here
http://www.thefanclub.co.za/how-to/how-create-ubuntu-1104-x64-ltsp-server-32bit-thin-clients
apt-get install ltsp-server-standalone
# You need to make a link from Ubunto to LinuxMint since ltsp does not know about Mint
cd /usr/share/ltsp/plugins/ltsp-build-client/
ln -s Ubuntu LinuxMint
ln -s Debian-functions LinuxMint-functions
# You need to tell explicitly which release you are using, you can change the architecture to something #else
ltsp-build-client --arch=i386 --dist=precise
# Follow the rest of the tutorial here
http://www.thefanclub.co.za/how-to/how-create-ubuntu-1104-x64-ltsp-server-32bit-thin-clients
Saturday, January 25, 2014
Script to turn apt-cache search into apt-get install list
apt-cache search <search-term> | cut -f1 -d ' ' | sed 's/$/ \\/g' -
Thursday, January 23, 2014
Boostrap a Debian OpenVZ container in ProxMox
# Setup bridged networking
vi /etc/network/interfaces
# Add the following lines
auto eth0
iface eth0 inet static
address 192.0.2.7
netmask 255.255.255.0
gateway 192.0.2.254
# Setup proxy for apt-get
vi /etc/apt/apt.conf.d/70debconf
# Add the following line
Acquire::http::Proxy "http://proxy:8080";
How to remove the nag dialog in Proxmox
Blog post on how to remove the annoying Proxmox nag dialog
http://www.jamescoyle.net/how-to/614-remove-the-proxmox-no-subscription-message
http://www.jamescoyle.net/how-to/614-remove-the-proxmox-no-subscription-message
Subscribe to:
Posts (Atom)