Showing posts with label Slackware. Show all posts
Showing posts with label Slackware. Show all posts

Wednesday, June 20, 2012

Vim regex to find whitespaces between quotes

In this example we use the string href="test find white spaces" as an example and we want to encode our URIs with %(percent-encoding) in order to comply with RFC3986.
So we need to encode 'space' character to '%20'. In vim, we can do it simple enough with the following command :
:%s/\(href="[^"]\+\)\@<= /%20/g
been working almost 1 hour to figure this out. :p

Hope that helps somebody. (:


Read more!

Thursday, May 27, 2010

SLACKWARE 13.1 RELEASE NOW!!!

Yes, it's that time again! After many months of development and
careful testing, we are proud to announce the release of Slackware
version 13.1!

We are sure you'll enjoy the many improvements. We've done our best
to bring the latest technology to Slackware while still maintaining the
stability and security that you have come to expect. Slackware is well
known for its simplicity and the fact that we try to bring software to
you in the condition that the authors intended.

Slackware 13.1 brings many updates and enhancements, among which
you'll find two of the most advanced desktop environments available
today: Xfce 4.6.1, a fast and lightweight but visually appealing and
easy to use desktop environment, and KDE 4.4.3, a recent stable release
of the new 4.4.x series of the award-winning KDE desktop environment.
We continue to make use of HAL (Hardware Abstraction Layer) and udev,
which allow the system administrator to grant use of various hardware
devices according to users' group membership so that they will be able
to use items such as USB flash sticks, USB cameras that appear like USB
storage, portable hard drives, CD and DVD media, MP3 players, and more,
all without requiring sudo, the mount or umount command. Just plug and
play. Properly set up, Slackware's desktop should be suitable for any
level of Linux experience. New to the desktop framework are ConsoleKit
and PolicyKit. ConsoleKit handles "seats", things like dealing with
devices when switching from one user to another. PolicyKit is a system
for fine-grained access control, allowing a non-root user to run certain
tasks with elevated privilege, but more securely than if the entire task
were simply run as root.

Slackware uses the 2.6.33.4 kernel bringing you advanced performance
features such as journaling filesystems, SCSI and ATA RAID volume
support, SATA support, Software RAID, LVM (the Logical Volume Manager),
and encrypted filesystems. Kernel support for X DRI (the Direct
Rendering Interface) brings high-speed hardware accelerated 3D graphics
to Linux.

There are two kinds of kernels in Slackware. First there are the
huge kernels, which contain support for just about every driver in the
Linux kernel. These are primarily intended to be used for installation,
but there's no real reason that you couldn't continue to run them after
you have installed. The other type of kernel is the generic kernel, in
which nearly every driver is built as a module. To use a generic kernel
you'll need to build an initrd to load your filesystem module and
possibly your drive controller or other drivers needed at boot time,
configure LILO to load the initrd at boot, and reinstall LILO. See the
docs in /boot after installing for more information. Slackware's Linux
kernels come in both SMP and non-SMP types now. The SMP kernel supports
multiple processors, multi-core CPUs, HyperThreading, and about every
other optimization available. In our own testing this kernel has proven
to be fast, stable, and reliable. We recommend using the SMP kernel
even on single processor machines if it will run on them.


Here are some of the advanced features of Slackware 13.1:

- Runs the 2.6.33.4 version of the Linux kernel from ftp.kernel.org.
Also included is a kernel patched with Speakup to support speech
synthesizers providing access to Linux for the visually impaired
community. The 2.6.x kernel series has matured into a stable
kernel, and provides reliable performance for your desktop or
your production server.

- System binaries are linked with the GNU C Library, version 2.11.1.
This version of glibc also has excellent compatibility with
existing binaries.

- X11 based on the X.Org Foundation's modular X Window System.
There's been much activity in the X development world, and the
improvements in terms of performance and hardware support are
too numerous to mention them all here.

- Installs gcc-4.4.4 as the default C, C++, Objective-C,
Fortran-77/95, and Ada 95 compiler.

- Support for fully encrypted network connections with OpenSSL,
OpenSSH, OpenVPN, and GnuPG.

- Apache (httpd) 2.2.15 web server with Dynamic Shared Object
support, SSL, and PHP 5.2.13.

- PCMCIA, CardBus, USB, IEE1394 (FireWire) and ACPI support. This
makes Slackware a great operating system for your laptop.

- The udev dynamic device management system for Linux 2.6.x.
This locates and configures most hardware automatically as it
is added (or removed) from the system, and creates the access
nodes in /dev. It also loads the kernel modules required by
sound cards and other hardware at boot time.

- New development tools, including Perl 5.10.1, Python 2.6.4,
Ruby 1.9.1-p378, Subversion 1.6.11, git-1.7.1, mercurial-1.5.2,
graphical tools like Qt designer and KDevelop, and much more.

- Updated versions of the Slackware package management tools make it
easy to add, remove, upgrade, and make your own Slackware packages.
Package tracking makes it easy to upgrade from Slackware 13.0 to
Slackware 13.1 (see CHANGES_AND_HINTS.TXT). The slackpkg tool can
also help update from an older version of Slackware to a newer one,
and keep your Slackware system up to date. In addition, the
slacktrack utility (in extra/) will help you build and maintain
your own packages.

- Web browsers galore! Includes KDE's Konqueror 4.4.3,
SeaMonkey 2.0.4 (this is the replacement for the Mozilla
Suite), and the immensely popular Firefox 3.6.3, as well as
the Thunderbird 3.0.4 email and news client with advanced
junk mail filtering.

- The KDE Software Compilation 4.4.3, a complete desktop environment.
This includes the KOffice productivity suite, networking tools, GUI
development with KDevelop, multimedia tools (including the amazing
Amarok music player and K3B disc burning software), the Konqueror web
browser and file manager, dozens of games and utilities,
international language support, and more.

- A collection of GTK+ based applications including pidgin-2.7.0,
gimp-2.6.8, gkrellm-2.3.4, gxine-0.5.903, xchat-2.8.6, xsane-0.996,
and pan-0.133.

- A repository of extra software packages compiled and ready to run.
This includes the Java(TM) 2 Software Development Kit Standard
Edition, an MPlayer browser plugin, and more (see the /extra directory).

- Many more improved and upgraded packages than we can list here. For
a complete list of core packages in Slackware 13.1, see this file:

ftp://ftp.slackware.com/pub/slackware/slackware-13.1/PACKAGES.TXT


Downloading Slackware 13.1:
---------------------------

The full version of Slackware Linux 13.1 is available for download
from the central Slackware FTP sites hosted by our friends at
www.cwo.com and osuosl.org:

ftp://slackware.osuosl.org/pub/slackware/slackware-13.1/
ftp://ftp.slackware.com/pub/slackware/slackware-13.1/

If the sites are busy, see the list of official mirror sites here:

http://slackware.com/getslack/

We will be setting up BitTorrent downloads for the official ISO
images. Stay tuned to http://slackware.com for the latest updates.

Instructions for burning the Slackware tree onto install discs may
be found in the isolinux directory.


Purchasing Slackware on CD-ROM or DVD:
--------------------------------------

Or, please consider purchasing the Slackware Linux 13.1 six CD-ROM
set or deluxe dual-sided DVD release directly from Slackware Linux, and
you'll be helping to support the continued development of Slackware
Linux!

The DVD release has the 32-bit x86 Slackware 13.1 release on one
side, and the 64-bit x86_64 Slackware 13.1 release on the other. Both
sides are bootable for easy installation, and includes everything from
both releases of Slackware 13.1, including the complete source code
trees.

The 6 CD-ROM release of Slackware 13.1 is the 32-bit x86 edition.
It includes a bootable first CD-ROM for easy installation. The 6
CD-ROMs are labeled for easy reference.


The Slackware 13.1 x86 6 CD-ROM set is $49.95 plus shipping, or
choose the Slackware 13.1 x86/x86_64 dual-sided DVD (also $49.95 plus
shipping).


Slackware Linux is also available by subscription. When we release
a new version of Slackware (which is normally once or twice a year) we
ship it to you and bill your credit card for a reduced subscription
price ($32.99 for the CD-ROM set, or $39.95 for the DVD) plus shipping.

For shipping options, see the Slackware store website. Before
ordering express shipping, you may wish to check that we have the
product in stock. We make releases to the net at the same time as disc
production begins, so there is a lag between the online release and the
shipping of media. But, even if you download now you can still buy the
official media later. You'll feel good, be helping the project, and have
a great decorative item perfect for any computer room shelf. :-)


Ordering Information:
---------------------

You can order online at the Slackware Linux store:

http://store.slackware.com

Other Slackware items like t-shirts, caps, pins, and stickers can
also be found here. These will help you find and identify yourself to
your fellow Slackware users. :-)

Order inquiries (including questions about becoming a Slackware
reseller) may be directed to this address: info@slackware.com


Have fun! :^) I hope you find Slackware to be useful, and thanks
very much for your support of this project over the years.

---
Patrick J. Volkerding

Visit us on the web at: http://slackware.com

Taken from : www.slackware.com


Read more!

Thursday, January 21, 2010

You know you’re a Slackware user when…

Source Article

Ever since I’ve started using Linux, Slackware has been my distro of choice. Thanks to my late friend Stanley for introducing it to me. I have tried many other distros like, Ubuntu, RedHat, Fedora, Xandros, VectorLinux, Gentoo, Debian, and others. But I still keep coming back in using Slackware.

I recently scanned my mailbox’s draft folder and have found this list useful to post. I really forgot where I got this from but credits goes to the contributors!

1. Users of other distros all seem like newbies to you.
2. You cannot stand people who don’t try to help themselves.
3. You feel a great disturbing in the force if you login and see no fortune quote.
4. You get nervous if /var/log/packages is missing.
5. The words “automatic dependency resolution” send shivers down your spine.
6. You think pam belongs in the kitchen, and not on a linux box.
7. You don’t know how to install something that doesn’t come in a source tarball.
8. Prebuilt packages are like fast food: the least the better.
9. You start twitching when all you can find is RPM’s.
10. You know who “Bob” is.
11. You know what man pages are.
12. You actually read man pages.
13. Other members of your LUG hold a certain reverence toward you as “That Guy”.
14. Some of them think you’re crazy.
15. They’re right.
16. You can think of 4 different answers to “how do I partition my hard drive”
17. One of them is “however you want”
18. “However you want” is a valid answer to any question.
19. You beat everyone at uptime contests.
20. You bash people for using /bin/bash instead of /bin/sh.
21. You have a life size poster of Pat Volkerding.
22. You’ve run a headless box at a remote location and it JUST WORKS.
23. You find it strange to see a machine without a working framebuffer.
24. You know how to configure your scroll mouse.
25. You know how to configure everything else too.
26. You see /etc/init.d in your nightmares.
27. You think /etc/httpd/conf/httpd.conf is for retards.
28. RPM is a mechanical term.
29. You have re-written rpm to a one line bash script.
30. You scold people who recommend using slapt-get/swaret/linuxpack ages.net
31. You use mutt, love it, and think those who don’t are idiots.
32. /usr/bin/pine exists.
33. The reason why you are so proud that emacs has its own diskset is that it makes it easier to remove.
34. You cannot understand why other distros split packages in 20 different ones that still depend on one another.
35. You don’t remember when’s the last time you re-installed.
36. You tell people “It’ll be released when it’s ready” more than 5 times a day.
37. You hate gentoo, but still compile everything.
38. Someone says "rm", and you think about trolls before the command.
39. You know how to use the rsync command.
40. You spend hours trying to get Beryl to work, only to disable it because you find it annoying.
41. You get excited when someone yells “The aliens are coming!”
42. You laughed at any of the above.
43. You contributed to this list.
44. You grab -current, see it runs not very stable, yell out “THIS IS AWESOME!!!” and start fixing it with a smile on your face.
45. You run across a dusty floppy disk labeled with the single letter “N” and think “I can’t throw this away, it might come in handy!”
46. You obsessively to name things “darkstar”
47. You port it to amd64 :)
48. If slackware didn’t exist you’d be using a BSD.
49. You have a sticker on your laptop that says “Ubuntu sux”
50. Your home directory is /my/slackbox/rules/ or /my/slacktop/rules/ :D
51. you change the start up scripts with vim (or emacs)
52. /usr/bin/pico exists
53. The first thing you do after starting KDE is open Konsole. With more than one tab. (Insert your favorite WM/shell)
54. For those of you who use nano, you’ve added a color-coding rule-set for *.SlackBuilds.


Read more!

Wednesday, November 4, 2009

Modem ZTE AC2710 di Slackware 13.0

Setelah kemarin meng-upgrade ke Slackware 13 (akhirnya ganti juga...), waktunya setting ulang koneksi internet saya dengan menggunakan modem Smart EV-DO. Terakhir pada waktu menggunakan Slackware 12.2, saya harus mengganti kernel saya ke versi di atas 2.6.28 agar dapat menggunakan modem ini karena masalah kompatibilitas. Senangnya di Slackware 13.0 sudah menggunakan kernel 2.6.29.6 jadi tidak usah mengganti kernel untuk menggunakan modem ini.

Seperti biasa layaknya usb-composite device yang lain, kita butuh utility 'usb_modeswitch' untuk mengganti fungsi usb composite tersebut. Setelah proses installasi 'usb_modeswitch', yang kita harus lakukan selanjutnya adalah menyesuaikan konfigurasinya agar sesuai dengan modem kita. Caranya, cari baris seperti di bawah ini :


########################################################
# ZTE AC2710 (EVDO)
#
# Contributor: Wasim Baig

;DefaultVendor= 0x19d2
;DefaultProduct= 0xfff5

;TargetVendor= 0x19d2
;TargetProduct= 0xfff1

#MessageEndpoint=0x05
;MessageContent="5553424312345678c00000008000069f010000000000000000000000000000"

# Just for information: try it with the message from the AC8710 ...


Jika tidak ditemukan baris seperti diatas, anda bisa tambahkan sendiri dan diubah menjadi seperti berikut :


########################################################
# ZTE AC2710 (EVDO)
#
# Contributor: Wasim Baig

DefaultVendor= 0x19d2
DefaultProduct= 0xfff5

TargetVendor= 0x19d2
TargetProduct= 0xfff1

MessageEndpoint=0x0a
MessageContent="5553424312345678c00000008000069f010000000000000000000000000000"

# Just for information: try it with the message from the AC8710 ...


Langkah selanjutnya adalah, saya membuat sebuah 'rules' pada '/etc/udev/rules.d/' bernama '62-zte-ac2710.rules' untuk mengganti fungsi modem setiap kali modem terhubung pada notebook saya. isi dari rules ini adalah :

SUBSYSTEM=="usb",SYSFS{idVendor}=="19d2",SYSFS{idProduct}=="fff5",GOTO="EVDO_CDMA_Modem"

LABEL="EVDO_CDMA_Modem"
RUN+="/usr/bin/usb_modeswitch && sleep 15"
RUN+="/sbin/modprobe -v usbserial vendor=0x19d2 product=0xfff1"
LABEL="EVDO_CDMA_Modem_End"


Jangan lupa restart service 'udev' setelah menambahkan rules di atas. Setelah itu, modem anda akan siap di pakai untuk koneksi dial-up smart 15 detik setelah modem terhubung pada port USB anda. Modem akan menjadi char device pada '/dev/ttyUSB0'.

Semoga membantu.
Salam...


Read more!

Friday, September 4, 2009

Slackware 13 is now Released!

After one of the most intensive periods of development in Slackware's history,
the long awaited stable release of Slackware 13.0 is ready. This release
brings with it many major changes since Slackware 12.2, including a completely
reworked collection of X packages (a configuration file for X is no longer
needed in most cases), major upgrades to the desktop environments (KDE version
4.2.4 and Xfce version 4.6.1), a new .txz package format with much better
compression, and other upgrades all around -- to the development system,
network services, libraries, and major applications like Firefox and
Thunderbird. We think you'll agree that this version of Slackware was worth
the wait. Also, this is the first release of Slackware with native support
for the 64-bit x86_64 architecture! Major kudos to Eric Hameleers for all of
his work, especially on the 64-bit port.

More details may by found in the official announcement and in the release notes.

Please consider supporting the Slackware project by picking up a copy of the Slackware 13.0 release from the Slackware Store. The discs are off to replication, but we're accepting pre-orders for the official 6 CD set and the DVD. The CD set is the 32-bit x86 release, while the DVD is a special edition dual-sided disc with the 32-bit x86 release on one side and the 64-bit x86_64 release on the other. And, we still have T-shirts and other Slackware stuff there, so have a look around. Thanks to our subscribers and supporters for keeping Slackware going all these years.

Thanks are again due to the Slackware crew, the developers of slackbuilds.org, the community on linuxquestions.org, Slackware IRC channels, and everyone else who helped out with this release.

Have fun, and enjoy the new stable release!

Pat and the Slackware crew

From : http://www.slackware.com/


Read more!

Wednesday, July 22, 2009

Setting Smart Modem EV-DO di Slackware 12.2

Hari senin 20 juli 2009 saya mendapatkan hadiah sebuah modem Smart EVDO dari salah seorang sahabat saya. Sejujurnya saya hanya mencoba cara cepat untuk dapat mengunakan modem ini. Pertama kali saya pasang modem Smart dengan chipset ZTE AC2767 pada notebook saya dengan sistem operasi Slackware Linux 12.2 (kernel 2.6.27-7-smp), modem usb composite ini terdeteksi sebagai CD-Rom (ZeroCD). Pengalaman saya dengan beberapa modem usb pada Linux, membuat saya mengetahui kalau modem usb ini membutuhkan sebuah software controller untuk mengganti modus usb dari ZeroCD menjadi USB-Serial yaitu usb_modeswitch. Namun bahkan dengan usb_modeswitch versi terbaru pun, usb modem ini selalu terputus.

Setelah beberapa saat mencari informasi dari sesama pengguna open-source indonesia dan google, modem EVDO ini membutuhkan konfigurasi kernel yang belum ada pada kernel 2.6.27-7 yang saya gunakan saat itu. Akhirnya saya pun memutuskan untuk mengganti kernel Slackware Linux saya menjadi kernel Linux stabil saat itu yaitu 2.6.30.2-smp. Setelah proses kompilasi kernel baru saya selesai saya langsung mencoba modem usb ini.

Awal-awalnya usb modem ini dikenali sebagai USB-Cdrom seperti diatas. Namun setelah saya menjalan kan usb_modeswitch sesuai dengan kode vendor dan kode produk modem ini (#usb_modeswitch -v 19d2 -p fff5 -V 19d2 -P fff1) dan melihat dmesg, kali ini semua controller usb serial pada modem usb ini terdeteksi dengan baik. Ada 4 alat usb-serial pada modem ini yang terdeteksi, biarpun saya tidak tahu semua fungsinya dengan baik, namun setelah di coba satu persatu akhirnya saya tahu bahwa usb serial modem tersebut terletak pada /dev/ttyUSB0.

Setelah menunggu beberapa saat, dan ternyata masalah modem terputus itu tidak terjadi.
Langsung saya coba mengkonfigurasi KPPP untuk dial-up koneksi menggunakan jalur CDMA. Coba koneksi, dan semua berjalan dengan baik. Sampai pada saat menulis artikel ini pun saya masih menggunakan modem usb ini. Hanya kendalanya dengan jalur CDMA, sampai saat artikel ini ditulis, saya masih belum menemukan cara untuk memantau kondisi signal CDMA selain pada pertama kali menjalankan koneksi dengan perintah modem AT+CSQ / dengan konsol serial. Dan 1 lagi pertanyaan saya, mengapa pada packaging USB modem ini tidak terdapat tanda yang menyatakan modem ini support untuk sistem operasi linux..?


Read more!

Wednesday, June 10, 2009

Linkedin.com with D-Link DSL-520T Routers.

Today my boss asked me why did he cannot accept the invitation of his friend on 'linkedin.com'. And I said to him that I had no account on linkedin.com, I would make one and see what's causing the problem.

After sign up process I was asked to confirm via email, and when process start, the confirmation page couldn't load at all. It was because the confirmation page was using HTTPS, and some how only 'https://www.linkedin.com'' that cannot load. Other 'https' pages was load without any problem.

After googling for about an hour, I've found that my router which is D-Link 520T has a default firewall rules that change the TCPMSS. Now I don't want to explain what is TCPMSS, but that was the cause why https://www.linkedin.com page could not be loaded.

I login to the router using my linux box. This is how to do i :

1. $telnet
2. Login using the same account as the web interface.
3. then you had the root shell of the D-Link router.
4. #iptables -L FORWARD (remember that Linux IS case sensitive.)
5. You will see something like this
#iptables -L FORWARD
Chain FORWARD (policy ACCEPT)
target prot opt source destination
TCPMSS tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS set 1360
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:23
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:20
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:500
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:53
DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:67
DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:520
ACCEPT 2 -- 0.0.0.0/0 0.0.0.0/0
DROP icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8 state NEW
DROP all -- 0.0.0.0/0 0.0.0.0/0

6. Find and delete the this line :
TCPMSS tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS set 1360
Using command :
#iptables -D FORWARD .
on the example above.
#iptables -D FORWARD 1

7. Try to login to linkedin.com and it will load without problem.

There's still one problem, this is my prediction only, but the firewall rules will be reset everytime the router restart. This mean that we have to do it everytime after the router is restarted.

Good Luck.


Read more!