ubuntu

Ubuntu LiveCD quick tweaks

GoTo: Applications > Accessories > Terminal

SSH server
sudo apt-get install -y openssh-server
echo root:t00r | sudo chpasswd
ifconfig | grep Bcast | cut -d':' -f2 | cut -d' ' -f1

Adobe Flash
#wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.deb -P /tmp && \
#sudo dpkg -i /tmp/install_flash_player_10_linux.deb
sudo add-apt-repository ppa:sevenmachines/flash
sudo apt-get update
sudo apt-get install flashplugin64-installer

Skype

Install Fax client for Hylafax (YajHFC)

<?php
$URL="https://raw.githubusercontent.com/panticz/installit/master/install.yajhfc.sh";
echo "wget $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

# OPTIONAL, set evince as default fax viewer
sed -i 's|gnome-open|evince|g' ~/.yajhfc/settings

Links
http://www.yajhfc.de/
http://wiki.xtronics.com/index.php/Faxfrontend
http://www.yajhfc.de/downloads/deb-packages
http://developer.berlios.de/forum/forum.php?forum_id=34299

Ubuntu repository list

## Main
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse

## Updates
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse

## Backports
deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse

## Proposed

Gedit / Pluma text editor

# Gnome gedit2 add regex replace support
wget http://vaem.googlecode.com/files/gedit2_regex_replace_plugin.tar.gz -P /tmp
tar -xzf /tmp/gedit2_regex_replace_plugin.tar.gz -C /home/$USER/.gnome2/gedit/plugins/

# add YAML syntax support
wget -q http://dl.panticz.de/pluma/yaml.lang -O /tmp/yaml.lang
sudo cp /tmp/yaml.lang /usr/share/gtksourceview-2.0/language-specs/yaml.lang
sudo cp /tmp/yaml.lang /usr/share/gtksourceview-3.0/language-specs/yaml.lang

# Configure pluma
gsettings set org.mate.pluma editor-font "Ubuntu Mono 13"
gsettings set org.mate.pluma display-line-numbers true

ATI / Medion X10 MD8800 remote controll

# disable ati_remote
echo "blacklist ati_remote" >> /etc/modprobe.d/blacklist

# update lircd config
wget http://lirc.sourceforge.net/remotes/atiusb/lircd.conf.atilibusb -O /usr/share/lirc/remotes/atiusb/lircd.conf.atilibusb

# reconfigure
sudo dpkg-reconfigure lirc
Remote control configuration: ATI/NVidia/X10 RF Remote (userspace)
IR transmitter, if present: None

# xbmc medion x10 double key can by fixed with ~/.xbmc/userdata/advancedsettings.xml

4

Download

Ubuntu 14.04 LTS (Trusty Tahr)

Enable root ssh login
sed -i 's|PermitRootLogin without-password|PermitRootLogin yes|g' /etc/ssh/sshd_config
echo "root:t00r" | chpasswd
service ssh restart

Repository
# Ubuntu Trusty updates repository
cat /etc/apt/sources.list.d/trusty-updates.list
deb http://de.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
EOF

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 40976EAF437D05B5

Huawei UMTS USB Stick

Mobile Connect Settings (under Mac OS X)
Profile Name: t-mobile
Access Point Name: internet.t-mobile
Telephone Number: *99***1#
Account Name: t-mobile
Password: tm
Authentication: CHAP

NetzClub APN
pinternet.interkom.de

disable pin on sim card
sudo mmcli -i 0 --disable-pin --pin=
#sudo apt-get install gsm-utils
#sudo gsmctl -d /dev/ttyACM0 -o unlock sc all YOUR_PIN_NUMBER

Links
http://blog.surgeons.org.uk/2008/02/three-cheers-for-vodafone.html
http://www.draisberghof.de/usb_modeswitch/

Create printer on command line

List all installed printer
lpstat -p -d

Kyocera FS-C5016N
lpadmin -p LaserColor -v ipp://192.168.1.11:631/ipp -E -P /usr/share/ppd/openprinting/Kyocera/en/Kyocera_Mita_FS-C5016N_en.ppd.gz

PDF Printer
sudo sudo apt-get install -y cups-pdf
#sudo lpadmin -p PDF -v cups-pdf:/ -E -P /usr/share/ppd/cups-included/postscript.ppd
#/usr/share/ppd/cups-pdf/PostscriptColor.ppd

Define default prnter
lpadmin -d printer1