Sometimes I run tasks over ssh without starting screen first. I tend to
regret that. So started experimenting with detaching running processes
from the shell. (I'm using zsh
btw. so this might not work with other
shells)
Note this is just experimental, don't expect this to work. And never
trust this for keeping critical processes alive.
# press [CRTL+Z] for putting a already running prozess in background
# display a list of jobs
jobs
# make a process run in background
bg %1
# keep the process running even when the termianl (ssh connection) quits
# in bash this should be: disown -h %1
disown %1
# find pids of disowned processes:
ps aux | grep commandName
# bring a disowned process to the foreground:
reptyr 1234
source: http://serverfault.com/questions/55880/moving-an-already-running-process-to-screen
get the dep here: http://www.openprinting.org/printer/Epson/Epson-L355_Series
install it
wget http://download.ebz.epson.net/dsc/op/stable/debian/dists/lsb3.2/main/binary-amd64/epson-inkjet-printer-201207w_1.0.0-1lsb3.2_amd64.deb
sudo dpkg -i epson-inkjet-printer-201207w_1.0.0-1lsb3.2_amd64.deb
sudo apt --fix-broken install
use cups interface to install printer: http://127.0.0.1:631/
resources: http://www.linuxquestions.org/questions/linux-hardware-18/cups-what-driver-to-use-for-an-epson-l355-printer-4175495655/
screen capture using vlc and external usb microphone:
cvlc screen:// --screen-fps 20 --input-slave="pulse://alsa_input.usb-0b0e_Jabra_SPEAK_510_USB_1C48F9E60C09020A00-00-USB.analog-mono" --sout='#transcode{vcodec=theo,quality=10,fps=20,acodec=flac}:std{access=file,mux=ogg,dst=test.ogg}'
source: http://www.videolan.org/doc/streaming-howto/en/ch03.html
I always have to look this up, so I guess I should write this down:
# hashing / encrypting passwords for dovecot + postfix email users
doveadm pw -s CRYPT
This printer might not work on usb3 ports, disabling usb3 in bios setup could
helps thou:
# download scanner driver from
# http://support.brother.com/g/s/id/linux/en/download_scn.html
# install scanner driver
sudo apt-get install brscan3-0.2.11-5.amd64.deb
# link missing files (if required)
sudo ln -s /usr/lib64/libbrscandec3.so /usr/lib/libbrscandec3.so
Edit libsane udev rules. eg: sudo gedit /lib/udev/rules.d/40-libsane.rules
Add the following 2 lines before "LABEL="libsane_rules_end""
.
# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"
# install samba
sudo apt-get install samba
# add fileshare configuration to
# samba config file
# manipulate this to fit your needs
cat << EOF | sudo bash -c 'cat >> /etc/samba/smb.conf'
[sharename]
comment = Some useful files
read only = no
locking = no
path = /media/sharename
guest ok = no
EOF
# optional, create new user for samba
#sudo adduser sambauser
# enable unix user for samba authentication
sudo smbpasswd -a sambauser
# restart samba
sudo service samba restart
resources: https://wiki.debian.org/SambaServerSimple
# install sudo if not installed already
su -c 'apt-get install sudo'
# grant sudo privileges
su -c 'adduser <yourusername> sudo'
replace with the name of the use who
will be given sudo rights.
I needed to change language because non-english error messages are really
really hard to understand.
Relevant language settings are located in:
~/.pam_environment
/etc/default/locales
Let's jump right into installing owncloud on a plain Debian System:
# add owncloud debian repo
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud.list
wget -qO- http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key | apt-key add -
# install the server software
apt-get install owncloud mysql-server
# now take a look at your generated mysql super-user credentials
cat /etc/mysql/debian.cnf
# use super-user to get a mysql shell
mysql -u debian-sys-maint -p
Create a MySQL user and database for owncloud. Just execute this in the sql shell:
create user 'owncloud'@'localhost' IDENTIFIED BY 'password';
create database owncloud;
grant all privileges on owncloud.* to 'owncloud'@'localhost';
flush privileges;
Great. Now configure /etc/apache2/sites-available/default
:
- Update all occurances of
AllowOverride None
to AllowOverride All
. (to allow .htaccess files)
- If you're running this behind a reverse proxy which terminates TLS: add
SetEnv HTTPS on
to vhost.
# add a html forward for directing users to owncloud
echo "<html><head><meta http-equiv="refresh" content="0; url=/owncloud/" /></head><body></body></html>" > /var/www/index.html
Almost done. Go to url of the fresh installed instance to complete ownclowd setup.
I also installed their linux client:
echo 'deb http://download.opensuse.org/repositories/isv:ownCloud:devel/Debian_7.0/ /' >> /etc/apt/sources.list.d/owncloud-client.list
wget -qO- http://download.opensuse.org/repositories/isv:ownCloud:devel/Debian_7.0/Release.key | apt-key add -
apt-get update
apt-get install owncloud-client
Why isn't track-point scrolling configured to work out to the box on Linux?
Right, everything is full of bugs. At least there's a workaround:
https://bugzilla.redhat.com/show_bug.cgi?id=710053#c3