Re: Random tools I've found interesting
Hi, Thought I would add to this with my own findings. Taken from my Ansible playbook, but should be fairly readable :-). On 09/03/2020 11:50, Christian Ehrhardt wrote: > Not my tool so I can't point to my repo. > But also really helpful when dealing with git-repos on a daily base. > > https://github.com/jimeh/git-aware-prompt > > Lets your prompt always list in which branch you are (I also show if it > is dirty). > Let me know if you need help setting this up... Display a multitude of GIT information in the prompt: ``` - name: Ensure GIT helper scripts get_url: url: "{{ item.url }}" dest: "{{ item.dest | default('~/.' + item.url | basename) }}" backup: true loop: - url: https://github.com/git/git/raw/master/contrib/completion/git-prompt.sh - name: Ensure GIT helper scripts in bashrc blockinfile: path: ~/.bashrc block: | if [ -r ~/.git-completion.bash ]; then source ~/.git-completion.bash fi if [ -r ~/.git-prompt.sh ]; then source ~/.git-prompt.sh GIT_PS1_SHOWDIRTYSTATE=true GIT_PS1_SHOWSTASHSTATE=true #GIT_PS1_SHOWUNTRACKEDFILES=true GIT_PS1_SHOWUPSTREAM="auto" #GIT_PS1_STATESEPARATOR="SP" #GIT_PS1_DESCRIBESTYLE="default" GIT_PS1_SHOWCOLORHINTS=true GIT_PS1_HIDE_IF_PWD_IGNORED=true SPLITPS1="\"$(echo $PS1 | awk -F\$ '{OFS="$";NF--;print $0;}' | sed 's/\\$//')\" \"\\\$$(echo $PS1 | awk -F\$ '{OFS="$";print $NF;}') \"" PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND;} __git_ps1 $SPLITPS1" fi marker: "# {mark} GIT HELPERS" ``` Rename your TMUX window dynamically with your current directory: ``` - name: Ensure TMUX title set to $PWD blockinfile: path: ~/.bashrc block: | if [ -n "$TMUX" ] && [ -n "$BASH" ]; then __set_tmux_title() { if [ "$(pwd)" == "$(echo ~)" ]; then echo -ne "\033k$(hostname -s)\033\\" else title=$(pwd) echo -ne "\033k${title/*\//}\033\\" unset title fi } PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND;} __set_tmux_title" fi marker: '# {mark} TMUX TITLE' insertbefore: '^# enable programmable completion' - name: Ensure Byobu TMUX profile copy: content: | source $BYOBU_PREFIX/share/byobu/profiles/tmux set-option -g allow-rename on dest: ~/.byobu/profile.tmux backup: true ``` Hopefully someone finds it useful :-) Cheers, Nafallo -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
[Bug 1289503] [NEW] btrfs mounts missing from hrFSTable
Public bug reported: btrfs mounts do not show up in hrFSTable currently. The patch has been added upstream in newer versions, and should be included in the next LTS now that btrfs is mature enough to have fsck. ** Affects: net-snmp (Ubuntu) Importance: Undecided Status: New ** Patch added: net-snmp-5.7.2-btrfs.patch https://bugs.launchpad.net/bugs/1289503/+attachment/4012306/+files/net-snmp-5.7.2-btrfs.patch -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to net-snmp in Ubuntu. https://bugs.launchpad.net/bugs/1289503 Title: btrfs mounts missing from hrFSTable To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1289503/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1078620] Re: package quagga 0.99.20.1-0ubuntu0.12.04.2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
This is per design. ** Changed in: quagga (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to quagga in Ubuntu. https://bugs.launchpad.net/bugs/1078620 Title: package quagga 0.99.20.1-0ubuntu0.12.04.2 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/quagga/+bug/1078620/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1064771] Re: Frigöra diskutrymme på adder
Jag gick igenom paketen som är installerade på adder och föreslår att avinstallera följande om ingen vet varför de är installerade: cpu-checker db4.7-util diff ethtool gamin htop installation-report libadns1 libapt-pkg-perl (lots of media libs) libdb4.7 libconfig-file- perl libconfig-inifiles-perl liblist-moreutils-perl liblog-log4perl-perl memtest86+ mytop python-newt rrdtool screen unzip update-notifier-common usbutils apachetop apt-file byobu dialog ffmpeg ffmpeg2theora fontconfig libconsole libdb4.6 mg mii-diag munin netcat netcat-traditional subversion ttf-dejavu locate är redan utbytt till mlocate, och emacs22 är utbytt mot emacs23. ** Changed in: ubuntu-se-server Assignee: (unassigned) = Ubuntu Server Team (ubuntu-server) ** Changed in: ubuntu-se-server Status: Confirmed = In Progress -- You received this bug notification because you are a member of Ubuntu Server Team, which is a bug assignee. https://bugs.launchpad.net/bugs/1064771 Title: Frigöra diskutrymme på adder To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-se-server/+bug/1064771/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 1064771] Re: Frigöra diskutrymme på adder
Johan Ramm-Ericson 1064...@bugs.launchpad.net wrote: De enda paketen av ovan lista jag skulle rekommendera att behålla är diff och unzip. diff bytte namn till diffutils, och är nu ett tomt paket. Hur är det med ffmpeg? Behövs det för screencasts? -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- You received this bug notification because you are a member of Ubuntu Server Team, which is a bug assignee. https://bugs.launchpad.net/bugs/1064771 Title: Frigöra diskutrymme på adder To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-se-server/+bug/1064771/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 918956] Re: package quagga 0.99.17-4ubuntu1.1 failed to install/upgrade: sub-processo script post-installation instalado retornou estado de saída de erro 1
Hi, Could you please attached your ospfd configuration file, with any passwords, keys and other sensitive information mangled, please. Cheers, /N -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to quagga in Ubuntu. https://bugs.launchpad.net/bugs/918956 Title: package quagga 0.99.17-4ubuntu1.1 failed to install/upgrade: sub- processo script post-installation instalado retornou estado de saída de erro 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/quagga/+bug/918956/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 877322] Re: package quagga 0.99.15-1ubuntu0.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1
Sorry, quagga can't be automatically upgraded since it requires the admin to acknowledge the shutdown since it tends to break a lot of routing being done outside of a maintenance window. ** Changed in: quagga (Ubuntu) Status: New = Won't Fix -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to quagga in Ubuntu. https://bugs.launchpad.net/bugs/877322 Title: package quagga 0.99.15-1ubuntu0.1 failed to install/upgrade: subprocess new pre-removal script returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/quagga/+bug/877322/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 791522] Re: Debconf really_stop default value break unattended upgrades
I would argue this is a feature. In most environments were quagga is run you really really don't want an uncontrolled start/stop of the services this provides. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to quagga in Ubuntu. https://bugs.launchpad.net/bugs/791522 Title: Debconf really_stop default value break unattended upgrades -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 791522] Re: Debconf really_stop default value break unattended upgrades
Based on that, I'd argue this is a Won't Fix bug. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to quagga in Ubuntu. https://bugs.launchpad.net/bugs/791522 Title: Debconf really_stop default value break unattended upgrades -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 746497] Re: libvirt installs firewall rules on package upgrades
nafallo@pony:/etc/libvirt/qemu/networks$ ls -l * -rw-r--r-- 1 root root 151 2009-01-20 22:52 bklabs.xml lrwxrwxrwx 1 root root 10 2010-11-19 20:06 default.xml - bklabs.xml -rw-r--r-- 1 root root 231 2011-03-15 22:23 default.xml.dpkg-new -rw-r--r-- 1 root root 153 2008-09-15 22:39 lchost.xml autostart: total 0 lrwxrwxrwx 1 root root 14 2011-03-31 16:14 default.xml - ../default.xml nafallo@pony:~$ sudo diff -ruN /etc/libvirt/qemu/networks/bklabs.xml /var/lib/libvirt/network/bklabs.xml --- /etc/libvirt/qemu/networks/bklabs.xml 2009-01-20 22:52:22.0 + +++ /var/lib/libvirt/network/bklabs.xml 2010-05-20 20:21:13.0 +0100 @@ -1,6 +1,8 @@ network namebklabs/name - bridge name=bklabs/ - forward mode=route/ - ip address=91.194.67.9 netmask=255.255.255.255/ + uuid7c33807a-4c59-b922-5ef6-10d030ab496b/uuid + forward mode='route'/ + bridge name='bklabs' stp='on' delay='0' / + ip address='91.194.67.9' netmask='255.255.255.255' + /ip /network nafallo@pony:~$ sudo service libvirt-bin restart sudo iptables -vnL sudo iptables -F libvirt-bin start/running, process 28098 Chain INPUT (policy ACCEPT 3962M packets, 2383G bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT udp -- bklabs * 0.0.0.0/00.0.0.0/0 udp dpt:53 0 0 ACCEPT tcp -- bklabs * 0.0.0.0/00.0.0.0/0 tcp dpt:53 0 0 ACCEPT udp -- bklabs * 0.0.0.0/00.0.0.0/0 udp dpt:67 0 0 ACCEPT tcp -- bklabs * 0.0.0.0/00.0.0.0/0 tcp dpt:67 Chain FORWARD (policy ACCEPT 14G packets, 11T bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- * bklabs 0.0.0.0/091.194.67.9 0 0 ACCEPT all -- bklabs * 91.194.67.9 0.0.0.0/0 42 4683 ACCEPT all -- bklabs bklabs 0.0.0.0/00.0.0.0/0 583 48146 REJECT all -- * bklabs 0.0.0.0/00.0.0.0/0 reject-with icmp-port-unreachable 415 24630 REJECT all -- bklabs * 0.0.0.0/00.0.0.0/0 reject-with icmp-port-unreachable Chain OUTPUT (policy ACCEPT 2319M packets, 1710G bytes) pkts bytes target prot opt in out source destination I'm not going to reboot, since that's very non-trivial with this host. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in Ubuntu. https://bugs.launchpad.net/bugs/746497 Title: libvirt installs firewall rules on package upgrades -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 746497] [NEW] libvirt installs firewall rules on package upgrades
Public bug reported: libvirt recently had a security upgrade. Every time the package has an upgrade it re-installs firewall rules with means all my VMs loose Internet connectivity. After upgrade: nafallo@pony:~$ sudo iptables -vnL Chain INPUT (policy ACCEPT 3943M packets, 2378G bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT udp -- bklabs * 0.0.0.0/00.0.0.0/0 udp dpt:53 0 0 ACCEPT tcp -- bklabs * 0.0.0.0/00.0.0.0/0 tcp dpt:53 0 0 ACCEPT udp -- bklabs * 0.0.0.0/00.0.0.0/0 udp dpt:67 0 0 ACCEPT tcp -- bklabs * 0.0.0.0/00.0.0.0/0 tcp dpt:67 Chain FORWARD (policy ACCEPT 14G packets, 11T bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- * bklabs 0.0.0.0/091.194.67.9 0 0 ACCEPT all -- bklabs * 91.194.67.9 0.0.0.0/0 38 3992 ACCEPT all -- bklabs bklabs 0.0.0.0/00.0.0.0/0 367 34537 REJECT all -- * bklabs 0.0.0.0/00.0.0.0/0 reject-with icmp-port-unreachable 271 17023 REJECT all -- bklabs * 0.0.0.0/00.0.0.0/0 reject-with icmp-port-unreachable Chain OUTPUT (policy ACCEPT 2317M packets, 1709G bytes) pkts bytes target prot opt in out source destination Fix: nafallo@pony:~$ sudo iptables -F My setup is not the default, but I'm bored of having the package upgrades break my setup. ** Affects: libvirt (Ubuntu) Importance: High Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in Ubuntu. https://bugs.launchpad.net/bugs/746497 Title: libvirt installs firewall rules on package upgrades -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 746497] Re: libvirt installs firewall rules on package upgrades
Not to confuse the matter, but here is my network template for the network (the other parts of how things work is in my quagga config): nafallo@pony:~$ cat /etc/libvirt/qemu/networks/bklabs.xml network namebklabs/name bridge name=bklabs/ forward mode=route/ ip address=91.194.67.9 netmask=255.255.255.255/ /network -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in Ubuntu. https://bugs.launchpad.net/bugs/746497 Title: libvirt installs firewall rules on package upgrades -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 746497] Re: libvirt installs firewall rules on package upgrades
I should have mentioned this is Ubuntu 10.04 LTS, fully up-to-date. I had the same problem on 8.04 LTS and 8.10, and haven't tried any other versions. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in Ubuntu. https://bugs.launchpad.net/bugs/746497 Title: libvirt installs firewall rules on package upgrades -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: Hard disk high avalibity
Hi, On 20/01/11 12:02, Jesus arteche wrote: Hey guys, I have two servers...and I need that a folder in one of the servers will be updated every time to another server, in case the first server go down...the second will be able to replace it. anyone has any idea? Looks like gsync could do this. http://open.gandi.net/ Cheers, /N -- Nafallo Bjälevik nafa...@magicalforest.net -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
[Bug 460692] [NEW] Missing dependency for apache2 init script
Public bug reported: Binary package hint: apache2.2-common Hi, It seems this package is missing a dependency on psmisc. From the init script: nafa...@wizard:~$ grep killall /etc/init.d/apache2 killall htcacheclean 2 /dev/null || echo ...not running If killall doesn't exist on the server and you have mod_disk_cache enabled this fails silently, making sure you will run an additional htcacheclean daemon every time you restart (or even reload?) apache. Rather than adding a dependency I would suggest we swap the use of killall to pkill (found in procps, a packages with Priority: required). Thanks, /N ** Affects: apache2 (Ubuntu) Importance: Undecided Status: New -- Missing dependency for apache2 init script https://bugs.launchpad.net/bugs/460692 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 285889] Re: Gajim can't connect to GoogleTalk - nslookup: parse of /etc/resolv.conf failed
This is not a bug in gajim. ** Changed in: bind9 (Ubuntu) Sourcepackagename: gajim = bind9 -- Gajim can't connect to GoogleTalk - nslookup: parse of /etc/resolv.conf failed https://bugs.launchpad.net/bugs/285889 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to bind9 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 56724] Re: ddns-update-style interim doesn't work with AAAA-records
I haven't an environment to try this at the moment. However I haven't seen a change in any of the affected packages to make me assume this will have been fixed. I'll leave this open until we have evidence to the contrary, and I suggest that it will stay open until evidence exist that this have been fixed. Thanks. ** Changed in: dhcp3 (Ubuntu) Importance: Undecided = Medium Status: Invalid = Incomplete -- ddns-update-style interim doesn't work with -records https://bugs.launchpad.net/bugs/56724 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 56724] Re: ddns-update-style interim doesn't work with AAAA-records
To be fair. I can't remember what happened with this one. Assuming I've reported it upstream somewhere... -- ddns-update-style interim doesn't work with -records https://bugs.launchpad.net/bugs/56724 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dhcp3 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs