[solved] Question about Quotes in Shell-Script
I searched for a way to rename my music album folders strictly to the format '<artist> - <album> (<year>)'. I couldn't archieve this with KRename and didn't find an alternative way so i tried to script it. It's really bad i know, but it works for me. I usually use it to rename a bunch of folders in a zsh for loop 'for i in *; dirn $i | tee -a rename.sh'
The Problem now is some albums have " Quotes in it so the Script fails (Line 56).
http://pastebin.com/rePQev61
Maybe someone here can enlighten me how to get folders like these right in the script:
David Bowie - "Heroes" (1977)
Portugal. The Man - Waiter: "You Vultures!" (2006)
The Crickets - The "Chirping" Crickets (2004)
The Long Blondes - "Couples" (2008)
Last edited by modulation (2010-12-11 09:05:49)
I'm not sure i get this. $newdir is the corrected name for the album folder. I already strip invalid chars in line 47 (sed -e 's/[|\<>%?^:*\/]/_/g'). But i've trouble with the output of the rename command.
I'd like it to output something like:
mv 'crinckets_the_chiping' 'The Crickets - The "Chirping" Crickets (2004)'
so that the newdir really contains the "-Quotes.
Similar Messages
-
[SOLVED] Question about CPU temperature
Hi everybody,
I just want to ask a question about "standard" CPU temperatures because my laptop (a Dell Vostro 3700) is permanently hot with the fans on even when I am not doing anything special.
I have CPU freq scaling active with the conservative governor, and I use Gnome Shell 3.2 with an nVidia using the nouveau driver.
Here are "stable" temperatures while writing this post:
# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +72.5°C (crit = +103.0°C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
Core 2: +73.0°C (high = +95.0°C, crit = +105.0°C)
And this is the output of mpstat
# mpstat -P ALL
Linux 3.1.6-1-ARCH (fm) 01/04/2012 _x86_64_ (4 CPU)
10:16:50 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle
10:16:50 PM all 1.59 0.18 0.54 0.02 0.00 0.02 0.00 0.00 97.65
10:16:50 PM 0 1.88 0.15 0.72 0.02 0.00 0.01 0.00 0.00 97.22
10:16:50 PM 1 1.64 0.21 0.40 0.02 0.00 0.01 0.00 0.00 97.73
10:16:50 PM 2 1.47 0.15 0.67 0.02 0.00 0.06 0.00 0.00 97.64
10:16:50 PM 3 1.36 0.20 0.39 0.02 0.00 0.01 0.00 0.00 98.01
The fan, of course, is full speed (very annoying)
I think that these temperatures are quite high, but I don't know what's really causing all this heating because my laptop is basically idle.
Any suggestion?
Thanks.
P.S.: Running Linux fm 3.1.6-1-ARCH #1 SMP PREEMPT Thu Dec 22 09:11:48 CET 2011 x86_64 Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz GenuineIntel GNU/Linux
Last edited by fm (2012-01-06 09:32:01)samuvuo wrote:
fm wrote:Just to wrap up this topic, I "solved" the issue by adding these parameters to the kernel:
Just curious: what are the temperatures now? Sensors output after the "fix" would be nice.
It's in the previous posts:
Before (idle)
# sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +72.5°C (crit = +103.0°C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
Core 2: +73.0°C (high = +95.0°C, crit = +105.0°C)
After (idle)
acpitz-virtual-0
Adapter: Virtual device
temp1: +63.5°C (crit = +103.0°C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +68.0°C (high = +100.0°C, crit = +110.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +62.0°C (high = +95.0°C, crit = +105.0°C)
Core 2: +64.0°C (high = +95.0°C, crit = +105.0°C)
After (after playing 8 min youtube video)
acpitz-virtual-0
Adapter: Virtual device
temp1: +74.5°C (crit = +103.0°C)
nouveau-pci-0100
Adapter: PCI adapter
temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
Core 2: +75.0°C (high = +95.0°C, crit = +105.0°C)
Fan spinning is better (less noisy) after specifying the kernel parameters.
Thanks
Last edited by fm (2012-01-06 13:43:05) -
Simple question about mount and delay script
Hello, I have a simple question about mounting volumes on start up.
My computer wakes up auto - and then auto there are serveral applescript tasks (mount and start up programs)
I use this script (daily) for serveral connections with external volumes I always need the connect to. ( In the script I use this code 3 times for other locations) I do this on start up.
set Uname to "XXX"
set Pword to "XXX"
set someVolume to "afp://XXX.XXX.XXX.XXX/XXX/XXX
mount volume someVolume as user name Uname with password Pword
(same code for 2 other locations)
When i do this on start up sometimes the script says there is no connection possible. I guess it's because on start up the connection isn't there. And 1 minute later when computer is total ready the connection is ok. When I run the script then It works. Just sometimes ( In the morning) 'It' want to connect but the script stops. When i do it manually(I run the script again) it works just fine.
Is it possible that I need a delay? Can someone explain this?
How would I make a delay handler for this script? Is that the best solution?
Thanks in advance. This is something small i'm wondering about.
ColinBTW, If you saved the script as an application +(and not as an application bundle)+ you could drop the script on to *Drop Script Backgrounder* (freeware).
Then the script would run in the background, so, you wouldn't see it running in the Finder.
<http://www.macupdate.com/info.php/id/7922/drop-script-backgrounder-x>
Tom -
Editing question, preferably with "do shell script"
I would like to edit an expression
from: blah blah /Paragraphs/one two three
to: blah blah /Paragraphs/one-two-three
where "/Paragraphs/" is always present
but "one" might be anything
Using sed with regexp seems like a way to go, but I don't know how to designate "one," which will vary. Viz.:
set T to "blah blah /Paragraphs/one two three"
set T1 to do shell script "echo " & quoted form of T & " | sed 's/\\/Paragraphs\\/{anything}/\\/Paragraphs\\/{anything}(change all subsequent spaces to "-")/g'"Hi,
Can't believe I did it with sed! My test.txt file looks like this:
blah blah #one here's some text
blah blah #two more text
blah blah #three and even more text
#four number begins this line
Here's the sed part:
sed 's/#/\
#/' < test.txt | sed '/#/ s/ /-/g' | sed '
N
s/\n#/#/
Here I used "#" instead of "/Paragraphs/". Now, you translate this into a do shell script. If you need help with that, then write back. I now understand the N command for working with multiple line processing. Here's the tutorial I used:
http://www.grymoire.com/Unix/Sed.html
Edited: and here's the output
blah blah #one-here's-some-text
blah blah #two-more-text
blah blah #three-and-even-more-text
#four-number-begins-this-line
gl, -
[Solved]Assign middle button to shell script
Hi
I would like to assign the middle button on my mouse to run a shell script. Is that possible?
Thankyou in advance
Regards
Frederik
Last edited by Fred7109 (2015-05-27 17:06:20)I don't know what you mean by "smarter". What is not smart about xbindkeys? You want to bind a key/button press, use the tool for binding key/button presses. You could possibly also use your WM/DE tools, but you haven't specified what WM/DE you are using.
But do you really want to bind this in any/all contexts rather than just on the desktop for example? -
[SOLVED] Question about resolv.conf
I successfully configured my Arch box with a static IP by following the instructions on the Arch wiki page here but had a couple of questions about configuring /etc/resolv.conf:
1) What is the proper way to obtain the domain name that should be inserted into resolv.conf?
2) What exactly is this domain name used for? I read the man page but still don't really understand it. Why do I need a domain name if I already have a working set of nameservers to resolve IP addresses?
EDIT: @ewaller Yes I edited the OP because I realized that my original problem was that I just hadn't added a domain name in my resolv.conf file. I edited my original post because 1) the instructions are already posted clearly on Arch Wiki so my post really wouldn't be beneficial and 2) so I could ask my real question without making other people waste their time reading through my other nonsense
Last edited by choogi (2010-09-09 04:06:45)yejun wrote:You can just use public dns like 8.8.8.8 or 4.2.2.1. There's no other way to get dnsserver besides dhcp.
Yes, I know how to get a nameserver, but I'm asking about the domain name that goes in resolv.conf. The Arch wiki tutorial for setting up static IP uses the following resolv.conf as an example:
nameserver 61.23.173.5
nameserver 61.95.849.8
search example.com
My question has to do with what the "search example.com" does. I don't have a domain name associated with my machine, but if I remove that line, then I get "web page unavailable" when I try to load any web site, which suggests that I'm not connecting to any nameservers right? -
[SOLVED] Question about GCC error messages.
I'm currently taking a course in C programming, and I have a question about the error messages returned by GCC.
When ever i try to compile a program containing syntax errors, i get cryptic and not very helpfull error messages.
If i try to compile:
#include <stdio.h>
int main(void)
int i;
i = 0
return 0;
I get following from GCC:
error.c: In function â:
error.c:8:2: error: expected â before â
But shouldn't the message be something like:
error.c: In function 'main':
error.c:8:2: error: expected ; before 'return'
or am I mistaken?
/AcId
Last edited by AcId (2010-10-13 17:48:19)Woah. That is very strange. I've never seen that before.
I assume you're using Arch Linux. What text editor did you use to write the code? Which terminal application are you using?
...those questions are probably unrelated to the problem, but we might as well get them out of the way. -
[SOLVED] Change environment variables with Shell scripts
How can I change the "BROWSER" environment variable with a shell script; so I can change it on the fly?
Last edited by oldtimeyjunk (2012-10-31 12:57:42)If you just want to do it for BROWSER so that you can change your default web browser on the fly, you could set BROWSER to e.g. ~/bin/mybrowser and create a symlink to the browser you want at ~/bin/mybrowser. Then you could change the symlink at will.
EDIT: man xdg-settings
Last edited by cfr (2012-10-31 02:20:16) -
[SOLVED]Questions about a shell program and about shell: files, regexp
Hello, I'm writing this little program in shell:
#!/bin/bash
# Synopsis:
# Read from an inputfile each line, which has the following format:
# lllnn nnnnnnnnnnnnllll STRING lnnnlll n nnnn nnnnnnnnn nnnnnnnnnnnnnnnnnnnn ll ll
# where:
# n is a <positive int>
# l is a <char> (no special chars)
# the last set of ll ll could be:
# - NV
# - PV
# Ex:
# AVO01 000060229651AVON FOOD OF ARKHAM C A S060GER 0 1110 000000022 00031433680006534689 NV PV
# The program should check, for each line of the file, the following:
# I) If the nn of character lllnn (beggining the line) is numeric,
# this is, <int>
# II) If the character ll ll is NV (just one set of ll) then
# copy that line in an outputfile, and add one to a counter.
# III) If the character ll ll is NP (just one set of ll) then
# copy that line in an outputfile, and add one to a counter.
# NOTICE: could be just one ll. Ex: [...] NV [...]
# [...] PV [...]
# or both Ex: [...] NV PV [...]
# Execution (after generating the executable):
# ./ inputfile outputfileNOM outputfilePGP
# Check the number of arguments that could be passed.
if [[ ${#@} != 3 ]]; then
echo "Error...must be: myShellprogram <inputfile> <outputfileNOM> <outputfilePGP>\n"
exit
fi
#Inputfile: is in position 1 on the ARGS
inputfile=$1
#OutputfileNOM: is in position 2 on the ARGS
outputfileNOM=$2
#OutputfilePGP: is in position 3 on the ARGS
outputfilePGP=$3
#Main variables. Change if needed.
# Flags the could appear in the <inputfile>
# ATTENTION!!!: notice that there is a white space
# before the characters, this is important when using
# the regular expression in the conditional:
# if [[ $line =~ $NOM ]]; then [...]
# If the white space is NOT there it would match things like:
# ABCNV ... which is wrong!!
NOM=" NV"
PGP=" PV"
#Counters of ocurrences
countNOM=0;
countPGP=0;
#Check if the files exists and have the write/read permissions
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
#Read all the lines of the file.
while read -r line
do
code=${line:3:2} #Store the code (the nnn) of the "llnnn" char set of the inputfile
#Check if the code is numeric
if [[ $code =~ ^[0-9]+$ ]] ; then
#Check if the actual line has the NOM flag
if [[ $line =~ $NOM ]]; then
echo "$line" >> "$outputfileNOM"
(( ++countNOM ))
fi
#Check if the actual line has the PGP flag
if [[ $line =~ $PGP ]]; then
echo "$line" >> "$outputfilePGP"
(( ++countPGP ))
fi
else
echo "$code is not numeric"
exit
fi
done < "$inputfile"
echo "COUN NON $countNOM"
echo "COUN PGP $countPGP"
else
echo "FILE: $inputfile does not exist or does not have read permissions"
echo "FILE: $outputfileNOM does not exist or does not have write permissions"
echo "FILE: $outputfilePGP does not exist or does not have write permissions"
fi
I have some questions:
I) When I do:
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]; then
else
echo "FILE: $inputfile does not exist or does not have read permissions"
echo "FILE: $outputfileNOM does not exist or does not have write permissions"
echo "FILE: $outputfilePGP does not exist or does not have write permissions"
fi
I would like to print the things on the else, accordingly, this is, print the right message. Ex: if "$outputfileNOM" did not have the write permission, just print that error. BUT, I don't want to put a lot of if/else, Ex:
if [[ -r $inputfile ]]; then
if [[-w $outputfileNOM ]] then
else
For the READ permission, and the other for the WRITE
Is there a way to do it, without using a nesting approach, and that maintains the readability.
II) About the:
if [[ -r $inputfile && -w $outputfileNOM && -w $outputfilePGP ]]
is OK if I use the flag "-x" instead of -r or -w. I don;t have a clear definition of what is the meaning of:
-x FILE
FILE exists and execute (or search) permission is granted
III) Notice the ATTENTION label in my code. I notice that there are some possibilities, for ex: having white spaces before, after or before or after. I'm believing in the consistency of the input files, but if they change, it will explode. What could I do in this case? Is there an elegant way to manage it? (exceptions?)
Thank you very much!
EDIT: corrected what rockin turtle wrote bellow about the format. Thank you.
Last edited by gromlok (2011-10-09 18:39:03)I) Regarding your if statement, you could do something like this:
estr='FILE: %s does not exist or does not have %s permissions.\n'
[ -r $inputfile ] || ( printf "$estr" "$inputfile" "read" && exit 1 )
[ -w $outputfileNOM ] || ( printf "$estr" "$outputfileNOM" "write" && exit 1 )
[ -w $outputfilePGP ] || ( printf "$estr" "$outputfilePGP" "write" && exit 1 )
II)The -r/-w/-x mean that the file has the read/write/execute bit set. Do a
$ man chmod
for details.
III) You should be able to do
if [[ "$line" =~ .*\<NV\> ]]; then
echo "..."
(( countNOM++ ))
fi
but that didn't work for me when I tried it. I don't know if this is a bug in bash, or (more likely) something that I am doing wrong.
Regardless, I would write your script like this:
#!/bin/bash
file=$(egrep '^[A-Z]..[0-9]{2}' "$1")
grep '\<NV\>' <<< "$file" > "$2"
grep '\<PV\>' <<< "$file" > "$3"
echo 'Count NON:' $(wc -l < "$2")
echo 'Count PGP:' $(wc -l < "$3")
Note: In reading your script, your comments imply that each line of the input file starts with 'llnnn' but the example line you gave starts with 'lllnn'. That is, there are 3 letters (AVO) followed by 2 numbers (01). The above script assumes that lines start with 'lllnn' -
[Solved] Questions about Arch on T420s
Hello everybody,
I'm relatively new to Arch and switched from Ubuntu last year. Since then I've learned a lot about Linux in general due to the great documentation provided by the Arch community.
I've managed to install Arch on my Thinkpad T420s with an UEFI Setup using Archboot. But still there are open questions.
My first question is about the UEFI System partition and grub2. Should the UEFI partition be mounted to the filesystem? What about updating Grub2 (eg for setting boot parameters) when the UEFI System partition is not mounted to the filesystem. Up to now I've set boot parameters by manually mounting the UEFI partition and editing the Grub2's menu.lst equivalent. I think this is not optimal.
My second question is about some graphical artifacts in Gnome 3. The T420s uses Intel HD 3000 Graphics. Sometimes icons in nautilus disapear or get replaced by black planes when hovering over them with the mouse cursor. Similar black planes replacing icons can be observed sometimes in Evolution or Rhythmbox. Furthermore gnome-terminal becomes transparent sometimes when I'm scrolling or switching between powertop2 tabs. Anyone else observed similar issues on their T420s or on other models with an Intel HD 3000? I use several options for the i915 driver but none of them seem to be related to the graphical artifacts. Furthermore I've disabled dVT in the BIOS.
options i915 modeset=1
options i915 i915_enable_rc6=1
options i915 i915_enable_fbc=1
options i915 lvds_downclock=1
options i915 semaphores=1
My last question is about the USB ports on my T420s. I've 3 USB ports, one on the left side (USB2.0) and two (USB3.0 and another USB2.0) on the back side. When I plug in a HD on the left side everything works fine and the filesystem is automatically mounted. When I plug in the same HD on the ports of the back side the HD isn't even recognized. Interestingly when i boot with the HD plugged into the back side ports everything works fine. Can you point me any directions how to solve this problem?
Hopefully sombody using Arch on a T420s has already solved these issues and could share the solutions. Otherwise I would be grateful for any suggestions.
Sincerely yours,
Tobsen
Last edited by tobsen (2012-02-09 17:15:27)Hi Tobsen, I have a T420 also. Perhaps my experiences will be some help?
Regarding the USB ports: I installed Arch on my T420 with the Kernal 3.0.3 snapshot and all the USB ports worked out of the box. That sounds like a problem with udev to me, though. Have you checked the wiki article on this?
Regarding the graphical artifacts: For me, when a popup window appears from hovering the mouse over an icon, the window is sometimes blank grey. It's totally inconsistent, and I can fix it by just hovering over it again, so I haven't really bothered to examine the source of the problem. Could this be related to your problem with the GPU? I figured it was a problem with the windows manager I'm using (Enlightenment e17), which is unstable.
Regarding UEFI: I don't use GRUB2, so this may not be good advice, but I personally feel like you should avoid auto-mounting partitions you don't always need. It slows down boot, and if the partition is mounted, user error could damage it. I say you should keep doing what you're doing. -
[solved] Questions about pacman -Qk and -Qkk output.
I was looking through the pacman manual today to see if there was anything I could add to a some Arch maintenance scripts I've been working on and came across -Qk which, among other things, lists missing files. I ran pacman -Qk in terminal and found a few package installations were missing files. I reinstalled them manually check again and the files were no longer missing. The first package I saw that was missing a file was gnome-command-center for instance.
So I really have two questions.
1) Is it normal for packages to have missing files?
2) Is it a good idea to reinstall these packages to replace the missing files.
I then ran pacman -Qkk, and got even more disturbing information such as modification time mismatches and size mismatches.
$ pacman -Qkk |grep warning
warning: avahi: /etc/avahi/avahi-daemon.conf (Modification time mismatch)
warning: avahi: /etc/avahi/hosts (Modification time mismatch)
warning: avahi: /etc/avahi/services/sftp-ssh.service (Modification time mismatch)
warning: avahi: /etc/avahi/services/ssh.service (Modification time mismatch)
warning: avahi: /usr/lib/avahi/service-types.db (Modification time mismatch)
warning: avahi: /usr/share/avahi/service-types (Modification time mismatch)
warning: bash: /etc/bash.bash_logout (Modification time mismatch)
warning: bash: /etc/bash.bashrc (Modification time mismatch)
warning: bash: /etc/skel/.bash_logout (Modification time mismatch)
warning: bash: /etc/skel/.bash_profile (Modification time mismatch)
warning: bash: /etc/skel/.bashrc (Modification time mismatch)
warning: bluez: /etc/bluetooth/main.conf (Modification time mismatch)
warning: bluez: /etc/dbus-1/system.d/bluetooth.conf (Modification time mismatch)
warning: ca-certificates-java: /etc/default/cacerts (Modification time mismatch)
warning: cdrtools: /etc/default/cdrecord (Modification time mismatch)
warning: cdrtools: /etc/default/rscsi (Modification time mismatch)
warning: chromium: /etc/chromium/default (Modification time mismatch)
warning: chromium: /etc/chromium/default (Size mismatch)
warning: colord: /var/lib/colord (UID mismatch)
warning: colord: /var/lib/colord (GID mismatch)
warning: dhcpcd: /etc/dhcpcd.conf (Modification time mismatch)
warning: e2fsprogs: /etc/mke2fs.conf (Modification time mismatch)
warning: filesystem: /etc/crypttab (Modification time mismatch)
warning: filesystem: /etc/fstab (Modification time mismatch)
warning: filesystem: /etc/fstab (Size mismatch)
warning: filesystem: /etc/group (Modification time mismatch)
warning: filesystem: /etc/group (Size mismatch)
warning: filesystem: /etc/gshadow (Permissions mismatch)
warning: filesystem: /etc/gshadow (Modification time mismatch)
warning: filesystem: /etc/gshadow (Size mismatch)
warning: filesystem: /etc/host.conf (Modification time mismatch)
warning: filesystem: /etc/hosts (Modification time mismatch)
warning: filesystem: /etc/issue (Modification time mismatch)
warning: filesystem: /etc/ld.so.conf (Modification time mismatch)
warning: filesystem: /etc/motd (Modification time mismatch)
warning: filesystem: /etc/mtab (Modification time mismatch)
warning: filesystem: /etc/mtab (Symlink path mismatch)
warning: filesystem: /etc/nsswitch.conf (Modification time mismatch)
warning: filesystem: /etc/passwd (Modification time mismatch)
warning: filesystem: /etc/passwd (Size mismatch)
warning: filesystem: /etc/profile (Modification time mismatch)
warning: filesystem: /etc/resolv.conf (Modification time mismatch)
warning: filesystem: /etc/resolv.conf (Size mismatch)
warning: filesystem: /etc/securetty (Modification time mismatch)
warning: filesystem: /etc/shadow (Permissions mismatch)
warning: filesystem: /etc/shadow (Modification time mismatch)
warning: filesystem: /etc/shadow (Size mismatch)
warning: filesystem: /etc/shells (Modification time mismatch)
warning: flashplugin: /etc/adobe/mms.cfg (Modification time mismatch)
warning: flashplugin: /etc/adobe/mms.cfg (Size mismatch)
warning: glibc: /etc/locale.gen (Modification time mismatch)
warning: glibc: /etc/locale.gen (Size mismatch)
warning: gnome-control-center: /usr/share/polkit-1/rules.d/gnome-control-center.rules (Permission denied)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu.conf (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu.conf (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/auto-load.conf (Permissions mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/auto-load.conf (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/auto-load.conf (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/icon (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/icon (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/preview (Permissions mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/preview (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/preview (Size mismatch)
warning: grub: /boot/grub/grub.cfg (Permissions mismatch)
warning: grub: /boot/grub/grub.cfg (Modification time mismatch)
warning: grub: /boot/grub/grub.cfg (Size mismatch)
warning: iproute2: /etc/iproute2/ematch_map (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_dsfield (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_protos (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_realms (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_scopes (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_tables (Modification time mismatch)
warning: jack: /etc/security/limits.d/99-audio.conf (Modification time mismatch)
warning: java-common: /etc/profile.d/jre.csh (Modification time mismatch)
warning: java-common: /etc/profile.d/jre.sh (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/calendars.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/content-types.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/flavormap.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/fontconfig.bfc (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/fontconfig.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/logging.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/net.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/psfont.properties.ja (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/psfontj2d.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/sound.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/tz.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/amd64/jvm.cfg (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/images/cursors/cursors.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/jmxremote.access (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/jmxremote.password (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/management.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/snmp.acl (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/security/java.policy (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/security/java.security (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/security/nss.cfg (Modification time mismatch)
warning: krb5: /etc/krb5.conf (Modification time mismatch)
warning: krb5: /var/lib/krb5kdc/kdc.conf (Modification time mismatch)
warning: libcups: /etc/cups/client.conf (Modification time mismatch)
warning: libirman: /etc/irman.conf (Modification time mismatch)
warning: libnl: /etc/libnl/classid (Modification time mismatch)
warning: libnl: /etc/libnl/pktloc (Modification time mismatch)
warning: libreoffice-still-common: /etc/libreoffice/bootstraprc (Modification time mismatch)
warning: libreoffice-still-common: /etc/libreoffice/psprint.conf (Modification time mismatch)
warning: libreoffice-still-common: /etc/libreoffice/sofficerc (Modification time mismatch)
warning: libreoffice-still-common: /etc/profile.d/libreoffice-still-common.csh (Modification time mismatch)
warning: libreoffice-still-common: /etc/profile.d/libreoffice-still-common.sh (Modification time mismatch)
warning: linux: /etc/mkinitcpio.d/linux.preset (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias.bin (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.builtin.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep.bin (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.devname (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.softdep (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols.bin (Size mismatch)
warning: lirc-utils: /etc/lirc/lirc_options.conf (Modification time mismatch)
warning: lirc-utils: /etc/lirc/lircd.conf (Modification time mismatch)
warning: lirc-utils: /etc/lirc/lircmd.conf (Modification time mismatch)
warning: lvm2: /etc/lvm/lvm.conf (Modification time mismatch)
warning: mdadm: /etc/mdadm.conf (Modification time mismatch)
warning: mime-types: /etc/mime.types (Modification time mismatch)
warning: mkinitcpio: /etc/mkinitcpio.conf (Modification time mismatch)
warning: mkinitcpio: /etc/mkinitcpio.conf (Size mismatch)
warning: mplayer: /etc/mplayer/codecs.conf (Modification time mismatch)
warning: mplayer: /etc/mplayer/input.conf (Modification time mismatch)
warning: nano: /etc/nanorc (Modification time mismatch)
warning: networkmanager: /etc/NetworkManager/NetworkManager.conf (Modification time mismatch)
warning: openresolv: /etc/resolvconf.conf (Modification time mismatch)
warning: openssl: /etc/ssl/openssl.cnf (Modification time mismatch)
warning: pacman: /etc/makepkg.conf (Modification time mismatch)
warning: pacman: /etc/makepkg.conf (Size mismatch)
warning: pacman: /etc/pacman.conf (Modification time mismatch)
warning: pacman: /etc/pacman.conf (Size mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (UID mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (GID mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (Modification time mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (Size mismatch)
warning: pam: /etc/environment (Modification time mismatch)
warning: pam: /etc/default/passwd (Modification time mismatch)
warning: pam: /etc/security/access.conf (Modification time mismatch)
warning: pam: /etc/security/group.conf (Modification time mismatch)
warning: pam: /etc/security/limits.conf (Modification time mismatch)
warning: pam: /etc/security/namespace.conf (Modification time mismatch)
warning: pam: /etc/security/namespace.init (Modification time mismatch)
warning: pam: /etc/security/pam_env.conf (Modification time mismatch)
warning: pam: /etc/security/time.conf (Modification time mismatch)
warning: polkit: /etc/polkit-1/rules.d/50-default.rules (Permission denied)
warning: pulseaudio-alsa: /etc/asound.conf (Modification time mismatch)
warning: rhash: /etc/rhashrc (Modification time mismatch)
warning: rhash: /etc/rhashrc (Size mismatch)
warning: rsync: /etc/rsyncd.conf (Modification time mismatch)
warning: rsync: /etc/xinetd.d/rsync (Modification time mismatch)
warning: samba: /etc/conf.d/samba (Modification time mismatch)
warning: samba: /etc/logrotate.d/samba (Modification time mismatch)
warning: samba: /etc/pam.d/samba (Modification time mismatch)
warning: sudo: /etc/sudoers (Modification time mismatch)
warning: sudo: /etc/sudoers (Size mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.hostname1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.locale1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.login1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.machine1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.systemd1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.timedate1.conf (Modification time mismatch)
warning: systemd: /etc/pam.d/systemd-user (Modification time mismatch)
warning: systemd: /etc/systemd/bootchart.conf (Modification time mismatch)
warning: systemd: /etc/systemd/coredump.conf (Modification time mismatch)
warning: systemd: /etc/systemd/journald.conf (Modification time mismatch)
warning: systemd: /etc/systemd/logind.conf (Modification time mismatch)
warning: systemd: /etc/systemd/resolved.conf (Modification time mismatch)
warning: systemd: /etc/systemd/system.conf (Modification time mismatch)
warning: systemd: /etc/systemd/timesyncd.conf (Modification time mismatch)
warning: systemd: /etc/systemd/timesyncd.conf (Size mismatch)
warning: systemd: /etc/systemd/user.conf (Modification time mismatch)
warning: systemd: /etc/udev/udev.conf (Modification time mismatch)
warning: systemd: /var/log/journal/remote (GID mismatch)
warning: texlive-core: /etc/texmf/web2c/updmap.cfg (Modification time mismatch)
warning: texlive-core: /etc/texmf/web2c/updmap.cfg (Size mismatch)
warning: util-linux: /etc/pam.d/chfn (Modification time mismatch)
warning: util-linux: /etc/pam.d/chsh (Modification time mismatch)
warning: util-linux: /etc/pam.d/login (Modification time mismatch)
warning: util-linux: /etc/pam.d/su (Modification time mismatch)
warning: util-linux: /etc/pam.d/su-l (Modification time mismatch)
warning: vim-runtime: /etc/vimrc (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Size mismatch)
warning: xorg-xinit: /etc/X11/xinit/xinitrc (Modification time mismatch)
warning: xorg-xinit: /etc/X11/xinit/xserverrc (Modification time mismatch)
warning: xorg-xinit: /etc/skel/.xinitrc (Modification time mismatch)
warning: xorg-xinit: /etc/skel/.xsession (Modification time mismatch)
warning: xorg-xinit: /etc/skel/.xsession (Size mismatch)
warning: yaourt: /etc/yaourtrc (Modification time mismatch)
I'm assuming all of those are bad. "Warning" rarely sounds friendly, though for those files I've modified myself, such as passwd, shadow, and group, its okay. I assume I can fix msot of these by running # pacman -S {package}?
Last edited by nstgc (2014-09-14 01:26:04)Awk processes the output from pacman, splits it using [white]space[s] as delimiter and prints only first field $1, which is the package name. Those reoccur if several files are involved, so just to be sure, I also used awks sort, maybe that could be skipped or alternatively sort command outside awk used instead. This sorted output gets fed into uniq, which outputs only unique strings coming from input. And that leaves you with the package list.
Edit: I think those are whitespaces actually, which if I recall correctly include space.
Edit2: So this might be better and certainly a little faster:
pacman -S $(pacman -Qkq | awk '{print $1}' | uniq)
# And this should be even faster, since the output pacman
# delivers seems to be sorted anyway. Should you parse
# something else, use my first suggestion instead.
pacman -Qkq | awk 'BEGIN{ y=0; }; {x=$1; if (x == y){ next; }; print $1; y=x;}'
Edit3: Out of curiosity I tested different methods measuring execution time with a input file consisting out of 1443 lines from pacman -Qkkq. Here are the results and the bottom is the test script.
Sun 14 Sep 15:14:26 CEST 2014, Generating input file
Sun 14 Sep 15:15:22 CEST 2014, Loops: 10
0 : /tmp/awk-adv.log
0.01 : /tmp/awk-sort.log
0 : /tmp/awk-sort-outside.log
0.002 : /tmp/awk-uniq.log
Seconds: 0
Sun 14 Sep 15:15:22 CEST 2014, Loops: 20
0.001 : /tmp/awk-adv.log
0.0095 : /tmp/awk-sort.log
0.0005 : /tmp/awk-sort-outside.log
0 : /tmp/awk-uniq.log
Seconds: 1
Sun 14 Sep 15:15:23 CEST 2014, Loops: 50
0 : /tmp/awk-adv.log
0.0096 : /tmp/awk-sort.log
0.0002 : /tmp/awk-sort-outside.log
0 : /tmp/awk-uniq.log
Seconds: 2
Sun 14 Sep 15:15:25 CEST 2014, Loops: 100
0.0003 : /tmp/awk-adv.log
0.0092 : /tmp/awk-sort.log
0 : /tmp/awk-sort-outside.log
0.0003 : /tmp/awk-uniq.log
Seconds: 5
Sun 14 Sep 15:15:30 CEST 2014, Loops: 200
0.00045 : /tmp/awk-adv.log
0.00955 : /tmp/awk-sort.log
0.0001 : /tmp/awk-sort-outside.log
0.0006 : /tmp/awk-uniq.log
Seconds: 8
Sun 14 Sep 15:15:38 CEST 2014, Loops: 500
0.00042 : /tmp/awk-adv.log
0.0094 : /tmp/awk-sort.log
0.0004 : /tmp/awk-sort-outside.log
0.00026 : /tmp/awk-uniq.log
Seconds: 21
Sun 14 Sep 15:15:59 CEST 2014, Loops: 1000
0.00034 : /tmp/awk-adv.log
0.00942 : /tmp/awk-sort.log
0.00042 : /tmp/awk-sort-outside.log
0.00025 : /tmp/awk-uniq.log
Seconds: 42
Sun 14 Sep 15:16:41 CEST 2014, Loops: 2000
0.00038 : /tmp/awk-adv.log
0.009355 : /tmp/awk-sort.log
0.000285 : /tmp/awk-sort-outside.log
0.00042 : /tmp/awk-uniq.log
Seconds: 83
Sun 14 Sep 15:18:04 CEST 2014, Loops: 5000
0.000388 : /tmp/awk-adv.log
0.009274 : /tmp/awk-sort.log
0.00034 : /tmp/awk-sort-outside.log
0.000366 : /tmp/awk-uniq.log
Seconds: 208
Sun 14 Sep 15:21:32 CEST 2014, Loops: 10000
0.00036 : /tmp/awk-adv.log
0.009286 : /tmp/awk-sort.log
0.000346 : /tmp/awk-sort-outside.log
0.000358 : /tmp/awk-uniq.log
Seconds: 419
Sun 14 Sep 15:28:31 CEST 2014, Loops: 20000
0.00029 : /tmp/awk-adv.log
0.009115 : /tmp/awk-sort.log
0.0002725 : /tmp/awk-sort-outside.log
0.000299 : /tmp/awk-uniq.log
Seconds: 828
Sun 14 Sep 15:42:19 CEST 2014, Loops: 50000
0.0003174 : /tmp/awk-adv.log
0.0093014 : /tmp/awk-sort.log
0.0002422 : /tmp/awk-sort-outside.log
0.000292 : /tmp/awk-uniq.log
Seconds: 2171
The awk internal sorting is the slowest method, but it seems it initializes longer, since there appears to be a constant difference between internal and external sorting. Uniq fed by awk is faster with smaller loops, but gets slower if repeated more often, yet overall remain fastest with the unique function I used within awk. It appears the more lines the input has, the slower uniq in comparison uniq in awk gets. Here is the testing script:
#!/bin/bash
LOOPS=('10' '20' '50' '100' '200' '500' '1000' '2000' '5000' '10000' '20000' '50000');
rm /tmp/results*.log
echo $(date), Generating input file;
pacman -Qkkq > /tmp/input.txt
for LOOP in ${LOOPS[@]}; do
START=$(date +%s);
echo $(date), Loops: $LOOP;
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk '{print $1 | "sort" }' /tmp/input.txt | uniq; done 2>&1 >/dev/null | grep : > /tmp/awk-sort.log
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk '{print $1}' /tmp/input.txt | sort | uniq; done 2>&1 >/dev/null | grep : > /tmp/awk-sort-outside.log
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk '{print $1}' /tmp/input.txt | uniq; done 2>&1 >/dev/null | grep : > /tmp/awk-uniq.log
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk 'BEGIN{ y=0; }; {x=$1; if (x == y){ next; }; print $1; y=x;}' /tmp/input.txt; done 2>&1 >/dev/null | grep : > /tmp/awk-adv.log
for FILE in /tmp/awk-*.log; do awk 'BEGIN{x=0; y=0; FS=":"}; {x++; y=y+$1;}; END{print "\t"y/x"\t:\t"FILENAME;}' "$FILE"; done | sort >> /tmp/results-sorted.log
for FILE in /tmp/awk-*.log; do awk 'BEGIN{x=0; y=0; FS=":"}; {x++; y=y+$1;}; END{print "\t"y/x"\t:\t"FILENAME;}' "$FILE"; done | tee -a /tmp/results.log
END=$(date +%s);
DIFF=$(( $END - $START ));
echo Seconds: $DIFF;
done | tee /tmp/awk.log
Last edited by emeres (2014-09-14 14:38:18) -
[SOLVED] Question about Feh
I installed feh to use as a file browser image launcher (https://wiki.archlinux.org/index.php/Fe … e_Launcher) and as a desktop wallpaper manager (https://wiki.archlinux.org/index.php/Fe … er_manager), but it seems that I each time must use "sudo" for this. Therefore I think the script from the wiki page will not launch in Thunar and that the wallpaper will not load on start up in i3. In order to do this, I think I must add my user to a group, but I'm not sure which one or if it is the right way to solve it. Would you please assist me with this and thank you in advance.
Last edited by rayanamukami (2014-04-26 09:32:36)Thank you for your advice, I should not use sudo as often as I do.
In Thunar opening an image with the feh_browser.sh script gives the following message.
Failed to execute application "feh_browser.sh".
Failed to execute child process "/home/kohaku/feh_browser" (Permission denied).
For the wallpaper, I followed the wiki page about i3 (https://wiki.archlinux.org/index.php/I3 … _wallpaper). The following command gives the following message.
$ feh --bg-scale /path/to/image.file
feh WARNING: /home/kohaku/.feh/wallpaper/touhou.png - No read access
feh ERROR: Unable to load image /home/kohaku/.feh/
I have added
exec --no-startup-id sh ~/.fehbg
to
~/.i3/config -
[SOLVED] Question about bash
The default .bashrc file looks like this. When installing rvm I noticed that it is not sourcing scripts under /etc/profile.d.
# ~/.bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
I just solved my issue by adding the following code to .bashrc. I was just wondering if this should be done by default perhaps in the package that installs /etc/skel/.bashrc?
if [ -f /etc/profile ]; then
. /etc/profile
fi
Last edited by MikeW (2014-11-12 05:28:25)Seems that it is an rvm issue. After a bit of searching for rvm problems I found this post that gave me the rvm specific solution. This is probably the preferred fix since its just rvm that's the issue here.
http://askubuntu.com/questions/40287/et … ng-sourced
The key is serveral posts down...
Installing RVM as multiuser requires the user to run this command:
echo '[[ -s "/etc/profile.d/rvm.sh" ]] && . "/etc/profile.d/rvm.sh" # Load RVM function' >> ~/.bashrc
So I can remove the /etc/profile bit now. Thanks for stearing me in the right direction to fix this. -
[Solved] Questions about netcfg
Hello,
I just set up a very basic Arch install and to keep in this spirit, I decided to go with netcfg. I got it all working but I do have some questions, especially about it I need certain packages.
1: At home we have a wifi network that is secured with WPA. I take it, according to the wiki, that I have to use wpa_actiond for this? Or is this just for roaming? (as this part of the wiki suggests "required for automatic/roaming wireless connections".)
2: I'm using wifi-select as well for when I'm on the go. I have added this information as suggested per the wiki to /etc/rc.conf, to automatically connect to my home network? Is this redundant when using wifi-select and/or will this interfere with wifi-select when I want to connect to another network?
I'm a little struggling with the English to get my point across in these questions but I think you'll understand. If not, I'll try to elaborate a little more. Thanks in advance for your help!
Last edited by Unia (2012-01-31 21:29:46)Raynman wrote:1: That (the quote) is not a suggestion, it's a statement. So your assumption is not correct and I don't understand why you say 'according to the wiki'. wpa_supplicant handles the wpa stuff -- see below for more about wpa_actiond.
I say so, because as I said English is not my first language.
Raynman wrote:2: As the wiki says, net-auto-wireless is useful for roaming, moving between a number of known networks (for example, I have profiles for home, university and public wifi on the train). It also says that this is the part of netcfg that requires wpa_actiond. If you usually use your home network, you might opt for the simpler net-profiles and rely on wifi-select for when you occasionally need to connect to some other network; then you can drop wpa_actiond.
Thanks, I get it! I'll mess around with it tomorrow. -
[SOLVED] Question about systemd-user-session
Hi!
I'm trying to setup a systemd --user session (using user-session-units and xorg-launch-helper from aur).
I have a couple of questions; this is my .xinitrc now:
#!/bin/bash
export BROWSER=chromium
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
spacefm --desktop &
compton -cGCf -m 0.9 -i 0.8 -D 5 --shadow-exclude 'g:e:Conky' &
volumeicon &
/home/federico/Script/touchpadoff_onboot.sh &
#connman-ui-gtk &
/home/federico/Script/calised-script &
dimdaemon &
tint2 -c .config/tint2/dragonauta.tint2rc &
conky -p 5 -c Script/conky.conf &
exec openbox
1) is "if" statement required when using systemd-user-session? And if yes, how can I reproduce it?
2) "conky -p 5 " will wait 5 seconds doing nothing. Will this mean that other .service will wait for it to finish? (i guess no, since they're executed in parallel).
3) how can I export "chromium" as my default browser?
Thank you very much!
Last edited by nierro (2013-04-06 17:56:17)I followed everything in that wiki, and in KaiSforza and sofar github page.
I finally managed to get my old method (autologin to vt and autostart x) to work together with systemd --user: i put in .xinitrc "systemd --user" and deleted everything else.
So, my .config/systemd/user/ works. The problem is in the [email protected], i guess. I configured it like wiki says, mind to post here your /etc/systemd/system/[email protected]?
Thanks.
EDIT: here it is my [email protected]:
# This file is part of systemd.
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
[Unit]
Description=User Manager for %I
After=systemd-user-sessions.service
# This is needed for folks running Xorg on vt/1
Conflicts=[email protected]
[Service]
User=%I
PAMName=login
# Note memory:/ required kernel memory CGroups support
ControlGroup=%R/user/%I/shared cpu:/ memory:/
ControlGroupModify=yes
Type=notify
TTYPath=/dev/tty1
ExecStart=-/usr/lib/systemd/systemd --user
Environment=DISPLAY=:0
Environment=XDG_RUNTIME_DIR=/run/user/%U
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/dbus/user_bus_socket
[Install]
WantedBy=getty.target
and loginctl says my user has "1000" as UID.
Last edited by nierro (2013-04-05 16:13:14)
Maybe you are looking for
-
After going through the Thunderbird setup on a Windows 8.1 computer, and after selecting IMAP instead of POP, I get to the point where it asks me to input name, email and password. However, when I do so, it invariably comes back and says my name and/
-
Really Difficult iCal Bug (iCal now unusable)
I have an iCal problem that has made my calendar unusable. A little while ago I dragged an email onto the REMINDERS icon in my Dock (not the iCal icon, although we all know how the expanding icons can make precision difficult) to see if I could link
-
Time Machine Disk - A few 'minor issues'
Hi All, (note not all caps I've had some issues with macs or another over the past week but to cut a long story short, the one that had a 'logic board' issue starting booting up so I took the chance to re-install leopard, but, during the calculating
-
Windows 2003 Terminal Server, ZEN 7, and WSUS
Hi, We're having a problem getting a group policy to "Stick" in Windows 2003 terminal server. The server(s) have the ZEN 7.01 agent installed per the TID's for a terminal server. We believe we've set all the Group Policies of the users that login to
-
since I upgraded to OSX 10.6.8 my macbook pro's SD card reader has stopped working. any suggestions?