Skip navigation.

2501

Stand Alone Complex for Linux

Arch :: Blowfish in Perl

, ,

use Crypt::Blowfish;
my $cipher = new Crypt::Blowfish $key;
my $ciphertext = $cipher->encrypt($plaintext);
my $plaintext = $cipher->decrypt($ciphertext);

Arch :: [solved] Problems with Arch during upgrade

I just signed on to do a pacman -Syu with this release and got this error:

grsync-0.9.1-1 75.2K 176.9K/s 00:00:00 [#####################] 100%
checking package integrity…
(19/19) checking for file conflicts [#####################] 100%
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
/lib/modules/2.6.30-ARCH/kernel/fs/squashfs/squashfs.ko exists in both ‘kernel26′ and ’sqlzma’
Errors occurred, no packages were upgraded.

>You will have to this:
sudo pacman -Syuf
The f is to force files to be overwrite if there exist. This is cause sqlzma is more of a hack package for the livecd. You can also uninstall sqlzma since i think your using a normal install now. I think this would do it:
sudo pacman -Rf sqlzma

Hope this helps and not brake anything.

--
I got the following error while trying to upgrade:

checking package integrity…
(112/112) checking for file conflicts [##################################################################] 100%
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
filesystem: /etc/modprobe.d/usb-load-ehci-first.conf exists in filesystem
udev: /etc/modprobe.d/framebuffer_blacklist.conf exists in filesystem
Errors occurred, no packages were upgraded.

>sudo pacman -Syuf
This will overwrite existed files if they exist.

Ghost In The Shell Gun

beautiful!

Gentoo Install Link

,

Arch :: My rc.conf

,

#
# /etc/rc.conf - Main Configuration for Arch Linux

LOCALE=en_US.utf8
HARDWARECLOCK=""
TIMEZONE=""
KEYMAP="us"

USECOLOR="yes"
MOD_AUTOLOAD="yes"

MODULES=("psmouse proto=imps" "vboxdrv")

HOSTNAME="arch-live"

eth0="dhcp"
INTERFACES=(eth0)

#TODO add more auto-daemons here, especially the live-cd specific stuff
DAEMONS=(!chakra-hwdetect syslog-ng polkitparser @iptables @firewall hal @network !crond !portmap @fam !gamin @alsa @wicd archlive slim)
#DAEMONS=(addmods chakra-hwdetect syslog-ng @network @hal @fam !sshd !vbox @wicd chakra-xorg-detect chakra-xorg-config @chakra-alsa archlive slim)
#TODO: auto-network find-disks find-user-home

Arch :: + lxde

,

LXDE uses less memory than XFCE. After boot up, my laptop is only using an avg of 70-75 Mb of RAM compare to 85 for XFCE which is not bad either. Actually this results, in my personal opinion, are terrific. Fedora was using about 145 MB and Mint over 200 Mb. Sabayon 4.1 was using over 230 Mb...that is a lot!

Little features that should be added into LXDE : screenshot and lock screen. Besides that, LXDE is minimal, looks good and is superfast.

Perfect combination Arch + LXDE.

-2501

Zenwalk :: Netfilter.policy (original)

, ,

# Generated by iptables-save v1.4.2 on Sat Jun 13 18:44:06 2009
*mangle
P:REROUTING ACCEPT [68210:38681888]
:INPUT ACCEPT [68207:38680708]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [38534:2238010]
P:OSTROUTING ACCEPT [38547:2241634]
COMMIT
# Completed on Sat Jun 13 18:44:06 2009
# Generated by iptables-save v1.4.2 on Sat Jun 13 18:44:06 2009
*nat
P:REROUTING ACCEPT [11:2490]
P:OSTROUTING ACCEPT [199:12447]
:OUTPUT ACCEPT [199:12447]
COMMIT
# Completed on Sat Jun 13 18:44:06 2009
# Generated by iptables-save v1.4.2 on Sat Jun 13 18:44:06 2009
*filter
:INPUT ACCEPT [68207:38680708]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [38534:2238010]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j DROP
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -j ACCEPT
COMMIT
# Completed on Sat Jun 13 18:44:06 2009

Arch :: Back up your data

,

Backing Up and Retrieving a List of Installed Packages for Quick Software Restore

It is good practice to keep periodic backups of all pacman-installed packages. In the event of a system crash which is unrecoverable by other means, pacman can then easily reinstall the very same packages onto a new installation.

First, backup the current list of packages (which are available in a repository):

pacman -Qqe | grep -v "$(pacman -Qmq)" > pkglist

Store the pkglist on a USB key or other convenient medium.

Copy the pkglist file to the new installation, and navigate to the directory containing it.

Issue the following command:

pacman -S $(cat pkglist)

Arch Linux :: my.firewall version2

,

#!/bin/sh

firewall_start() {
iptables -F
iptables -t nat -F
iptables -t mangle -F

# Setting default policies
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

# Basic Firewall
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

# Allow SSH
iptables -A INPUT -i eth+ -p tcp -m tcp --dport 22 -j ACCEPT

# (link 3) throw everything else away
iptables -A INPUT -j DROP

# Allow myself to be a non-passive FTP client
iptables -A INPUT -p tcp --dport ftp-data --jump ACCEPT

# No Telnet!
iptables -A OUTPUT -p tcp --dport telnet --jump REJECT

# Otherwise, drop inbound TCP packets with ICMP messages
iptables -A INPUT -p tcp --jump REJECT
iptables -A INPUT -p udp --jump REJECT

# Report what happened
echo 'Firewall rules installed:'
iptables -L

}


> then run

/etc/rc.d/rc.firewall >> /etc/rc.local

Arch Linux :: my rc.firewall

,

Finally, I got my firewall to work...very simple set-up...
-2501

--firewall--

#!/bin/sh

# Flush first
iptables -F

# Basic Firewall
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -P INPUT DROP

# Allow SSH
iptables -A INPUT -i eth+ -p tcp -m tcp --dport 22 -j ACCEPT
# (link 3) throw everything else away
iptables -A INPUT -j DROP

# Allow myself to be a non-passive FTP client
iptables -A INPUT -p tcp --dport ftp-data --jump ACCEPT

# No Telnet!
iptables -A OUTPUT -p tcp --dport telnet --jump REJECT

# Otherwise, drop inbound TCP packets with ICMP messages
iptables -A INPUT -p tcp --jump REJECT
iptables -A INPUT -p udp --jump REJECT

# Report what happened
echo 'Firewall rules installed:'
iptables -L

July 2009
S M T W T F S
June 2009August 2009
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31