Brain a.k.a. thief

Spalis 19, 2009

“E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem.”

Įrašyta kategorijoje: Linux, Repair — brainthief @ 6:51 am

Problems:

  • “E: dpkg was interrupted, you must manually run ‘dpkg –configure -a’ to correct the problem.”
  • dpkg: too many errors, stopping
    dpkg: ../../src/packages.c:252: process_queue: Assertion `!queuelen’ failed.

Solutions:

cat /etc/lsb-release
uname -a

answer:

administrator@macserv:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION=”Ubuntu 8.04″
administrator@macserv:~$ uname -a
Linux macserv 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686 GNU/Linux

then:

sudo mkdir /var/run/dbus
sudo apt-get update
sudo dpkg –configure -a

dar padeda:

apt-get install -f

Spalis 13, 2009

Network manager

Įrašyta kategorijoje: Linux, Repair — brainthief @ 10:50 am

hmm, interesting. not sure what i did that my have fixed this, but now my wired connection is downloading updates at about 800kB/s.

I removed and re-installed the network-manager.

$ sudo apt-get remove network-manager network-manager-gnome

then i set my wired connection to use a static address:
$ sudo vim /etc/network/interfaces

stuck this in there:

auto eth0
iface eth0 inet static
address 192.168.1.203
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.1.255
gateway 192.168.1.1

did a:
$ sudo /etc/init.d/networking restart

manually entered in one of my ISP’s DNS servers:

$ sudo vi /etc/resolv.conf

stuck something similar to this in there:

nameserver x.x.x.x

do another:
$ sudo /etc/init.d/networking restart

did a:

$ sudo reboot

and after the system came back up i started to run the updates and everything started to download really fast.

i don’t know if removing and re-installing network-manager had anything to do with it, perhaps not, or if setting the IP management from DHCP to static had anything to do with it either; just sharing what I did before it started working.

Liepa 23, 2009

FTP in linux

Įrašyta kategorijoje: Joomla, Linux — brainthief @ 11:33 am

Rodyti esamus ftp servisus:

chkconfig –list | grep ftpd

Paleisti:

vsftpd start

Alternatyvi komanda

service vsftpd start

Autorun:

chkconfig vsftpd on -redhat or redora

sysv-rc-conf on - ant Ubuntu

Patikrinti ar verkia:

netstat -a | grep ftp

Liepa 20, 2009

Nessus

Įrašyta kategorijoje: Hacking, Joomla security, Linux, Server, Windows, Windows admin — brainthief @ 7:14 am

www.nessus.org/nessus – securyti auditor…

Crontab 4 joomla mysql

Įrašyta kategorijoje: Backupas joomlos, Linux, MYSQL — brainthief @ 5:10 am

crontab -e

45 23 * * 0 mysqldump -uUSER -pPWD –databases JDB > joomla_db.sql

ESC :w Enter :q

rez:

crontab: installing new crontab

Sausis 13, 2009

H: Adreso nuorodos pakeitimas naršyklės būsenos juostoje IE6/IE7

Įrašyta kategorijoje: Hacking, Kitas geris, Linux, Viskas kartu — brainthief @ 12:13 pm

Manau, žinote kas yra IP-spoofing. Jeigu ne, tai padės “Google.lt”. Kartais reikia naudoti tokius dalykus kuriant netikras svetaines. Kaip žinote, kai su pele atsistojate virš nuorodos, tai jūsų naršyklės būsenos juostoje yra rodoma nuoroda į kuria jus busite nukreiptas paspaudęs ją. Mūsų tikslas – tikro adresą pakeitimas į mūsų norimą adresą. Šis dalikas veiks su IE6/IE7 naršyklėmis.

(daugiau…)

Rugsėjis 14, 2007

soft: putty

Įrašyta kategorijoje: 4Admin, Linux, Soft, Viskas kartu, Windows, Windows admin — brainthief @ 12:25 pm

Soft: XAMPP ir serveriuka turi ;)

Įrašyta kategorijoje: 4Admin, Linux, Soft, Viskas kartu, Windows, Windows admin — brainthief @ 12:22 pm

Rugpjūtis 4, 2007

Portai

Įrašyta kategorijoje: 4Admin, Hacking, Linux, Viskas kartu, Windows — brainthief @ 2:16 pm

Žinomesni portai:

  • 20 – FTP (File Transfer Protocol)
  • 21 – FTP (File Transfer Protocol)
  • 22 – SSH (Secure Shell)
  • 23 – Telnet (daugiau…)

Blog at WordPress.com.