xaminmo: Josh 2016 (Default)
cat < <'EOF' >/etc/systemd/system/db2fmcd.service


systemctl enable db2fmcd.service
systemctl start db2fmcd.service

cp -p
Read more... )
xaminmo: Josh 2016 (Default)
cat <<'EOF' >>/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset video=1024x768"
systemctl set-default multi-user.target
Read more... )
xaminmo: Josh 2016 (Default)
This is happiness...

tsminst1@tsm:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

/bin/bash# for i in /dev/sd? ; do smartctl -a $i ; done | grep 'Device Model'
Device Model: Samsung SSD 850 EVO 250GB
Read more... )
xaminmo: Josh 2016 (Default)
Debian (and Ubuntu and others) use apt, aptitude, apt-get, and dpkg. apt currently requires the Release keys to match in a complex way. Mondo, Docker, and many other projects have problems making a repo actually work. The telltale failure is similar to this:

W: The repository
Read more... )
xaminmo: Josh 2016 (Default)
### Change to EXT4 mount mode (OKAY before conversion)
vi /etc/fstab

### Reboot into single user mode
shutdown -r now
LILO: linux S

### Unmount or read-only every filesystem
umount -a
mount -oremount,ro /usr
mount -oremount,ro /

### Convert all ext4 into new metadata
Read more... )
xaminmo: Josh 2016 (Default)
Every repo was giving signature errors in apt:
Err:6 http://security.debian.org stretch/updates InRelease
At least one invalid signature was encountered.

This was pretty recent. My updates in May were fine.
This ONLY affected apt* update. Not clean, install, purge, etc.

I could bypass
Read more... )
xaminmo: (Josh 2014)
Reminder to self:
Debian packages are stored in library archive format.

ar -xv file.deb
This returns three files, in this specific order:
debian-binary #
Read more... )

xaminmo: (Josh 2014)
Reminder to self:
Debian packages are stored in library archive format.

ar -xv file.deb
This returns three files, in this specific order:
debian-binary # A small text file. Always "2.0\n" for now.
data.tar.gz # All of the filesystem bits that get deployed
control.tar.gz # control, md5sums, and pre/post scripts

Note also that data.tar can be .xz format as well.

There are dpkg-build tools for this, but all of this can be done manually for more control if desired.

. )
xaminmo: (Josh 2014)
I installed owncloud, and set it to indexing a pile of files I wanted easier access to.

Well, /var filled, and the DB stopped. :o

I was on Debian Jessie (stable), and needed some updates to continue.

Technical Details )

xaminmo: Josh 2016 (Default)
I just saved a few gigs with this. Figured I need to document this or I'll never remember. :)

Add this into /etc/dovecot/conf.d/10*
# Enable zlib plugin globally for reading/writing:
mail_plugins = $mail_plugins zlib

# Enable these only if you want compression while saving:
plugin {

Read more... )
xaminmo: Josh 2016 (Default)
I'm using Ubuntu Precise, which is linux 3.2.0, and various DebUntu packages.

The Amazon Machine ID is ami-82fa58eb. The root device is an 8g block on EBS (required for free tier).

It runs fine under a micro image (also required for free tier).

But I like JFS, and it doesn't have JFS.
Also, I wanted /home to be separate from the jumbo root filesystem.

So, I did this:
* Add the new device (22GB to stay within 30G free tier) as /dev/sdf (first free slot)
root@aws:/root# dmesg | tail
[161800.993075] blkfront device/vbd/2128 num-ring-pages 1 nr_ents 32.
[161801.895396] blkfront: xvdf: barrier or flush: disabled
[161801.905416]  xvdf: unknown partition table

* Create the volume group:
root@aws:/root# apt-get update
root@aws:/root# apt-get install lvm2
root@aws:/root# pvcreate /dev/xvdf
  Physical volume "/dev/xvdf" successfully created
root@aws:/root# vgcreate -Ay -M2 -p32 -s256M rootvg /dev/xvdf
  Volume group "rootvg" successfully created
root@aws:/root# lvcreate -Ay -L 20G -n hd1 -prw -rauto rootvg
  Logical volume "hd1" created

* Create the filesystem
root@aws:/root# apt-get install jfsutils
root@aws:/root# mkfs.jfs -L /home /dev/rootvg/hd1
mkfs.jfs version 1.1.15, 04-Mar-2011
Warning!  All data on device /dev/rootvg/hd1 will be lost!

Continue? (Y/N) y

Format completed successfully.

20971520 kilobytes total disk space.
root@aws:/root# cp -p /etc/fstab /etc/fstab.bak
root@aws:/root# vi /etc/fstab
echo 'LABEL=cloudimg-rootfs   /        ext4   defaults        1 1
LABEL=/home             /home    jfs    defaults,nofail 0 2
' > /etc/fstab

* Update the kernel to support JFS
root@aws:/root# aptitude safe-upgrade
root@aws:/root# apt-get install linux-image-extra-virtual jfsutils 
root@aws:/root# reboot
xaminmo: Josh 2016 (Logo Linux)
Ok, so the mail issue was actually a firewall issue, but in the troubleshooting, I did a clean reinstall of exim4.

Mail seems to be really happy after fully reconfiguring it. Virus scanning seems to mostly be working, though there were 6 failures lastnight. I think maybe a rate limit issue. Will look into it..

Procmail has been disabled since exim has good filtering in .forward files and procmail seemed to be not happy on my server.

Spam scanning seems to be working, but I don't have bayesian filtering enabled. It's too heavy for my little ole mail server. Everyone who doesn't have an external forward set up has it set to automatically send spam as tagged by spamassassin to go to their junk mail folder automatically.


This means that spammers who do not retry temporary rejection will never be received. Since the premise of spamming is to use as little time on their end as possible, this should remove a good chunk of their traffic without having to spend much CPU time on it. This should not affect messages sent by normal, valid, full-time mail servers, which some spammers use. It's not perfect, but it's a cheap way to cut spam counts.
xaminmo: Josh 2016 (Default)
Intermittently, at different versions of libc, kernel, apache-ssl, etc
apache-ssl will simply fail to start.

No errors

If I run it -F, all I get is segmentation violation.

I get no core file.

For a packaged and distributed fileset, this shouldn't happen very often, and it DAMNED sure should be trapping this error and reporting something useful about it. I shouldn't have to try to gdb a primary app.

Though, I SUPPOSE I could stay with "Stable". Unfortunately, it's not much more stable, but it IS many moons out of date compared to Testing.

No one actually runs "Stable".

I can't begin to explain just how infuriating this is.


xaminmo: Josh 2016 (Default)

July 2018

12 34567
15 161718192021


RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 26th, 2019 01:46 am
Powered by Dreamwidth Studios