warning: Creating default object from empty value in /data/web/1/000/027/003/273448/htdocs/ on line 33.

Ubuntu: Install NVIDIA proprietary video drivers

wget -O - | bash -


# nvidia graphic driver
sudo apt-get install -y nvidia-current-updates

# configure driver
sudo nvidia-xconfig --no-logo --cool-bits=1

# TODO: options
#--registry-dwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"

Ubuntu Medion MD 95400 WLAN

wget -O - | bash -


# Links


# download source
apt-get install -y acerhk-source linux-headers-generic

# extract
cd /usr/src
sudo tar -xjf acerhk.tar.bz2

# patch
sed -i '561s|KBUILD_CFLAGS|#KBUILD_CFLAGS|g' /usr/src/linux-headers-2.6.32-24-generic/Makefile

# compile and install
cd /usr/src/modules/acerhk
make install

echo "acerhk force_series=95400 autowlan=1" > /etc/modprobe.d/acerhk.conf

echo "options radeon modeset=1 dynpm=1 dynclks=1" > /etc/modprobe.d/radeon.conf

sudo update-initramfs -u


# fix audio
echo "acerhk force_series=95400 autowlan=1" >> /etc/modules

# fix wlan
cat < /etc/init.d/wirelessled
#!/bin/sh -e
echo 1 > /proc/driver/acerhk/wirelessled
exit 0
chmod 755 /etc/init.d/wirelessled
update-rc.d wirelessled defaults 90

Install Skype from repository

wget -O - | bash -


# add partner repository
sudo add-apt-repository -y "deb $(lsb_release -sc) partner"

# update
sudo apt-get update -qq

# install
sudo apt-get install -y skype

Fix upside down webcam
wget -O - | bash -


# install video4linux libraries 
sudo apt-get install libv4l-0:i386

# fix lib path
if [ ! -f /usr/lib/libv4l/ ]; then
  sudo mkdir /usr/lib/libv4l
    if [ "$(uname -m)" == "x86_64" ]; then
      # 64 bit
      sudo ln -s /usr/lib/x86_64-linux-gnu/libv4l/ /usr/lib/libv4l/
      # 32 bit
      sudo ln -s /usr/lib/i386-linux-gnu/libv4l/ /usr/lib/libv4l/

# modify Skype launcher
sudo sed -i 's|env PULSE_LATENCY_MSEC=60 skype %U|env PULSE_LATENCY_MSEC=60 LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/ skype %U|g' /usr/share/applications/skype.desktop

Disable "contacts comes online" notification
# Notify
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

# Sound
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml
sed -i 's|1|0|g' /home/${USER}/.Skype/*/config.xml

Links - Ubuntu partner repository - hidden skype emoticons

Install VirtualBox

wget -O - | bash -


if [ ! -z $1 ]; then

# install debconf-utils
sudo apt-get install debconf-utils

# add debconf answer
sudo debconf-set-selections <<\EOF
virtualbox virtualbox/group-vboxusers note

# add key
wget -q -O- | sudo apt-key add -

# install repository key
wget -q -O - | apt-key add -

# update repository list
echo "deb $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update -qq

# install
sudo apt-get install -y virtualbox-5.1

# install extension pack
VERSION=$(dpkg-query -W -f='${Version}' "virtualbox*" | cut -d "-" -f1)
wget${VERSION}/Oracle_VM_VirtualBox_Extension_Pack-${VERSION}.vbox-extpack -P /tmp/
sudo VBoxManage extpack install /tmp/Oracle_VM_VirtualBox_Extension_Pack-${VERSION}.vbox-extpack

# add current user to vboxusers group
sudo adduser ${USER} vboxusers


Fix kernel module
sudo /etc/init.d/vboxdrv setup


LSI / Broadcom MegaRAID Storcli

# install storcli (MegaCli)

apt install unzip
wget -qO /tmp/
unzip /tmp/ -d /tmp/
unzip /tmp/versionChangeSet/univ_viva_cli_rel/ -d /tmp/versionChangeSet/univ_viva_cli_rel/
dpkg -i /tmp/versionChangeSet/univ_viva_cli_rel/storcli_All_OS/Ubuntu/storcli_1.21.06_all.deb
ln -s /opt/MegaRAID/storcli/storcli64 /usr/local/sbin/


Install Wine

wget -O - | bash -


# add repository
sudo dpkg --add-architecture i386
wget -q -O - | sudo apt-key add -
sudo apt-add-repository
sudo apt-get update -qq

# pre-answer installation questions
sudo debconf-set-selections <<\EOF
msttcorefonts msttcorefonts/defoma note
ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula boolean true
ttf-mscorefonts-installer msttcorefonts/present-mscorefonts-eula note

# install wine
if [ "$1" == "-s" ]; then
  # staging release
  sudo apt-get install -y --install-recommends winehq-staging
  # stable release
  sudo apt-get install -y --install-recommends winehq-stable

# install latest winetricks
sudo apt-get install -y winetricks
sudo winetricks --self-update

Downgrade to lastest Wine 1.2 (64 bit)
sudo apt-get remove wine1.4
cd /tmp
sudo dpkg -i wine1.2_1.2.3-0ubuntu1_amd64.deb lib32nss-mdns_0.10-3.1ubuntu1_amd64.deb
wine --version

OPTIONAL: fake ie6 installation
wget -P /tmp; sh /tmp/winetricks fakeie6

Compile wine
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get build-dep wine1.3
sudo apt-get --build source wine1.3

LINKS - supported applicatinos - Wine for Debian based distributions

Install androidscreencast under Ubuntu

# install android sdk

# install java
wget -O - | bash -

# set path to android sdk

# start android sdk server
adb start-server

# start androidscreencast
wget -P ~/
javaws ~/androidscreencast.jnlp

# Links

Install MS SQL Server JDBC Driver

# get driver
wget ${URL} -P /tmp/
unzip /tmp/jtds-* -d /tmp/
sudo cp /tmp/jtds-*.jar /usr/share/java/

Eclipse > Build Path > Configure Build Path
Libraries > Add External JARs

# fix tomcat
sudo cp /usr/share/java/jtds-1.2.5.jar /var/lib/tomcat6/webapps/builder3/WEB-INF/lib/

# Links


scan for IPs and ports
nmap -PR -oN /tmp/nmap.out

search hosts
nmap -sP 192.168.1.*
nmap -PR -oN /tmp/nmap.out

scan for open ports
nmap -T4 -sS

get more detailed information
sudo nmap -O -T4

scan one port
nmap -sV -P0 -p 22 -vv



# remove third line
sed -i 3d

# insert line on beginning of a file
sed -i '1i MY_TEXT'

# String replace with sed
sed -i 's|[#]*param=[yes|no]*|param=yes|g' FILE

# add line to a file
sed -i '13i\YOUR_TEXT' FILE

# add line before last line
sed -i '$i test_line' /path/to/file

# search block
sed -n '/FOO/,/BAR/p' /path/to/file

# remove digits
echo $FOO | sed 's/[^0-9]*//g'

# remove blanks
cat FILE | sed 's/ */ /g'
# remove blanks and tabs
cat FILE | sed "s/

[ ]*/ /g"
# write to file

Syndicate content