Category Archives: arch linux logs

ενημέρωση arch: φοβερή μετάφραση!

Χα χα, καλα, ο πακμαν εγραψε σημερα (τελευταία σειρα: Η μεταφραση!):


# pacman -Syu
:: Συγχρονισμός βάσης πακέτων...
core ενημερωμένο
extra ενημερωμένο
community ενημερωμένο
multilib ενημερωμένο
:: Έναρξη πλήρους αναβάθμισης συστήματος...
ουδέν πρακτέον
#

arch log #4

Today  I wrote my first service file for arch! It's so easy!...

Before today I connected to the internet by executing

################################
ip link set enp2s0 up
pppoe-start

################################

at start up of xfce. How inelegant!

By just following instructions on the wiki I created easily my own service file:

################################
[Unit]
Description=Network Connectivity
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-enp2s0.device
After=sys-subsystem-net-devices-enp2s0.device

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link set enp2s0 up
ExecStart=/usr/sbin/pppoe-start

ExecStop=/usr/sbin/pppoe-stop
ExecStop=/sbin/ip link set enp2s0 down

[Install]
WantedBy=multi-user.target

################################

systemctl can now start and stop the service, or enable it on boot!

arch log #2

Installed slrn, rdesktop, beep (I love the PC speaker!)

Here is a melody I wrote quickly to test it:

#!/bin/bash

note(){
case $1 in
"C" ) freq=261.6;;
"Cis") freq=277.2;;
"D" ) freq=293.7;;
"Dis") freq=311.1;;
"Es") freq=311.1;;
"E" ) freq=329.6;;
"F" ) freq=349.2;;
"Fis") freq=370.0;;
"G" ) freq=392.0;;
"Gis") freq=415.3;;
"A" ) freq=440.0;;
"Ais") freq=466.2;;
"B") freq=466.2;;
"H" ) freq=493.9;;
"c" ) freq=523.2;;
*) freq=1;;
esac
if [ "$2" != "" ]; then dur=$2; else dur=250; fi
beep -f $freq -l $dur
}

note 0 500
note Es
note D
note D 500
note Es
note D
note D 500
note Es
note D
note D 500
note B 500
note 0 500
note B
note A
note G 500
note G
note F
note Es 500
note Es
note D
note C 500
note C 500

arch log #1

2nd week on Arch.

~~~~~~~

Problem: ALSA: no sound for mplayer, ogg123, flash. Skype however could playback.

Solution: wrong selection of default sound device during boot

Set a) default snd card and b) order for sound cards in:

$ cat /etc/modprobe.d/alsa-base.conf
options snd slots=snd_hda_intel,snd_usb_audio
options snd_hda_intel index=0
options snd_usb_audio index=1

Then reboot.

How to detect the cards:

$ lsmod | grep '^snd'

~~~~~~~

Problem: truecrypt could not create a file container ("failed to set up loop  device" after formatting).

Solutions:

1) Activate loop module with

$ modprobe loop

2) or on boot by putting it in:

# echo "loop" >> /etc/modules-load.d/truecrypt.conf

~~~~~~~

Installed: openssl, openvpn